:root {
  --gallery-white: #ffffff;
  --gallery-canvas: #f8fafc;
  --gallery-paper: #fffef9;
  --gallery-ink: #15110f;
  --gallery-muted: #5f6673;
  --gallery-soft: #eef2f6;
  --gallery-line: rgba(21, 17, 15, 0.1);
  --gallery-line-strong: rgba(21, 17, 15, 0.18);
  --loteria-blue: #29bdf2;
  --loteria-green: #20a55a;
  --loteria-yellow: #ffd333;
  --loteria-magenta: #ec2f91;
  --loteria-red: #e43a2e;
  --loteria-purple: #6246d9;
  --cream: #fffef9;
  --ink: var(--gallery-ink);
  --muted: var(--gallery-muted);
  --red: var(--loteria-red);
  --orange: #ff8a24;
  --yellow: var(--loteria-yellow);
  --turquoise: var(--loteria-blue);
  --pink: var(--loteria-magenta);
  --green: var(--loteria-green);
  --purple: var(--loteria-purple);
  --blue: var(--loteria-blue);
  --white: var(--gallery-white);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --small-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  --hairline: var(--gallery-line);
}

/* Storefront experience polish */
.shop-catalog-page {
  max-width: 1320px;
}

.shop-catalog-hero {
  align-items: center;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  min-height: 650px;
  padding: clamp(42px, 6vw, 76px);
  position: relative;
}

.shop-catalog-hero::before {
  background-image: radial-gradient(rgba(98, 70, 217, 0.14) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  content: "";
  inset: 0 0 0 55%;
  mask-image: linear-gradient(90deg, transparent, #000 35%);
  opacity: 0.65;
  pointer-events: none;
  position: absolute;
}

.shop-catalog-hero-copy {
  position: relative;
  z-index: 2;
}

.shop-catalog-hero-copy h1 {
  font-size: clamp(3.4rem, 6.8vw, 7.4rem);
  max-width: 760px;
}

.shop-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.shop-hero-showcase {
  height: 500px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.shop-hero-product {
  background: #fff;
  border: 5px solid #fff;
  border-radius: 20px;
  box-shadow: 0 28px 60px rgba(49, 32, 38, 0.2);
  margin: 0;
  overflow: hidden;
  position: absolute;
  width: clamp(190px, 19vw, 270px);
}

.shop-hero-product img {
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  width: 100%;
}

.shop-hero-product figcaption {
  background: #fff;
  color: var(--gallery-ink);
  font-size: 0.76rem;
  font-weight: 950;
  padding: 10px 12px;
}

.hero-product-spooky {
  left: 34%;
  top: 14px;
  transform: rotate(5deg);
  z-index: 3;
}

.hero-product-bebe {
  left: 3%;
  top: 116px;
  transform: rotate(-7deg);
  z-index: 2;
}

.hero-product-amor {
  left: 55%;
  top: 164px;
  transform: rotate(9deg);
  z-index: 1;
}

.shop-hero-showcase .shop-catalog-proof {
  bottom: 4px;
  left: 9%;
  position: absolute;
  transform: rotate(-2deg);
  z-index: 5;
}

.shop-assurance-strip {
  background: #fff;
  border: 1px solid #e4dfe1;
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(55, 37, 43, 0.07);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: -34px auto 70px;
  max-width: calc(100% - 70px);
  position: relative;
  z-index: 4;
}

.shop-assurance-strip > div {
  align-items: center;
  display: flex;
  gap: 13px;
  padding: 20px 24px;
}

.shop-assurance-strip > div + div {
  border-left: 1px solid #ece5e6;
}

.shop-assurance-strip > div > span {
  align-items: center;
  background: #fff1f7;
  border-radius: 999px;
  color: #c62172;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.05rem;
  font-weight: 950;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.shop-assurance-strip p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.shop-assurance-strip strong {
  font-size: 0.9rem;
}

.shop-assurance-strip small {
  color: #746b70;
  font-size: 0.75rem;
  line-height: 1.4;
}

.shop-catalog-heading {
  align-items: end;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.6fr);
  margin: 0 0 26px;
  scroll-margin-top: 110px;
}

.shop-catalog-heading h2 {
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  letter-spacing: -0.06em;
  line-height: 0.92;
  margin: 8px 0 0;
  max-width: 760px;
  text-wrap: balance;
}

.shop-catalog-heading > p {
  color: #655d61;
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 6px;
}

.shop-featured-product {
  background: linear-gradient(145deg, #201627, #3b1c43 62%, #15242c);
  border-radius: 30px;
  color: #fff;
  display: grid;
  gap: clamp(32px, 6vw, 72px);
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  margin: 60px 0;
  min-height: 620px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
}

.shop-featured-media {
  min-height: 510px;
  position: relative;
}

.shop-featured-media img {
  border: 5px solid rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
  display: block;
  object-fit: cover;
  position: absolute;
}

.shop-featured-main {
  height: 78%;
  left: 0;
  top: 4%;
  transform: rotate(-2deg);
  width: 76%;
}

.shop-featured-detail {
  height: 36%;
  right: 0;
  width: 40%;
}

.shop-featured-detail.one {
  top: 2%;
  transform: rotate(5deg);
}

.shop-featured-detail.two {
  bottom: 3%;
  transform: rotate(-5deg);
}

.shop-featured-copy {
  align-content: center;
  display: grid;
}

.shop-featured-copy .lm-kicker {
  color: #f7c92d;
}

.shop-featured-copy h2 {
  color: #fff;
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  letter-spacing: -0.06em;
  line-height: 0.91;
  margin: 10px 0 20px;
  text-wrap: balance;
}

.shop-featured-copy > p:not(.lm-kicker) {
  color: #ded4e2;
  line-height: 1.75;
  margin: 0;
}

.shop-featured-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0;
}

.shop-featured-facts span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  display: grid;
  font-size: 0.7rem;
  gap: 2px;
  min-width: 94px;
  padding: 13px 16px;
  text-transform: uppercase;
}

.shop-featured-facts strong {
  color: #fff;
  font-size: 1.35rem;
}

.shop-featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-featured-product .secondary-button {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: #fff !important;
}

.shop-paths-section {
  margin: 70px 0;
}

.shop-paths-section > header {
  margin: 0 auto 28px;
  max-width: 820px;
  text-align: center;
}

.shop-paths-section > header h2 {
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  letter-spacing: -0.055em;
  line-height: 0.94;
  margin: 8px 0;
}

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

.shop-paths-grid article {
  background: #fff;
  border: 1px solid #e5dcde;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: clamp(24px, 4vw, 38px);
}

.shop-paths-grid article > span {
  align-items: center;
  background: #edf9fd;
  border-radius: 16px;
  color: #087ca0;
  display: flex;
  font-size: 1.4rem;
  font-weight: 950;
  height: 52px;
  justify-content: center;
  margin-bottom: 26px;
  width: 52px;
}

.shop-paths-grid .path-physical > span { background: #fff5df; color: #a66a00; }
.shop-paths-grid .path-custom > span { background: #f6edff; color: #7554c9; }

.shop-paths-grid h3 {
  font-size: 1.8rem;
  margin: 6px 0 12px;
}

.shop-paths-grid article > p:not(.lm-kicker) {
  color: #6b6267;
  line-height: 1.65;
  margin: 0 0 26px;
}

.shop-paths-grid article > a,
.shop-paths-grid article > button {
  background: transparent;
  border: 0;
  color: #9b2464;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  margin-top: auto;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(155, 36, 100, 0.3);
  text-underline-offset: 4px;
}

.shop-review-wall {
  background:
    radial-gradient(circle at 8% 8%, rgba(41, 189, 242, 0.14), transparent 24rem),
    radial-gradient(circle at 90% 90%, rgba(236, 47, 145, 0.12), transparent 24rem),
    #fff;
  border: 1px solid #e6dfe1;
  border-radius: 28px;
  margin: 70px 0;
  padding: clamp(28px, 5vw, 56px);
}

.shop-review-wall > header {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 30px;
}

.shop-review-wall h2 {
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  letter-spacing: -0.055em;
  line-height: 0.94;
  margin: 8px 0 0;
  max-width: 850px;
}

.shop-review-wall > header > a {
  color: #8c245f;
  flex: 0 0 auto;
  font-weight: 900;
}

.shop-review-wall > div {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-review-wall blockquote {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e9e0e3;
  border-radius: 18px;
  margin: 0;
  padding: 24px;
}

.shop-review-wall blockquote > span {
  color: #e9ab00;
  letter-spacing: 2px;
}

.shop-review-wall blockquote p {
  color: #2f292d;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.5;
  margin: 14px 0 18px;
}

.shop-review-wall cite {
  color: #7b7177;
  font-size: 0.72rem;
  font-style: normal;
}

.shop-catalog-page + .seo-faq-section {
  background: linear-gradient(145deg, #fffaf0, #f6fbff) !important;
  border: 1px solid #e8ddd5 !important;
  border-radius: 30px !important;
  max-width: 1260px !important;
}

.spooky-deck-preview {
  background: linear-gradient(145deg, #211727, #3a1e42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  color: #fff;
  margin: 28px 0 48px;
  overflow: hidden;
}

.spooky-deck-preview > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: clamp(24px, 4vw, 38px);
}

.spooky-deck-preview > summary::-webkit-details-marker { display: none; }

.spooky-deck-preview > summary > span {
  display: grid;
  gap: 6px;
}

.spooky-deck-preview > summary small {
  color: #f3c632;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spooky-deck-preview > summary strong {
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  letter-spacing: -0.045em;
}

.spooky-deck-preview > summary em {
  color: #cfc3d3;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}

.spooky-deck-preview > summary > b {
  align-items: center;
  background: #f3c632;
  border-radius: 50%;
  color: #2b1831;
  display: flex;
  flex: 0 0 auto;
  font-size: 1.6rem;
  height: 48px;
  justify-content: center;
  transition: transform 180ms ease;
  width: 48px;
}

.spooky-deck-preview[open] > summary > b { transform: rotate(45deg); }

.spooky-deck-preview-body {
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  padding: 0 clamp(22px, 4vw, 38px) clamp(28px, 4vw, 42px);
}

.spooky-deck-preview-body > p {
  color: #d6cbd9;
  line-height: 1.65;
  margin: 24px 0;
  max-width: 760px;
}

.spooky-deck-preview-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.spooky-deck-preview-grid figure {
  background: #fff;
  border: 3px solid #fff;
  border-radius: 12px;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.spooky-deck-preview-grid figure::after {
  color: rgba(255, 255, 255, 0.54);
  content: attr(data-watermark);
  font-size: 0.54rem;
  font-weight: 950;
  left: 50%;
  pointer-events: none;
  position: absolute;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.48);
  top: 43%;
  transform: translate(-50%, -50%) rotate(-24deg);
  white-space: nowrap;
}

.spooky-deck-preview-grid img {
  aspect-ratio: 465 / 597;
  display: block;
  object-fit: cover;
  width: 100%;
}

.spooky-deck-preview-grid figcaption {
  color: #211827;
  display: grid;
  font-size: 0.72rem;
  font-weight: 900;
  gap: 2px;
  line-height: 1.2;
  padding: 9px;
}

.spooky-deck-preview-grid figcaption span {
  color: #9b2464;
  font-size: 0.62rem;
}

.spooky-deck-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.spooky-deck-preview .secondary-button {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: #fff !important;
}

.storefront-product-carousel {
  margin: 58px 0 28px;
}

.storefront-product-carousel > header {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.storefront-product-carousel h2 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  letter-spacing: -0.055em;
  line-height: 0.94;
  margin: 8px 0 0;
  max-width: 830px;
}

.storefront-carousel-controls {
  display: flex;
  gap: 8px;
}

.storefront-carousel-controls button {
  align-items: center;
  background: #fff;
  border: 1px solid #ddd4d7;
  border-radius: 50%;
  color: var(--gallery-ink);
  cursor: pointer;
  display: flex;
  font-size: 1.2rem;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.storefront-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-color: #cfc4c8 transparent;
}

.storefront-carousel-card {
  --carousel-accent: var(--loteria-blue);
  background: #fff;
  border: 1px solid #e3dade;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(51, 33, 40, 0.08);
  flex: 0 0 min(390px, 78vw);
  overflow: hidden;
  scroll-snap-align: start;
}

.storefront-carousel-card.theme-bebe { --carousel-accent: var(--loteria-blue); }
.storefront-carousel-card.theme-amor { --carousel-accent: var(--loteria-magenta); }
.storefront-carousel-card.theme-grateful { --carousel-accent: #df8528; }
.storefront-carousel-card.theme-bridal { --carousel-accent: #8aa89a; }
.storefront-carousel-card.theme-christmas { --carousel-accent: #c83b3e; }
.storefront-carousel-card.theme-maker { --carousel-accent: var(--loteria-green); }

.storefront-carousel-card > a {
  display: block;
}

.storefront-carousel-card img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}

.storefront-carousel-card > div {
  padding: 22px;
}

.storefront-carousel-card > div > span {
  color: var(--carousel-accent);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.storefront-carousel-card h3 {
  font-size: 1.55rem;
  margin: 8px 0 10px;
}

.storefront-carousel-card h3 a {
  color: var(--gallery-ink);
  text-decoration: none;
}

.storefront-carousel-card p {
  color: #6a6166;
  line-height: 1.55;
  min-height: 74px;
}

.storefront-carousel-card > div > a {
  color: #8f245f;
  font-weight: 900;
}

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

  .shop-hero-showcase {
    margin: 0 auto;
    max-width: 610px;
    width: 100%;
  }

  .shop-featured-product {
    grid-template-columns: 1fr;
  }

  .shop-featured-media {
    min-height: 490px;
  }

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

.shared-files-page {
  background: radial-gradient(circle at 15% 10%, rgba(236,43,131,.14), transparent 30%), radial-gradient(circle at 90% 20%, rgba(22,169,224,.15), transparent 32%), #f5f2f8;
  min-height: 100vh;
  padding: 20px;
}

.shared-files-nav { align-items: center; display: flex; justify-content: space-between; margin: 0 auto 28px; max-width: 1060px; }
.shared-files-nav > a { color: #15131a; font-size: 1.05rem; font-weight: 900; text-decoration: none; }
.shared-files-card { background: #fff; border: 1px solid #e1dce8; border-radius: 30px; box-shadow: 0 30px 90px rgba(36,27,52,.14); margin: 0 auto; max-width: 820px; padding: clamp(28px, 6vw, 58px); }
.shared-files-card h1 { color: #15131a; font-size: clamp(2rem, 6vw, 3.6rem); letter-spacing: -.055em; line-height: .98; margin: 10px 0 16px; }
.shared-files-card > p { color: #625b6b; font-size: 1.02rem; line-height: 1.6; }
.shared-files-summary { background: #f7f3ff; border: 1px solid #ded4f4; border-radius: 20px; display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); margin: 25px 0; overflow: hidden; }
.shared-files-summary span { align-items: center; color: #655d73; display: flex; flex-direction: column; font-size: .76rem; font-weight: 800; gap: 2px; padding: 16px 8px; text-align: center; }
.shared-files-summary strong { color: #261d41; font-size: 1.35rem; }
.shared-files-actions { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shared-files-actions .secondary-button { grid-column: 1 / -1; }
.shared-files-progress { background: #e7e0ed; border-radius: 999px; height: 10px; margin: 18px 0 28px; position: relative; }
.shared-files-progress > span { background: linear-gradient(90deg, #7654c9, #ec2b83); border-radius: inherit; display: block; height: 100%; transition: width .2s ease; }
.shared-files-progress small { color: #625b6b; display: block; font-size: .72rem; font-weight: 750; margin-top: 6px; }

@media (max-width: 620px) {
  .shared-files-page { padding: 12px; }
  .shared-files-nav { margin-bottom: 14px; }
  .shared-files-card { border-radius: 22px; padding: 25px 19px; }
  .shared-files-summary { grid-template-columns: 1fr; }
  .shared-files-summary span + span { border-top: 1px solid #ded4f4; }
  .shared-files-actions { grid-template-columns: 1fr; }
  .shared-files-actions .secondary-button { grid-column: auto; }
}

@media (max-width: 760px) {
  .shop-catalog-hero {
    min-height: 0;
    overflow: visible;
  }

  .shop-catalog-hero::before { display: none; }

  .shop-hero-showcase {
    height: 370px;
  }

  .shop-hero-product {
    width: 42%;
  }

  .hero-product-bebe { left: 0; top: 80px; }
  .hero-product-spooky { left: 29%; top: 0; }
  .hero-product-amor { left: 57%; top: 92px; }

  .shop-hero-showcase .shop-catalog-proof {
    left: 4%;
    min-width: 140px;
  }

  .shop-assurance-strip {
    grid-template-columns: 1fr;
    margin-bottom: 52px;
    max-width: calc(100% - 28px);
  }

  .shop-assurance-strip > div + div {
    border-left: 0;
    border-top: 1px solid #ece5e6;
  }

  .shop-catalog-heading {
    gap: 16px;
    grid-template-columns: 1fr;
  }

  .shop-featured-media {
    min-height: 410px;
  }

  .shop-featured-main { width: 78%; }
  .shop-featured-detail { width: 43%; }

  .shop-paths-grid,
  .shop-review-wall > div {
    grid-template-columns: 1fr;
  }

  .shop-paths-grid article {
    min-height: 0;
  }

  .shop-review-wall > header,
  .storefront-product-carousel > header {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .shop-catalog-hero {
    padding: 30px 20px 24px;
  }

  .shop-hero-actions,
  .shop-featured-actions,
  .spooky-deck-preview-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .shop-hero-actions > *,
  .shop-featured-actions > *,
  .spooky-deck-preview-actions > * {
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .shop-hero-showcase {
    height: 300px;
  }

  .shop-hero-product {
    border-width: 3px;
    border-radius: 13px;
  }

  .shop-hero-product figcaption {
    display: none;
  }

  .shop-hero-showcase .shop-catalog-proof {
    bottom: 0;
    padding: 12px;
  }

  .shop-featured-product {
    border-radius: 22px;
    margin-left: -2px;
    margin-right: -2px;
    padding: 22px 18px 28px;
  }

  .shop-featured-media {
    min-height: 300px;
  }

  .shop-featured-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop-featured-facts span {
    min-width: 0;
    padding: 10px;
  }

  .spooky-deck-preview > summary {
    align-items: flex-start;
  }

  .spooky-deck-preview > summary > b {
    height: 38px;
    width: 38px;
  }

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

.digital-product-guide {
  background: linear-gradient(145deg, #fffdf8, #fff4e9);
  border: 1px solid #eadfd3;
  border-radius: 26px;
  color: var(--gallery-ink);
  margin: 22px 0 46px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 54px);
  position: relative;
}

.digital-product-guide::after {
  background: radial-gradient(circle, rgba(236, 47, 145, 0.12), transparent 68%);
  content: "";
  height: 320px;
  pointer-events: none;
  position: absolute;
  right: -130px;
  top: -150px;
  width: 320px;
}

.digital-product-guide-head {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.digital-product-guide-head h2 {
  color: var(--gallery-ink);
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 9px 0 14px;
}

.digital-product-guide-head > p:last-child {
  color: #655d63;
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0;
}

.digital-product-guide-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

.digital-product-guide-grid article {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #eadfd3;
  border-radius: 18px;
  min-height: 100%;
  padding: 20px;
}

.digital-product-guide-grid article > span {
  align-items: center;
  background: var(--loteria-magenta);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 950;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.digital-product-guide-grid h3 {
  color: var(--gallery-ink);
  font-size: 1.03rem;
  line-height: 1.25;
  margin: 16px 0 9px;
}

.digital-product-guide-grid p {
  color: #655d63;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.digital-product-guide-tip {
  background: #fff7d6;
  border: 1px solid #f0d77a;
  border-radius: 14px;
  color: #433607;
  line-height: 1.55;
  margin-top: 16px;
  padding: 15px 18px;
  position: relative;
  z-index: 1;
}

.digital-product-guide.compact {
  background: #fffaf3;
  border-radius: 16px;
  margin: 16px 0 12px;
  padding: 18px;
}

.digital-product-guide.compact .digital-product-guide-head h2 {
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.digital-product-guide.compact .digital-product-guide-head > p:last-child {
  font-size: 0.84rem;
}

.digital-product-guide.compact .digital-product-guide-grid {
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.digital-product-guide.compact .digital-product-guide-grid article {
  border-radius: 12px;
  padding: 13px;
}

.digital-product-guide.compact .digital-product-guide-grid article > span {
  height: 24px;
  width: 24px;
}

.digital-product-guide.compact .digital-product-guide-grid h3 {
  font-size: 0.88rem;
  margin: 10px 0 5px;
}

.digital-product-guide.compact .digital-product-guide-grid p {
  font-size: 0.78rem;
  line-height: 1.45;
}

@media (max-width: 950px) {
  .digital-product-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .digital-product-guide {
    border-radius: 20px;
    padding: 26px 18px;
  }

  .digital-product-guide-grid {
    grid-template-columns: 1fr;
  }
}

/* Direct digital product store */
.digital-product-offer {
  background: linear-gradient(145deg, #fffdf9 0%, #fff7ef 58%, #faf7ff 100%);
  border: 1px solid #eadfd6;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(74, 44, 30, 0.12);
  color: var(--gallery-ink);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  margin: 32px 0 42px;
  overflow: hidden;
  padding: 28px;
}

.storefront-product-page.theme-bebe .digital-product-offer {
  background: linear-gradient(145deg, #fffefc 0%, #fff3f8 48%, #eefaff 100%);
  border-color: #ecdce7;
  box-shadow: 0 28px 70px rgba(111, 82, 121, 0.12);
}

.storefront-product-page.theme-bebe .digital-product-stage {
  background: #f6eefa;
}

.storefront-product-page.theme-bebe .digital-product-thumbs button.active {
  border-color: #28b7df;
  box-shadow: 0 0 0 2px rgba(40, 183, 223, 0.18);
}

.storefront-product-page.theme-amor .digital-product-offer {
  background: linear-gradient(145deg, #fffdfd 0%, #fff0f6 55%, #f7f2ff 100%);
  border-color: #f0cedd;
}

.storefront-product-page.theme-grateful .digital-product-offer {
  background: linear-gradient(145deg, #fffdf7 0%, #fff4df 54%, #eff5e9 100%);
  border-color: #ead8b6;
}

.storefront-product-page.theme-bridal .digital-product-offer {
  background: linear-gradient(145deg, #fff 0%, #fff5f2 50%, #eef7f3 100%);
  border-color: #dfe8e1;
}

.storefront-product-page.theme-christmas .digital-product-offer {
  background: linear-gradient(145deg, #fffdf6 0%, #fff3e1 48%, #edf7ef 100%);
  border-color: #e6d8c1;
}

.digital-product-gallery,
.digital-product-buybox {
  min-width: 0;
}

.digital-product-stage {
  aspect-ratio: 4 / 3;
  background: #0d0a12;
  border-radius: 17px;
  overflow: hidden;
  position: relative;
}

.digital-product-stage img,
.digital-product-stage video {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.digital-product-stage > span {
  backdrop-filter: blur(7px);
  background: rgba(17, 12, 22, 0.7);
  border-radius: 999px;
  bottom: 13px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 800;
  left: 13px;
  padding: 7px 11px;
  position: absolute;
}

.digital-product-thumbs {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 12px;
}

.digital-product-thumbs button {
  aspect-ratio: 1;
  background: #0d0a12;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}

.digital-product-thumbs button.active {
  border-color: #f6c62f;
  box-shadow: 0 0 0 2px rgba(246, 198, 47, 0.18);
}

.digital-product-thumbs img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.digital-product-buybox .lm-kicker {
  color: #b51f70;
}

.digital-product-buybox h2 {
  color: var(--gallery-ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  margin: 9px 0 12px;
}

.digital-product-buybox > p {
  color: #5f5961;
}

.digital-product-rating {
  color: #5f5961;
  font-size: 0.86rem;
  margin-bottom: 18px;
}

.digital-product-rating span,
.digital-product-review-strip blockquote > span {
  color: #f6c62f;
  letter-spacing: 2px;
}

.digital-product-price {
  color: var(--gallery-ink);
  font-size: 2rem;
  font-weight: 900;
  margin: 20px 0 12px;
}

.digital-product-includes {
  color: #403a42;
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.digital-product-includes li::before {
  color: #54d496;
  content: "✓";
  font-weight: 900;
  margin-right: 9px;
}

.digital-checkout-email {
  display: grid;
  gap: 7px;
  margin: 18px 0 12px;
}

.digital-checkout-emails {
  display: grid;
  gap: 9px;
  margin: 18px 0 12px;
}

.digital-checkout-emails .digital-checkout-email {
  margin: 0;
}

.digital-email-help {
  color: #6c6470 !important;
  font-size: 0.74rem !important;
  line-height: 1.45;
  margin: 0 !important;
}

.digital-email-help.error {
  color: #b51645 !important;
}

.digital-checkout-email span,
.digital-delivery-email {
  color: #514a54;
  font-size: 0.8rem;
  font-weight: 800;
}

.digital-admin-test-box {
  background: #f3efff;
  border: 1px solid #d8cef3;
  border-radius: 11px;
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
}

.digital-admin-test-box .secondary-button {
  justify-content: center;
  width: 100%;
}

.digital-admin-test-box small {
  color: #5e5375;
  font-size: 0.72rem;
  line-height: 1.45;
}

.download-test-badge {
  background: #eee8ff;
  border: 1px solid #cfc1f4;
  border-radius: 999px;
  color: #523b9b;
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  padding: 5px 9px;
  text-transform: uppercase;
}

.digital-delivery-email {
  line-height: 1.45;
  margin: 10px 0 0;
}

.digital-checkout-email input {
  background: #fff;
  border: 2px solid transparent;
  border-radius: 10px;
  color: #17111f;
  font: inherit;
  padding: 13px 14px;
  width: 100%;
}

.digital-checkout-email input:focus {
  border-color: #ec2b83;
  outline: none;
}

.digital-buy-button {
  background: #ec2b83;
  border-color: #ec2b83;
  justify-content: center;
  margin-top: 10px;
  width: 100%;
}

.digital-buy-button:disabled {
  background: #d5ced8;
  border-color: #d5ced8;
  color: #6f6872;
}

.digital-physical-buy-button {
  background: #fff;
  border-color: #cfc4c9;
  color: var(--gallery-ink);
  justify-content: center;
  margin-top: 10px;
  text-decoration: none;
  width: 100%;
}

.digital-physical-buy-button:hover {
  background: #fff7e8;
  border-color: #e6b51d;
  color: var(--gallery-ink);
}

.digital-launch-note,
.digital-secure-note {
  color: #716a73 !important;
  font-size: 0.76rem;
  line-height: 1.5;
  margin-top: 10px;
}

.digital-product-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.digital-product-secondary-actions a {
  color: #7c2459;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration-color: #f6c62f;
  text-underline-offset: 4px;
}

.digital-product-message {
  background: #fff8dc;
  border: 1px solid #f0d77a;
  border-radius: 9px;
  color: #4c3d08 !important;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 12px 14px;
}

.digital-product-review-strip {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.digital-product-review-strip blockquote {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e8dfe5;
  border-radius: 14px;
  margin: 0;
  padding: 18px;
}

.digital-product-review-strip p {
  color: #312b32;
  font-size: 0.93rem;
  font-weight: 700;
  margin: 8px 0 10px;
}

.digital-product-review-strip cite {
  color: #766e78;
  font-size: 0.7rem;
  font-style: normal;
}

.storefront-product-page,
.shop-catalog-page {
  margin: 0 auto;
  max-width: 1240px;
  padding: clamp(34px, 6vw, 76px) 24px 24px;
}

.storefront-product-header {
  align-items: end;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 auto 12px;
  max-width: 1040px;
}

.storefront-product-header h1 {
  color: var(--gallery-ink);
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  letter-spacing: -0.055em;
  line-height: 0.92;
  margin: 8px 0 18px;
  max-width: 900px;
  text-wrap: balance;
}

.storefront-product-header > div > p:last-child {
  color: #625a61;
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 820px;
}

.storefront-more-products,
.shop-catalog-footer {
  align-items: center;
  background: linear-gradient(135deg, #f1fbff, #fff8df);
  border: 1px solid #d9e8e8;
  border-radius: 24px;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin: 0 0 26px;
  padding: clamp(24px, 4vw, 42px);
}

.storefront-more-products h2,
.shop-catalog-footer h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 7px 0 8px;
}

.storefront-more-products p:last-child,
.shop-catalog-footer p:last-child {
  color: #625a61;
  margin: 0;
}

.shop-catalog-page {
  padding-top: clamp(30px, 6vw, 70px);
}

.shop-catalog-hero {
  align-items: end;
  background:
    radial-gradient(circle at 90% 8%, rgba(41, 189, 242, 0.22), transparent 27rem),
    radial-gradient(circle at 6% 95%, rgba(236, 47, 145, 0.16), transparent 26rem),
    #fffaf2;
  border: 1px solid #eadfd2;
  border-radius: 32px;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  padding: clamp(32px, 6vw, 72px);
}

.shop-catalog-hero h1 {
  font-size: clamp(3rem, 7.5vw, 7.2rem);
  letter-spacing: -0.065em;
  line-height: 0.87;
  margin: 10px 0 24px;
  max-width: 960px;
  text-wrap: balance;
}

.shop-catalog-hero > div > p:last-child {
  color: #665b55;
  font-size: clamp(1.02rem, 2vw, 1.26rem);
  line-height: 1.65;
  max-width: 720px;
}

.shop-catalog-proof {
  background: #fff;
  border: 1px solid #e7dad0;
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(74, 44, 30, 0.08);
  display: grid;
  min-width: 170px;
  padding: 22px;
}

.shop-catalog-proof > span {
  color: #e8aa00;
  letter-spacing: 2px;
}

.shop-catalog-proof strong {
  font-size: 2.3rem;
  margin-top: 6px;
}

.shop-catalog-proof small {
  color: #72665f;
  line-height: 1.45;
}

.shop-catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 28px 0 20px;
}

.shop-catalog-filters button {
  background: #fff;
  border: 1px solid #ded5d0;
  border-radius: 999px;
  color: #4e4541;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 10px 17px;
}

.shop-catalog-filters button.active {
  background: var(--gallery-ink);
  border-color: var(--gallery-ink);
  color: #fff;
}

.shop-catalog-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 26px;
}

.shop-product-card {
  --product-accent: var(--loteria-blue);
  background: #fff;
  border: 1px solid #e5dcda;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(52, 35, 28, 0.08);
  display: grid;
  grid-template-columns: minmax(180px, 0.82fr) minmax(0, 1.18fr);
  overflow: hidden;
}

.shop-product-card.theme-spooky { --product-accent: #8d52c7; }
.shop-product-card.theme-bebe { --product-accent: #29bdf2; }
.shop-product-card.theme-amor { --product-accent: #ec2f91; }
.shop-product-card.theme-grateful { --product-accent: #e98e2e; }
.shop-product-card.theme-bridal { --product-accent: #8aa89a; }
.shop-product-card.theme-christmas { --product-accent: #c83b3e; }
.shop-product-card.theme-maker { --product-accent: #20a55a; }

.shop-product-card.theme-maker {
  grid-column: 1 / -1;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
}

.shop-product-card.theme-maker .shop-product-image img {
  object-position: center;
}

.shop-product-image {
  background: #f1edf2;
  min-height: 300px;
  overflow: hidden;
  position: relative;
}

.shop-product-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
  width: 100%;
}

.shop-product-card:hover .shop-product-image img {
  transform: scale(1.025);
}

.shop-product-image > span {
  background: var(--product-accent);
  border-radius: 999px;
  bottom: 14px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  left: 14px;
  padding: 7px 10px;
  position: absolute;
}

.shop-product-copy {
  align-content: center;
  display: grid;
  padding: clamp(22px, 3vw, 34px);
}

.shop-product-title-row {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.shop-product-title-row h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  line-height: 1.05;
  margin: 0;
}

.shop-product-title-row h2 a {
  color: var(--gallery-ink);
  text-decoration: none;
}

.shop-product-title-row > strong {
  color: var(--product-accent);
  font-size: 1.15rem;
  white-space: nowrap;
}

.shop-product-copy > p {
  color: #655d61;
  line-height: 1.6;
  margin: 14px 0 20px;
}

.shop-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-product-actions .primary-button {
  background: var(--product-accent);
}

.shop-catalog-footer {
  margin-top: 24px;
}

.download-guide-details {
  border-top: 1px solid #eee6e9;
  margin-top: 22px;
  padding-top: 16px;
}

.download-guide-details > summary {
  color: #493e49;
  cursor: pointer;
  font-weight: 900;
}

.download-guide-details > a {
  color: #8f2365;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 850;
  margin-top: 4px;
  text-underline-offset: 3px;
}

.downloads-shell {
  max-width: 1080px;
}

.downloads-hero {
  max-width: 760px;
  padding: 32px 0 24px;
}

.downloads-hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  margin: 8px 0 12px;
}

.downloads-hero > p:last-child {
  color: #5c5361;
  font-size: 1.08rem;
  line-height: 1.7;
}

.downloads-library {
  display: grid;
  gap: 18px;
  padding-bottom: 60px;
}

.download-purchase-card {
  align-items: stretch;
  background: #fff;
  border: 1px solid #e4dfe7;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(38, 29, 65, 0.09);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
}

.download-purchase-card > img {
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  width: 100%;
}

.download-purchase-main {
  padding: 26px;
}

.download-purchase-main h2 {
  margin: 5px 0 8px;
}

.download-purchase-main > p:not(.lm-kicker) {
  color: #5c5361;
}

.download-purchase-main small {
  color: #766d7a;
  display: block;
  margin-top: 12px;
}

.download-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.download-file-list button {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.downloads-empty,
.downloads-account-nudge {
  background: #fff;
  border: 1px solid #e4dfe7;
  border-radius: 18px;
  padding: 28px;
}

.downloads-empty p,
.downloads-account-nudge p {
  color: #5c5361;
}

.downloads-library.compact {
  padding-bottom: 16px;
}

.downloads-library.compact .download-purchase-card {
  grid-template-columns: 150px minmax(0, 1fr);
}

.digital-product-manager {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.digital-product-manager .section-minihead {
  align-items: start;
  display: flex;
  justify-content: space-between;
}

.voice-branding-manager {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(240px, .8fr) minmax(360px, 1.2fr);
}

.voice-branding-controls {
  display: grid;
  gap: 14px;
  width: 100%;
}

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

.voice-branding-options label {
  align-items: center;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(37,23,17,.12);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.voice-branding-options label.selected {
  border-color: #7554c9;
  box-shadow: 0 0 0 2px rgba(117,84,201,.13);
}

.voice-branding-options label span {
  display: grid;
  gap: 2px;
}

.voice-branding-options label small {
  color: #706878;
}

.voice-branding-preview {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.voice-branding-preview span {
  align-items: center;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(37,23,17,.1);
  border-radius: 13px;
  display: flex;
  gap: 8px;
  min-width: 0;
  padding: 9px;
}

.voice-branding-preview i {
  align-items: center;
  background: linear-gradient(135deg, #7554c9, #f24f9b);
  border-radius: 50%;
  color: white;
  display: flex;
  flex: 0 0 34px;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  height: 34px;
  justify-content: center;
}

.voice-branding-preview b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-branding-live-status {
  align-self: center;
  color: #706878;
  font-size: .75rem;
  font-style: normal;
}

.voice-studio { display: grid; gap: 18px; margin-bottom: 22px; }
.voice-studio-hero {
  background: radial-gradient(circle at 95% 0%, rgba(250,194,64,.28), transparent 28%), linear-gradient(135deg, #24133f, #523081 58%, #8d3974);
  border-radius: 26px; box-shadow: 0 20px 46px rgba(36,19,63,.2); color: white; display: grid; gap: 18px;
  grid-template-columns: minmax(0,1fr) auto; overflow: hidden; padding: clamp(22px,3vw,36px); position: relative;
}
.voice-studio-hero h3 { color: white; font-size: clamp(1.65rem,3vw,2.55rem); line-height: 1.05; margin: 5px 0 10px; max-width: 680px; }
.voice-studio-hero p { color: rgba(255,255,255,.78); margin: 0; max-width: 720px; }
.voice-studio-hero .eyebrow { color: #ffdc72; }
.voice-studio-hero > .primary-button { align-self: start; background: #ffce4b; color: #28183f; }
.voice-studio-stats { display: flex; flex-wrap: wrap; gap: 9px; grid-column: 1 / -1; }
.voice-studio-stats span { align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 13px; display: flex; gap: 7px; padding: 9px 12px; font-size: .78rem; font-weight: 800; }
.voice-studio-stats span b { color: #ffdc72; font-size: 1rem; }.voice-studio-stats span.ready b { color: #6ef0b7; }
.voice-studio-layout { align-items: start; display: grid; gap: 18px; grid-template-columns: minmax(250px,.34fr) minmax(0,1fr); }
.voice-library-panel,.voice-editor-panel { background: rgba(255,255,255,.98); border: 1px solid rgba(35,24,47,.1); border-radius: 24px; box-shadow: 0 14px 34px rgba(24,15,39,.07); }
.voice-library-panel { display: grid; gap: 14px; max-height: 820px; overflow-y: auto; padding: 16px; position: sticky; top: 190px; }
.voice-panel-title { align-items: center; display: flex; justify-content: space-between; }.voice-panel-title h4 { margin: 2px 0 0; }.voice-panel-title p { margin: 0; }
.voice-panel-title button { background: #f1ecf7; border: 0; border-radius: 50%; cursor: pointer; height: 34px; width: 34px; }
.voice-library-group { display: grid; gap: 7px; }.voice-library-group > small { color: #8b8191; font-size: .68rem; font-weight: 1000; letter-spacing: .1em; padding: 3px 5px; text-transform: uppercase; }
.voice-library-group > button { align-items: center; background: transparent; border: 1px solid transparent; border-radius: 15px; cursor: pointer; display: grid; gap: 10px; grid-template-columns: 40px minmax(0,1fr) auto; padding: 9px; text-align: left; }
.voice-library-group > button:hover,.voice-library-group > button.active { background: #f6f1fb; border-color: rgba(117,84,201,.2); }.voice-library-group > button.active { box-shadow: inset 3px 0 #7554c9; }
.voice-library-art { align-items: center; background: linear-gradient(135deg,#7554c9,#f24f9b); background-position: center; background-size: cover; border-radius: 11px; color: white; display: flex; font-weight: 950; height: 40px; justify-content: center; width: 40px; }
.voice-library-group button > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }.voice-library-group strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.voice-library-group em { color: #817887; font-size: .69rem; font-style: normal; }
.voice-status-dot { background: #aaa; border-radius: 50%; height: 8px; width: 8px; }.voice-status-dot.live { background: #16a66a; box-shadow: 0 0 0 4px rgba(22,166,106,.12); }.voice-status-dot.testing { background: #e89e19; }.voice-status-dot.draft { background: #8f7ba7; }
.voice-editor-panel { min-height: 500px; overflow: hidden; }.voice-editor-header { align-items: center; background: linear-gradient(135deg,#fbf9fd,#f6f0fa); border-bottom: 1px solid rgba(35,24,47,.08); display: flex; justify-content: space-between; padding: 24px; }.voice-editor-header h3 { font-size: 1.7rem; margin: 7px 0 3px; }.voice-editor-header p { color: #817887; margin: 0; }
.voice-status-pill { background: #eee7f5; border-radius: 999px; color: #674d84; display: inline-flex; font-size: .68rem; font-weight: 1000; letter-spacing: .08em; padding: 6px 9px; text-transform: uppercase; }.voice-status-pill.live { background: #dff7ed; color: #087549; }.voice-status-pill.testing { background: #fff0cd; color: #916000; }
.voice-completion-ring { align-items: center; background: conic-gradient(#7554c9 var(--progress),#e8e1ed 0); border-radius: 50%; display: flex; height: 68px; justify-content: center; position: relative; width: 68px; }.voice-completion-ring::after { background: white; border-radius: 50%; content: ""; inset: 6px; position: absolute; }.voice-completion-ring b { color: #3a2948; font-size: .78rem; position: relative; z-index: 1; }
.voice-editor-section { border-bottom: 1px solid rgba(35,24,47,.08); display: grid; gap: 18px; padding: 24px; }.voice-step { align-items: center; display: flex; gap: 11px; }.voice-step > span { align-items: center; background: #332049; border-radius: 50%; color: white; display: flex; flex: 0 0 32px; font-weight: 950; height: 32px; justify-content: center; }.voice-step > div { display: grid; gap: 2px; }.voice-step small { color: #817887; }
.voice-form-grid { display: grid; gap: 13px; grid-template-columns: repeat(2,minmax(0,1fr)); }.voice-form-grid label,.voice-access-row label { display: grid; gap: 6px; }.voice-form-grid label > span,.voice-access-row label > span { color: #6e6374; font-size: .72rem; font-weight: 900; }.voice-form-grid label.wide { grid-column: 1 / -1; }.voice-form-grid input,.voice-form-grid select,.voice-access-row input,.voice-access-row select { background: #fbfafc; border: 1px solid #ded7e2; border-radius: 12px; min-height: 42px; padding: 9px 11px; width: 100%; }.voice-form-grid label > small { color: #817887; font-size: .7rem; }
.voice-access-row { align-items: end; display: grid; gap: 13px; grid-template-columns: 1fr 1.15fr .6fr; }.corcholata-choice { display: grid; gap: 8px; grid-template-columns: repeat(2,1fr); }.corcholata-choice button { background: #f8f4fa; border: 1px solid #ded7e2; border-radius: 12px; cursor: pointer; font-weight: 1000; min-height: 42px; }.corcholata-choice button.active { background: #fff1bc; border-color: #e5ae27; color: #674400; }.corcholata-choice small { font-size: .65rem; }
.voice-access-row.simple { grid-template-columns: minmax(220px,.8fr) minmax(280px,1.2fr); }
.voice-ios-preview { align-items: center; background: linear-gradient(135deg,#21162f,#352146); border: 1px solid rgba(255,255,255,.11); border-radius: 20px; color: white; display: grid; gap: 22px; grid-template-columns: minmax(0,1fr) 174px; overflow: hidden; padding: 18px 22px; }
.voice-ios-preview-copy { display: grid; gap: 5px; }.voice-ios-preview-copy > span { color: #ffd56a; font-size: .68rem; font-weight: 1000; letter-spacing: .09em; text-transform: uppercase; }.voice-ios-preview-copy > strong { font-size: 1rem; }.voice-ios-preview-copy > small { color: rgba(255,255,255,.66); line-height: 1.45; max-width: 480px; }
.voice-ios-picker-tile { align-items: center; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; display: flex; flex-direction: column; height: 152px; justify-content: center; padding: 10px; position: relative; text-align: center; }.voice-ios-picker-tile > strong { font-size: .78rem; margin-top: 8px; max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.voice-ios-picker-tile > small { color: rgba(255,255,255,.48); font-size: .58rem; font-weight: 700; margin-top: 3px; }
.voice-ios-avatar-stage { height: 76px; position: relative; width: 76px; }.voice-ios-avatar { align-items: center; background: linear-gradient(135deg,#7656ce,#e94e9e); background-position: center; background-size: cover; border-radius: 50%; color: white; display: flex; font-size: 2rem; font-weight: 950; height: 76px; justify-content: center; overflow: hidden; width: 76px; }.voice-ios-avatar.has-image { background-color: #30223b; }
.voice-ios-premium { background: linear-gradient(135deg,#7355cc,#ec4d9d); border-radius: 999px; color: white; font-size: .54rem; font-weight: 900; left: 50%; padding: 4px 7px; position: absolute; top: -12px; transform: translateX(-50%); white-space: nowrap; }.voice-ios-speaker { align-items: center; background: rgba(0,0,0,.48); border-radius: 50%; bottom: -5px; color: white; display: flex; font-size: .7rem; font-weight: 1000; height: 24px; justify-content: center; left: -5px; position: absolute; width: 24px; }.voice-ios-cost { align-items: center; backdrop-filter: blur(12px); background: rgba(255,255,255,.78); border-radius: 999px; bottom: -5px; color: #30213c; display: flex; font-size: .62rem; font-weight: 1000; gap: 4px; padding: 5px 7px; position: absolute; right: -10px; }.voice-ios-cost i { color: #dda514; font-size: .72rem; font-style: normal; }
.voice-advanced-settings { background: #faf8fb; border: 1px solid #e4dce8; border-radius: 14px; padding: 12px 14px; }.voice-advanced-settings summary { color: #685a70; cursor: pointer; font-size: .78rem; font-weight: 900; }.voice-advanced-settings label { display: grid; gap: 6px; margin-top: 13px; max-width: 360px; }.voice-advanced-settings label span { color: #6e6374; font-size: .72rem; font-weight: 900; }.voice-advanced-settings input { background: white; border: 1px solid #ded7e2; border-radius: 12px; min-height: 42px; padding: 9px 11px; }.voice-advanced-settings p { color: #817887; font-size: .72rem; margin: 9px 0 0; }
.voice-upload-grid { display: grid; gap: 12px; grid-template-columns: repeat(2,minmax(0,1fr)); }.voice-upload-zone { align-items: center; background: #fbf9fc; border: 1.5px dashed #cbbfd2; border-radius: 17px; cursor: pointer; display: flex; flex-direction: column; gap: 5px; justify-content: center; min-height: 135px; padding: 16px; }.voice-upload-zone:hover { background: #f7f0fb; border-color: #8c62b0; }.voice-upload-zone.complete { background: #eefaf5; border-color: #62bd91; }.voice-upload-zone > span { align-items: center; background: #e9dff1; border-radius: 50%; color: #6f4a91; display: flex; font-size: 1.25rem; height: 38px; justify-content: center; width: 38px; }.voice-upload-zone.complete > span { background: #cceedd; color: #087549; }.voice-upload-zone small { color: #817887; }
.voice-match-report { align-items: center; border: 1px solid; border-radius: 15px; display: flex; gap: 14px; justify-content: space-between; padding: 14px; }.voice-match-report.ready { background: #effaf5; border-color: #a9ddc4; }.voice-match-report.warning { align-items: start; background: #fff8e8; border-color: #edd59a; flex-direction: column; }.voice-match-report > div { display: grid; gap: 3px; }.voice-match-report span { color: #6e6374; font-size: .78rem; }.voice-match-report details { width: 100%; }.voice-match-report summary { color: #805c07; cursor: pointer; font-weight: 900; }.voice-match-report details p { color: #74654a; font-size: .75rem; line-height: 1.7; }
.voice-upload-progress { display: grid; gap: 7px; grid-template-columns: minmax(0,1fr) auto; }.voice-upload-progress > div { background: #e9e1ed; border-radius: 99px; height: 9px; overflow: hidden; }.voice-upload-progress > div span { background: linear-gradient(90deg,#7554c9,#e85199); display: block; height: 100%; transition: width .2s ease; }.voice-upload-progress small { color: #817887; grid-column: 1/-1; }
.voice-publish-flow { align-items: center; display: grid; gap: 8px; grid-template-columns: 1fr auto 1fr auto 1fr; }.voice-publish-flow > button { align-items: center; background: #faf8fb; border: 1px solid #ded7e2; border-radius: 15px; cursor: pointer; display: flex; gap: 9px; min-height: 64px; padding: 11px; text-align: left; }.voice-publish-flow > button.current { background: #eee5f7; border-color: #825aa3; box-shadow: 0 0 0 2px rgba(117,84,201,.1); }.voice-publish-flow button > b { align-items: center; background: #e7dfec; border-radius: 50%; display: flex; flex: 0 0 28px; height: 28px; justify-content: center; }.voice-publish-flow button > span { display: grid; gap: 2px; }.voice-publish-flow small { color: #817887; }.voice-publish-flow > i { color: #b7aabb; font-style: normal; }.voice-retire-button { background: none; border: 0; color: #a23d55; cursor: pointer; font-weight: 850; justify-self: start; padding: 7px 0; text-decoration: underline; }
.voice-studio-message { background: #f3eff6; border-radius: 12px; color: #564360; font-weight: 750; margin: 0 24px 24px; padding: 12px 14px; }.voice-studio-empty { align-items: center; display: flex; flex-direction: column; justify-content: center; min-height: 520px; padding: 40px; text-align: center; }.voice-studio-empty > span { font-size: 3rem; }.voice-studio-empty h3 { margin-bottom: 0; }.voice-studio-empty p { color: #817887; }
.voice-live-metadata-lock { background: #fff5d8; border: 1px solid #edcc73; border-radius: 12px; color: #6d5214; font-size: .78rem; font-weight: 750; line-height: 1.45; margin: 0; padding: 11px 13px; }
.voice-editor-section.metadata-locked .voice-form-grid,.voice-editor-section.metadata-locked .voice-access-row,.voice-editor-section.metadata-locked .voice-advanced-settings { opacity: .62; pointer-events: none; }
.voice-revision-callout { align-items: center; background: linear-gradient(135deg,#f8f1ff,#fff9e9); border-bottom: 1px solid #e6d8ed; display: flex; gap: 18px; justify-content: space-between; padding: 18px 24px; }.voice-revision-callout > div { align-items: center; display: flex; gap: 12px; }.voice-revision-callout > div > span { align-items: center; background: #7851a0; border-radius: 50%; color: white; display: flex; flex: 0 0 38px; font-size: 1.3rem; height: 38px; justify-content: center; }.voice-revision-callout p { color: #76677d; font-size: .78rem; margin: 3px 0 0; }
.voice-revision-banner { align-items: center; background: #291842; color: white; display: flex; gap: 14px; justify-content: space-between; padding: 13px 24px; }.voice-revision-banner > div { align-items: center; display: flex; gap: 10px; }.voice-revision-banner > div > span { background: #ffce4b; border-radius: 9px; color: #291842; font-size: .72rem; font-weight: 1000; padding: 7px 9px; }.voice-revision-banner > div > div { display: grid; gap: 2px; }.voice-revision-banner small { color: rgba(255,255,255,.7); }.voice-revision-banner > b { color: #77e8ba; font-size: .75rem; }.voice-editor-section.publish.revision { background: linear-gradient(180deg,#fbf8ff,#fff); }
.voice-recording-manager { border: 1px solid #e2dae6; border-radius: 18px; display: grid; gap: 14px; overflow: hidden; }.voice-recording-manager > header { align-items: end; background: #f7f3f9; display: flex; gap: 16px; justify-content: space-between; padding: 16px; }.voice-recording-manager header h4,.voice-recording-manager header p { margin: 0; }.voice-recording-manager header span { color: #7c7082; font-size: .75rem; }.voice-recording-filters { display: flex; gap: 6px; }.voice-recording-filters button { background: white; border: 1px solid #ddd3e2; border-radius: 999px; cursor: pointer; font-size: .7rem; font-weight: 900; padding: 7px 10px; }.voice-recording-filters button.active { background: #38204e; border-color: #38204e; color: white; }
.voice-card-recording-grid { display: grid; gap: 9px; max-height: 680px; overflow-y: auto; padding: 0 12px 14px; }.voice-card-recording-grid article { align-items: center; background: white; border: 1px solid #e7e0ea; border-radius: 14px; display: grid; gap: 11px; grid-template-columns: 62px minmax(140px,.75fr) minmax(180px,1fr) auto; padding: 9px; }.voice-card-recording-grid article.missing { background: #fffaf1; border-color: #ecd9a9; }.voice-card-recording-grid article > img { background: #eee7f1; border-radius: 9px; height: 72px; object-fit: cover; width: 58px; }.voice-card-recording-info { display: grid; gap: 2px; }.voice-card-recording-info > span { color: #9b85aa; font-size: .65rem; font-weight: 1000; }.voice-card-recording-info > small { color: #817887; }.voice-card-recording-grid audio { height: 34px; max-width: 100%; width: 100%; }.voice-audio-missing { align-items: center; background: #f0e9f4; border-radius: 9px; color: #9b85aa; display: flex; height: 34px; justify-content: center; }.voice-card-recording-actions { display: flex; flex-direction: column; gap: 5px; }.voice-card-recording-actions label,.voice-card-recording-actions button { background: #eee6f4; border: 0; border-radius: 8px; color: #62467a; cursor: pointer; font-size: .66rem; font-weight: 900; padding: 7px 9px; text-align: center; }.voice-card-recording-actions label input { display: none; }.voice-card-recording-actions button { background: transparent; color: #a43e54; }

@media (max-width: 980px) { .voice-studio-layout { grid-template-columns: 1fr; }.voice-library-panel { max-height: 330px; position: static; }.voice-access-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .voice-studio-hero { grid-template-columns: 1fr; }.voice-studio-hero > .primary-button { justify-self: start; }.voice-form-grid,.voice-upload-grid,.voice-access-row { grid-template-columns: 1fr; }.voice-form-grid label.wide { grid-column: auto; }.voice-ios-preview { grid-template-columns: 1fr; }.voice-ios-picker-tile { justify-self: center; width: 174px; }.voice-publish-flow { grid-template-columns: 1fr; }.voice-publish-flow > i { display: none; }.voice-editor-header { align-items: start; }.voice-completion-ring { height: 58px; width: 58px; }.voice-revision-callout,.voice-revision-banner,.voice-recording-manager > header { align-items: flex-start; flex-direction: column; }.voice-card-recording-grid article { grid-template-columns: 54px minmax(0,1fr) auto; }.voice-card-recording-grid audio,.voice-audio-missing { grid-column: 1 / -1; }.voice-card-recording-actions { grid-column: 3; grid-row: 1; } }

@media (max-width: 780px) {
  .voice-branding-manager { grid-template-columns: 1fr; }
  .voice-branding-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

.digital-admin-file {
  background: #f7f4f9;
  border: 1px dashed #cfc5d5;
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  gap: 5px;
  min-height: 150px;
  padding: 16px;
  position: relative;
}

.digital-admin-file.ready {
  background: #effaf4;
  border-color: #80c9a0;
}

.digital-admin-file span,
.digital-admin-file b {
  color: #7554c9;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.digital-admin-file strong {
  overflow-wrap: anywhere;
}

.digital-admin-file small {
  color: #706878;
}

.digital-admin-file b {
  align-self: end;
  color: #34285b;
  margin-top: auto;
}

.digital-admin-file input {
  inset: 0;
  opacity: 0;
  position: absolute;
}

.digital-admin-stats {
  display: flex;
  gap: 12px;
}

.digital-admin-stats span {
  background: #f7f4f9;
  border-radius: 10px;
  color: #655d73;
  display: grid;
  gap: 2px;
  min-width: 130px;
  padding: 12px;
}

.digital-admin-stats b {
  color: #261d41;
  font-size: 1.35rem;
}

@media (max-width: 840px) {
  .digital-product-offer,
  .download-purchase-card,
  .downloads-library.compact .download-purchase-card {
    grid-template-columns: 1fr;
  }

  .storefront-product-header,
  .shop-catalog-hero,
  .shop-catalog-grid,
  .shop-product-card,
  .shop-product-card.theme-maker {
    grid-template-columns: 1fr;
  }

  .shop-product-card.theme-maker {
    grid-column: auto;
  }

  .shop-catalog-proof {
    max-width: 240px;
  }

  .shop-product-image {
    min-height: 0;
  }

  .shop-product-image img {
    aspect-ratio: 16 / 10;
  }

  .digital-product-review-strip {
    grid-template-columns: 1fr;
  }

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

  .download-purchase-card > img {
    max-height: 300px;
  }
}

@media (max-width: 520px) {
  .digital-product-offer {
    border-radius: 18px;
    margin-left: -12px;
    margin-right: -12px;
    padding: 16px;
  }

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

  .download-purchase-main {
    padding: 20px;
  }

  .storefront-product-page,
  .shop-catalog-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .shop-catalog-hero {
    border-radius: 22px;
    padding: 28px 20px;
  }

  .storefront-more-products,
  .shop-catalog-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .digital-product-guide.compact .digital-product-guide-grid {
    grid-template-columns: 1fr;
  }
}

/* Finalize and download: one current final set, guided file workflow */
.builder-page .download-studio-panel .builder-studio-layout {
  grid-template-columns: minmax(0, 1fr);
}

.builder-page .download-studio-panel .studio-settings:empty,
.builder-page .download-studio-panel .studio-guidance:empty {
  display: none;
}

.builder-page .download-studio-panel .studio-main {
  margin: 0 auto;
  max-width: 1240px;
  overflow: visible;
  padding: 28px;
  width: 100%;
}

.download-redesign {
  display: grid;
  gap: 24px;
}

.download-flow {
  align-items: center;
  background: #f3f6f8;
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 6px;
}

.download-flow span {
  align-items: center;
  color: var(--gallery-muted);
  display: flex;
  font-size: 0.82rem;
  font-weight: 900;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 6px 10px;
}

.download-flow b {
  align-items: center;
  background: #dfe5e9;
  border-radius: 50%;
  color: var(--gallery-muted);
  display: flex;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.download-flow span.complete {
  color: #117346;
}

.download-flow span.complete b {
  background: var(--loteria-green);
  color: #fff;
}

.download-flow span.active {
  background: #fff;
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 6px;
  color: var(--gallery-ink);
}

.download-flow span.active b {
  background: var(--loteria-magenta);
  color: #fff;
}

.download-set-overview {
  background: #fff;
  border: 1px solid rgba(21, 17, 15, 0.12);
  border-top: 5px solid var(--loteria-blue);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  min-height: 390px;
  overflow: hidden;
}

.download-set-overview.ready {
  border-top-color: var(--loteria-green);
}

.download-set-overview.changed {
  border-top-color: var(--loteria-yellow);
}

.download-set-visual {
  align-items: center;
  background: #eef7fa;
  border-right: 1px solid rgba(21, 17, 15, 0.1);
  display: flex;
  justify-content: center;
  min-height: 390px;
  overflow: hidden;
  padding: 28px 84px 28px 28px;
  position: relative;
}

.download-board-preview {
  filter: drop-shadow(0 18px 22px rgba(15, 23, 42, 0.14));
  max-width: 245px;
  transform: rotate(-1.5deg);
  width: 72%;
}

.download-board-preview .board-preview {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  width: 100%;
}

.download-board-preview canvas {
  border-radius: 5px;
  display: block;
  height: auto;
  width: 100%;
}

.download-card-fan {
  bottom: 28px;
  display: flex;
  position: absolute;
  right: 22px;
}

.download-card-fan .card-preview-canvas {
  filter: drop-shadow(0 10px 12px rgba(15, 23, 42, 0.2));
  margin-left: -38px;
  width: 82px;
}

.download-card-fan .card-preview-canvas:nth-child(1) {
  transform: rotate(-9deg) translateY(9px);
}

.download-card-fan .card-preview-canvas:nth-child(2) {
  transform: rotate(1deg);
}

.download-card-fan .card-preview-canvas:nth-child(3) {
  transform: rotate(10deg) translateY(9px);
}

.download-card-fan canvas {
  height: auto;
  width: 100%;
}

.download-preview-placeholder {
  color: var(--gallery-muted);
  font-weight: 900;
  text-align: center;
}

.download-set-summary {
  align-content: center;
  display: grid;
  gap: 13px;
  padding: clamp(28px, 4vw, 48px);
}

.download-set-summary h3 {
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  line-height: 1;
  margin: 0;
}

.download-set-summary > p,
.download-stage-heading p,
.download-file-copy p,
.download-extras p,
.download-access-notice p,
.download-update-row p {
  color: var(--gallery-muted);
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

.download-set-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.download-set-facts span {
  background: #f4f7f9;
  border: 1px solid rgba(21, 17, 15, 0.08);
  border-radius: 6px;
  color: var(--gallery-muted);
  display: flex;
  font-size: 0.78rem;
  font-weight: 850;
  gap: 5px;
  padding: 8px 10px;
}

.download-set-facts strong {
  color: var(--gallery-ink);
}

.download-set-state {
  border-left: 3px solid var(--loteria-blue);
  padding-left: 11px;
}

.download-set-overview.changed .download-set-state {
  border-left-color: var(--loteria-yellow);
}

.download-set-summary small,
.download-file-copy small {
  color: var(--gallery-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.download-preview-update-button {
  justify-self: start;
}

.download-access-notice {
  align-items: start;
  background: #fffaf0;
  border: 1px solid rgba(21, 17, 15, 0.12);
  border-left: 5px solid var(--loteria-yellow);
  border-radius: 8px;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  padding: 20px 22px;
}

.download-access-notice.blocked {
  border-left-color: var(--loteria-red);
}

.download-access-notice strong,
.download-update-row strong {
  display: block;
  font-size: 1.06rem;
  margin-bottom: 5px;
}

.download-access-actions {
  display: grid;
  gap: 10px;
}

.download-finalize-stage,
.download-files-stage {
  display: grid;
  gap: 18px;
  padding: 4px 0;
}

.download-finalize-stage {
  border-bottom: 1px solid rgba(21, 17, 15, 0.12);
  padding-bottom: 24px;
}

.download-stage-heading {
  align-items: flex-start;
  display: grid;
  gap: 14px;
  grid-template-columns: 42px minmax(0, 1fr);
}

.download-stage-heading > span {
  align-items: center;
  background: var(--gallery-ink);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 1rem;
  font-weight: 950;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.download-files-stage .download-stage-heading > span {
  background: var(--loteria-green);
}

.download-stage-heading h3 {
  font-size: 1.55rem;
  line-height: 1.1;
  margin: 2px 0 6px;
}

.download-stage-heading .eyebrow,
.download-file-copy .eyebrow,
.download-extras .eyebrow {
  margin: 0;
}

.download-print-settings {
  align-items: center;
  background: #f5f7f8;
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-left: 56px;
  padding: 14px 16px;
}

.download-print-settings > label:first-child {
  display: grid;
  gap: 4px;
  min-width: 132px;
}

.download-print-settings label > span {
  color: var(--gallery-muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.download-print-settings select {
  min-height: 40px;
}

.download-print-settings .compact-check {
  align-items: center;
  display: flex;
  gap: 7px;
  min-height: 40px;
}

.download-print-settings .compact-check input {
  accent-color: var(--loteria-magenta);
  height: 18px;
  width: 18px;
}

.download-update-row {
  align-items: center;
  background: #fff8df;
  border-left: 4px solid var(--loteria-yellow);
  border-radius: 6px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-left: 56px;
  padding: 16px 18px;
}

.download-final-ready {
  align-items: center;
  color: #117346;
  display: flex;
  gap: 9px;
  margin-left: 56px;
}

.download-final-ready > span {
  align-items: center;
  background: var(--loteria-green);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-weight: 950;
  height: 25px;
  justify-content: center;
  width: 25px;
}

.download-final-ready small {
  color: var(--gallery-muted);
  font-weight: 850;
}

.download-current-note {
  background: #fff8df;
  border-left: 3px solid var(--loteria-yellow);
  color: #6f5421;
  font-weight: 800;
  margin: 0 0 0 56px;
  padding: 10px 12px;
}

.download-file-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-left: 56px;
}

.download-file-card {
  align-content: start;
  background: #fff;
  border: 1px solid rgba(21, 17, 15, 0.12);
  border-top: 5px solid var(--loteria-blue);
  border-radius: 8px;
  display: grid;
  gap: 15px;
  grid-template-columns: 58px minmax(0, 1fr);
  padding: 22px;
}

.download-file-card.boards-file {
  border-top-color: var(--loteria-green);
}

.download-file-format {
  align-items: center;
  background: #eaf7fd;
  border-radius: 6px;
  color: #087da6;
  display: flex;
  font-size: 0.78rem;
  font-weight: 950;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.boards-file .download-file-format {
  background: #e9f8ef;
  color: #117346;
}

.download-file-copy h4 {
  font-size: 1.35rem;
  line-height: 1.1;
  margin: 3px 0 7px;
}

.download-file-card > .primary-button,
.download-file-card > .download-time-note {
  grid-column: 1 / -1;
}

.download-file-card > .primary-button {
  width: 100%;
}

.download-time-note {
  color: var(--gallery-muted);
  font-size: 0.78rem;
  font-weight: 800;
  margin: -6px 0 0;
  text-align: center;
}

.download-extras {
  align-items: center;
  background: #f5f7f8;
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  padding: 16px 18px;
}

.download-extras strong {
  display: block;
  margin: 2px 0 3px;
}

.download-extras p {
  font-size: 0.82rem;
}

.finalize-confirm-dialog,
.download-progress-dialog {
  background: #fff;
  border: 1px solid rgba(21, 17, 15, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  max-width: 540px;
  padding: 28px;
  position: relative;
  width: min(100%, 540px);
}

.finalize-confirm-dialog h2,
.download-progress-dialog h2 {
  font-size: 1.75rem;
  line-height: 1.1;
  margin: 0;
}

.finalize-confirm-dialog p,
.download-progress-dialog p {
  color: var(--gallery-muted);
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

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

.download-progress-layer {
  background: rgba(21, 17, 15, 0.56);
  z-index: 1100;
}

.download-progress-dialog {
  justify-items: center;
  text-align: center;
}

.download-progress-ring {
  align-items: center;
  background: conic-gradient(var(--loteria-blue) var(--download-progress), #e8eef3 0);
  border-radius: 50%;
  display: flex;
  height: 112px;
  justify-content: center;
  position: relative;
  width: 112px;
}

.download-progress-ring::after {
  background: #fff;
  border-radius: 50%;
  content: "";
  inset: 10px;
  position: absolute;
}

.download-progress-ring span {
  color: var(--gallery-ink);
  font-size: 1.25rem;
  font-weight: 950;
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .builder-page .download-studio-panel .studio-main {
    padding: 12px;
  }

  .download-redesign {
    gap: 18px;
  }

  .download-flow span {
    font-size: 0.72rem;
    gap: 5px;
    padding: 5px 3px;
  }

  .download-flow b {
    height: 21px;
    width: 21px;
  }

  .download-set-overview {
    grid-template-columns: 1fr;
  }

  .download-set-visual {
    border-bottom: 1px solid rgba(21, 17, 15, 0.1);
    border-right: 0;
    min-height: 300px;
    padding: 22px 76px 22px 22px;
  }

  .download-board-preview {
    max-width: 190px;
  }

  .download-card-fan {
    bottom: 21px;
    right: 12px;
  }

  .download-card-fan .card-preview-canvas {
    margin-left: -34px;
    width: 68px;
  }

  .download-set-summary {
    padding: 24px 20px;
  }

  .download-set-summary h3 {
    font-size: 2rem;
  }

  .download-preview-update-button {
    width: 100%;
  }

  .download-access-notice,
  .download-update-row,
  .download-file-grid,
  .finalize-confirm-actions {
    grid-template-columns: 1fr;
  }

  .download-access-notice {
    padding: 17px;
  }

  .download-print-settings,
  .download-update-row,
  .download-final-ready,
  .download-current-note,
  .download-file-grid {
    margin-left: 0;
  }

  .download-print-settings {
    align-items: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-print-settings > label:first-child {
    grid-column: 1 / -1;
  }

  .download-update-row .primary-button {
    width: 100%;
  }

  .download-final-ready {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .download-final-ready small {
    flex-basis: 100%;
    padding-left: 34px;
  }

  .download-file-card {
    padding: 18px;
  }

  .download-extras {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .download-extras .secondary-button {
    width: 100%;
  }

  .finalize-confirm-dialog,
  .download-progress-dialog {
    padding: 22px;
  }
}

.saved-final-version {
  border-left: 4px solid #16a66a;
}

.download-safe-badge,
.download-action-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 9px;
  padding: 5px 9px;
  text-transform: uppercase;
}

.download-safe-badge {
  background: rgba(22, 166, 106, 0.12);
  color: #0b7142;
}

.download-action-badge {
  background: rgba(255, 181, 43, 0.18);
  color: #8b4a00;
}

.current-final-design {
  border-left: 4px solid var(--loteria-yellow);
}

.saved-final-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 640px) {
  .saved-final-actions {
    grid-template-columns: 1fr;
  }
}

/* Admin workspace redesign */
.admin-page {
  --admin-bg: #f6f8fb;
  --admin-surface: #ffffff;
  --admin-surface-soft: #f9fafb;
  --admin-line: #d9e2ef;
  --admin-ink: #111827;
  --admin-muted: #5b6472;
  --admin-blue: #2563eb;
  --admin-green: #0f766e;
  --admin-gold: #b7791f;
  --admin-red: #b91c1c;
  --admin-purple: #7c3aed;
  --admin-teal: #0891b2;
  background: var(--admin-bg) !important;
  color: var(--admin-ink);
}

.admin-page .top-nav {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(217, 226, 239, 0.9) !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08) !important;
}

.admin-portal-shell {
  align-items: flex-start;
  background: transparent !important;
  display: grid !important;
  gap: 18px !important;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) !important;
  margin: 24px auto 60px !important;
  max-width: 1480px !important;
  padding: 0 24px !important;
}

.admin-portal-sidebar {
  background: var(--admin-surface) !important;
  border: 1px solid var(--admin-line) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08) !important;
  color: var(--admin-ink) !important;
  overflow: hidden;
  padding: 16px !important;
  position: sticky;
  top: 18px;
}

.admin-portal-brand {
  border-bottom: 1px solid var(--admin-line) !important;
  margin-bottom: 14px !important;
  padding-bottom: 14px !important;
}

.admin-portal-brand > span {
  background: linear-gradient(135deg, var(--admin-blue), var(--admin-teal)) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.admin-portal-brand strong,
.admin-portal-nav button span,
.admin-portal-links button {
  color: var(--admin-ink) !important;
}

.admin-portal-brand small,
.admin-portal-nav-heading {
  color: var(--admin-muted) !important;
}

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

.admin-portal-nav-group {
  display: grid;
  gap: 8px;
}

.admin-portal-nav button {
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  min-height: 44px;
  padding: 10px 12px !important;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.admin-portal-nav button.active {
  background: #eef6ff !important;
  border-color: #bfdbfe !important;
  color: var(--admin-blue) !important;
}

.admin-portal-nav button.active span {
  color: var(--admin-blue) !important;
}

.admin-portal-nav button b {
  background: var(--admin-red) !important;
  border-radius: 999px;
  color: #fff !important;
  min-width: 24px;
  padding: 2px 7px;
  text-align: center;
}

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

.admin-portal-topbar,
.admin-section-hero,
.admin-tab-panel,
.admin-command-card,
.admin-health-card,
.admin-locked-panel {
  background: var(--admin-surface) !important;
  border: 1px solid var(--admin-line) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06) !important;
}

.admin-portal-topbar {
  align-items: center !important;
  display: grid !important;
  gap: 16px !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  padding: 24px !important;
}

.admin-portal-topbar h1 {
  color: var(--admin-ink) !important;
  font-size: clamp(2rem, 4vw, 3.35rem) !important;
  letter-spacing: 0 !important;
}

.admin-portal-topbar .soft-copy,
.admin-section-hero p,
.admin-command-card .soft-copy {
  color: var(--admin-muted) !important;
}

.admin-portal-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-page .primary-button {
  background: var(--admin-blue) !important;
  border-color: var(--admin-blue) !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22) !important;
}

.admin-page .secondary-button,
.admin-page .small-button {
  background: #fff !important;
  border: 1px solid var(--admin-line) !important;
  color: var(--admin-ink) !important;
  box-shadow: none !important;
}

.admin-mobile-tabs {
  background: var(--admin-surface) !important;
  border: 1px solid var(--admin-line) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  gap: 8px !important;
  padding: 8px !important;
}

.admin-mobile-tabs button {
  border-radius: 10px !important;
  color: var(--admin-muted) !important;
  min-height: 40px;
}

.admin-mobile-tabs button.active {
  background: var(--admin-ink) !important;
  color: #fff !important;
}

.admin-cockpit {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-section-hero {
  background: linear-gradient(135deg, #ffffff, #f8fbff) !important;
  display: grid !important;
  gap: 18px !important;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr) !important;
  padding: 22px !important;
}

.admin-section-metrics {
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
}

.admin-section-metrics span,
.admin-summary-grid article,
.admin-detail-metrics article,
.admin-row-metrics span {
  background: var(--admin-surface-soft) !important;
  border: 1px solid var(--admin-line) !important;
  border-radius: 12px !important;
}

.admin-health-grid {
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.admin-health-card {
  align-items: flex-start !important;
  color: var(--admin-ink) !important;
  min-height: 160px !important;
  padding: 18px !important;
  text-align: left !important;
}

.admin-health-card strong {
  color: var(--admin-ink) !important;
  font-size: 1.05rem !important;
}

.admin-health-card div span {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

.admin-health-card div b {
  color: var(--admin-ink) !important;
  font-size: clamp(1.7rem, 3vw, 2.4rem) !important;
}

.admin-health-card .status-badge {
  background: #eff6ff !important;
  color: var(--admin-blue) !important;
}

.admin-health-card.green .status-badge,
.tone-green .status-badge {
  background: #ecfdf5 !important;
  color: var(--admin-green) !important;
}

.admin-health-card.gold .status-badge,
.tone-gold .status-badge {
  background: #fffbeb !important;
  color: var(--admin-gold) !important;
}

.admin-health-card.red .status-badge,
.tone-red .status-badge {
  background: #fef2f2 !important;
  color: var(--admin-red) !important;
}

.admin-health-card.purple .status-badge,
.tone-purple .status-badge {
  background: #f5f3ff !important;
  color: var(--admin-purple) !important;
}

.admin-health-card.teal .status-badge,
.tone-teal .status-badge {
  background: #ecfeff !important;
  color: var(--admin-teal) !important;
}

.admin-dashboard-grid {
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr) minmax(280px, 0.9fr) !important;
}

.admin-command-card,
.admin-tab-panel {
  padding: 18px !important;
}

.admin-attention-card .admin-feed-list button {
  border-left: 4px solid var(--admin-blue) !important;
}

.admin-attention-card .admin-feed-list button.tone-red {
  border-left-color: var(--admin-red) !important;
}

.admin-attention-card .admin-feed-list button.tone-gold {
  border-left-color: var(--admin-gold) !important;
}

.admin-attention-card .admin-feed-list button.tone-purple {
  border-left-color: var(--admin-purple) !important;
}

.admin-filter-bar {
  background: var(--admin-surface-soft) !important;
  border: 1px solid var(--admin-line) !important;
  border-radius: 14px !important;
  padding: 10px !important;
}

.admin-filter-bar input,
.admin-filter-bar select,
.admin-code-card input,
.admin-code-card select,
.admin-code-card textarea {
  background: #fff !important;
  border: 1px solid var(--admin-line) !important;
  border-radius: 10px !important;
  color: var(--admin-ink) !important;
}

.admin-workspace {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.admin-list-panel,
.admin-detail-card,
.admin-context-card,
.admin-code-card,
.support-request-card,
.support-empty-card,
.admin-code-row,
.ios-report-card,
.ios-table-card {
  background: var(--admin-surface) !important;
  border: 1px solid var(--admin-line) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05) !important;
}

.admin-user-card,
.admin-deck-card,
.admin-feed-list button,
.admin-command-list button,
.admin-context-stack button {
  background: var(--admin-surface-soft) !important;
  border: 1px solid var(--admin-line) !important;
  border-radius: 12px !important;
  color: var(--admin-ink) !important;
}

.admin-user-card.selected,
.admin-deck-card.selected {
  background: #eef6ff !important;
  border-color: #bfdbfe !important;
}

.support-admin-panel {
  order: 30;
}

.customer-admin-panel {
  order: 10;
}

.project-admin-panel {
  order: 20;
}

.commerce-admin-panel {
  order: 10;
}

.codes-admin-panel {
  order: 20;
}

.ai-admin-panel {
  order: 10;
}

.site-content-admin-panel {
  order: 20;
}

.background-admin-panel {
  order: 30;
}

.ios-analytics-panel {
  order: 40;
}

.admin-background-grid {
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
}

.admin-background-tile {
  background: var(--admin-surface) !important;
  border: 1px solid var(--admin-line) !important;
  border-radius: 14px !important;
}

@media (max-width: 1080px) {
  .admin-portal-shell {
    grid-template-columns: 1fr !important;
    padding: 0 14px !important;
  }

  .admin-portal-sidebar {
    position: relative;
    top: auto;
  }

  .admin-portal-nav {
    display: none !important;
  }

  .admin-portal-main {
    gap: 12px;
  }

  .admin-portal-topbar,
  .admin-section-hero,
  .admin-dashboard-grid {
    grid-template-columns: 1fr !important;
  }

  .admin-portal-actions {
    justify-content: flex-start;
  }

  .admin-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .admin-portal-shell {
    margin-top: 14px !important;
    padding: 0 10px !important;
  }

  .admin-portal-topbar,
  .admin-section-hero,
  .admin-tab-panel,
  .admin-command-card {
    border-radius: 14px !important;
    padding: 14px !important;
  }

  .admin-portal-topbar h1 {
    font-size: 2rem !important;
  }

  .admin-health-grid,
  .admin-summary-grid,
  .admin-dashboard-grid {
    grid-template-columns: 1fr !important;
  }

  .admin-mobile-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-mobile-tabs button {
    white-space: normal !important;
  }
}

.admin-download-status {
  align-items: center;
  background: rgba(17, 24, 39, 0.06);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  color: #3f332d;
  display: inline-flex;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 950;
  gap: 5px;
  justify-self: start;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 7px 9px;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-download-status.generated,
.admin-download-callout.generated,
.admin-download-metric.generated {
  --download-tone: #0fa3a8;
}

.admin-download-status.downloaded,
.admin-download-callout.downloaded,
.admin-download-metric.downloaded {
  --download-tone: #1f6f4c;
}

.admin-download-status.locked,
.admin-download-callout.locked,
.admin-download-metric.locked {
  --download-tone: #b6241b;
}

.admin-download-status.draft,
.admin-download-callout.draft,
.admin-download-metric.draft {
  --download-tone: #8a6d3b;
}

.admin-download-status.generated,
.admin-download-status.downloaded,
.admin-download-status.locked,
.admin-download-status.draft {
  background: color-mix(in srgb, var(--download-tone) 10%, white);
  border-color: color-mix(in srgb, var(--download-tone) 20%, white);
  color: color-mix(in srgb, var(--download-tone) 76%, #1d0f0a);
}

.admin-download-detail {
  color: #6f5b4d !important;
  display: block;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  line-height: 1.25;
  margin-top: 4px;
  white-space: normal;
}

.admin-related-item .admin-download-status,
.admin-page .admin-deck-card .admin-download-status {
  text-transform: uppercase;
}

.admin-related-item .admin-download-status {
  flex: 0 0 auto;
  max-width: 44%;
  text-align: center;
}

.admin-page .admin-deck-card .admin-download-status {
  grid-column: 2 / -1;
  padding: 6px 8px;
}

.admin-download-callout {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--download-tone) 10%, white), rgba(255, 255, 255, 0.92));
  border: 1px solid color-mix(in srgb, var(--download-tone) 24%, rgba(21, 17, 15, 0.08));
  border-left: 5px solid var(--download-tone);
  border-radius: 18px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.admin-download-callout strong {
  color: color-mix(in srgb, var(--download-tone) 72%, #1d0f0a);
  font-size: 0.9rem;
  font-weight: 1000;
}

.admin-download-callout span {
  color: #604d42;
  font-size: 0.84rem;
  font-weight: 760;
}

.admin-detail-metrics .admin-download-metric {
  background: color-mix(in srgb, var(--download-tone) 9%, white);
  border-color: color-mix(in srgb, var(--download-tone) 20%, white);
}

.admin-detail-metrics .admin-download-metric strong {
  color: color-mix(in srgb, var(--download-tone) 76%, #1d0f0a);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 8%, rgba(41, 189, 242, 0.12), transparent 28rem),
    radial-gradient(circle at 94% 12%, rgba(236, 47, 145, 0.11), transparent 25rem),
    radial-gradient(circle at 80% 92%, rgba(255, 211, 51, 0.13), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 55%, #ffffff 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;
  }
}

@media (max-width: 760px) {
  .seo-home-route .lm-hero h1 {
    font-size: clamp(2.25rem, 10.5vw, 3.35rem) !important;
    letter-spacing: -0.04em !important;
    line-height: 0.93 !important;
  }

  .seo-home-route .lm-hero h1 em {
    font-size: clamp(1.05rem, 5.4vw, 1.55rem) !important;
    letter-spacing: 0 !important;
    line-height: 1.12 !important;
    max-width: 100%;
  }
}

/* Business health scorecard */
.business-health-workspace {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.business-health-controls {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.business-health-controls .compact-tabs {
  background: #eef2f7;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  display: flex;
  gap: 3px;
  min-width: 0;
  overflow-x: auto;
  padding: 4px;
}

.business-health-controls .compact-tabs button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #536074;
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 8px 10px;
}

.business-health-controls .compact-tabs button.active {
  background: #fff;
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.1);
  color: #111827;
}

.business-health-range {
  align-items: end;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.business-health-range label,
.health-entry-form label,
.health-import-panel > label {
  display: grid;
  gap: 5px;
}

.business-health-range label > span,
.health-entry-form label > span,
.health-import-panel > label > span {
  color: #5b6472;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.business-health-range select,
.health-entry-form input,
.health-entry-form select,
.health-import-panel select,
.health-file-picker input {
  background: #fff;
  border: 1px solid #cfd9e7;
  border-radius: 7px;
  color: #111827;
  min-height: 40px;
  padding: 8px 10px;
}

.business-health-notice {
  align-items: center;
  background: #fff8d9;
  border: 1px solid #e9c930;
  border-left: 5px solid #e9b51d;
  border-radius: 8px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 12px 14px;
}

.business-health-notice div {
  display: grid;
  gap: 3px;
}

.business-health-notice strong {
  color: #422f08;
  font-size: 0.9rem;
}

.business-health-notice span {
  color: #715b25;
  font-size: 0.8rem;
}

.business-health-notice code {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(113, 91, 37, 0.2);
  border-radius: 5px;
  color: #422f08;
  font-size: 0.72rem;
  padding: 7px 9px;
}

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

.health-kpi {
  --health-accent: #2563eb;
  background: #fff;
  border: 1px solid #d9e2ef;
  border-left: 5px solid var(--health-accent);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px;
}

.health-kpi.tone-green { --health-accent: #14a568; }
.health-kpi.tone-magenta { --health-accent: #e62c89; }
.health-kpi.tone-red { --health-accent: #e33f35; }
.health-kpi.tone-gold { --health-accent: #dfaa16; }

.health-kpi > span {
  color: #5b6472;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.health-kpi > strong {
  color: #111827;
  font-size: clamp(1.55rem, 2.3vw, 2.35rem);
  line-height: 1;
}

.health-kpi > small {
  color: #667085;
  font-size: 0.78rem;
}

.business-health-overview-grid,
.business-health-two-column {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
}

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

.health-surface {
  background: #fff;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  min-width: 0;
  padding: 14px;
}

.health-surface .section-minihead {
  align-items: start;
  border-bottom: 1px solid #e8edf4;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
}

.health-surface .section-minihead > div {
  display: grid;
  gap: 3px;
}

.health-surface .section-minihead span {
  color: #111827;
  font-size: 0.92rem;
  font-weight: 900;
}

.health-surface .section-minihead small {
  color: #667085;
  font-size: 0.74rem;
}

.health-surface .section-minihead > strong {
  color: #111827;
  font-size: 1.5rem;
}

.health-daily-bars {
  align-items: end;
  display: flex;
  gap: 3px;
  height: 170px;
  overflow: hidden;
  padding-top: 8px;
}

.health-daily-bars > span {
  align-items: center;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 5px;
  height: 100%;
  justify-content: end;
  min-width: 4px;
}

.health-daily-bars i {
  background: #28b8ed;
  border-radius: 3px 3px 0 0;
  display: block;
  max-width: 18px;
  min-height: 4px;
  width: 100%;
}

.health-daily-bars small {
  color: #778195;
  font-size: 0.58rem;
  min-height: 12px;
  transform: rotate(-45deg);
  white-space: nowrap;
}

.health-inline-metrics {
  border-top: 1px solid #e8edf4;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  padding-top: 12px;
}

.health-inline-metrics span {
  color: #667085;
  display: grid;
  font-size: 0.72rem;
  gap: 2px;
}

.health-inline-metrics b {
  color: #111827;
  font-size: 1rem;
}

.health-priority-list {
  display: grid;
  gap: 7px;
}

.health-priority-list button {
  background: #f8fafc;
  border: 1px solid #d9e2ef;
  border-left: 4px solid #64748b;
  border-radius: 7px;
  color: #111827;
  display: grid;
  gap: 3px;
  padding: 10px;
  text-align: left;
}

.health-priority-list button.severity-critical,
.health-priority-list button.severity-high { border-left-color: #e43a2e; }
.health-priority-list button.severity-medium { border-left-color: #e9b51d; }
.health-priority-list button.severity-monitor { border-left-color: #20a55a; }

.health-priority-list button > span {
  color: #667085;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.health-priority-list button strong {
  font-size: 0.86rem;
}

.health-priority-list button small {
  color: #667085;
  font-size: 0.75rem;
}

.health-baseline-strip {
  background: #16181d;
  border: 1px solid #16181d;
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 0;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  overflow: hidden;
}

.health-baseline-strip > div {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 3px;
  padding: 13px 14px;
}

.health-baseline-strip > div:last-child {
  border-right: 0;
}

.health-baseline-strip span,
.health-baseline-strip small {
  color: #cbd5e1;
  font-size: 0.7rem;
}

.health-baseline-strip strong {
  color: #fff;
  font-size: 1.25rem;
}

.health-funnel {
  display: grid;
  gap: 9px;
}

.health-funnel > div {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 0.7fr) minmax(180px, 1.8fr) 55px 50px;
}

.health-funnel > div > span {
  color: #374151;
  font-size: 0.82rem;
  font-weight: 800;
}

.health-funnel > div > div {
  background: #edf1f6;
  border-radius: 4px;
  height: 12px;
  overflow: hidden;
}

.health-funnel i {
  background: #20a55a;
  display: block;
  height: 100%;
}

.health-funnel strong {
  color: #111827;
  text-align: right;
}

.health-funnel small {
  color: #667085;
  text-align: right;
}

.health-definition-note {
  background: #f6f8fb;
  border: 1px solid #e1e7ef;
  border-radius: 7px;
  display: grid;
  gap: 3px;
  margin-top: 14px;
  padding: 10px;
}

.health-definition-note strong {
  color: #374151;
  font-size: 0.76rem;
}

.health-definition-note span {
  color: #667085;
  font-size: 0.74rem;
}

.health-metric-table {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.health-metric-table span {
  background: #f6f8fb;
  border: 1px solid #e1e7ef;
  border-radius: 7px;
  color: #667085;
  display: grid;
  font-size: 0.75rem;
  gap: 3px;
  padding: 10px;
}

.health-metric-table b {
  color: #111827;
  font-size: 1.35rem;
}

.health-entry-form {
  align-content: start;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.health-entry-form .section-minihead,
.health-entry-form .wide,
.health-entry-form > button {
  grid-column: 1 / -1;
}

.health-waterfall {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  overflow-x: auto;
}

.health-waterfall div {
  background: #f6f8fb;
  border-top: 4px solid #64748b;
  display: grid;
  gap: 5px;
  min-width: 110px;
  padding: 11px 9px;
}

.health-waterfall div.positive { border-top-color: #20a55a; }
.health-waterfall div.negative { border-top-color: #e43a2e; }
.health-waterfall div.result { border-top-color: #6246d9; }

.health-waterfall span {
  color: #667085;
  font-size: 0.7rem;
  min-height: 30px;
}

.health-waterfall strong {
  color: #111827;
  font-size: 0.95rem;
}

.health-import-panel {
  align-content: start;
  display: grid;
  gap: 10px;
}

.health-file-picker input {
  padding: 6px;
}

.health-file-picker input::file-selector-button {
  background: #edf5ff;
  border: 0;
  border-radius: 5px;
  color: #1d4ed8;
  font-weight: 800;
  margin-right: 8px;
  padding: 7px 9px;
}

.health-import-preview {
  background: #f0fdf4;
  border: 1px solid #a7e4ba;
  border-radius: 7px;
  display: grid;
  gap: 4px;
  padding: 11px;
}

.health-import-preview span,
.health-import-preview small {
  color: #386449;
  font-size: 0.73rem;
}

.health-import-preview strong {
  color: #0b5e33;
  font-size: 1.4rem;
}

.health-import-preview button {
  margin-top: 6px;
  width: fit-content;
}

.health-ledger-list,
.health-source-list,
.health-schema-list {
  display: grid;
  gap: 7px;
}

.health-ledger-list > span {
  align-items: center;
  border-bottom: 1px solid #e8edf4;
  display: grid;
  gap: 8px;
  grid-template-columns: 100px 1fr auto;
  padding: 8px 2px;
}

.health-ledger-list b {
  color: #374151;
  text-transform: capitalize;
}

.health-ledger-list small {
  color: #667085;
}

.health-ledger-list strong {
  color: #111827;
}

.health-reliability-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  overflow-x: auto;
}

.health-reliability-list button {
  background: #f8fafc;
  border: 1px solid #d9e2ef;
  border-radius: 7px;
  color: #111827;
  display: grid;
  gap: 5px;
  min-width: 140px;
  padding: 11px;
  text-align: left;
}

.health-reliability-list span,
.health-reliability-list small {
  color: #667085;
  font-size: 0.7rem;
}

.health-reliability-list strong {
  font-size: 1.35rem;
}

.health-source-list > span,
.health-schema-list > span {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e1e7ef;
  border-radius: 7px;
  display: grid;
  gap: 8px;
  grid-template-columns: 10px minmax(100px, 0.5fr) minmax(0, 1.5fr) auto;
  padding: 9px;
}

.health-source-list i {
  background: #94a3b8;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.health-source-list .status-ready i { background: #20a55a; }
.health-source-list .status-missing i,
.health-source-list .status-migration_required i { background: #e9b51d; }

.health-source-list b {
  color: #374151;
  font-size: 0.76rem;
  text-transform: capitalize;
}

.health-source-list small {
  color: #667085;
  font-size: 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.health-source-list em {
  color: #667085;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.health-schema-list > span {
  grid-template-columns: 30px 1fr auto;
}

.health-schema-list > span b {
  align-items: center;
  background: #fff1cf;
  border-radius: 5px;
  color: #8c5a00;
  display: flex;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.health-schema-list > span.ready b {
  background: #dff8e8;
  color: #0f6b39;
}

.health-schema-list strong {
  color: #374151;
  font-size: 0.8rem;
}

.health-schema-list small,
.health-empty {
  color: #667085;
  font-size: 0.75rem;
}

.health-empty {
  margin: 12px 0;
}

@media (max-width: 1080px) {
  .business-health-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .business-health-range {
    justify-content: flex-end;
  }

  .business-health-overview-grid,
  .business-health-two-column {
    grid-template-columns: 1fr;
  }

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

  .health-baseline-strip > div:nth-child(2),
  .health-baseline-strip > div:nth-child(4) {
    border-right: 0;
  }
}

@media (max-width: 700px) {
  .business-health-kpis,
  .reliability-kpis,
  .health-inline-metrics,
  .health-metric-table {
    grid-template-columns: 1fr;
  }

  .business-health-range {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .business-health-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .business-health-notice code {
    overflow-wrap: anywhere;
  }

  .health-baseline-strip {
    grid-template-columns: 1fr;
  }

  .health-baseline-strip > div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    border-right: 0;
  }

  .health-funnel > div {
    gap: 6px;
    grid-template-columns: minmax(100px, 1fr) 48px 43px;
  }

  .health-funnel > div > div {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .health-funnel > div > strong {
    grid-column: 2;
    grid-row: 1;
  }

  .health-funnel > div > small {
    grid-column: 3;
    grid-row: 1;
  }

  .health-entry-form {
    grid-template-columns: 1fr;
  }

  .health-entry-form .section-minihead,
  .health-entry-form .wide,
  .health-entry-form > button {
    grid-column: auto;
  }

  .health-source-list > span {
    grid-template-columns: 10px 1fr auto;
  }

  .health-source-list small {
    grid-column: 2 / -1;
  }

  .health-daily-bars small {
    display: none;
  }
}

/* Public SEO pages: match the white-first Gallery Lotería theme */
.seo-redesign,
.static-seo-page {
  background:
    radial-gradient(circle at 10% 4%, rgba(41, 189, 242, 0.14), transparent 22rem),
    radial-gradient(circle at 92% 9%, rgba(236, 47, 145, 0.1), transparent 22rem),
    radial-gradient(circle at 50% 100%, rgba(255, 211, 51, 0.12), transparent 28rem),
    var(--gallery-canvas) !important;
  color: var(--gallery-ink) !important;
}

.seo-redesign::before,
.static-seo-page::before {
  background-image:
    linear-gradient(90deg, rgba(41, 189, 242, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(236, 47, 145, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.26;
}

.seo-redesign .top-nav {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(21, 17, 15, 0.1) !important;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1) !important;
  color: var(--gallery-ink) !important;
}

.seo-redesign .top-nav::after {
  background: linear-gradient(90deg, var(--loteria-blue), var(--loteria-green), var(--loteria-yellow), var(--loteria-magenta), var(--loteria-purple)) !important;
}

.seo-redesign .brand-label,
.seo-redesign .nav-links a,
.seo-redesign .nav-ghost,
.seo-redesign .nav-cta,
.seo-redesign .secondary-button {
  color: var(--gallery-ink) !important;
}

.seo-redesign .nav-ghost,
.seo-redesign .nav-cta,
.seo-redesign .secondary-button,
.seo-redesign .language-toggle {
  background: rgba(255, 255, 255, 0.86) !important;
  border-color: rgba(21, 17, 15, 0.1) !important;
}

.seo-redesign .language-toggle button,
.seo-redesign .language-toggle a {
  color: var(--gallery-muted) !important;
}

.seo-redesign .language-toggle button.active,
.seo-redesign .language-toggle a.active {
  background: var(--gallery-ink) !important;
  color: #ffffff !important;
}

.seo-redesign .seo-topic-links {
  margin-top: 12px;
  max-width: 1320px;
}

.seo-redesign .seo-topic-links a,
.static-seo-page .seo-static-nav a {
  background: #ffffff !important;
  border: 1px solid rgba(21, 17, 15, 0.1) !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  color: var(--gallery-ink) !important;
  text-decoration: none;
}

.seo-redesign .seo-topic-links a:hover,
.static-seo-page .seo-static-nav a:hover {
  background: linear-gradient(135deg, var(--loteria-yellow), var(--loteria-magenta)) !important;
  color: #ffffff !important;
}

.seo-redesign .seo-landing-hero,
.static-seo-page .seo-hero {
  background:
    linear-gradient(90deg, var(--loteria-blue) 0 7px, transparent 7px),
    radial-gradient(circle at 78% 18%, rgba(41, 189, 242, 0.18), transparent 20rem),
    radial-gradient(circle at 12% 88%, rgba(255, 211, 51, 0.14), transparent 22rem),
    rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(21, 17, 15, 0.1) !important;
  border-radius: 42px !important;
  box-shadow: 0 28px 75px rgba(15, 23, 42, 0.11) !important;
  color: var(--gallery-ink) !important;
  margin-left: auto;
  margin-right: auto;
  max-width: 1360px;
}

.seo-redesign .seo-landing-hero h1,
.static-seo-page .seo-hero h1 {
  color: var(--gallery-ink) !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
  font-weight: 980 !important;
  letter-spacing: -0.07em !important;
  line-height: 0.9 !important;
}

.seo-redesign .seo-landing-hero .eyebrow,
.static-seo-page .seo-hero .eyebrow {
  color: var(--loteria-magenta) !important;
}

.seo-redesign .seo-landing-hero p,
.static-seo-page .seo-hero p {
  color: var(--gallery-muted) !important;
}

.seo-redesign .seo-price-note,
.static-seo-page .seo-price-note {
  background: linear-gradient(135deg, rgba(41, 189, 242, 0.1), rgba(255, 211, 51, 0.16)) !important;
  border-color: rgba(41, 189, 242, 0.22) !important;
  color: var(--gallery-ink) !important;
}

.seo-redesign .seo-hero-image,
.static-seo-page .static-seo-hero-image {
  background: #ffffff !important;
  border: 1px solid rgba(21, 17, 15, 0.1) !important;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.13) !important;
  transform: rotate(1.2deg);
}

.seo-redesign .seo-hero-image figcaption {
  color: var(--gallery-muted) !important;
}

.seo-redesign .seo-content-grid,
.seo-redesign .seo-steps-section,
.seo-redesign .seo-faq-section,
.seo-redesign .seo-related-section,
.static-seo-page section,
.static-seo-page .seo-static-nav {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(21, 17, 15, 0.08) !important;
  border-radius: 34px !important;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08) !important;
  color: var(--gallery-ink) !important;
}

.seo-redesign .seo-content-grid,
.seo-redesign .seo-steps-section,
.seo-redesign .seo-faq-section,
.seo-redesign .seo-related-section {
  margin-top: 28px !important;
  max-width: 1360px !important;
  padding: clamp(28px, 5vw, 62px) clamp(20px, 4vw, 56px) !important;
}

.seo-redesign .seo-content-grid article,
.seo-redesign .flow-step,
.seo-redesign .seo-faq-grid details,
.seo-redesign .seo-related-grid a,
.static-seo-page details {
  background:
    linear-gradient(180deg, #ffffff, rgba(248, 250, 252, 0.9)),
    #ffffff !important;
  border: 1px solid rgba(21, 17, 15, 0.1) !important;
  border-radius: 24px !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07) !important;
  color: var(--gallery-ink) !important;
}

.seo-redesign .seo-content-grid article:nth-child(3n + 1),
.seo-redesign .flow-step:nth-child(4n + 1) {
  border-top: 5px solid var(--loteria-blue) !important;
}

.seo-redesign .seo-content-grid article:nth-child(3n + 2),
.seo-redesign .flow-step:nth-child(4n + 2) {
  border-top: 5px solid var(--loteria-green) !important;
}

.seo-redesign .seo-content-grid article:nth-child(3n + 3),
.seo-redesign .flow-step:nth-child(4n + 3) {
  border-top: 5px solid var(--loteria-magenta) !important;
}

.seo-redesign .flow-step:nth-child(4n + 4) {
  border-top: 5px solid var(--loteria-yellow) !important;
}

.seo-redesign .section-heading h2,
.seo-redesign .seo-content-grid h2,
.seo-redesign .seo-faq-section h2,
.seo-redesign .seo-steps-section h2,
.seo-redesign .seo-related-section h2,
.static-seo-page h2 {
  color: var(--gallery-ink) !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
  font-weight: 950 !important;
  letter-spacing: -0.045em !important;
  line-height: 0.98 !important;
}

.seo-redesign .section-heading p,
.seo-redesign .seo-content-grid ul,
.seo-redesign .seo-faq-grid p,
.seo-redesign .seo-related-grid span,
.seo-redesign .flow-step p,
.static-seo-page li,
.static-seo-page details p {
  color: var(--gallery-muted) !important;
}

.seo-redesign .flow-step span {
  background: var(--loteria-blue) !important;
  color: #ffffff !important;
}

.seo-redesign .flow-step:nth-child(2) span {
  background: var(--loteria-green) !important;
}

.seo-redesign .flow-step:nth-child(3) span {
  background: var(--loteria-magenta) !important;
}

.seo-redesign .flow-step:nth-child(4) span {
  background: var(--loteria-purple) !important;
}

.seo-redesign .seo-related-grid strong,
.static-seo-page section a {
  color: var(--loteria-magenta) !important;
}

.seo-redesign .final-cta {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 211, 51, 0.28), transparent 20rem),
    linear-gradient(135deg, var(--loteria-magenta), var(--loteria-red)) !important;
  border-radius: 36px !important;
  box-shadow: 0 24px 65px rgba(236, 47, 145, 0.16) !important;
  color: #ffffff !important;
  margin-bottom: 28px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1360px !important;
}

.seo-redesign .final-cta h2 {
  color: #ffffff !important;
}

.seo-redesign .site-footer {
  background: #ffffff !important;
  border: 1px solid rgba(21, 17, 15, 0.08) !important;
  border-radius: 34px !important;
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.08) !important;
  color: var(--gallery-ink) !important;
  margin-bottom: 28px;
  max-width: 1360px !important;
}

.seo-redesign .site-footer p,
.seo-redesign .site-footer a,
.seo-redesign .site-footer button {
  color: var(--gallery-muted) !important;
}

@media (max-width: 980px) {
  .seo-redesign .seo-landing-hero,
  .seo-redesign .seo-content-grid,
  .seo-redesign .seo-related-grid,
  .static-seo-page .seo-hero {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 700px) {
  .seo-redesign .top-nav,
  .seo-redesign .nav-links {
    background: rgba(255, 255, 255, 0.97) !important;
  }

  .seo-redesign .seo-landing-hero,
  .seo-redesign .seo-content-grid,
  .seo-redesign .seo-steps-section,
  .seo-redesign .seo-faq-section,
  .seo-redesign .seo-related-section,
  .seo-redesign .final-cta,
  .seo-redesign .site-footer,
  .static-seo-page section,
  .static-seo-page .seo-static-nav {
    border-radius: 26px !important;
    margin-left: 10px !important;
    margin-right: 10px !important;
  }

  .seo-redesign .seo-landing-hero h1,
  .static-seo-page .seo-hero h1 {
    font-size: clamp(2.55rem, 13vw, 4.45rem) !important;
    letter-spacing: -0.06em !important;
  }

  .seo-redesign .seo-faq-grid,
  .seo-redesign .flow-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Landing proof sections: compact, clearer, full-image marketing uploads */
.landing-redesign .lm-gallery,
.landing-redesign .lm-print-section,
.landing-redesign .lm-reviews {
  padding: clamp(30px, 4vw, 54px) clamp(18px, 4vw, 48px) !important;
}

.landing-redesign .lm-gallery .lm-section-head,
.landing-redesign .lm-print-section .lm-section-head,
.landing-redesign .lm-reviews .lm-section-head {
  display: block;
  margin-bottom: 20px;
  max-width: 860px;
}

.landing-redesign .lm-gallery .lm-section-head h2,
.landing-redesign .lm-print-section .lm-section-head h2,
.landing-redesign .lm-reviews .lm-section-head h2 {
  font-size: clamp(2rem, 3.15vw, 3.65rem) !important;
  letter-spacing: -0.045em;
  line-height: 0.95;
  max-width: 720px;
}

.landing-redesign .lm-gallery .lm-section-head p:not(.lm-kicker),
.landing-redesign .lm-print-section .lm-section-head p:not(.lm-kicker),
.landing-redesign .lm-reviews .lm-section-head p:not(.lm-kicker) {
  font-size: clamp(0.98rem, 1.15vw, 1.12rem);
  line-height: 1.5;
  max-width: 680px;
}

.landing-redesign .lm-sample-grid {
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.landing-redesign .lm-sample-card {
  border-radius: 20px;
  padding: 10px;
}

.landing-redesign .lm-sample-art {
  background-color: #fffaf0;
  background-repeat: no-repeat;
}

.landing-redesign .lm-sample-art.has-custom-image {
  background-size: contain !important;
  box-shadow: inset 0 -82px 62px rgba(20, 12, 8, 0.22), 0 14px 30px rgba(15, 23, 42, 0.1);
}

.landing-redesign .lm-sample-art.has-custom-image::before,
.landing-redesign .lm-sample-art.has-custom-image::after {
  opacity: 0;
}

.landing-redesign .lm-sample-art.has-custom-image strong {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(21, 17, 15, 0.08);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
  font-size: 0.82rem;
  max-width: calc(100% - 18px);
}

.landing-redesign .lm-sample-card h3 {
  font-size: 1.05rem;
  line-height: 1.05;
  margin: 12px 4px 5px;
}

.landing-redesign .lm-sample-card p {
  font-size: 0.84rem;
  line-height: 1.35;
  margin: 0 4px 6px;
}

.landing-redesign .lm-print-section {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
}

.landing-redesign .lm-print-section .lm-section-head {
  margin-bottom: 0;
  position: sticky;
  top: 110px;
}

.landing-redesign .lm-print-section .product-carousel-track {
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-redesign .lm-print-section .physical-product-card {
  border-radius: 20px;
  gap: 10px;
  padding: 12px;
}

.landing-redesign .physical-product-photo {
  background-color: #fffaf0;
  border-width: 5px;
  border-radius: 18px;
  padding: 8px;
}

.landing-redesign .physical-product-photo.has-custom-image {
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}

.landing-redesign .physical-product-card strong {
  font-size: 1.02rem;
  line-height: 1.08;
}

.landing-redesign .physical-product-card p {
  font-size: 0.84rem;
  line-height: 1.35;
  margin: 4px 0;
}

.landing-redesign .physical-product-card small {
  font-size: 0.78rem;
}

.landing-redesign .lm-reviews {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(230px, 0.62fr) minmax(0, 1.38fr);
  align-items: start;
}

.landing-redesign .lm-reviews .lm-section-head {
  margin-bottom: 0;
  position: sticky;
  top: 110px;
}

.landing-redesign .lm-review-grid {
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.landing-redesign .lm-review-card {
  border-radius: 20px;
  padding: 10px;
}

.landing-redesign .lm-review-photo {
  background-color: #fffaf0;
  border-radius: 16px;
  margin-bottom: 10px;
}

.landing-redesign .lm-review-photo.has-custom-image {
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}

.landing-redesign .lm-review-card strong {
  display: block;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.landing-redesign .lm-review-card p {
  font-size: 0.75rem;
  line-height: 1.32;
  margin-top: 5px;
}

@media (max-width: 980px) {
  .landing-redesign .lm-print-section,
  .landing-redesign .lm-reviews {
    display: block;
  }

  .landing-redesign .lm-print-section .lm-section-head,
  .landing-redesign .lm-reviews .lm-section-head {
    margin-bottom: 18px;
    position: static;
  }

  .landing-redesign .lm-print-section .product-carousel-track {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
}

.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 .access-deadline {
  color: var(--ink);
  font-weight: 850;
}

.access-status-badge small {
  color: #60483a;
  font-size: 0.76rem;
  line-height: 1.45;
}

.access-status-badge.ending-soon {
  background: #fff8e8 !important;
  border-color: #e5c780 !important;
  border-left-color: #b97913 !important;
}

.builder-access-window {
  margin: 14px 0;
}

.builder-access-window .access-status-badge {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background-image: none;
  border-radius: 12px;
}

.builder-access-window .access-status-badge strong,
.builder-access-window .access-status-badge small {
  grid-column: 1 / -1;
}

.builder-access-window > p {
  color: #60483a;
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 6px 3px 0;
}

@media (max-width: 600px) {
  .builder-access-window .access-status-badge { grid-template-columns: minmax(0, 1fr); }
}

.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;
}

.nav-dropdowns {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  align-items: center;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 999px;
  color: #4f281c;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 950;
  gap: 8px;
  list-style: none;
  min-height: 40px;
  padding: 0 13px;
  user-select: none;
}

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

.nav-dropdown summary::after {
  content: "⌄";
  font-size: 0.86rem;
  line-height: 1;
  transform: translateY(-1px);
}

.nav-dropdown[open] summary,
.nav-dropdown summary:hover {
  background: #fff;
  color: var(--red);
}

.nav-dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 18px;
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.16);
  display: grid;
  gap: 5px;
  left: 0;
  min-width: 250px;
  padding: 10px;
  position: absolute;
  top: calc(100% + 10px);
  z-index: 40;
}

.nav-dropdown:not([open]) .nav-dropdown-menu {
  display: none;
}

.nav-dropdown-menu a {
  border-radius: 12px;
  color: var(--gallery-ink);
  display: block;
  font-size: 0.88rem;
  font-weight: 850;
  padding: 10px 11px;
  text-decoration: none;
}

.nav-dropdown-menu a:hover {
  background: #fff4dc;
  color: var(--loteria-magenta);
}

.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,
.language-toggle a {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #60483a;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 950;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
}

.language-toggle button.active,
.language-toggle a.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);
  max-height: calc(100vh - 24px);
  overflow-x: hidden;
  overflow-y: auto;
  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-brand-line {
  display: grid;
  gap: 0;
  margin: 0 0 12px;
}

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

.hero-brand-line .maker-word {
  font-size: clamp(3rem, 5.6vw, 5.8rem);
}

.hero .seo-home-title {
  color: #3b1c12;
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(2rem, 3.4vw, 3.85rem);
  line-height: 0.96;
  margin-bottom: 16px;
  max-width: 700px;
}

.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;
}

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

.seo-page::before {
  background-image:
    linear-gradient(45deg, rgba(201, 42, 28, 0.045) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(8, 127, 140, 0.045) 25%, transparent 25%);
  background-size: 30px 30px;
  content: "";
  inset: 0;
  opacity: 0.34;
  pointer-events: none;
  position: fixed;
}

.seo-topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 18px auto 0;
  max-width: 1180px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.seo-topic-links a {
  background: rgba(255, 250, 240, 0.84);
  border: 1px solid rgba(29, 15, 10, 0.1);
  border-radius: 999px;
  color: #4f281c;
  font-size: 0.9rem;
  font-weight: 900;
  padding: 9px 13px;
}

.seo-topic-links a:hover {
  background: var(--red);
  color: #fffaf0;
}

.seo-landing-hero {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  margin-top: 22px;
  min-height: 520px;
}

.seo-landing-hero h1 {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(2.55rem, 5.8vw, 6.8rem);
  line-height: 0.92;
  margin-bottom: 18px;
  max-width: 820px;
  text-wrap: balance;
}

.seo-landing-hero p {
  color: #4f281c;
  font-size: 1.1rem;
  font-weight: 720;
  line-height: 1.56;
  max-width: 710px;
}

.seo-landing-hero .seo-price-note,
.static-seo-page .seo-price-note {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(29, 15, 10, 0.1);
  border-radius: 999px;
  color: var(--red);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 950;
  margin: 0 0 20px;
  padding: 9px 14px;
}

.seo-hero-image {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 213, 31, 0.3), transparent 28%),
    rgba(255, 250, 240, 0.76);
  border: 1px solid rgba(29, 15, 10, 0.12);
  border-radius: 30px;
  box-shadow: var(--small-shadow);
  margin: 0;
  overflow: hidden;
  padding: 16px;
}

.seo-hero-image img {
  aspect-ratio: 1 / 1;
  border: 2px solid rgba(29, 15, 10, 0.16);
  border-radius: 22px;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.seo-hero-image figcaption {
  color: #60483a;
  font-size: 0.9rem;
  font-weight: 850;
  margin-top: 12px;
  text-align: center;
}

.seo-content-grid,
.seo-related-grid,
.seo-faq-grid {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.seo-content-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.seo-content-grid article,
.seo-faq-grid details,
.seo-related-grid a {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 244, 220, 0.64)),
    rgba(255, 250, 240, 0.78);
  border: 1px solid rgba(29, 15, 10, 0.1);
  border-radius: 24px;
  box-shadow: var(--small-shadow);
  padding: 22px;
}

.seo-content-grid h2,
.seo-faq-section h2,
.seo-steps-section h2,
.seo-related-section h2 {
  font-family: "Trebuchet MS", Inter, sans-serif;
  line-height: 1;
  margin-bottom: 12px;
}

.seo-content-grid ul,
.static-seo-page ul {
  color: #60483a;
  display: grid;
  font-weight: 820;
  gap: 10px;
  line-height: 1.42;
  margin: 0;
  padding-left: 20px;
}

.seo-steps-section,
.seo-faq-section,
.seo-related-section {
  margin: 58px auto 0;
  max-width: 1220px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

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

.seo-faq-grid summary {
  cursor: pointer;
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-weight: 950;
}

.seo-faq-grid p {
  color: #60483a;
  font-weight: 820;
  line-height: 1.5;
  margin: 10px 0 0;
}

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

.seo-related-grid a {
  display: grid;
  gap: 8px;
}

.seo-related-grid strong {
  color: var(--red);
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: 1.05rem;
}

.seo-related-grid span {
  color: #60483a;
  font-size: 0.9rem;
  font-weight: 780;
  line-height: 1.42;
}

.seo-footer {
  margin-bottom: 34px;
}

.static-seo-page {
  padding: 28px;
}

.static-seo-page section,
.seo-static-nav {
  margin: 0 auto 24px;
  max-width: 980px;
}

.seo-static-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.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);
}

.landing-redesign .content-article-section.reveal-pending {
  opacity: 1;
  transform: none;
}

@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(auto-fit, minmax(116px, 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-image-status.warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
  color: #7c3f00 !important;
}

.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-left: 24px;
  padding-right: 24px;
  padding-top: 10px;
  max-width: 1600px;
}

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

.builder-intro h1 {
  font-size: clamp(2.1rem, 3.35vw, 3.9rem);
  margin-bottom: 0;
}

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

.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: 14px;
  padding: 7px;
}

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

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

.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;
}

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

.studio-panel-header {
  align-items: end;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 214, 77, 0.28), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 244, 220, 0.58));
  border-bottom: 1px solid rgba(37, 23, 17, 0.08);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 20px 30px 18px;
}

.studio-panel-header h2 {
  font-size: clamp(1.65rem, 2.55vw, 2.65rem);
  margin-bottom: 6px;
}

.studio-panel-header .soft-copy {
  max-width: 720px;
}

.builder-studio-layout {
  align-items: start;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(330px, 0.3fr) minmax(420px, 1fr) minmax(330px, 0.3fr);
  min-height: 650px;
}

.studio-sidebar {
  align-content: start;
  align-items: start;
  align-self: stretch;
  display: grid;
  gap: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 18px;
}

.studio-settings {
  align-content: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 250, 242, 0.5)),
    rgba(255, 255, 255, 0.42);
  border-right: 1px solid rgba(37, 23, 17, 0.08);
}

.studio-settings > *,
.studio-control-stack,
.cards-sidebar,
.studio-settings .label-style-panel,
.studio-settings .board-style-controls,
.studio-settings .redesigned-controls {
  align-content: start;
  align-self: start;
  width: 100%;
}

.studio-control-stack > *,
.cards-sidebar > *,
.studio-settings .label-style-panel > *,
.studio-settings .board-style-controls > * {
  align-self: start;
  width: 100%;
}

.studio-guidance {
  background:
    radial-gradient(circle at 88% 10%, rgba(15, 163, 168, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 246, 231, 0.58));
  border-left: 1px solid rgba(37, 23, 17, 0.08);
  align-self: start;
  position: sticky;
  top: 104px;
}

.studio-main {
  display: grid;
  gap: 16px;
  min-width: 0;
  overflow: hidden;
  padding: 18px;
}

.studio-control-stack,
.download-settings-stack {
  align-content: start;
  display: grid;
  gap: 16px;
}

.studio-action-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 244, 220, 0.58)),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 22px;
  box-shadow: var(--small-shadow);
  display: grid;
  gap: 10px;
  padding: 16px;
}

.studio-action-card.success {
  background:
    linear-gradient(135deg, rgba(31, 122, 77, 0.12), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.72);
}

.studio-action-card.warning {
  background:
    linear-gradient(135deg, rgba(180, 35, 24, 0.12), rgba(255, 214, 77, 0.13)),
    rgba(255, 255, 255, 0.72);
  border-color: rgba(180, 35, 24, 0.18);
}

.studio-action-card strong {
  color: var(--ink);
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: 1.05rem;
}

.studio-action-card p {
  color: #60483a;
  font-size: 0.92rem;
  font-weight: 820;
  line-height: 1.45;
  margin: 0;
}

.studio-action-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.studio-stat-grid {
  align-items: baseline;
  display: flex;
  gap: 8px;
}

.studio-stat-grid span {
  color: var(--red);
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: 2.2rem;
  font-weight: 1000;
  line-height: 1;
}

.studio-stat-grid small {
  color: #60483a;
  font-weight: 900;
}

.project-start-card {
  align-content: center;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 214, 77, 0.34), transparent 28%),
    radial-gradient(circle at 88% 84%, rgba(15, 163, 168, 0.16), transparent 30%),
    rgba(255, 250, 242, 0.78);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 30px;
  display: grid;
  gap: 14px;
  min-height: 340px;
  padding: 26px;
}

.project-start-card .logo-mark {
  height: 48px;
  width: 48px;
}

.project-start-card h3 {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(1.75rem, 3.2vw, 3.25rem);
  line-height: 1;
  margin: 0;
}

.project-start-card > p {
  color: #60483a;
  font-size: 1rem;
  font-weight: 820;
  line-height: 1.5;
  max-width: 620px;
}

.compact-lock {
  grid-column: auto;
}

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

.studio-settings .drop-zone {
  min-height: 168px;
  padding: 14px;
}

.studio-settings .drop-zone h3 {
  font-size: 1rem;
  line-height: 1.15;
  margin: 0;
}

.studio-settings .drop-art {
  border-width: 5px;
  border-radius: 18px;
  height: 52px;
  margin-bottom: 10px;
  width: 76px;
}

.studio-settings .drop-zone p {
  font-size: 0.86rem;
  line-height: 1.28;
  margin: 6px 0 10px;
}

.studio-settings .drop-zone p,
.studio-settings .soft-copy,
.studio-guidance .soft-copy,
.studio-settings .warning-text,
.studio-settings .success-text {
  overflow-wrap: anywhere;
}

.studio-settings .label-style-panel,
.studio-settings .download-settings,
.studio-settings .text-style-grid,
.studio-settings .color-control-grid,
.studio-settings .border-control-grid {
  grid-template-columns: 1fr;
}

.studio-settings .access-code-panel,
.studio-settings .square-pass-panel,
.studio-guidance .access-code-panel,
.studio-guidance .square-pass-panel {
  grid-template-columns: 1fr;
}

.studio-settings .download-card,
.studio-guidance .download-card {
  min-width: 0;
}

.studio-settings .primary-button,
.studio-settings .secondary-button,
.studio-guidance .primary-button,
.studio-guidance .secondary-button {
  font-size: 0.9rem;
  min-height: 40px;
  padding: 8px 14px;
  white-space: normal;
}

.studio-sidebar .large {
  min-height: 48px;
  padding-left: 18px;
  padding-right: 18px;
}

.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: none;
}

.project-setup-panel .builder-studio-layout {
  min-height: 360px;
}

.studio-settings label {
  gap: 6px;
}

.studio-settings label span {
  font-size: 0.82rem;
}

.studio-settings input,
.studio-settings select,
.studio-settings textarea {
  border-radius: 14px;
  font-size: 0.93rem;
  min-height: 42px;
  padding: 0 12px;
}

.studio-settings input[type="color"] {
  min-height: 42px;
  padding: 6px;
}

.studio-settings input[type="range"] {
  min-height: 26px;
  padding: 0;
}

.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-miniCardBorder::before {
  background:
    linear-gradient(90deg, rgba(31, 122, 77, 0.78) 0 5%, transparent 5% 15%, rgba(231, 73, 50, 0.76) 15% 23%, transparent 23% 77%, rgba(15, 163, 168, 0.76) 77% 85%, transparent 85%),
    radial-gradient(circle at 18% 24%, var(--pink) 0 3px, transparent 4px),
    radial-gradient(circle at 82% 30%, var(--yellow) 0 3px, transparent 4px),
    radial-gradient(circle at 18% 70%, var(--board-ribbon) 0 3px, transparent 4px),
    radial-gradient(circle at 82% 76%, var(--board-accent) 0 3px, transparent 4px),
    linear-gradient(135deg, #fff4dc, #ffe9bc);
  border: 1px solid rgba(37, 23, 17, 0.16);
  border-radius: 8px;
}

.preset-swatch.theme-miniCardBorder::after {
  background:
    linear-gradient(#fffaf0, #fff0cf);
  border: 1px solid rgba(17, 17, 17, 0.72);
  border-radius: 3px;
  box-shadow:
    36px 2px 0 -1px #fffaf0,
    36px 2px 0 0 rgba(17, 17, 17, 0.72),
    2px 36px 0 -1px #fffaf0,
    2px 36px 0 0 rgba(17, 17, 17, 0.72),
    36px 38px 0 -1px #fffaf0,
    36px 38px 0 0 rgba(17, 17, 17, 0.72);
  content: "";
  height: 18px;
  left: 9px;
  position: absolute;
  top: 8px;
  transform: rotate(-10deg);
  width: 13px;
}

.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 {
  align-content: start;
  align-items: start;
  display: grid;
  gap: 16px;
  position: sticky;
  top: 112px;
}

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

.studio-settings .cards-sidebar .drop-zone {
  min-height: 176px;
  padding: 14px;
}

.studio-settings .cards-sidebar .drop-art {
  height: 54px;
  margin-bottom: 10px;
  width: 78px;
}

.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;
}

.cards-empty-state {
  align-content: center;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 214, 77, 0.28), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 244, 220, 0.62));
  border: 1px dashed rgba(37, 23, 17, 0.18);
  border-radius: 28px;
  display: grid;
  gap: 22px;
  justify-items: center;
  min-height: 430px;
  padding: 34px;
  text-align: center;
}

.cards-empty-state .empty-board-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(4, 1fr);
  max-width: 250px;
  width: min(62%, 250px);
}

.cards-empty-state .empty-board-grid span {
  aspect-ratio: 2.5 / 3.5;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 237, 201, 0.9)),
    var(--cream);
  border: 1px solid rgba(37, 23, 17, 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 18px rgba(93, 48, 28, 0.08);
}

.cards-empty-state h3 {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0 0 8px;
}

.cards-empty-state p {
  color: #60483a;
  font-weight: 820;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 520px;
}

.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: 16px;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
}

.card-editor {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 24px;
  box-shadow: var(--small-shadow);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.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: 7px;
  margin-top: 0;
}

.card-name-field {
  display: grid;
  gap: 6px;
}

.card-name-field input {
  min-height: 42px;
}

.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: 32px;
  padding: 0 9px;
}

.card-tools button:first-child,
.card-tools button:nth-child(2) {
  font-size: 1rem;
  min-width: 34px;
  padding: 0;
}

.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: 16px;
  margin-top: 0;
  padding: 10px;
}

.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 {
  align-content: start;
  align-items: start;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 22px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 22px;
  padding: 14px;
}

.studio-settings .label-style-panel {
  gap: 10px;
  padding: 12px;
}

.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 {
  align-content: start;
  align-items: start;
  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;
}

.studio-settings .cards-sidebar,
.studio-settings .redesigned-controls {
  position: static;
  top: auto;
}

.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;
}

.studio-settings .board-style-controls h3 {
  font-size: 1.28rem;
}

.studio-settings .board-style-controls {
  padding: 16px;
}

.studio-settings .board-style-head p:not(.eyebrow) {
  font-size: 0.9rem;
}

.studio-settings .design-control-card {
  padding: 12px;
}

.studio-settings .template-section-card,
.studio-settings .text-style-card,
.studio-settings .design-control-card {
  gap: 10px;
  overflow: visible;
  padding: 10px;
}

.studio-settings .template-section-card summary,
.studio-settings .text-style-card summary,
.studio-settings .design-control-card summary {
  gap: 10px;
}

.studio-settings .template-section-card summary strong,
.studio-settings .text-style-card summary strong,
.studio-settings .design-control-card summary strong {
  font-size: 0.95rem;
}

.studio-settings .template-section-card summary small,
.studio-settings .text-style-card summary small,
.studio-settings .design-control-card summary small {
  font-size: 0.78rem;
}

.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;
}

.mini-card-randomizer {
  background:
    linear-gradient(135deg, rgba(255, 214, 77, 0.14), rgba(31, 122, 77, 0.08)),
    rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 16px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.mini-card-randomizer .secondary-button {
  min-height: 42px;
}

.mini-card-randomizer p {
  margin: 0;
}

.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));
}

.studio-settings .text-style-grid {
  gap: 8px;
}

.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;
}

.studio-settings .weight-picker,
.studio-settings .alignment-picker {
  min-height: 40px;
}

.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;
  min-height: 32px;
}

.studio-settings .weight-picker button,
.studio-settings .alignment-picker button {
  font-size: 0.95rem;
}

.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;
}

.studio-settings .color-inline {
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 42px;
  padding: 4px 8px 4px 4px;
}

.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: 10px;
  box-shadow: var(--small-shadow);
  flex: 0 0 116px;
  height: auto;
  object-fit: contain;
  width: 116px;
}

.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;
}

.studio-settings .switch-row {
  border-radius: 14px;
  min-height: 40px;
  padding: 8px;
}

.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;
}

.auth-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98)),
    var(--gallery-canvas);
  color: var(--gallery-ink);
  min-height: 100vh;
}

.auth-page .top-nav {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(21, 17, 15, 0.08);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.auth-page-shell {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.78fr);
  margin: 0 auto;
  max-width: 1200px;
  padding: clamp(24px, 4vw, 48px) 24px 72px;
}

.auth-story-panel,
.auth-page-card {
  background: #fff;
  border: 1px solid rgba(21, 17, 15, 0.1);
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.1);
}

.auth-story-panel {
  border-radius: 18px;
  display: grid;
  gap: 22px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  position: relative;
}

.auth-story-panel::before {
  background: linear-gradient(90deg, var(--loteria-blue), var(--loteria-green), var(--loteria-yellow), var(--loteria-magenta), var(--loteria-red), var(--loteria-purple));
  content: "";
  height: 8px;
  inset: 0 0 auto;
  position: absolute;
}

.auth-story-panel h1 {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(2.35rem, 5.4vw, 5rem);
  letter-spacing: 0;
  line-height: 0.94;
  margin: 0;
  max-width: 12ch;
}

.auth-story-panel > p {
  color: var(--gallery-muted);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  font-weight: 650;
  line-height: 1.5;
  margin: 0;
  max-width: 62ch;
}

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

.auth-feature-grid article {
  background: #f8fafc;
  border: 1px solid rgba(21, 17, 15, 0.08);
  border-left: 5px solid var(--loteria-blue);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-height: 124px;
  padding: 16px;
}

.auth-feature-grid article:nth-child(2) {
  border-left-color: var(--loteria-green);
}

.auth-feature-grid article:nth-child(3) {
  border-left-color: var(--loteria-magenta);
}

.auth-feature-grid article:nth-child(4) {
  border-left-color: var(--loteria-purple);
}

.auth-feature-grid strong {
  color: var(--gallery-ink);
  font-size: 1.02rem;
  font-weight: 950;
}

.auth-feature-grid article > span {
  color: var(--gallery-muted);
  font-size: 0.93rem;
  font-weight: 620;
  line-height: 1.4;
}

.auth-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-proof-row > span {
  background: #fffef9;
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 999px;
  color: var(--gallery-ink);
  font-size: 0.84rem;
  font-weight: 950;
  padding: 9px 12px;
}

.auth-form-panel {
  align-self: start;
  display: grid;
  gap: 10px;
  position: sticky;
  top: 92px;
}

.auth-form-panel > .eyebrow {
  margin-left: 6px;
}

.auth-page .auth-page-card {
  border-radius: 18px;
  max-height: none;
  max-width: 100%;
  overflow: visible;
  width: 100%;
}

.auth-page .auth-page-card h2 {
  font-size: clamp(1.85rem, 3vw, 2.8rem);
}

.auth-page .auth-mode-tabs {
  border-radius: 8px;
  margin-right: 0;
}

.auth-page .auth-mode-tabs button {
  border-radius: 6px;
}

.auth-page .auth-benefit-strip span {
  background: rgba(236, 47, 145, 0.08);
  border-color: rgba(236, 47, 145, 0.18);
  color: #b91d70;
}

@media (max-width: 900px) {
  .auth-page-shell {
    gap: 16px;
    grid-template-columns: 1fr;
    padding: 18px 14px 52px;
  }

  .auth-form-panel {
    order: 1;
    position: static;
  }

  .auth-story-panel {
    order: 2;
    padding: 26px 18px 20px;
  }

  .auth-story-panel h1 {
    font-size: clamp(2rem, 12vw, 3.25rem);
    max-width: 11ch;
  }

  .auth-feature-grid {
    grid-template-columns: 1fr;
  }

  .auth-feature-grid article {
    min-height: auto;
  }

  .auth-proof-row > span {
    flex: 1 1 130px;
    text-align: center;
  }

  .auth-page .auth-page-card {
    border-radius: 16px;
    gap: 12px;
    padding: 20px;
  }
}

.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;
}

.help-launcher {
  align-items: center;
  background:
    linear-gradient(135deg, var(--loteria-magenta, #e93186), var(--loteria-red, #ef3a32));
  border: 0;
  border-radius: 999px;
  bottom: max(18px, env(safe-area-inset-bottom));
  box-shadow: 0 18px 42px rgba(233, 49, 134, 0.28);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 950;
  gap: 8px;
  min-height: 48px;
  padding: 10px 16px 10px 10px;
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  z-index: 920;
}

.help-launcher span {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  color: var(--loteria-magenta, #e93186);
  display: inline-flex;
  font-size: 1rem;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.support-card {
  background:
    radial-gradient(circle at top right, rgba(32, 174, 234, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 241, 0.96));
  border: 1px solid rgba(23, 16, 12, 0.1);
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(22, 13, 8, 0.2);
  display: grid;
  gap: 18px;
  max-width: min(1040px, calc(100vw - 32px));
  overflow-y: auto;
  padding: clamp(20px, 3vw, 30px);
  position: relative;
  width: 100%;
}

.support-conversation-center {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(23, 16, 12, 0.1);
  border-radius: 22px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
  padding: 14px;
}

.support-thread-list,
.support-thread-view,
.support-message-list,
.support-thread-reply,
.admin-support-thread,
.admin-support-reply {
  display: grid;
  gap: 10px;
}

.support-thread-list > button {
  background: #fff;
  border: 1px solid rgba(23, 16, 12, 0.1);
  border-radius: 14px;
  color: var(--ink, #17100c);
  cursor: pointer;
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  text-align: left;
}

.support-thread-list > button.active {
  background: #f7f3ff;
  border-color: #b9a4eb;
  box-shadow: inset 3px 0 #7654c9;
}

.support-thread-list small,
.support-thread-heading small,
.support-message time {
  color: var(--muted, #60483a);
  display: block;
  font-size: 0.72rem;
}

.support-thread-heading {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.support-message-list,
.admin-support-thread {
  max-height: 330px;
  overflow-y: auto;
  padding: 4px;
}

.support-message {
  background: #f4f6f8;
  border: 1px solid #e2e7ec;
  border-radius: 15px 15px 15px 4px;
  justify-self: start;
  max-width: min(88%, 680px);
  padding: 11px 13px;
}

.support-message.admin {
  background: #f7f3ff;
  border-color: #ded4f4;
  border-radius: 15px 15px 4px 15px;
  justify-self: end;
}

.support-message p {
  margin: 4px 0 7px;
  white-space: pre-wrap;
}

.support-thread-reply textarea,
.admin-support-reply textarea {
  min-height: 86px;
}

.support-thread-reply .primary-button,
.admin-support-reply .primary-button {
  justify-self: end;
}

.support-new-request-divider {
  align-items: center;
  color: var(--muted, #60483a);
  display: flex;
  font-size: 0.75rem;
  font-weight: 950;
  gap: 12px;
  text-transform: uppercase;
}

.support-new-request-divider::before,
.support-new-request-divider::after {
  background: rgba(23, 16, 12, 0.12);
  content: "";
  flex: 1;
  height: 1px;
}

.support-new-request-form {
  display: grid;
  gap: 16px;
}

.admin-support-thread {
  background: #f8fafc;
  border: 1px solid var(--admin-line, #dbe2ea);
  border-radius: 12px;
  padding: 12px;
}

.admin-support-reply textarea {
  background: #fff;
  border: 1px solid var(--admin-line, #dbe2ea);
  border-radius: 10px;
  color: var(--admin-ink, #172033);
  font: inherit;
  padding: 12px;
  resize: vertical;
  width: 100%;
}

@media (max-width: 760px) {
  .support-conversation-center,
  .support-grid {
    grid-template-columns: 1fr;
  }
  .support-thread-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .support-thread-list > strong {
    grid-column: 1 / -1;
  }
}

.support-card-header {
  max-width: 660px;
  padding-right: 48px;
}

.support-card h2 {
  color: var(--ink, #17100c);
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 0.92;
  margin: 0;
}

.support-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
}

.support-form-fields,
.support-help-panel {
  display: grid;
  gap: 12px;
}

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

.support-card label {
  display: grid;
  gap: 7px;
}

.support-card label > span {
  color: var(--muted, #60483a);
  font-size: 0.78rem;
  font-weight: 950;
}

.support-card input,
.support-card select,
.support-card textarea {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 16, 12, 0.12);
  border-radius: 16px;
  color: var(--ink, #17100c);
  font: inherit;
  font-weight: 700;
  padding: 12px 14px;
  width: 100%;
}

.support-card textarea {
  min-height: 132px;
  resize: vertical;
}

.support-checkbox {
  align-items: center;
  background: rgba(32, 174, 234, 0.08);
  border: 1px solid rgba(32, 174, 234, 0.18);
  border-radius: 16px;
  display: flex !important;
  gap: 10px !important;
  padding: 12px 14px;
}

.support-checkbox input {
  min-height: auto;
  width: auto;
}

.support-honeypot {
  height: 0 !important;
  opacity: 0;
  overflow: hidden;
  padding: 0 !important;
  pointer-events: none;
  position: absolute;
  width: 0 !important;
}

.support-help-panel {
  align-content: start;
  background:
    linear-gradient(160deg, rgba(255, 205, 55, 0.18), rgba(31, 157, 88, 0.1));
  border: 1px solid rgba(23, 16, 12, 0.1);
  border-radius: 22px;
  padding: 16px;
}

.support-help-panel strong {
  color: var(--ink, #17100c);
  font-size: 1.05rem;
}

.support-help-panel a {
  color: var(--loteria-green, #1f9d58);
  font-weight: 950;
  text-decoration: none;
}

.support-help-panel small,
.support-status {
  color: var(--muted, #60483a);
  font-weight: 850;
}

.support-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.support-status {
  background: rgba(31, 157, 88, 0.08);
  border: 1px solid rgba(31, 157, 88, 0.14);
  border-radius: 16px;
  margin: 0;
  padding: 12px 14px;
}

.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-consent-stack {
  display: grid;
  gap: 10px;
}

.auth-consent-row {
  align-items: start;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 16px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr;
  padding: 12px 14px;
}

.auth-consent-row.required {
  background:
    linear-gradient(135deg, rgba(255, 214, 77, 0.18), rgba(255, 255, 255, 0.7));
}

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

.auth-consent-row span {
  color: #4f382c;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.4;
}

.auth-consent-row button {
  background: transparent;
  border: 0;
  color: var(--loteria-red, #d5251f);
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  padding: 0;
  text-decoration: underline;
}

.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,
.square-pass-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,
.square-pass-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,
.square-pass-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,
.square-pass-panel div {
  display: grid;
  gap: 4px;
}

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

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

.access-code-panel strong,
.square-pass-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;
}

.square-pass-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px !important;
}

.square-pass-actions button {
  min-height: 42px;
}

.maker-checkout-page { min-height:100vh; padding:0 24px 56px; background:#faf8f5; color:#211d29; }
.maker-checkout-nav { max-width:1084px; margin:auto; padding:26px 0; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.maker-checkout-nav > a { display:flex; align-items:center; gap:10px; color:#211d29; text-decoration:none; font-size:16px; font-weight:850; }
.maker-checkout-nav img { width:34px; height:34px; border-radius:8px; }
.maker-checkout-layout { max-width:1084px; margin:8px auto 0; display:grid; grid-template-columns:1fr 1fr; border:1px solid #e8e2eb; border-radius:26px; overflow:hidden; background:white; box-shadow:0 16px 60px #38224b08; }
.maker-checkout-story { padding:36px; background:linear-gradient(145deg,#fff9ed,#faf0f5); min-width:0; }
.maker-checkout-page .eyebrow { color:#9c245a; font-size:11px; letter-spacing:.13em; font-weight:850; }
.maker-checkout-story h1 { font-size:clamp(28px,3vw,38px); line-height:1.12; letter-spacing:-.04em; margin:14px 0; color:#211d29; }
.maker-checkout-story > p { font-size:15px; line-height:1.6; color:#68596a; margin:0 0 24px; }
.maker-checkout-story figure { margin:0 0 24px; border-radius:18px; overflow:hidden; border:1px solid #eadde2; background:#fff9f1; }
.maker-checkout-story figure img { width:100%; height:215px; object-fit:cover; object-position:75% center; display:block; }
.maker-checkout-story figcaption { font-size:11px; padding:8px 12px; color:#6d5964; }
.maker-checkout-includes h2 { font-size:17px; margin:0 0 16px; }
.maker-checkout-includes ul { list-style:none; padding:0; margin:0; display:grid; gap:14px; }
.maker-checkout-includes li { display:grid; gap:3px; padding-left:24px; position:relative; }
.maker-checkout-includes li:before { content:'✓'; position:absolute; left:0; top:0; color:#26805e; font-weight:800; }
.maker-checkout-includes strong { font-size:14px; }
.maker-checkout-includes li span { font-size:13px; line-height:1.5; color:#68596a; }
.maker-checkout-buy { min-width:0; padding:36px; }
.maker-checkout-buy h2 { font-size:28px; line-height:1.15; margin:12px 0 16px; }
.maker-checkout-buy > .maker-price,.maker-checkout-buy > .maker-price-plain { font-size:28px; }
.maker-checkout-price-note,.maker-checkout-destination,.maker-checkout-provider-note,.maker-checkout-security { font-size:13px; line-height:1.6; color:#716273; }
.maker-checkout-destination { padding:12px 0 18px; border-bottom:1px solid #eee7ed; overflow-wrap:anywhere; }
.maker-checkout-methods { border:0; padding:0; margin:20px 0; display:grid; gap:10px; min-width:0; }
.maker-checkout-methods legend { font-size:14px; font-weight:800; margin-bottom:12px; }
.maker-checkout-methods label { display:flex; align-items:center; gap:12px; padding:15px; border:1px solid #e8e2eb; border-radius:12px; cursor:pointer; background:#fff; }
.maker-checkout-methods label.selected { border-color:#ac185d; background:#fdf6fa; box-shadow:0 0 0 1px #ac185d; }
.maker-checkout-methods label:has(input:disabled) { opacity:.6; cursor:default; }
.maker-checkout-methods input { accent-color:#ac185d; width:18px; height:18px; flex:0 0 auto; margin:0; }
.maker-checkout-methods label > span { display:grid; gap:4px; min-width:0; }
.maker-checkout-methods strong { display:flex; align-items:center; flex-wrap:wrap; gap:10px; font-size:15px; }
.maker-checkout-methods strong small { font-size:10px; color:#8a1d50; background:#f5e3ed; padding:3px 7px; border-radius:20px; }
.maker-checkout-methods label > span > span { color:#716273; font-size:12px; }
.maker-payment-lock { width:13px; height:13px; vertical-align:-2px; margin-right:5px; }
.maker-checkout-methods .maker-payment-icons { display:flex; flex-wrap:wrap; align-items:center; gap:5px; margin:5px 0 2px; }
.maker-payment-icons > img,.maker-payment-icons > span { flex:0 0 auto; height:24px; border:1px solid #e8e2eb; border-radius:4px; background:#fff; box-sizing:border-box; }
.maker-payment-icons > img { width:34px; object-fit:contain; }
.maker-payment-icons > span { display:inline-flex; align-items:center; gap:3px; padding:2px 5px; font-size:10px; font-weight:700; color:#403549; }
.maker-payment-icons svg { width:14px; height:14px; }
.maker-checkout-methods label > span > .maker-payment-availability { font-size:10px; font-weight:400; line-height:1.5; }
.maker-checkout-continue { width:100%; justify-content:center; text-align:center; background:#ac185d; color:#fff; border:0; border-radius:12px; padding:16px; font-size:15px; }
.maker-checkout-security { font-size:12px; text-align:center; margin:18px 0; }
.maker-checkout-message { border:1px solid #e8e2eb; background:#faf8fc; padding:14px; font-size:13px; border-radius:12px; overflow-wrap:anywhere; }
.maker-checkout-back { color:#831746; font-size:13px; }
@media(max-width:760px) { .maker-checkout-page{padding:0 12px 32px}.maker-checkout-nav{padding:18px 8px}.maker-checkout-layout{grid-template-columns:1fr;border-radius:20px}.maker-checkout-story,.maker-checkout-buy{padding:24px}.maker-checkout-story h1{font-size:28px}.maker-checkout-story figure img{height:150px}.maker-checkout-includes ul{grid-template-columns:1fr 1fr;gap:14px}.maker-checkout-includes li span{font-size:12px}.maker-checkout-story > p{font-size:14px}.maker-checkout-nav > a{font-size:14px} }
@media(max-width:370px) { .maker-checkout-includes ul{grid-template-columns:1fr}.maker-checkout-story,.maker-checkout-buy{padding:20px} }

.project-pass-checkout-layer {
  background: rgba(5, 29, 35, 0.76);
  backdrop-filter: blur(18px);
}

.project-pass-checkout-card {
  --checkout-dark: #052f36;
  --checkout-dark-2: #0d5158;
  --checkout-paper: #fffaf0;
  --checkout-gold: #f4b63f;
  --checkout-red: #d33227;
  --checkout-teal: #117d76;
  --checkout-pink: #d84f78;
  background:
    radial-gradient(circle at 10% 14%, rgba(244, 182, 63, 0.2), transparent 18rem),
    radial-gradient(circle at 92% 18%, rgba(216, 79, 120, 0.18), transparent 22rem),
    radial-gradient(circle at 18% 90%, rgba(41, 189, 242, 0.16), transparent 18rem),
    linear-gradient(135deg, var(--checkout-dark), var(--checkout-dark-2));
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 30px;
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.44);
  color: var(--checkout-paper);
  max-height: calc(100vh - 24px);
  max-width: min(1080px, calc(100vw - 24px));
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  width: 100%;
}

.project-pass-checkout-card::before {
  background: linear-gradient(90deg, var(--checkout-red), var(--checkout-gold), var(--checkout-teal), var(--checkout-pink), #2f7749);
  content: "";
  height: 10px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}

.project-pass-checkout-card .modal-close {
  background: rgba(255, 250, 240, 0.12);
  border-color: rgba(255, 250, 240, 0.18);
  color: var(--checkout-paper);
  z-index: 3;
}

.project-pass-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  min-height: 620px;
}

.project-pass-checkout-summary {
  border-right: 1px solid rgba(255, 250, 240, 0.12);
  display: grid;
  gap: 18px;
  align-content: center;
  padding: 44px 38px 38px;
}

.project-pass-checkout-summary .eyebrow {
  color: var(--checkout-gold);
  font-size: 0.82rem;
  font-weight: 1000;
  letter-spacing: 0.09em;
  margin: 0;
  text-transform: uppercase;
}

.project-pass-checkout-summary h2 {
  color: var(--checkout-paper);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.4rem, 4.3vw, 4.35rem);
  font-weight: 980;
  letter-spacing: 0;
  line-height: 0.86;
  margin: 0;
}

.project-pass-checkout-summary > p {
  color: rgba(255, 250, 240, 0.76);
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.55;
  margin: 0;
}

.project-pass-price-card {
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.12);
  border-left: 5px solid var(--checkout-gold);
  border-radius: 18px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
}

.project-pass-price-card > span:first-child {
  color: var(--checkout-gold);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-pass-payment-head > span:first-child,
.project-pass-choice-copy > span {
  color: #ad2118;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-pass-price-card strong {
  color: var(--checkout-paper);
  font-size: 2.8rem;
  line-height: 1;
}

.project-pass-price-card small {
  color: rgba(255, 250, 240, 0.68);
  font-weight: 850;
}

.project-pass-trust-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-pass-trust-list li {
  color: rgba(255, 250, 240, 0.82);
  font-size: 0.94rem;
  font-weight: 780;
  line-height: 1.42;
  padding-left: 28px;
  position: relative;
}

.project-pass-trust-list li::before {
  background: var(--checkout-teal);
  border-radius: 999px;
  color: var(--checkout-paper);
  content: "✓";
  display: inline-grid;
  font-size: 0.72rem;
  font-weight: 950;
  height: 16px;
  left: 0;
  place-items: center;
  position: absolute;
  top: 2px;
  width: 16px;
}

.project-pass-payment-panel {
  background: rgba(255, 250, 240, 0.96);
  color: var(--gallery-ink);
  display: grid;
  gap: 14px;
  align-content: center;
  padding: 42px 38px 36px;
}

.project-pass-payment-head {
  align-items: end;
  display: flex;
  justify-content: space-between;
}

.project-pass-payment-head strong {
  color: var(--loteria-red);
  font-size: 2rem;
  line-height: 1;
}

.project-pass-payment-choice {
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 20px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.square-choice {
  background:
    radial-gradient(circle at 96% 4%, rgba(41, 189, 242, 0.13), transparent 9rem),
    #fff;
  border-color: rgba(41, 189, 242, 0.22);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.etsy-choice {
  background:
    radial-gradient(circle at 0 0, rgba(228, 58, 46, 0.1), transparent 8rem),
    rgba(255, 255, 255, 0.72);
  grid-template-columns: minmax(0, 1fr) auto;
}

.project-pass-choice-copy {
  display: grid;
  gap: 5px;
}

.project-pass-choice-copy h3 {
  color: var(--gallery-ink);
  font-size: 1.15rem;
  line-height: 1.05;
  margin: 0;
}

.project-pass-choice-copy p {
  color: var(--gallery-muted);
  font-size: 0.92rem;
  font-weight: 720;
  line-height: 1.4;
  margin: 0;
}

.square-card-shell {
  background: rgba(248, 250, 252, 0.86);
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 16px;
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 14px;
}

.square-card-shell.loading,
.square-card-shell.error,
.square-card-shell.handoff {
  align-items: center;
}

.square-card-shell.handoff {
  background:
    linear-gradient(135deg, rgba(41, 189, 242, 0.1), rgba(255, 211, 51, 0.12)),
    rgba(248, 250, 252, 0.94);
}

.square-card-shell p {
  color: var(--gallery-muted);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.38;
  margin: 0;
}

.square-card-container {
  min-height: 88px;
}

.full-width-button {
  justify-content: center;
  min-height: 52px;
  width: 100%;
}

.project-pass-text-button {
  background: transparent;
  border: 0;
  color: var(--loteria-blue);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 950;
  justify-self: center;
  padding: 0;
  text-decoration: none;
}

.project-pass-etsy-link {
  align-self: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(228, 58, 46, 0.2);
  border-radius: 999px;
  color: var(--loteria-red);
  font-size: 0.88rem;
  font-weight: 950;
  padding: 10px 14px;
  text-decoration: none;
  white-space: nowrap;
}

.project-pass-checkout-message {
  background: rgba(255, 211, 51, 0.16);
  border: 1px solid rgba(255, 211, 51, 0.28);
  border-radius: 14px;
  color: #4f382b;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.35;
  margin: 0;
  padding: 10px 12px;
}

.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;
}

.account-page .profile-form {
  align-items: stretch;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
}

.account-page .profile-form > button,
.account-preference-card,
.account-legal-receipt {
  grid-column: 1 / -1;
}

.account-preference-card,
.account-legal-receipt {
  background:
    radial-gradient(circle at 96% 0%, rgba(41, 189, 242, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 18px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.account-preference-card {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
}

.account-preference-card p,
.account-legal-receipt small {
  color: #60483a;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.account-legal-receipt {
  grid-template-columns: minmax(100px, 0.35fr) minmax(120px, 0.3fr) minmax(0, 1fr);
}

.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: 1120px) {
  .builder-studio-layout {
    grid-template-columns: minmax(320px, 0.4fr) minmax(0, 1fr);
  }

  .studio-guidance {
    border-left: 0;
    border-top: 1px solid rgba(37, 23, 17, 0.08);
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: static;
  }

  .studio-guidance .studio-action-row {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-download-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .hero,
  .two-column,
  .seo-landing-hero,
  .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));
  }

  .builder-studio-layout {
    grid-template-columns: 1fr;
  }

  .studio-settings,
  .studio-guidance {
    border-left: 0;
    border-right: 0;
    position: static;
  }

  .studio-settings {
    border-bottom: 1px solid rgba(37, 23, 17, 0.08);
  }

  .studio-guidance {
    grid-template-columns: 1fr;
  }

  .studio-guidance .studio-action-row {
    grid-template-columns: 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,
  .seo-content-grid,
  .seo-related-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,
  .nav-links > .nav-dropdowns {
    justify-content: center;
    width: 100%;
  }

  .nav-dropdowns {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .nav-dropdown summary {
    justify-content: center;
    width: 100%;
  }

  .nav-dropdown-menu {
    box-shadow: none;
    margin-top: 7px;
    min-width: 0;
    position: static;
    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,
  .square-pass-panel,
	  .admin-code-card,
	  .landing-content-manager,
	  .landing-editor-grid,
	  .statement-image-slots,
	  .profile-form,
    .account-page .profile-form,
    .account-preference-card,
    .account-legal-receipt,
	  .project-row,
	  .admin-row,
    .seo-content-grid,
    .seo-related-grid,
    .seo-faq-grid,
	  .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;
  }

  .studio-panel-header {
    align-items: stretch;
    flex-direction: column;
    padding: 22px 18px;
  }

  .builder-studio-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .studio-settings,
  .studio-guidance {
    border-left: 0;
    border-right: 0;
    position: static;
  }

  .studio-settings {
    border-bottom: 1px solid rgba(37, 23, 17, 0.08);
  }

  .studio-guidance {
    border-top: 1px solid rgba(37, 23, 17, 0.08);
    grid-template-columns: 1fr;
  }

  .studio-sidebar,
  .studio-main {
    padding: 18px;
  }

  .studio-action-row,
  .studio-download-grid {
    grid-template-columns: 1fr;
  }

  .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;
  }
}

.ai-style-panel,
.ai-glow-panel,
.ai-token-pill,
.ai-token-balance-card,
.ai-compare-card,
.ai-token-modal {
  border: 1px solid rgba(36, 19, 14, 0.12);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 248, 232, 0.94), rgba(235, 250, 248, 0.9));
  box-shadow: 0 18px 45px rgba(74, 38, 20, 0.08);
}

.ai-style-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.compact-settings-card.label-style-panel {
  display: block;
  margin-bottom: 0;
  padding: 0;
}

.compact-settings-card summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 14px;
}

.compact-settings-card summary::-webkit-details-marker {
  display: none;
}

.compact-settings-card summary::after {
  color: #8d6251;
  content: "⌄";
  font-size: 1.1rem;
  font-weight: 1000;
}

.compact-settings-card[open] summary::after {
  transform: rotate(180deg);
}

.compact-settings-card summary span {
  display: grid;
  gap: 2px;
}

.compact-settings-card summary strong {
  color: #2a1711;
  font-weight: 1000;
}

.compact-settings-card summary small {
  color: #745246;
  font-weight: 850;
}

.compact-settings-body {
  border-top: 1px solid rgba(36, 19, 14, 0.08);
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
}

.generated-text-options {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(36, 19, 14, 0.08);
  border-radius: 14px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.generated-text-options .switch-row {
  background: #fffdfa;
  border: 1px solid rgba(36, 19, 14, 0.07);
  border-radius: 12px;
  min-height: 40px;
  padding: 8px 10px;
}

.ai-glow-panel {
  align-items: center;
  background:
    radial-gradient(circle at 6% 12%, rgba(255, 214, 77, 0.26), transparent 28%),
    radial-gradient(circle at 86% 86%, rgba(20, 141, 160, 0.15), transparent 34%),
    linear-gradient(135deg, #fff8e6, #fffdf7 48%, #f4fbf4);
  display: grid;
  gap: 18px 22px;
  grid-template-columns: minmax(0, 0.95fr) minmax(230px, 0.6fr) minmax(280px, 0.72fr);
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.cards-studio-panel .ai-glow-panel {
  align-items: center;
  border: 1px solid rgba(77, 45, 28, 0.12);
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(72, 38, 16, 0.12);
  grid-template-columns: minmax(260px, 0.9fr) minmax(210px, 0.56fr) minmax(260px, 0.72fr);
  padding: 18px;
}

.cards-studio-panel .ai-glow-copy {
  display: block;
}

.cards-studio-panel .ai-glow-copy h3 {
  font-size: clamp(1.45rem, 2.4vw, 2.45rem);
}

.cards-studio-panel .ai-glow-copy p {
  font-size: 0.94rem;
}

.cards-studio-panel .ai-glow-demo {
  margin-top: 0;
}

.ai-glow-panel::before {
  background:
    linear-gradient(135deg, #b42318 0 18%, transparent 18% 32%, #ffd64d 32% 50%, transparent 50% 64%, #148da0 64% 82%, transparent 82%);
  content: "";
  height: 116px;
  opacity: 0.16;
  position: absolute;
  right: -30px;
  top: -34px;
  transform: rotate(-8deg);
  width: 250px;
}

.ai-glow-copy {
  position: relative;
  z-index: 1;
}

.ai-glow-kicker {
  color: #b42318;
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 1000;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.ai-glow-copy h3 {
  color: #24130e;
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2.5rem);
  line-height: 1;
  margin: 0 0 8px;
}

.ai-glow-copy p {
  color: #60483a;
  font-weight: 820;
  line-height: 1.45;
  margin: 0;
  max-width: 720px;
}

.ai-glow-demo {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.ai-demo-card {
  background: #fff4dc;
  border: 2px solid rgba(255, 250, 240, 0.9);
  border-radius: 20px;
  box-shadow: 0 20px 38px rgba(36, 19, 14, 0.16);
  overflow: hidden;
  padding: 8px;
  transform: rotate(-4deg);
  width: clamp(82px, 8vw, 118px);
}

.ai-demo-card img,
.ai-demo-card span {
  aspect-ratio: 2.5 / 3.5;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(20, 12, 8, 0.68);
  border-radius: 12px 12px 4px 4px;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.ai-demo-card b {
  background: #fff4dc;
  border-top: 1px solid rgba(20, 12, 8, 0.72);
  color: #24130e;
  display: block;
  font-size: 0.72rem;
  font-weight: 1000;
  line-height: 1.05;
  padding: 8px 4px 2px;
  text-align: center;
  text-transform: uppercase;
}

.ai-demo-card.illustrated {
  border-color: rgba(255, 214, 111, 0.95);
  transform: rotate(4deg);
}

.ai-demo-arrow {
  align-items: center;
  background: linear-gradient(135deg, #ffd64d, #e84a7a, #148da0);
  border: 3px solid rgba(255, 250, 240, 0.92);
  border-radius: 999px;
  box-shadow: 0 14px 26px rgba(36, 19, 14, 0.18);
  color: #fffaf0;
  display: flex;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 1000;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.ai-demo-frame {
  align-items: center;
  aspect-ratio: 2.5 / 3.5;
  border: 2px solid rgba(36, 19, 14, 0.2);
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(36, 19, 14, 0.1);
  display: grid;
  justify-items: center;
  overflow: hidden;
  position: relative;
  width: 74px;
}

.ai-demo-frame.original {
  background: #fffaf0;
}

.ai-demo-frame.original img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.ai-demo-frame.original span {
  color: #60483a;
  font-size: 0.78rem;
  font-weight: 950;
}

.ai-demo-frame.illustrated {
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 214, 77, 0.9), transparent 24%),
    linear-gradient(145deg, #e84a7a, #f7b84b 48%, #148da0);
  color: #fffaf0;
  padding: 8px;
  text-align: center;
}

.ai-demo-frame.illustrated i {
  background:
    radial-gradient(circle at 50% 34%, #fffaf0 0 13%, transparent 14%),
    linear-gradient(#24130e 0 0) center 68% / 50% 12% no-repeat;
  border-radius: 999px;
  display: block;
  height: 34px;
  opacity: 0.9;
  width: 34px;
}

.ai-demo-frame.illustrated strong {
  font-size: 0.66rem;
  line-height: 1;
  text-transform: uppercase;
}

.ai-glow-controls {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  position: relative;
  z-index: 1;
}

.ai-glow-toolbar {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.ai-control-group {
  display: grid;
  gap: 7px;
}

.ai-control-group > span {
  color: #60483a;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.ai-glow-controls button {
  min-height: 44px;
}

.ai-refresh-button {
  min-height: 38px !important;
  padding-inline: 14px !important;
}

.ai-style-pills,
.ai-quality-toggle {
  background: rgba(36, 19, 14, 0.06);
  border: 1px solid rgba(36, 19, 14, 0.08);
  border-radius: 18px;
  display: grid;
  gap: 6px;
  padding: 5px;
}

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

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

.ai-style-pills button,
.ai-quality-toggle button {
  background: transparent;
  border: 0;
  border-radius: 13px;
  color: #60483a;
  font-size: 0.78rem;
  font-weight: 950;
  min-height: 38px;
  padding: 8px 9px;
}

.ai-style-pills button.active,
.ai-quality-toggle button.active {
  background: #fffdf7;
  box-shadow: 0 10px 20px rgba(89, 37, 21, 0.12);
  color: #24130e;
}

.ai-quality-toggle small {
  background: rgba(180, 35, 24, 0.1);
  border-radius: 999px;
  color: #b42318;
  display: inline-block;
  font-size: 0.68rem;
  margin-left: 4px;
  padding: 1px 6px;
}

.ai-more-style {
  min-height: 38px;
}

.ai-main-cta {
  width: 100%;
}

.ai-credit-note {
  color: #60483a;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.35;
  margin: 10px 0 0;
}

.ai-token-pill {
  align-content: center;
  background: rgba(255, 253, 247, 0.84);
  border: 1px solid rgba(36, 19, 14, 0.1);
  border-radius: 18px;
  display: grid;
  min-height: 46px;
  padding: 8px 12px;
}

.ai-token-pill strong {
  color: #b42318;
  font-size: 1.35rem;
  line-height: 1;
}

.ai-token-pill span {
  color: #60483a;
  font-size: 0.72rem;
  font-weight: 950;
}

.ai-bulk-bar {
  align-items: center;
  background: rgba(27, 116, 97, 0.08);
  border: 1px solid rgba(27, 116, 97, 0.14);
  border-radius: 18px;
  display: flex;
  gap: 10px;
  grid-column: 1 / -1;
  justify-content: space-between;
  padding: 10px;
}

.ai-bulk-bar span {
  color: #3c251d;
  font-weight: 950;
}

.ai-style-panel label,
.ai-token-modal label {
  display: grid;
  gap: 6px;
}

.ai-style-panel select,
.ai-token-modal select,
.ai-token-modal textarea,
.ai-token-modal input {
  min-width: 0;
  width: 100%;
}

.sparkle-button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #b42318, #e84a7a 45%, #148da0);
  color: #fffdf7;
  cursor: pointer;
  font-weight: 900;
  padding: 10px 14px;
  box-shadow: 0 14px 30px rgba(180, 35, 24, 0.18);
}

.sparkle-button.compact {
  box-shadow: none;
  padding: 9px 13px;
}

.sparkle-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.ai-card-tools {
  background: linear-gradient(135deg, rgba(255, 214, 77, 0.16), rgba(20, 141, 160, 0.12));
  border: 1px solid rgba(36, 19, 14, 0.08);
  border-radius: 16px;
  display: grid;
  gap: 8px;
  margin-top: 0;
  padding: 8px;
}

.ai-select-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  display: flex;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.1;
  padding: 6px 8px;
}

.ai-card-tools .sparkle-button {
  font-size: 0.84rem;
  line-height: 1.1;
  min-height: 38px;
  padding: 8px 10px;
}

.ai-generation-progress {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(98, 70, 217, 0.24);
  border-left: 6px solid var(--loteria-purple);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
  display: grid;
  gap: 14px;
  grid-template-columns: 42px minmax(0, 1fr);
  margin: 0 0 16px;
  padding: 14px 16px;
}

.ai-generation-progress strong,
.ai-generation-progress p,
.ai-generation-progress small {
  display: block;
  margin: 0;
}

.ai-generation-progress strong {
  color: var(--gallery-ink);
  font-size: 1rem;
  font-weight: 950;
}

.ai-generation-progress p {
  color: #4b3f65;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
  margin-top: 3px;
}

.ai-generation-progress small {
  color: #665f73;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 5px;
}

.ai-progress-spinner {
  animation: ai-progress-spin 850ms linear infinite;
  border: 4px solid rgba(98, 70, 217, 0.16);
  border-radius: 50%;
  border-top-color: var(--loteria-purple);
  height: 34px;
  width: 34px;
}

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

@media (prefers-reduced-motion: reduce) {
  .ai-progress-spinner {
    animation-duration: 1800ms;
  }
}

.ai-compare-card {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  padding: 12px;
}

.ai-compare-card div {
  min-width: 0;
}

.ai-compare-card span {
  color: #6f5146;
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.ai-compare-card img {
  aspect-ratio: 5 / 7;
  border: 2px solid #16100d;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.ai-preview-zoom-button {
  background: transparent;
  border: 0;
  cursor: zoom-in;
  display: block;
  padding: 0;
  width: 100%;
}

.ai-preview-zoom-button img {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.ai-preview-zoom-button:hover img {
  box-shadow: 0 16px 35px rgba(36, 19, 14, 0.2);
  transform: translateY(-2px);
}

.ai-compare-actions {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
}

.ai-token-backdrop {
  align-items: center;
  background: rgba(28, 15, 10, 0.46);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 80;
}

.ai-token-modal {
  max-height: min(760px, 92vh);
  max-width: 720px;
  overflow: auto;
  padding: 26px;
  position: relative;
  width: min(720px, 100%);
}

.ai-preview-lightbox {
  align-items: center;
  background: rgba(28, 15, 10, 0.58);
  cursor: zoom-out;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 90;
}

.ai-preview-lightbox-card {
  background: #fffaf0;
  border: 1px solid rgba(36, 19, 14, 0.15);
  border-radius: 28px;
  box-shadow: 0 32px 90px rgba(20, 9, 5, 0.32);
  cursor: default;
  display: grid;
  gap: 14px;
  max-height: 92vh;
  max-width: min(540px, 92vw);
  padding: 18px;
  position: relative;
  width: min(540px, 92vw);
}

.ai-preview-lightbox-card img {
  aspect-ratio: 5 / 7;
  border: 3px solid #16100d;
  border-radius: 20px;
  object-fit: cover;
  width: 100%;
}

.ai-preview-lightbox-card div {
  display: grid;
  gap: 3px;
}

.ai-preview-lightbox-card strong {
  color: #24130e;
  font-size: 1.1rem;
}

.ai-preview-lightbox-card span {
  color: #6f5146;
  font-weight: 900;
}

.modal-close {
  align-items: center;
  border: 1px solid rgba(36, 19, 14, 0.15);
  border-radius: 999px;
  background: #fffaf0;
  cursor: pointer;
  display: grid;
  font-size: 1.4rem;
  font-weight: 900;
  height: 38px;
  place-items: center;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 38px;
}

.ai-token-balance-card {
  align-items: baseline;
  display: flex;
  gap: 10px;
  margin: 16px 0;
  padding: 14px 16px;
}

.ai-token-balance-card strong {
  color: #b42318;
  font-size: 2rem;
}

.ai-pack-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-pack-card {
  border: 1px solid rgba(36, 19, 14, 0.12);
  border-radius: 18px;
  background: #fffdf7;
  cursor: pointer;
  display: grid;
  gap: 6px;
  padding: 16px;
  text-align: left;
}

.ai-pack-card strong {
  color: #148da0;
  font-size: 1.2rem;
}

.ai-pack-card em {
  color: #b42318;
  font-style: normal;
  font-weight: 900;
}

.ai-admin-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.6fr);
}

.ai-admin-panel textarea {
  min-height: 180px;
  resize: vertical;
}

@media (max-width: 760px) {
  .ai-glow-panel {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .ai-glow-controls {
    grid-template-columns: 1fr;
  }

  .ai-glow-demo {
    justify-content: center;
  }

  .cards-studio-panel .ai-glow-copy {
    display: block;
  }

  .cards-studio-panel .ai-glow-demo {
    margin-top: 14px;
  }

  .cards-studio-panel .ai-demo-frame {
    width: 74px;
  }

  .ai-credit-note {
    grid-column: auto;
  }

  .ai-pack-grid,
  .ai-admin-workspace {
    grid-template-columns: 1fr;
  }
}

/* Commerce and selling experience */
.ghost-link {
  align-items: center;
  border-radius: 999px;
  color: var(--studio-ink, #24130e);
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  text-decoration: none;
}

.ghost-link:hover {
  background: rgba(36, 19, 14, 0.06);
}

.lm-commerce-strip {
  background:
    linear-gradient(135deg, rgba(255, 250, 236, 0.96), rgba(240, 248, 238, 0.78)),
    #fff7e7;
  border-block: 1px solid rgba(103, 65, 45, 0.12);
  padding: clamp(24px, 3.2vw, 42px) clamp(18px, 5vw, 72px);
}

.lm-commerce-strip .lm-section-head {
  margin: 0 auto 16px;
  max-width: 980px;
  text-align: center;
}

.lm-commerce-strip .lm-section-head h2 {
  font-size: clamp(1.85rem, 3.2vw, 3.4rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin-bottom: 8px;
}

.lm-commerce-strip .lm-section-head p:not(.lm-kicker) {
  font-size: 0.98rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 660px;
}

.commerce-offer-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1080px;
}

.commerce-offer-card {
  background: rgba(255, 252, 244, 0.92);
  border: 1px solid rgba(89, 54, 35, 0.14);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(67, 38, 22, 0.08);
  display: grid;
  gap: 8px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.commerce-offer-card::before {
  background: var(--studio-red, #b42318);
  border-radius: 999px;
  content: "";
  height: 8px;
  left: 24px;
  position: absolute;
  right: 24px;
  top: 16px;
}

.commerce-offer-card.offer-2::before {
  background: linear-gradient(90deg, #d92872, #168aad);
}

.commerce-offer-card.offer-3::before {
  background: var(--studio-green, #1f6f4c);
}

.commerce-offer-card span {
  color: rgba(61, 39, 28, 0.72);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  margin-top: 6px;
  text-transform: uppercase;
}

.commerce-offer-card strong {
  color: var(--studio-ink, #24130e);
  font-size: clamp(1.35rem, 2.8vw, 2.2rem);
  letter-spacing: -0.015em;
  line-height: 1;
}

.commerce-offer-card p {
  color: rgba(61, 39, 28, 0.78);
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.35;
  margin: 0;
}

.commerce-offer-card .primary-button,
.commerce-offer-card .secondary-button {
  min-height: 38px;
  padding: 0 14px;
}

.lm-payment-flow {
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(239, 249, 246, 0.86)),
    #fffaf0;
  border: 1px solid rgba(89, 54, 35, 0.12);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(67, 38, 22, 0.07);
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px auto 0;
  max-width: 1080px;
  padding: 8px;
}

.lm-payment-flow article {
  align-items: start;
  display: grid;
  gap: 4px 8px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 8px;
}

.lm-payment-flow span {
  align-items: center;
  background: #d33227;
  border-radius: 999px;
  color: #fffaf0;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 950;
  height: 24px;
  justify-content: center;
  line-height: 1;
  width: 24px;
}

.lm-payment-flow strong {
  color: #24130e;
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1.1;
}

.lm-payment-flow p {
  color: rgba(61, 39, 28, 0.74);
  font-size: 0.82rem;
  font-weight: 760;
  grid-column: 2;
  line-height: 1.34;
  margin: 0;
}

.purchase-wallet {
  background:
    linear-gradient(135deg, rgba(255, 252, 244, 0.92), rgba(240, 248, 238, 0.82)),
    #fffaf0;
  border: 1px solid rgba(103, 65, 45, 0.14);
  border-radius: 24px;
  box-shadow: 0 16px 38px rgba(50, 31, 20, 0.09);
  display: grid;
  gap: 14px;
  padding: 16px;
}

.wallet-head {
  display: grid;
  gap: 4px;
}

.wallet-head span,
.purchase-wallet article span {
  color: rgba(83, 54, 39, 0.7);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wallet-head strong {
  color: var(--studio-ink, #24130e);
  font-size: 1.02rem;
}

.wallet-grid {
  display: grid;
  gap: 8px;
}

.purchase-wallet article {
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(103, 65, 45, 0.1);
  border-radius: 18px;
  display: grid;
  gap: 3px;
  padding: 11px;
}

.purchase-wallet article strong {
  color: var(--studio-red, #b42318);
  font-size: 1rem;
}

.purchase-wallet article small {
  color: rgba(83, 54, 39, 0.75);
  font-weight: 720;
  line-height: 1.3;
}

.wallet-actions {
  display: grid;
  gap: 8px;
}

.wallet-actions .square-pass-panel {
  box-shadow: none;
  margin: 0;
}

.finalize-card {
  border-color: rgba(180, 35, 24, 0.22);
  background: linear-gradient(135deg, rgba(255, 246, 232, 0.96), rgba(255, 252, 244, 0.92));
}

.finalize-card strong {
  color: var(--studio-red, #b42318);
  display: block;
  font-size: 0.95rem;
  margin-top: 10px;
}

.commerce-workspace {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr) minmax(320px, 1fr);
}

.commerce-admin-panel textarea {
  min-height: 108px;
  width: 100%;
}

.commerce-summary-grid article strong {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.ai-pack-admin-list {
  display: grid;
  gap: 10px;
}

.ai-pack-admin-list article {
  align-items: center;
  background: rgba(255, 250, 240, 0.84);
  border: 1px solid rgba(103, 65, 45, 0.12);
  border-radius: 18px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.ai-pack-admin-list article.highlighted {
  background: linear-gradient(135deg, rgba(255, 246, 221, 0.95), rgba(236, 248, 237, 0.9));
  border-color: rgba(215, 154, 41, 0.38);
}

.ai-pack-admin-list strong,
.ai-pack-admin-list span {
  display: block;
}

.ai-pack-admin-list span {
  color: var(--admin-muted, #765f52);
  font-size: 0.84rem;
  font-weight: 760;
  margin-top: 3px;
}

@media (max-width: 1080px) {
  .commerce-offer-grid,
  .lm-payment-flow,
  .commerce-workspace {
    grid-template-columns: 1fr;
  }
}

/* Modern brand revamp: cleaner premium marketing surface */
:root {
  --cream: #fff2d2;
  --ink: #21110c;
  --muted: #6f5040;
  --red: #c92b22;
  --orange: #f36c2d;
  --yellow: #f7b733;
  --turquoise: #0f7f78;
  --pink: #d94f7f;
  --green: #2d704d;
  --purple: #4b3b8f;
  --blue: #166f9f;
  --white: #fffaf0;
  --shadow: 0 34px 90px rgba(66, 35, 17, 0.16);
  --small-shadow: 0 18px 45px rgba(66, 35, 17, 0.11);
  --hairline: rgba(33, 17, 12, 0.11);
  --brand-gradient: linear-gradient(135deg, #c92b22 0%, #f36c2d 33%, #0f7f78 67%, #4b3b8f 100%);
  --paper-gradient:
    radial-gradient(circle at 12% 12%, rgba(247, 183, 51, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(15, 127, 120, 0.12), transparent 24rem),
    linear-gradient(180deg, #fff9eb 0%, #fff1d3 48%, #fffaf0 100%);
}

body {
  background: var(--paper-gradient);
}

.landing::before,
.builder-page::before,
.seo-page::before {
  background-image:
    linear-gradient(45deg, rgba(201, 43, 34, 0.032) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(15, 127, 120, 0.032) 25%, transparent 25%);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.38), transparent 62%);
  opacity: 0.28;
}

.top-nav {
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.94), rgba(255, 246, 225, 0.9)),
    rgba(255, 250, 240, 0.88);
  border: 1px solid rgba(33, 17, 12, 0.1);
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(62, 30, 14, 0.13);
  gap: 16px;
  padding: 10px 14px;
}

.top-nav::after {
  background: var(--brand-gradient);
  bottom: -7px;
  height: 5px;
  left: 34px;
  right: 34px;
}

.brand-mark {
  min-width: max-content;
}

.brand-label {
  color: #28140e;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.logo-mark {
  background: #fff8e8;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 15px;
  box-shadow: 0 9px 20px rgba(66, 35, 17, 0.14);
  height: 50px;
  object-fit: contain;
  padding: 2px;
  width: 50px;
}

.nav-links {
  gap: 8px;
}

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

.nav-ghost,
.nav-cta,
.secondary-button {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(33, 17, 12, 0.1);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.55);
  color: #2c170f;
}

.nav-ghost {
  min-height: 42px;
  padding: 0 15px;
}

.nav-projects-button {
  box-shadow: 0 10px 24px rgba(66, 35, 17, 0.1);
}

.nav-icon {
  background: rgba(201, 43, 34, 0.1);
  color: #b5261d;
}

.language-toggle {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(33, 17, 12, 0.12);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.5);
}

.language-toggle button.active,
.language-toggle a.active {
  background: #21110c;
  box-shadow: 0 6px 14px rgba(33, 17, 12, 0.16);
}

.primary-button,
.nav-cta.primary-button {
  background: linear-gradient(135deg, #d9342a 0%, #a61e17 100%);
  box-shadow: 0 18px 34px rgba(201, 43, 34, 0.23), inset 0 1px rgba(255, 255, 255, 0.28);
  color: #fffaf0;
}

.secondary-button:hover,
.nav-ghost:hover,
.nav-cta:hover {
  background: #fffaf0;
  border-color: rgba(201, 43, 34, 0.28);
}

.section-band,
.feature-section,
.seo-intent-section,
.how-section,
.sample-section,
.physical-shop-section,
.review-section,
.final-cta,
.site-footer,
.builder-shell {
  max-width: 1320px;
}

.hero {
  background:
    radial-gradient(circle at 75% 23%, rgba(247, 183, 51, 0.22), transparent 19rem),
    radial-gradient(circle at 94% 76%, rgba(15, 127, 120, 0.13), transparent 21rem),
    linear-gradient(135deg, rgba(255, 251, 241, 0.98) 0%, rgba(255, 243, 219, 0.86) 100%);
  border: 1px solid rgba(33, 17, 12, 0.08);
  border-radius: 36px;
  box-shadow: 0 38px 95px rgba(66, 35, 17, 0.14);
  grid-template-columns: minmax(0, 0.82fr) minmax(470px, 1.18fr);
  min-height: clamp(600px, calc(100vh - 112px), 760px);
  padding: clamp(28px, 4vw, 54px);
  width: min(100% - 48px, 1560px);
}

.hero::after {
  background: var(--brand-gradient);
  bottom: 22px;
  height: 8px;
  left: clamp(24px, 4vw, 60px);
  opacity: 0.92;
  width: min(360px, calc(100% - 48px));
}

.hero-copy {
  align-self: start;
  max-width: 610px;
}

.eyebrow {
  color: #b5261d;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.hero-brand-line {
  margin-bottom: 8px;
}

.hero-brand-line > span:first-child {
  color: #21110c;
  font-size: clamp(3.45rem, 5.8vw, 6.8rem);
  letter-spacing: -0.035em;
}

.hero-brand-line .maker-word {
  font-size: clamp(2.85rem, 4.7vw, 5.55rem);
  letter-spacing: -0.035em;
}

.hero .seo-home-title {
  color: #32190f;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.72rem, 2.5vw, 2.86rem);
  font-weight: 950;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: 20px;
  max-width: 680px;
}

.hero-sub {
  color: #4f3225;
  font-size: clamp(1rem, 1.24vw, 1.14rem);
  font-weight: 620;
  line-height: 1.52;
  max-width: 560px;
}

.hero-slogan {
  gap: 9px;
  margin: -2px 0 16px;
}

.hero-slogan span {
  border: 0;
  box-shadow: 0 9px 20px rgba(66, 35, 17, 0.14);
  font-size: 0.86rem;
  padding: 9px 13px;
}

.hero-actions {
  gap: 13px;
  margin-top: 20px;
}

.trust-strip {
  gap: 9px;
  margin-top: 28px;
}

.trust-strip span {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(33, 17, 12, 0.08);
  box-shadow: 0 8px 18px rgba(66, 35, 17, 0.06);
  color: #4a2a1d;
  font-size: 0.9rem;
  padding: 9px 13px;
}

.hero-showcase {
  height: min(650px, 62vw);
  min-height: 490px;
  width: min(100%, 900px);
}

.hero-replacement-image {
  max-height: 720px;
  overflow: visible;
  width: min(100%, 900px);
}

.hero-replacement-image img {
  filter: drop-shadow(0 28px 34px rgba(47, 24, 13, 0.16));
  max-height: 100%;
  max-width: 108%;
}

.hero-replacement-image span {
  color: rgba(201, 43, 34, 0.14);
}

.realistic-board {
  background:
    radial-gradient(circle at 18% 10%, rgba(247, 183, 51, 0.22), transparent 18rem),
    #ffecc7;
  border: 1px solid rgba(33, 17, 12, 0.11);
  box-shadow: 0 28px 70px rgba(47, 24, 13, 0.18);
  width: min(80%, 610px);
}

.realistic-board-heading strong {
  color: #c92b22;
  letter-spacing: 0.07em;
}

.realistic-board-heading span {
  color: #2d704d;
}

.realistic-card,
.floating-style-card {
  box-shadow: 0 8px 16px rgba(47, 24, 13, 0.12);
}

.manifesto-section {
  background:
    radial-gradient(circle at 82% 18%, rgba(247, 183, 51, 0.2), transparent 24rem),
    radial-gradient(circle at 16% 82%, rgba(15, 127, 120, 0.25), transparent 24rem),
    linear-gradient(135deg, #203d35 0%, #1f1711 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 36px;
  box-shadow: 0 30px 80px rgba(47, 24, 13, 0.18);
  margin-bottom: 30px;
  max-width: 1320px;
  min-height: 430px;
  padding: clamp(48px, 7vw, 92px) clamp(28px, 5vw, 72px);
  text-align: left;
}

.manifesto-section::before,
.manifesto-section::after {
  display: none;
}

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

.manifesto-section h2 {
  color: #fffaf0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.75rem, 6.3vw, 6.8rem);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.9;
  max-width: 1080px;
}

.manifesto-art span {
  background: rgba(255, 250, 240, 0.92);
  border: 1px solid rgba(33, 17, 12, 0.18);
  box-shadow: 0 12px 24px rgba(33, 17, 12, 0.2);
}

.scroll-word {
  transition:
    opacity 180ms linear,
    transform 180ms ease,
    filter 180ms ease;
}

.statement-section {
  gap: 22px;
  max-width: 1320px;
  padding-bottom: 76px;
}

.statement-line {
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid rgba(33, 17, 12, 0.08);
  border-radius: 32px;
  box-shadow: 0 20px 58px rgba(66, 35, 17, 0.1);
  min-height: 290px;
  padding: clamp(28px, 4.8vw, 60px);
}

.statement-line:nth-child(2) {
  background:
    radial-gradient(circle at 84% 20%, rgba(247, 183, 51, 0.18), transparent 16rem),
    linear-gradient(135deg, #c92b22, #822118);
}

.statement-line:nth-child(3) {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 250, 240, 0.18), transparent 16rem),
    linear-gradient(135deg, #0f7f78, #24583d);
}

.statement-line h2 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.7rem, 5.9vw, 6.6rem);
  font-weight: 950;
  letter-spacing: -0.06em;
}

.statement-line p {
  font-weight: 780;
}

.statement-media {
  border: 1px solid rgba(33, 17, 12, 0.16);
  border-radius: 26px;
  box-shadow: inset 0 0 0 6px rgba(255, 250, 240, 0.28);
}

.feature-section,
.sample-section,
.physical-shop-section,
.review-section,
.seo-intent-section,
.how-section {
  background: rgba(255, 250, 240, 0.78);
  border: 1px solid rgba(33, 17, 12, 0.08);
  border-radius: 34px;
  box-shadow: 0 20px 55px rgba(66, 35, 17, 0.09);
}

.section-heading {
  max-width: 820px;
}

.section-heading h2,
.final-cta h2,
.builder-panel h2 {
  color: #24130e;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.section-heading p {
  color: #684838;
  font-weight: 620;
}

.feature-grid,
.flow-grid {
  gap: 20px;
}

.feature-card,
.flow-step,
.download-card,
.generator-card,
.sample-card,
.review-card,
.physical-product-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 232, 0.78)),
    rgba(255, 250, 240, 0.8);
  border: 1px solid rgba(33, 17, 12, 0.08);
  border-radius: 26px;
  box-shadow: 0 16px 36px rgba(66, 35, 17, 0.09);
}

.feature-card {
  min-height: 218px;
  padding: 28px;
}

.feature-card::after {
  background: var(--brand-gradient);
  height: 5px;
  opacity: 0.9;
}

.feature-card h3,
.flow-step h3,
.download-card h3,
.generator-card h3,
.physical-product-card strong,
.sample-card h3,
.review-card strong {
  color: #24130e;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.feature-card p,
.flow-step p,
.download-card p,
.sample-card p,
.review-card p,
.physical-product-card p {
  color: #684838;
  font-weight: 620;
}

.marketing-icon,
.feature-icon {
  border: 4px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(66, 35, 17, 0.12);
}

.seo-intent-section {
  background:
    radial-gradient(circle at 18% 18%, rgba(247, 183, 51, 0.14), transparent 22rem),
    linear-gradient(135deg, rgba(255, 250, 240, 0.92), rgba(239, 249, 246, 0.78));
}

.seo-intent-section h2 {
  color: #24130e;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.seo-chip-grid span,
.seo-topic-links a {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(33, 17, 12, 0.08);
  box-shadow: 0 8px 18px rgba(66, 35, 17, 0.06);
}

.how-section {
  background:
    radial-gradient(circle at 86% 16%, rgba(15, 127, 120, 0.12), transparent 20rem),
    rgba(255, 250, 240, 0.72);
}

.flow-step {
  padding-top: 32px;
}

.flow-step::before {
  display: none;
}

.flow-step span {
  background: var(--brand-gradient);
  box-shadow: 0 12px 26px rgba(201, 43, 34, 0.16);
  height: 46px;
  margin-bottom: 20px;
  width: 46px;
}

.sample-section,
.review-section {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.sample-grid,
.review-grid,
.product-carousel-track {
  gap: 20px;
}

.sample-card {
  padding: 16px;
}

.sample-board-mini {
  border: 1px solid rgba(33, 17, 12, 0.14);
  border-radius: 22px;
  box-shadow: inset 0 0 0 8px rgba(255, 250, 240, 0.32);
}

.sample-board-mini span {
  border-color: rgba(33, 17, 12, 0.68);
}

.physical-shop-section {
  background:
    radial-gradient(circle at 18% 18%, rgba(247, 183, 51, 0.2), transparent 23rem),
    linear-gradient(135deg, rgba(255, 250, 240, 0.92), rgba(239, 249, 246, 0.78));
}

.physical-product-photo,
.review-photo {
  border: 1px solid rgba(33, 17, 12, 0.09);
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(66, 35, 17, 0.12);
}

.review-photo {
  aspect-ratio: 1 / 1;
}

.final-cta {
  background:
    radial-gradient(circle at 85% 18%, rgba(247, 183, 51, 0.22), transparent 22rem),
    linear-gradient(135deg, #203d35 0%, #1f1711 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 34px;
  box-shadow: 0 30px 80px rgba(47, 24, 13, 0.18);
}

.final-cta::before {
  display: none;
}

.final-cta h2 {
  color: #fffaf0;
}

.final-cta .primary-button {
  background: #fffaf0;
  box-shadow: 0 18px 34px rgba(33, 17, 12, 0.18);
  color: #21110c;
}

.site-footer {
  background: rgba(255, 250, 240, 0.64);
  border: 1px solid rgba(33, 17, 12, 0.08);
  border-radius: 28px 28px 0 0;
  margin-top: 20px;
}

.site-footer p,
.site-footer a,
.site-footer button {
  color: #684838;
}

.seo-page .top-nav {
  margin-bottom: 18px;
}

.seo-landing-hero {
  background:
    radial-gradient(circle at 86% 18%, rgba(247, 183, 51, 0.2), transparent 21rem),
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(239, 249, 246, 0.76));
  border: 1px solid rgba(33, 17, 12, 0.08);
  border-radius: 34px;
  box-shadow: 0 24px 65px rgba(66, 35, 17, 0.11);
}

.seo-landing-hero h1,
.static-seo-page h1 {
  color: #24130e;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.seo-landing-hero p {
  color: #684838;
  font-weight: 620;
}

.seo-hero-image,
.seo-content-grid article,
.seo-faq-grid details,
.seo-related-grid a {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 232, 0.74)),
    rgba(255, 250, 240, 0.82);
  border: 1px solid rgba(33, 17, 12, 0.08);
  border-radius: 26px;
  box-shadow: 0 16px 38px rgba(66, 35, 17, 0.09);
}

.static-seo-page {
  background: var(--paper-gradient);
  color: #24130e;
  min-height: 100vh;
}

.static-seo-page section,
.seo-static-nav {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 232, 0.74)),
    rgba(255, 250, 240, 0.82);
  border: 1px solid rgba(33, 17, 12, 0.08);
  border-radius: 24px;
  box-shadow: 0 16px 38px rgba(66, 35, 17, 0.08);
  padding: 22px;
}

.static-seo-page .seo-hero {
  align-items: center;
  display: grid;
  gap: clamp(22px, 4vw, 44px);
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  padding: clamp(28px, 6vw, 60px);
}

.static-seo-page .seo-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.7rem);
  line-height: 0.9;
  margin: 0 0 16px;
}

.static-seo-page .seo-hero p {
  color: #5f4335;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 720;
  line-height: 1.5;
}

.static-seo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.static-seo-hero-image {
  aspect-ratio: 1200 / 630;
  border: 1px solid rgba(33, 17, 12, 0.09);
  border-radius: 28px;
  box-shadow: 0 24px 58px rgba(66, 35, 17, 0.15);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.builder-page {
  background: var(--paper-gradient);
}

.builder-panel,
.studio-panel,
.project-action-card,
.saved-project-card,
.signin-project-callout,
.account-routing-card,
.admin-detail-card {
  border: 1px solid rgba(33, 17, 12, 0.08);
  box-shadow: 0 18px 45px rgba(66, 35, 17, 0.1);
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1fr);
  }

  .hero-brand-line > span:first-child {
    font-size: clamp(3.8rem, 7vw, 7.2rem);
  }

  .hero-brand-line .maker-word {
    font-size: clamp(3.2rem, 5.8vw, 6rem);
  }
}

@media (max-width: 980px) {
  .static-seo-page .seo-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-showcase {
    height: auto;
    min-height: 0;
  }

  .hero-replacement-image {
    max-height: 560px;
  }
}

@media (max-width: 700px) {
  .static-seo-page {
    padding: 14px;
  }

  .static-seo-page section,
  .seo-static-nav {
    border-radius: 20px;
    padding: 18px;
  }

  .static-seo-actions .primary-button,
  .static-seo-actions .secondary-button {
    width: 100%;
  }

  .top-nav {
    border-radius: 0 0 24px 24px;
    padding: 10px 14px;
  }

  .top-nav::after {
    height: 4px;
  }

  .nav-links {
    background: rgba(255, 250, 240, 0.98);
    border-radius: 20px;
  }

  .logo-mark {
    height: 44px;
    width: 44px;
  }

  .hero {
    border-radius: 26px;
    margin-top: 10px;
    padding: 34px 18px 28px;
    width: calc(100% - 24px);
  }

  .hero::after {
    bottom: 14px;
    height: 5px;
    left: 18px;
    width: calc(100% - 36px);
  }

  .hero-brand-line > span:first-child {
    font-size: clamp(3.4rem, 18vw, 5.3rem);
  }

  .hero-brand-line .maker-word {
    font-size: clamp(2.9rem, 15vw, 4.6rem);
  }

  .hero .seo-home-title {
    font-size: clamp(2.05rem, 10.5vw, 3.2rem);
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-replacement-image {
    max-height: 430px;
  }

  .realistic-board {
    width: min(92%, 430px);
  }

  .manifesto-section {
    border-radius: 28px;
    padding: 54px 20px;
  }

  .manifesto-section h2 {
    font-size: clamp(2.25rem, 12vw, 4rem);
    letter-spacing: -0.045em;
  }

  .statement-line {
    border-radius: 24px;
    padding: 26px 18px;
  }

  .statement-line h2 {
    font-size: clamp(2.25rem, 12vw, 3.85rem);
  }

  .feature-card,
  .flow-step,
  .sample-card,
  .review-card,
  .physical-product-card {
    border-radius: 22px;
  }

  .section-heading h2,
  .final-cta h2,
  .builder-panel h2 {
    letter-spacing: -0.035em;
  }

  .site-footer {
    border-radius: 24px 24px 0 0;
  }
}

/* Complete marketing redesign */
.landing-redesign {
  --lm-dark: #140c08;
  --lm-dark-2: #23120c;
  --lm-cream: #fff4dc;
  --lm-paper: #fffaf0;
  --lm-red: #d33227;
  --lm-red-dark: #8f1d16;
  --lm-teal: #117d76;
  --lm-green: #2f7749;
  --lm-gold: #f4b63f;
  --lm-pink: #d84f78;
  --lm-purple: #493a8c;
  background:
    radial-gradient(circle at 10% 6%, rgba(244, 182, 63, 0.17), transparent 26rem),
    radial-gradient(circle at 95% 10%, rgba(17, 125, 118, 0.2), transparent 28rem),
    linear-gradient(180deg, #160c08 0%, #23120c 44%, #fff4dc 44.05%, #fffaf0 100%);
  color: var(--lm-paper);
}

.landing-redesign::before {
  background-image:
    linear-gradient(45deg, rgba(255, 250, 240, 0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(244, 182, 63, 0.045) 25%, transparent 25%);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 54%);
  opacity: 0.46;
}

.landing-redesign .top-nav {
  background:
    linear-gradient(90deg, rgba(20, 12, 8, 0.9), rgba(35, 18, 12, 0.82)),
    rgba(20, 12, 8, 0.86);
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 22px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
  color: var(--lm-paper);
  max-width: 1320px;
}

.landing-redesign .top-nav::after {
  background: linear-gradient(90deg, var(--lm-red), var(--lm-gold), var(--lm-teal), var(--lm-purple));
  bottom: -6px;
  height: 4px;
}

.landing-redesign .brand-label,
.landing-redesign .nav-links a {
  color: var(--lm-paper);
}

.landing-redesign .logo-mark {
  background: rgba(255, 250, 240, 0.96);
  border-color: rgba(255, 250, 240, 0.9);
}

.landing-redesign .nav-ghost,
.landing-redesign .nav-cta,
.landing-redesign .secondary-button {
  background: rgba(255, 250, 240, 0.09);
  border-color: rgba(255, 250, 240, 0.16);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  color: var(--lm-paper);
}

.landing-redesign .nav-ghost:hover,
.landing-redesign .nav-cta:hover,
.landing-redesign .secondary-button:hover {
  background: rgba(255, 250, 240, 0.16);
  border-color: rgba(255, 250, 240, 0.28);
  color: var(--lm-paper);
}

.landing-redesign .nav-icon {
  background: rgba(244, 182, 63, 0.16);
  color: #ffd66f;
}

.landing-redesign .language-toggle {
  background: rgba(255, 250, 240, 0.09);
  border-color: rgba(255, 250, 240, 0.18);
}

.landing-redesign .language-toggle button,
.landing-redesign .language-toggle a {
  color: rgba(255, 250, 240, 0.78);
}

.landing-redesign .language-toggle button.active,
.landing-redesign .language-toggle a.active {
  background: var(--lm-paper);
  color: var(--lm-dark);
}

.landing-redesign .primary-button {
  background: linear-gradient(135deg, #e23d31, #a21d15);
  border: 0;
  box-shadow: 0 20px 44px rgba(211, 50, 39, 0.34), inset 0 1px rgba(255, 255, 255, 0.24);
  color: #fffaf0;
}

.lm-hero {
  scroll-margin-top: 126px;
  align-items: center;
  display: grid;
  gap: clamp(28px, 4.5vw, 78px);
  grid-template-columns: minmax(0, 0.78fr) minmax(440px, 1.22fr);
  margin: 0 auto;
  min-height: clamp(600px, calc(100vh - 112px), 740px);
  overflow: hidden;
  padding: clamp(34px, 4.4vw, 60px) clamp(24px, 5vw, 72px) clamp(42px, 4.4vw, 62px);
  position: relative;
  width: min(100% - 32px, 1600px);
  z-index: 2;
}

.lm-hero::before {
  background:
    radial-gradient(circle at 12% 18%, rgba(244, 182, 63, 0.24), transparent 17rem),
    radial-gradient(circle at 84% 36%, rgba(211, 50, 39, 0.18), transparent 23rem),
    linear-gradient(135deg, rgba(255, 250, 240, 0.08), transparent 35%);
  border: 1px solid rgba(255, 250, 240, 0.1);
  border-radius: 44px;
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.lm-hero::after {
  background:
    linear-gradient(135deg, var(--lm-teal) 0 18%, transparent 18% 30%, var(--lm-gold) 30% 50%, transparent 50% 62%, var(--lm-pink) 62% 82%, var(--lm-green) 82%),
    rgba(255, 250, 240, 0.08);
  clip-path: polygon(0 0, 100% 0, 100% 58%, 88% 100%, 76% 58%, 64% 100%, 52% 58%, 40% 100%, 28% 58%, 16% 100%, 4% 58%, 0 100%);
  content: "";
  height: 52px;
  left: clamp(24px, 5vw, 72px);
  opacity: 0.92;
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  top: 0;
}

.lm-hero-copy {
  max-width: 640px;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.lm-kicker {
  color: #ffd66f;
  font-size: clamp(0.95rem, 1.1vw, 1.12rem);
  font-weight: 950;
  letter-spacing: 0.09em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.lm-hero h1 {
  color: var(--lm-paper);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(3.35rem, 6.35vw, 7.85rem);
  font-weight: 980;
  letter-spacing: -0.08em;
  line-height: 0.76;
  margin: 0 0 22px;
  max-width: 760px;
}

.lm-hero h1 span,
.lm-hero h1 em {
  display: block;
}

.lm-hero h1 em {
  color: #ffd66f;
  font-size: clamp(1.8rem, 3vw, 3.45rem);
  font-style: normal;
  letter-spacing: -0.055em;
  line-height: 0.96;
  margin-top: 14px;
}

.lm-hero-sub {
  color: rgba(255, 250, 240, 0.8);
  font-size: clamp(1.05rem, 1.35vw, 1.24rem);
  font-weight: 650;
  line-height: 1.5;
  margin: 0;
  max-width: 580px;
}

.lm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.lm-hero-actions .secondary-button {
  background: rgba(255, 250, 240, 0.9);
  color: var(--lm-dark);
}

.lm-proof-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
  max-width: 560px;
}

.lm-proof-row span {
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.12);
  border-radius: 16px;
  color: rgba(255, 250, 240, 0.86);
  font-weight: 900;
  padding: 12px 14px;
}

.lm-hero-stage {
  align-items: center;
  display: grid;
  justify-items: center;
  min-width: 0;
  position: relative;
}

.lm-hero-stage::before {
  background:
    radial-gradient(circle at 40% 40%, rgba(244, 182, 63, 0.3), transparent 15rem),
    radial-gradient(circle at 70% 64%, rgba(17, 125, 118, 0.23), transparent 18rem);
  content: "";
  filter: blur(10px);
  inset: 8% 0 0;
  opacity: 0.75;
  position: absolute;
}

.lm-hero-stage .hero-showcase {
  height: min(680px, 58vw);
  min-height: 500px;
  width: min(100%, 900px);
  z-index: 1;
}

.lm-hero-stage .hero-replacement-image {
  max-height: 760px;
  overflow: visible;
}

.lm-hero-stage .hero-replacement-image img {
  filter: drop-shadow(0 38px 44px rgba(0, 0, 0, 0.34));
  max-width: 112%;
}

.lm-hero-stage .realistic-board {
  border: 0;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.32);
  width: min(82%, 640px);
}

.lm-marquee {
  background: var(--lm-gold);
  border-bottom: 2px solid rgba(20, 12, 8, 0.8);
  border-top: 2px solid rgba(20, 12, 8, 0.8);
  color: var(--lm-dark);
  margin: 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

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

.lm-marquee span {
  font-size: clamp(0.92rem, 1.25vw, 1.2rem);
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.lm-intro,
.lm-ai-promo,
.lm-process,
.lm-feature-showcase,
.lm-statements,
.lm-gallery,
.lm-print-section,
.lm-reviews,
.landing-redesign .seo-faq-section,
.landing-redesign .seo-related-section,
.lm-final-cta,
.landing-redesign .site-footer {
  margin-left: auto;
  margin-right: auto;
  max-width: 1360px;
  position: relative;
  z-index: 2;
}

.lm-intro {
  align-items: center;
  background: var(--lm-cream);
  color: var(--lm-dark);
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.62fr);
  padding: clamp(70px, 9vw, 132px) clamp(24px, 5vw, 72px);
  overflow: hidden;
}

.lm-intro h2,
.lm-section-head h2,
.lm-statement h2,
.lm-final-cta h2 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 920;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}

.lm-intro h2 {
  font-size: clamp(2.9rem, 6.6vw, 7rem);
  max-width: 1000px;
}

.lm-intro-side {
  align-self: stretch;
  display: grid;
  gap: 24px;
  min-width: 0;
}

.lm-intro-side > p {
  color: #614232;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
}

.lm-memory-collage {
  background:
    radial-gradient(circle at 22% 20%, rgba(211, 50, 39, 0.17), transparent 14rem),
    radial-gradient(circle at 82% 18%, rgba(17, 125, 118, 0.18), transparent 16rem),
    linear-gradient(135deg, #fffaf0, #ffe6b7);
  border: 1px solid rgba(20, 12, 8, 0.1);
  border-radius: 34px;
  box-shadow: 0 24px 58px rgba(67, 34, 17, 0.14);
  min-height: 390px;
  overflow: hidden;
  position: relative;
}

.lm-memory-board {
  aspect-ratio: 5 / 7;
  background: #fff4dc;
  border: 2px solid rgba(20, 12, 8, 0.72);
  border-radius: 22px;
  box-shadow: 0 24px 44px rgba(67, 34, 17, 0.18);
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 30px 16px 18px;
  position: absolute;
  right: 24px;
  top: 28px;
  transform: rotate(2.5deg);
  width: min(56%, 300px);
}

.lm-memory-board::before {
  color: var(--lm-red);
  content: "LOTERIA";
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  font-weight: 950;
  left: 0;
  letter-spacing: 0.08em;
  line-height: 1;
  position: absolute;
  right: 0;
  text-align: center;
  top: 9px;
}

.lm-memory-board span {
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(20, 12, 8, 0.68);
  border-radius: 6px;
  min-height: 0;
}

.lm-memory-card {
  align-items: flex-end;
  aspect-ratio: 2.5 / 3.5;
  background-color: #e6c79b;
  background-position: center;
  background-size: cover;
  border: 7px solid #fffaf0;
  border-radius: 18px;
  box-shadow: 0 22px 42px rgba(67, 34, 17, 0.18);
  display: flex;
  overflow: hidden;
  position: absolute;
  width: min(34%, 176px);
}

.lm-memory-card b {
  background: rgba(255, 244, 220, 0.96);
  border-top: 1px solid rgba(20, 12, 8, 0.7);
  color: var(--lm-dark);
  display: block;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;
  padding: 9px 6px;
  text-align: center;
  width: 100%;
}

.memory-card-1 {
  left: 34px;
  top: 48px;
  transform: rotate(-8deg);
}

.memory-card-2 {
  bottom: 36px;
  left: 22px;
  transform: rotate(5deg);
}

.memory-card-3 {
  bottom: 24px;
  right: 88px;
  transform: rotate(-4deg);
}

.lm-ai-promo {
  scroll-margin-top: 132px;
  align-items: center;
  background:
    radial-gradient(circle at 15% 12%, rgba(244, 182, 63, 0.2), transparent 18rem),
    radial-gradient(circle at 92% 10%, rgba(216, 79, 120, 0.18), transparent 20rem),
    linear-gradient(135deg, #140c08, #253f38);
  color: var(--lm-paper);
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: minmax(280px, 0.55fr) minmax(360px, 0.72fr);
  padding: clamp(48px, 6vw, 86px) clamp(24px, 5vw, 72px);
}

.lm-ai-copy h2 {
  color: var(--lm-paper);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.45rem, 5vw, 5.7rem);
  font-weight: 920;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0 0 20px;
  text-wrap: balance;
}

.lm-ai-copy p:not(.lm-kicker) {
  color: rgba(255, 250, 240, 0.78);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 720;
  line-height: 1.52;
  margin: 0;
  max-width: 620px;
}

.lm-ai-copy .primary-button {
  margin-top: 24px;
}

.lm-ai-mock {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(130px, 1fr) auto minmax(130px, 1fr);
  min-width: 0;
}

.lm-ai-card {
  background: #fff4dc;
  border: 2px solid rgba(255, 250, 240, 0.78);
  border-radius: 26px;
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.26);
  overflow: hidden;
  padding: 12px;
  transform: rotate(-3deg);
}

.lm-ai-card span {
  aspect-ratio: 2.5 / 3.5;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(20, 12, 8, 0.68);
  border-radius: 16px 16px 5px 5px;
  display: block;
}

.lm-ai-card img {
  aspect-ratio: 2.5 / 3.5;
  border: 1px solid rgba(20, 12, 8, 0.68);
  border-radius: 16px 16px 5px 5px;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.lm-ai-card b {
  background: #fff4dc;
  border-top: 1px solid rgba(20, 12, 8, 0.72);
  color: var(--lm-dark);
  display: block;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-weight: 950;
  padding: 12px 8px 4px;
  text-align: center;
}

.lm-ai-after {
  border-color: rgba(255, 214, 111, 0.95);
  transform: rotate(3deg);
}

.lm-ai-arrow {
  align-items: center;
  background: linear-gradient(135deg, var(--lm-gold), var(--lm-pink), var(--lm-teal));
  border: 4px solid rgba(255, 250, 240, 0.9);
  border-radius: 999px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
  color: var(--lm-paper);
  display: flex;
  font-size: 1rem;
  font-weight: 950;
  height: 64px;
  justify-content: center;
  width: 64px;
}

.lm-intro .lm-kicker,
.lm-section-head .lm-kicker,
.landing-redesign .seo-faq-section .eyebrow {
  color: var(--lm-red);
}

.lm-process {
  scroll-margin-top: 132px;
  background:
    radial-gradient(circle at 88% 10%, rgba(17, 125, 118, 0.18), transparent 22rem),
    #fffaf0;
  color: var(--lm-dark);
  padding: clamp(42px, 5vw, 72px) clamp(24px, 5vw, 72px);
}

.lm-process .lm-section-head {
  align-items: end;
  grid-template-columns: minmax(260px, 0.54fr) minmax(0, 0.68fr);
  margin-bottom: 24px;
}

.lm-process .lm-section-head h2 {
  font-size: clamp(2.25rem, 4.1vw, 4.7rem);
}

.lm-process .lm-section-head p:not(.lm-kicker) {
  font-size: 1rem;
  max-width: 460px;
}

.lm-section-head {
  align-items: end;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.42fr);
  margin-bottom: 34px;
}

.lm-section-head.compact {
  display: block;
}

.lm-section-head h2 {
  color: var(--lm-dark);
  font-size: clamp(2.45rem, 5vw, 5.7rem);
}

.lm-section-head p:not(.lm-kicker) {
  color: #614232;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
}

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

.lm-step-card {
  background: #fff4dc;
  border: 1px solid rgba(20, 12, 8, 0.1);
  border-radius: 22px;
  color: var(--lm-dark);
  min-height: 185px;
  padding: 22px;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.lm-step-card::after {
  background: linear-gradient(90deg, var(--lm-red), var(--lm-gold), var(--lm-teal));
  border-radius: 999px;
  bottom: 18px;
  content: "";
  height: 6px;
  left: 22px;
  position: absolute;
  width: 84px;
}

.lm-step-card:hover,
.lm-feature-tile:hover,
.lm-sample-card:hover {
  box-shadow: 0 22px 45px rgba(67, 34, 17, 0.15);
  transform: translateY(-5px);
}

.lm-step-card > span,
.lm-statement > div > span {
  align-items: center;
  background: rgba(211, 50, 39, 0.1);
  border: 1px solid rgba(211, 50, 39, 0.18);
  border-radius: 999px;
  color: var(--lm-red);
  display: inline-flex;
  font-size: clamp(0.95rem, 1.08vw, 1.08rem);
  font-weight: 980;
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 20px;
  padding: 8px 12px;
  text-transform: uppercase;
  width: fit-content;
}

.lm-step-card h3,
.lm-feature-tile h3,
.lm-sample-card h3,
.lm-review-card strong {
  color: var(--lm-dark);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 12px;
}

.lm-step-card h3 {
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
}

.lm-step-card p,
.lm-feature-tile p,
.lm-sample-card p,
.lm-review-card p {
  color: #654738;
  font-weight: 680;
  line-height: 1.52;
  margin: 0;
}

.lm-feature-showcase {
  scroll-margin-top: 132px;
  background:
    linear-gradient(135deg, #f9ead0 0%, #fffaf0 100%);
  color: var(--lm-dark);
  padding: clamp(48px, 6vw, 82px) clamp(24px, 5vw, 72px);
}

.lm-feature-showcase .lm-section-head {
  align-items: center;
  grid-template-areas:
    "kicker title"
    "copy title";
  grid-template-columns: minmax(280px, 0.5fr) minmax(0, 0.78fr);
  margin-bottom: 26px;
}

.lm-feature-showcase .lm-section-head .lm-kicker {
  grid-area: kicker;
}

.lm-feature-showcase .lm-section-head h2 {
  font-size: clamp(2.35rem, 4.4vw, 5.1rem);
  grid-area: title;
}

.lm-feature-showcase .lm-section-head p:not(.lm-kicker) {
  grid-area: copy;
  max-width: 500px;
}

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

.lm-feature-tile {
  background: #fffaf0;
  border: 1px solid rgba(20, 12, 8, 0.09);
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(67, 34, 17, 0.08);
  color: var(--lm-dark);
  min-height: 205px;
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.lm-feature-tile:nth-child(1),
.lm-feature-tile:nth-child(2),
.lm-feature-tile:nth-child(3) {
  grid-column: auto;
}

.lm-feature-tile:nth-child(4),
.lm-feature-tile:nth-child(5),
.lm-feature-tile:nth-child(6) {
  grid-column: auto;
}

.lm-feature-tile .marketing-icon {
  height: 60px;
  width: 60px;
}

.lm-feature-tile .marketing-icon svg {
  height: 32px;
  width: 32px;
}

.lm-statements {
  background: var(--lm-dark);
  border-radius: 34px;
  color: var(--lm-paper);
  display: grid;
  gap: 1px;
  overflow: hidden;
  padding: 1px;
}

.lm-statement {
  align-items: center;
  background: rgba(255, 250, 240, 0.03);
  border-bottom: 0;
  border-radius: 30px;
  display: grid;
  gap: clamp(22px, 3.2vw, 44px);
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
  padding: clamp(28px, 4vw, 56px);
}

.lm-statement:nth-child(even) {
  background: linear-gradient(135deg, rgba(211, 50, 39, 0.18), rgba(244, 182, 63, 0.06));
}

.lm-statement:last-child {
  border-bottom: 0;
}

.lm-statement-media {
  aspect-ratio: 4 / 3;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 22px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.26);
  min-height: 210px;
}

.lm-statement h2 {
  color: var(--lm-paper);
  font-size: clamp(2.05rem, 4.1vw, 4.75rem);
  max-width: 820px;
}

.lm-statement p {
  color: rgba(255, 250, 240, 0.78);
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  font-weight: 700;
  line-height: 1.52;
  margin: 18px 0 0;
  max-width: 700px;
}

.lm-gallery,
.lm-reviews,
.landing-redesign .seo-faq-section,
.landing-redesign .seo-related-section {
  background: #fffaf0;
  color: var(--lm-dark);
  padding: clamp(46px, 6vw, 82px) clamp(24px, 5vw, 72px);
}

.lm-gallery,
.lm-print-section {
  scroll-margin-top: 132px;
}

.lm-gallery .lm-section-head,
.lm-reviews .lm-section-head,
.lm-print-section .lm-section-head {
  margin-bottom: 26px;
}

.lm-gallery .lm-section-head h2,
.lm-reviews .lm-section-head h2,
.lm-print-section .lm-section-head h2 {
  font-size: clamp(2.25rem, 4.2vw, 4.9rem);
}

.lm-sample-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.lm-sample-card {
  background: #fff4dc;
  border: 1px solid rgba(20, 12, 8, 0.09);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(67, 34, 17, 0.1);
  overflow: hidden;
  padding: 12px;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.lm-sample-tag {
  background: var(--lm-dark);
  border: 2px solid rgba(255, 250, 240, 0.88);
  border-radius: 999px;
  color: #fffaf0;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 950;
  left: 22px;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 8px 10px;
  position: absolute;
  text-transform: uppercase;
  top: 22px;
  z-index: 3;
}

.lm-sample-art {
  aspect-ratio: 5 / 7;
  background:
    radial-gradient(circle at 18% 18%, rgba(244, 182, 63, 0.28), transparent 18rem),
    #ffeac1;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(20, 12, 8, 0.76);
  border-radius: 18px;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  padding: 14px;
  position: relative;
}

.lm-sample-art::before,
.lm-sample-art::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.lm-sample-art::before {
  border: 2px solid rgba(20, 12, 8, 0.12);
  border-radius: 14px;
  inset: 8px;
}

.lm-sample-art::after {
  background: var(--sample-ribbon, rgba(211, 50, 39, 0.16));
  border-radius: 999px;
  height: 10px;
  left: 50%;
  opacity: 0.85;
  top: 9px;
  transform: translateX(-50%);
  width: 46%;
}

.lm-sample-art.has-custom-image {
  box-shadow: inset 0 -130px 90px rgba(20, 12, 8, 0.52);
}

.lm-sample-art > div {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 0;
  position: relative;
  z-index: 1;
}

.lm-sample-art span {
  align-items: end;
  aspect-ratio: 2.5 / 3.5;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(20, 12, 8, 0.72);
  border-radius: 7px;
  box-shadow: 0 3px 0 rgba(20, 12, 8, 0.1);
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.lm-sample-art span i {
  background: rgba(255, 250, 240, 0.94);
  border-top: 1px solid rgba(20, 12, 8, 0.66);
  color: var(--lm-dark);
  display: block;
  font-size: clamp(0.38rem, 0.52vw, 0.55rem);
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  padding: 4px 2px;
  text-align: center;
  width: 100%;
}

.lm-sample-art strong {
  align-self: end;
  background: rgba(255, 250, 240, 0.92);
  border-radius: 999px;
  color: var(--lm-dark);
  display: inline-flex;
  font-weight: 950;
  justify-self: center;
  line-height: 1;
  padding: 10px 13px;
  text-align: center;
  z-index: 1;
}

.sample-theme-1 {
  --sample-ribbon: rgba(216, 79, 120, 0.34);
}

.sample-theme-1 .lm-sample-art {
  background:
    radial-gradient(circle at 16% 14%, rgba(216, 79, 120, 0.2), transparent 11rem),
    radial-gradient(circle at 82% 18%, rgba(17, 125, 118, 0.14), transparent 10rem),
    #fff1df;
}

.sample-theme-2 {
  --sample-ribbon: rgba(17, 125, 118, 0.32);
}

.sample-theme-2 .lm-sample-art {
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.75), rgba(255, 232, 201, 0.9)),
    radial-gradient(circle at 80% 12%, rgba(244, 182, 63, 0.18), transparent 12rem);
}

.sample-theme-3 {
  --sample-ribbon: rgba(244, 182, 63, 0.42);
}

.sample-theme-3 .lm-sample-art {
  background:
    repeating-linear-gradient(135deg, rgba(211, 50, 39, 0.09) 0 14px, transparent 14px 30px),
    #fff0c7;
}

.sample-theme-4 {
  --sample-ribbon: rgba(73, 58, 140, 0.32);
}

.sample-theme-4 .lm-sample-art {
  background:
    linear-gradient(135deg, rgba(17, 125, 118, 0.14), transparent),
    #f8f3df;
}

.sample-theme-5 {
  --sample-ribbon: rgba(211, 50, 39, 0.34);
}

.sample-theme-5 .lm-sample-art {
  background:
    radial-gradient(circle at 22% 18%, rgba(244, 182, 63, 0.22), transparent 9rem),
    radial-gradient(circle at 84% 78%, rgba(17, 125, 118, 0.16), transparent 11rem),
    #ffe9c6;
}

.sample-theme-6 {
  --sample-ribbon: rgba(20, 12, 8, 0.22);
}

.sample-theme-6 .lm-sample-art {
  background:
    linear-gradient(135deg, rgba(17, 125, 118, 0.16), rgba(244, 182, 63, 0.14)),
    #fffaf0;
}

.lm-sample-card h3 {
  margin: 14px 6px 6px;
}

.lm-sample-card p {
  margin: 0 6px 10px;
}

.lm-print-section {
  background:
    radial-gradient(circle at 88% 18%, rgba(244, 182, 63, 0.2), transparent 23rem),
    linear-gradient(135deg, #203d35, #140c08);
  color: var(--lm-paper);
  padding: clamp(46px, 6vw, 82px) clamp(24px, 5vw, 72px);
}

.lm-print-section .lm-section-head h2,
.lm-print-section .lm-section-head p:not(.lm-kicker) {
  color: var(--lm-paper);
}

.lm-print-section .lm-kicker {
  color: #ffd66f;
}

.lm-print-section .physical-product-card {
  background: rgba(255, 250, 240, 0.94);
  border-radius: 22px;
  min-height: 0;
}

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

.lm-review-card {
  background: #fff4dc;
  border: 1px solid rgba(20, 12, 8, 0.09);
  border-radius: 22px;
  padding: 14px;
}

.lm-review-photo {
  aspect-ratio: 1 / 1;
  background-color: #ffeac1;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(20, 12, 8, 0.09);
  border-radius: 18px;
  margin-bottom: 14px;
}

.landing-redesign .seo-faq-section .section-heading,
.landing-redesign .seo-related-section .section-heading {
  text-align: left;
}

.landing-redesign .seo-faq-grid details,
.landing-redesign .seo-related-grid a,
.landing-redesign .seo-topic-links a {
  background: #fff4dc;
  border-color: rgba(20, 12, 8, 0.09);
  box-shadow: 0 12px 28px rgba(67, 34, 17, 0.08);
}

.landing-redesign .seo-topic-links {
  justify-content: flex-start;
  max-width: none;
  padding: 0;
}

.lm-final-cta {
  background:
    radial-gradient(circle at 78% 28%, rgba(244, 182, 63, 0.26), transparent 20rem),
    linear-gradient(135deg, #d33227, #8f1d16 52%, #140c08);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--lm-paper);
  max-width: none;
  padding: clamp(70px, 8vw, 118px) clamp(24px, 5vw, 72px);
}

.lm-final-cta h2 {
  font-size: clamp(2.75rem, 6vw, 6.9rem);
  max-width: 980px;
}

.landing-redesign .site-footer {
  background: var(--lm-dark);
  border: 0;
  border-radius: 0;
  color: var(--lm-paper);
  max-width: none;
}

.landing-redesign .site-footer p,
.landing-redesign .site-footer a,
.landing-redesign .site-footer button {
  color: rgba(255, 250, 240, 0.76);
}

@media (max-width: 1180px) {
  .lm-hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1fr);
  }

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

@media (max-width: 980px) {
  .landing-redesign .seo-page-directory,
  .landing-redesign .seo-page-directory.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .lm-hero,
  .lm-intro,
  .lm-ai-promo,
  .lm-section-head,
  .lm-feature-showcase .lm-section-head,
  .lm-statement {
    grid-template-columns: 1fr;
  }

  .lm-feature-showcase .lm-section-head {
    grid-template-areas:
      "kicker"
      "title"
      "copy";
  }

  .lm-hero {
    min-height: 0;
  }

  .lm-hero-stage .hero-showcase {
    height: auto;
    min-height: 0;
  }

  .lm-hero-stage .hero-replacement-image {
    max-height: 560px;
  }

  .lm-memory-collage {
    min-height: 360px;
  }

  .lm-ai-mock {
    grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr);
  }

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

  .lm-feature-tile:nth-child(n) {
    grid-column: auto;
  }

  .lm-review-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .landing-redesign {
    background:
      linear-gradient(180deg, #160c08 0%, #23120c 50%, #fff4dc 50.05%, #fffaf0 100%);
  }

  .landing-redesign .top-nav {
    border-radius: 0 0 22px 22px;
    max-width: 100%;
  }

  .landing-redesign .nav-links {
    background: rgba(20, 12, 8, 0.98);
  }

  .lm-hero {
    padding: 68px 18px 40px;
    width: 100%;
  }

  .lm-hero::before {
    border-radius: 0 0 32px 32px;
    inset: 0;
  }

  .lm-hero::after {
    height: 34px;
    left: 18px;
    right: 18px;
  }

  .lm-hero h1 {
    font-size: clamp(3.05rem, 16.5vw, 5rem);
    letter-spacing: -0.075em;
  }

  .lm-hero h1 em {
    font-size: clamp(1.55rem, 8vw, 2.45rem);
  }

  .lm-proof-row,
  .lm-ai-mock,
  .lm-step-grid,
  .lm-feature-grid,
  .lm-sample-grid {
    grid-template-columns: 1fr;
  }

  .lm-ai-card {
    justify-self: center;
    max-width: 260px;
    width: 100%;
  }

  .lm-ai-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .lm-hero-stage .hero-replacement-image {
    max-height: 420px;
  }

  .lm-hero-stage .realistic-board {
    width: min(94%, 430px);
  }

  .lm-intro,
  .lm-ai-promo,
  .lm-process,
  .lm-feature-showcase,
  .lm-gallery,
  .lm-print-section,
  .lm-reviews,
  .landing-redesign .seo-faq-section,
  .landing-redesign .seo-related-section,
  .lm-final-cta {
    padding-left: 18px;
    padding-right: 18px;
  }

  .lm-intro h2,
  .lm-section-head h2,
  .lm-statement h2,
  .lm-final-cta h2 {
    letter-spacing: -0.025em;
    line-height: 1.02;
  }

  .lm-statement {
    padding: 26px 18px;
  }

  .lm-memory-collage {
    border-radius: 26px;
    min-height: 330px;
  }

  .lm-memory-board {
    right: 14px;
    top: 24px;
    width: 58%;
  }

  .lm-memory-card {
    border-width: 5px;
    width: 36%;
  }

  .memory-card-1 {
    left: 16px;
    top: 46px;
  }

  .memory-card-2 {
    bottom: 34px;
    left: 12px;
  }

  .memory-card-3 {
    bottom: 18px;
    right: 52px;
  }

  .lm-statement-media {
    min-height: 190px;
  }

  .lm-marquee div {
    padding: 10px 0;
  }
}

.seo-redesign {
  background:
    radial-gradient(circle at 12% 6%, rgba(244, 182, 63, 0.18), transparent 26rem),
    radial-gradient(circle at 94% 12%, rgba(17, 125, 118, 0.2), transparent 28rem),
    linear-gradient(180deg, #160c08 0%, #23120c 42%, #fff4dc 42.05%, #fffaf0 100%);
  color: #fffaf0;
}

.seo-redesign::before {
  background-image:
    linear-gradient(45deg, rgba(255, 250, 240, 0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(244, 182, 63, 0.045) 25%, transparent 25%);
  background-size: 36px 36px;
  opacity: 0.36;
}

.seo-redesign .top-nav {
  background:
    linear-gradient(90deg, rgba(20, 12, 8, 0.9), rgba(35, 18, 12, 0.82)),
    rgba(20, 12, 8, 0.86);
  border: 1px solid rgba(255, 250, 240, 0.14);
  color: #fffaf0;
  max-width: 1320px;
}

.seo-redesign .top-nav::after {
  background: linear-gradient(90deg, #d33227, #f4b63f, #117d76, #493a8c);
  height: 4px;
}

.seo-redesign .brand-label,
.seo-redesign .nav-links a {
  color: #fffaf0;
}

.seo-redesign .logo-mark {
  background: rgba(255, 250, 240, 0.96);
  border-color: rgba(255, 250, 240, 0.9);
}

.seo-redesign .nav-ghost,
.seo-redesign .nav-cta,
.seo-redesign .secondary-button,
.seo-redesign .language-toggle {
  background: rgba(255, 250, 240, 0.09);
  border-color: rgba(255, 250, 240, 0.16);
  color: #fffaf0;
}

.seo-redesign .language-toggle button,
.seo-redesign .language-toggle a {
  color: rgba(255, 250, 240, 0.78);
}

.seo-redesign .language-toggle button.active,
.seo-redesign .language-toggle a.active {
  background: #fffaf0;
  color: #140c08;
}

.seo-redesign .seo-topic-links {
  max-width: 1280px;
}

.seo-redesign .seo-topic-links a {
  background: rgba(255, 250, 240, 0.1);
  border-color: rgba(255, 250, 240, 0.16);
  color: #fffaf0;
}

.seo-redesign .seo-topic-links a:hover {
  background: #f4b63f;
  color: #140c08;
}

.seo-redesign .seo-landing-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(244, 182, 63, 0.24), transparent 17rem),
    radial-gradient(circle at 84% 36%, rgba(211, 50, 39, 0.18), transparent 23rem),
    linear-gradient(135deg, rgba(255, 250, 240, 0.08), transparent 35%);
  border: 1px solid rgba(255, 250, 240, 0.1);
  border-radius: 44px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.24);
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.66fr);
  margin-top: 22px;
  max-width: 1360px;
  padding: clamp(48px, 6vw, 86px) clamp(24px, 5vw, 72px);
}

.seo-redesign .seo-landing-hero h1 {
  color: #fffaf0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.9rem, 5.9vw, 6.8rem);
  font-weight: 980;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.seo-redesign .seo-landing-hero p {
  color: rgba(255, 250, 240, 0.78);
}

.seo-redesign .seo-landing-hero .eyebrow {
  color: #ffd66f;
}

.seo-redesign .seo-price-note {
  background: rgba(255, 250, 240, 0.1);
  border-color: rgba(255, 250, 240, 0.16);
  color: #ffd66f;
}

.seo-redesign .seo-hero-image {
  background: #fff4dc;
  border: 0;
  border-radius: 30px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.26);
  transform: rotate(2deg);
}

.seo-redesign .seo-hero-image img {
  border: 1px solid rgba(20, 12, 8, 0.12);
}

.seo-redesign .seo-content-grid,
.seo-redesign .seo-steps-section,
.seo-redesign .seo-faq-section,
.seo-redesign .seo-related-section {
  background: #fffaf0;
  color: #140c08;
  max-width: 1360px;
  padding: clamp(44px, 6vw, 78px) clamp(24px, 5vw, 72px);
}

.seo-redesign .seo-content-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.seo-redesign .seo-content-grid article,
.seo-redesign .flow-step,
.seo-redesign .seo-faq-grid details,
.seo-redesign .seo-related-grid a {
  background: #fff4dc;
  border: 1px solid rgba(20, 12, 8, 0.09);
  border-radius: 28px;
  box-shadow: 0 14px 32px rgba(67, 34, 17, 0.08);
}

.seo-redesign .section-heading h2,
.seo-redesign .seo-content-grid h2,
.seo-redesign .seo-faq-section h2,
.seo-redesign .seo-steps-section h2,
.seo-redesign .seo-related-section h2 {
  color: #140c08;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 980;
  letter-spacing: -0.055em;
}

.seo-redesign .section-heading p,
.seo-redesign .seo-content-grid ul,
.seo-redesign .seo-faq-grid p,
.seo-redesign .seo-related-grid span {
  color: #654738;
}

.seo-redesign .final-cta {
  background:
    radial-gradient(circle at 78% 28%, rgba(244, 182, 63, 0.26), transparent 20rem),
    linear-gradient(135deg, #d33227, #8f1d16 52%, #140c08);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #fffaf0;
  max-width: none;
}

.seo-redesign .site-footer {
  background: #140c08;
  border: 0;
  border-radius: 0;
  color: #fffaf0;
  max-width: none;
}

@media (max-width: 980px) {
  .seo-redesign .seo-landing-hero,
  .seo-redesign .seo-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .seo-redesign .top-nav {
    background: rgba(20, 12, 8, 0.98);
  }

  .seo-redesign .nav-links {
    background: rgba(20, 12, 8, 0.98);
  }

  .seo-redesign .seo-landing-hero {
    border-radius: 0 0 32px 32px;
    margin-top: 0;
  }

  .seo-redesign .seo-landing-hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.65rem);
  }
}

/* Premium editorial builder studio */
.builder-page {
  --studio-bg: #f8f1e5;
  --studio-canvas: #fffaf0;
  --studio-surface: rgba(255, 252, 244, 0.86);
  --studio-surface-strong: rgba(255, 250, 240, 0.96);
  --studio-ink: #17100c;
  --studio-muted: #6b5a4f;
  --studio-soft: #9b8879;
  --studio-red: #b6241b;
  --studio-red-dark: #7d1712;
  --studio-green: #1f6f4c;
  --studio-gold: #d79a29;
  --studio-line: rgba(23, 16, 12, 0.11);
  --studio-line-strong: rgba(23, 16, 12, 0.18);
  --studio-shadow: 0 28px 80px rgba(50, 31, 20, 0.13);
  --studio-soft-shadow: 0 14px 36px rgba(50, 31, 20, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.2), rgba(255, 250, 240, 0.82)),
    repeating-linear-gradient(135deg, rgba(23, 16, 12, 0.025) 0 1px, transparent 1px 14px),
    var(--studio-bg);
  color: var(--studio-ink);
}

.builder-page::before {
  background-image:
    linear-gradient(90deg, rgba(23, 16, 12, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 16, 12, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 66%);
  opacity: 0.34;
}

.builder-page .top-nav {
  background: rgba(255, 250, 240, 0.88);
  border: 1px solid var(--studio-line);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(42, 25, 16, 0.12);
  padding: 10px 12px;
}

.builder-page .top-nav::after {
  background: linear-gradient(90deg, var(--studio-red), var(--studio-gold), var(--studio-green));
  bottom: -6px;
  height: 3px;
  left: 44px;
  right: 44px;
}

.builder-page .brand-label,
.builder-page .nav-links a,
.builder-page .nav-ghost,
.builder-page .secondary-button {
  color: var(--studio-ink);
}

.builder-page .nav-ghost,
.builder-page .nav-cta,
.builder-page .secondary-button {
  background: rgba(255, 250, 240, 0.7);
  border: 1px solid var(--studio-line);
  box-shadow: none;
}

.builder-page .primary-button,
.builder-page .nav-cta.primary-button {
  background: var(--studio-red);
  border: 1px solid rgba(125, 23, 18, 0.24);
  box-shadow: 0 14px 30px rgba(182, 36, 27, 0.2);
  color: #fffaf0;
}

.builder-page .primary-button:hover,
.builder-page .secondary-button:hover,
.builder-page .nav-ghost:hover,
.builder-page .nav-cta:hover {
  border-color: rgba(182, 36, 27, 0.28);
  box-shadow: 0 18px 36px rgba(50, 31, 20, 0.12);
  transform: translateY(-1px);
}

.builder-page .secondary-button:hover,
.builder-page .nav-ghost:hover,
.builder-page .nav-cta:not(.primary-button):hover {
  background: rgba(255, 250, 240, 0.96);
}

.builder-page .danger-button,
.builder-page .danger-link {
  background: rgba(182, 36, 27, 0.08);
  border-color: rgba(182, 36, 27, 0.18);
  color: var(--studio-red) !important;
}

.builder-page .builder-shell {
  max-width: 1720px;
  padding: 18px clamp(18px, 2.4vw, 34px) 54px;
}

.builder-page .builder-status-strip {
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  justify-content: flex-end;
  margin: 0 0 10px;
  padding: 0;
}

.builder-page .builder-status-strip span,
.builder-page .save-status,
.builder-page .success-badge,
.builder-page .warning-badge,
.builder-page .upload-count,
.builder-page .busy-banner {
  background: rgba(255, 250, 240, 0.78);
  border: 1px solid var(--studio-line);
  border-radius: 999px;
  box-shadow: none;
  color: var(--studio-muted);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.01em;
  padding: 8px 11px;
}

.builder-page .small-button,
.builder-page .builder-status-strip .small-button {
  background: rgba(255, 250, 240, 0.72);
  border: 1px solid var(--studio-line);
  border-radius: 999px;
  box-shadow: none;
  color: var(--studio-ink);
  font-size: 0.82rem;
  font-weight: 820;
  min-height: 36px;
  padding: 0 14px;
}

.builder-page .builder-intro {
  align-items: end;
  gap: clamp(16px, 3vw, 42px);
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.52fr);
  margin: 8px 0 16px;
}

.builder-page .builder-intro .eyebrow,
.builder-page .studio-panel-header .eyebrow {
  color: var(--studio-red);
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.builder-page .builder-intro h1 {
  color: var(--studio-ink);
  font-size: clamp(2.55rem, 4.2vw, 5.35rem);
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.builder-page .builder-intro p:last-child {
  color: var(--studio-muted);
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  font-weight: 620;
  line-height: 1.5;
  max-width: 560px;
}

.builder-page .stepper {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.82), rgba(255, 250, 240, 0.58)),
    rgba(255, 250, 240, 0.74);
  border: 1px solid var(--studio-line);
  border-radius: 24px;
  box-shadow: var(--studio-soft-shadow);
  gap: 4px;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 6px;
  position: relative;
}

.builder-page .stepper::before {
  background: linear-gradient(90deg, transparent, rgba(23, 16, 12, 0.14), transparent);
  content: "";
  height: 1px;
  left: 9%;
  position: absolute;
  right: 9%;
  top: 50%;
}

.builder-page .step-pill {
  border-radius: 18px;
  color: var(--studio-muted);
  gap: 8px;
  min-height: 42px;
  padding: 5px 8px;
  position: relative;
  z-index: 1;
}

.builder-page .step-pill span {
  background: var(--studio-canvas);
  border: 1px solid var(--studio-line);
  color: var(--studio-muted);
  font-size: 0.8rem;
  height: 28px;
  width: 28px;
}

.builder-page .step-pill small {
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.01em;
}

.builder-page .step-pill.active {
  background: var(--studio-ink);
  box-shadow: 0 14px 28px rgba(23, 16, 12, 0.18);
  color: #fffaf0;
}

.builder-page .step-pill.active span {
  background: #fffaf0;
  border-color: #fffaf0;
  color: var(--studio-red);
}

.builder-page .step-pill.complete:not(.active) {
  color: var(--studio-green);
}

.builder-page .step-pill.complete:not(.active) span {
  background: rgba(31, 111, 76, 0.1);
  border-color: rgba(31, 111, 76, 0.18);
  color: var(--studio-green);
}

.builder-page .builder-panel,
.builder-page .studio-panel {
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.94), rgba(255, 248, 236, 0.82)),
    var(--studio-surface);
  border: 1px solid var(--studio-line);
  border-radius: 32px;
  box-shadow: var(--studio-shadow);
}

.builder-page .studio-panel {
  overflow: hidden;
  padding: 0;
}

.builder-page .studio-panel-header {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 252, 244, 0.98), rgba(247, 239, 224, 0.82)),
    var(--studio-canvas);
  border-bottom: 1px solid var(--studio-line);
  padding: 22px clamp(22px, 2.2vw, 36px);
}

.builder-page .studio-panel-header h2 {
  color: var(--studio-ink);
  font-size: clamp(1.85rem, 2.7vw, 3.15rem);
  letter-spacing: -0.035em;
  line-height: 0.96;
  word-spacing: 0.05em;
}

.builder-page .studio-panel-header .soft-copy {
  color: var(--studio-muted);
  font-size: 0.94rem;
  font-weight: 610;
  line-height: 1.48;
  max-width: 760px;
}

.builder-page .builder-studio-layout {
  background:
    linear-gradient(90deg, rgba(23, 16, 12, 0.035), transparent 1px, transparent calc(100% - 1px), rgba(23, 16, 12, 0.035)),
    rgba(255, 250, 240, 0.28);
  grid-template-columns: minmax(260px, 300px) minmax(560px, 1fr) minmax(260px, 310px);
  min-height: min(760px, calc(100vh - 250px));
}

.builder-page .studio-sidebar {
  gap: 12px;
  padding: 18px;
}

.builder-page .studio-settings {
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.74), rgba(248, 241, 229, 0.58)),
    rgba(255, 250, 240, 0.5);
  border-right: 1px solid var(--studio-line);
}

.builder-page .studio-guidance {
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.86), rgba(248, 241, 229, 0.66)),
    rgba(255, 250, 240, 0.54);
  border-left: 1px solid var(--studio-line);
  position: sticky;
  top: 102px;
}

.builder-page .studio-main {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.44), rgba(255, 250, 240, 0.72)),
    repeating-linear-gradient(135deg, rgba(23, 16, 12, 0.018) 0 1px, transparent 1px 18px);
  gap: 18px;
  padding: clamp(18px, 2.2vw, 30px);
}

.builder-page .studio-action-card,
.builder-page .download-card,
.builder-page .generator-card,
.builder-page .template-section-card,
.builder-page .text-style-card,
.builder-page .design-control-card,
.builder-page .label-style-panel,
.builder-page .photo-edit,
.builder-page .upload-progress-card,
.builder-page .cards-main-head,
.builder-page .ai-glow-panel {
  background: var(--studio-surface-strong);
  border: 1px solid var(--studio-line);
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(50, 31, 20, 0.06);
}

.builder-page .studio-action-card {
  gap: 8px;
  padding: 15px;
}

.builder-page .studio-action-card.success {
  background: linear-gradient(135deg, rgba(31, 111, 76, 0.1), rgba(255, 250, 240, 0.92));
  border-color: rgba(31, 111, 76, 0.16);
}

.builder-page .studio-action-card.warning {
  background: linear-gradient(135deg, rgba(182, 36, 27, 0.09), rgba(255, 250, 240, 0.92));
  border-color: rgba(182, 36, 27, 0.18);
}

.builder-page .studio-action-card strong,
.builder-page .project-start-card h3,
.builder-page .cards-main-head strong,
.builder-page .feature-card h3,
.builder-page .generator-card h3,
.builder-page .download-card h3 {
  color: var(--studio-ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.builder-page .studio-action-card p,
.builder-page .soft-copy,
.builder-page .studio-settings .soft-copy,
.builder-page .studio-guidance .soft-copy,
.builder-page .cards-main-head p,
.builder-page .project-start-card > p {
  color: var(--studio-muted);
  font-weight: 610;
}

.builder-page .studio-stat-grid span {
  color: var(--studio-red);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.builder-page label span,
.builder-page .control-label {
  color: var(--studio-muted);
  font-size: 0.77rem;
  font-weight: 780;
  letter-spacing: 0.02em;
}

.builder-page input,
.builder-page select,
.builder-page textarea,
.builder-page .template-select-label select,
.builder-page .color-inline,
.builder-page .weight-picker,
.builder-page .alignment-picker {
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid var(--studio-line);
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  color: var(--studio-ink);
}

.builder-page input,
.builder-page select,
.builder-page textarea {
  font-size: 0.92rem;
  min-height: 42px;
  padding: 0 12px;
}

.builder-page textarea {
  min-height: 84px;
  padding: 11px 12px;
}

.builder-page input:focus,
.builder-page select:focus,
.builder-page textarea:focus {
  border-color: rgba(31, 111, 76, 0.42);
  box-shadow: 0 0 0 4px rgba(31, 111, 76, 0.11);
  outline: 0;
}

.builder-page .project-start-card {
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.94), rgba(241, 234, 219, 0.76)),
    var(--studio-canvas);
  border: 1px solid var(--studio-line);
  border-radius: 26px;
  box-shadow: none;
  min-height: 260px;
  padding: clamp(22px, 3vw, 38px);
}

.builder-page .project-start-card .logo-mark {
  height: 42px;
  width: 42px;
}

.builder-page .project-start-card h3 {
  font-size: clamp(2rem, 4vw, 4.5rem);
  letter-spacing: -0.07em;
}

.builder-page .project-access-callout {
  background: rgba(255, 250, 240, 0.74);
  border: 1px solid var(--studio-line);
  border-radius: 20px;
  padding: 14px;
}

.builder-page .drop-zone {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.86), rgba(255, 250, 240, 0.64)),
    repeating-linear-gradient(135deg, rgba(23, 16, 12, 0.025) 0 1px, transparent 1px 12px);
  border: 1.5px dashed rgba(182, 36, 27, 0.28);
  border-radius: 22px;
  box-shadow: none;
}

.builder-page .studio-settings .drop-zone {
  min-height: 152px;
  padding: 14px;
}

.builder-page .drop-art {
  background:
    linear-gradient(135deg, var(--studio-red) 0 48%, var(--studio-gold) 48% 68%, var(--studio-green) 68%),
    var(--studio-red);
  border: 4px solid rgba(255, 250, 240, 0.96);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(50, 31, 20, 0.12);
  height: 50px;
  margin-bottom: 10px;
  width: 72px;
}

.builder-page .drop-art::before,
.builder-page .drop-art::after {
  height: 14px;
  width: 14px;
}

.builder-page .cards-main {
  gap: 18px;
}

.builder-page .cards-main-head {
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.96), rgba(243, 236, 222, 0.74));
  padding: 16px 18px;
}

.builder-page .cards-main-head span {
  background: var(--studio-ink);
  box-shadow: none;
  color: #fffaf0;
}

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

.builder-page .card-editor {
  background: rgba(255, 252, 244, 0.9);
  border: 1px solid var(--studio-line);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(50, 31, 20, 0.08);
  gap: 11px;
  padding: 14px;
}

.builder-page .card-preview,
.builder-page .card-preview-canvas {
  border-color: rgba(255, 250, 240, 0.98);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(50, 31, 20, 0.13);
}

.builder-page .card-tools,
.builder-page .crop-toggle,
.builder-page .secondary-downloads {
  gap: 6px;
}

.builder-page .card-tools button,
.builder-page .crop-toggle button,
.builder-page .secondary-downloads button {
  background: rgba(255, 250, 240, 0.86);
  border: 1px solid var(--studio-line);
  border-radius: 999px;
  color: var(--studio-muted);
  font-size: 0.75rem;
  font-weight: 780;
}

.builder-page .crop-toggle {
  background: rgba(23, 16, 12, 0.06);
}

.builder-page .crop-toggle button.active {
  background: var(--studio-ink);
  color: #fffaf0;
}

.builder-page .ai-glow-panel {
  overflow: hidden;
}

.builder-page .cards-studio-panel .ai-glow-panel {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 220, 104, 0.28), transparent 30%),
    radial-gradient(circle at 92% 88%, rgba(27, 116, 97, 0.14), transparent 35%),
    linear-gradient(135deg, #fff7df, #fffdf7 52%, #f1fbf5);
  border-color: rgba(77, 45, 28, 0.12);
  color: var(--studio-ink);
}

.builder-page .cards-studio-panel .ai-glow-copy h3,
.builder-page .cards-studio-panel .ai-glow-copy p,
.builder-page .cards-studio-panel .ai-glow-kicker {
  color: var(--studio-ink);
}

.builder-page .cards-studio-panel .ai-glow-copy p {
  opacity: 1;
}

.builder-page .ai-token-pill {
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid rgba(77, 45, 28, 0.12);
  color: var(--studio-ink);
}

.builder-page .ai-card-tools {
  gap: 8px;
}

.builder-page .sparkle-button {
  background: linear-gradient(135deg, var(--studio-red), #1b7461);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(182, 36, 27, 0.16);
  color: #fffaf0;
  font-weight: 860;
}

.builder-page .template-section-card,
.builder-page .text-style-card,
.builder-page .design-control-card {
  padding: 12px;
}

.builder-page .template-section-card summary,
.builder-page .text-style-card summary,
.builder-page .design-control-card summary {
  border-radius: 14px;
}

.builder-page .text-style-icon {
  background: var(--studio-ink);
  border-radius: 10px;
}

.builder-page .template-current-preview,
.builder-page .conditional-background-controls,
.builder-page .font-live-preview {
  background: rgba(255, 250, 240, 0.72);
  border: 1px solid var(--studio-line);
  border-radius: 16px;
}

.builder-page .designer-preview,
.builder-page .single-board-preview-panel {
  align-content: start;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.7), rgba(244, 237, 224, 0.62));
  border: 1px solid var(--studio-line);
  border-radius: 28px;
  display: grid;
  gap: 14px;
  justify-items: center;
  min-height: 560px;
  padding: clamp(16px, 2vw, 28px);
}

.builder-page .canvas-board-preview {
  background: rgba(255, 250, 240, 0.94);
  border: 1px solid var(--studio-line);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(50, 31, 20, 0.14);
  padding: 10px;
}

.builder-page .empty-gallery,
.builder-page .cards-empty-state {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.82), rgba(248, 241, 229, 0.72));
  border: 1px dashed rgba(23, 16, 12, 0.18);
  border-radius: 24px;
  box-shadow: none;
}

.builder-page .mixing-bar,
.builder-page .upload-progress-track {
  background: rgba(23, 16, 12, 0.08);
  height: 7px;
}

.builder-page .mixing-bar span,
.builder-page .upload-progress-track i {
  background: linear-gradient(90deg, var(--studio-red), var(--studio-gold), var(--studio-green));
}

@media (max-width: 1320px) {
  .builder-page .builder-studio-layout {
    grid-template-columns: minmax(240px, 280px) minmax(480px, 1fr) minmax(240px, 280px);
  }

  .builder-page .studio-sidebar {
    padding: 14px;
  }

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

  .builder-page .cards-studio-panel .ai-glow-panel {
    grid-template-columns: minmax(240px, 1fr) minmax(190px, auto);
  }

  .builder-page .cards-studio-panel .ai-glow-controls {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .builder-page .cards-studio-panel .ai-main-cta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1080px) {
  .builder-page .builder-intro,
  .builder-page .builder-studio-layout {
    grid-template-columns: 1fr;
  }

  .builder-page .studio-settings,
  .builder-page .studio-guidance {
    border-left: 0;
    border-right: 0;
    position: static;
  }

  .builder-page .studio-settings {
    border-bottom: 1px solid var(--studio-line);
  }

  .builder-page .studio-guidance {
    border-top: 1px solid var(--studio-line);
  }

  .builder-page .studio-sidebar,
  .builder-page .studio-main {
    padding: 18px;
  }

  .builder-page .cards-sidebar,
  .builder-page .generator-sidebar {
    position: static;
  }

  .builder-page .stepper {
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(160px, 1fr));
  }
}

@media (max-width: 760px) {
  .builder-page .cards-studio-panel .ai-glow-panel,
  .builder-page .cards-studio-panel .ai-glow-controls {
    grid-template-columns: 1fr;
  }

  .builder-page .cards-studio-panel .ai-glow-demo {
    order: -1;
  }
}

@media (max-width: 700px) {
  .builder-page .top-nav {
    border-radius: 0 0 22px 22px;
    margin-top: 0;
  }

  .builder-page .builder-shell {
    padding: 14px 12px 42px;
  }

  .builder-page .builder-intro {
    margin-top: 14px;
  }

  .builder-page .builder-intro h1 {
    font-size: clamp(2.55rem, 14vw, 4rem);
  }

  .builder-page .stepper {
    border-radius: 18px;
    margin-left: -2px;
    margin-right: -2px;
    padding: 5px;
  }

  .builder-page .step-pill {
    justify-content: start;
    min-height: 40px;
  }

  .builder-page .studio-panel,
  .builder-page .builder-panel {
    border-radius: 24px;
  }

  .builder-page .studio-panel-header {
    align-items: start;
    display: grid;
    padding: 20px;
  }

  .builder-page .studio-panel-header h2 {
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

  .builder-page .studio-sidebar,
  .builder-page .studio-main {
    padding: 14px;
  }

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

  .builder-page .designer-preview,
  .builder-page .single-board-preview-panel {
    min-height: 420px;
    padding: 12px;
  }

  .builder-page .studio-action-row {
    position: static;
  }
}

/* Support-first admin cockpit */
.admin-page {
  --admin-ink: #17100c;
  --admin-muted: #6b5a4f;
  --admin-red: #b6241b;
  --admin-green: #1f6f4c;
  --admin-gold: #d79a29;
  --admin-line: rgba(23, 16, 12, 0.11);
  --admin-surface: rgba(255, 250, 240, 0.88);
}

.admin-page .admin-shell {
  max-width: 1740px;
}

.admin-hero-panel,
.admin-cockpit,
.admin-command-card,
.admin-context-card,
.admin-card-table,
.admin-background-tile {
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(255, 248, 236, 0.82)),
    var(--admin-surface);
  border: 1px solid var(--admin-line);
  border-radius: 28px;
  box-shadow: 0 22px 58px rgba(50, 31, 20, 0.1);
}

.admin-hero-panel {
  align-items: end;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 18px 0;
  padding: clamp(22px, 3vw, 38px);
}

.admin-hero-panel h2 {
  color: var(--admin-ink);
  font-size: clamp(2.35rem, 4vw, 5.25rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin: 0;
  word-spacing: 0.08em;
}

.admin-quick-actions,
.admin-filter-bar,
.inline-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-quick-actions {
  justify-content: end;
}

.admin-cockpit {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.4vw, 32px);
}

.admin-page .admin-cockpit-summary {
  grid-template-columns: repeat(8, minmax(120px, 1fr));
}

.admin-health-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, minmax(160px, 1fr));
}

.admin-health-card {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.9), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 246, 0.9));
  border: 1px solid var(--admin-line);
  border-top: 5px solid var(--loteria-blue, #20aeea);
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(24, 16, 10, 0.07);
  color: var(--admin-ink);
  cursor: pointer;
  display: grid;
  gap: 14px;
  padding: 16px;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.admin-health-card:hover {
  box-shadow: 0 20px 42px rgba(24, 16, 10, 0.1);
  transform: translateY(-2px);
}

.admin-health-card.green { border-top-color: var(--loteria-green, #1f9d58); }
.admin-health-card.blue { border-top-color: var(--loteria-blue, #20aeea); }
.admin-health-card.gold { border-top-color: var(--loteria-yellow, #f7bf2d); }
.admin-health-card.purple { border-top-color: var(--loteria-purple, #6b4bd8); }
.admin-health-card.teal { border-top-color: #11a7a0; }
.admin-health-card.red { border-top-color: var(--loteria-red, #d5251f); }

.admin-health-card > strong {
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.admin-health-card > div {
  display: grid;
  gap: 8px;
}

.admin-health-card > div span {
  align-items: center;
  background: rgba(23, 16, 12, 0.045);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  padding: 9px 10px;
}

.admin-health-card em {
  color: var(--admin-muted);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 850;
}

.admin-health-card b {
  color: var(--admin-ink);
  font-size: 0.96rem;
  font-weight: 950;
}

.admin-page .admin-summary-grid article {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.9), rgba(255, 250, 240, 0.66)),
    #fffaf0;
  border: 1px solid var(--admin-line);
  box-shadow: none;
}

.admin-page .admin-tabs {
  background: rgba(255, 250, 240, 0.72);
  border-color: var(--admin-line);
  border-radius: 22px;
}

.admin-page .admin-tabs button.active,
.admin-page .admin-tabs button:hover {
  background: var(--admin-ink);
  color: #fffaf0;
}

.admin-message {
  border-radius: 18px;
  margin: 0;
}

.admin-dashboard-grid {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.admin-command-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.admin-command-card h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: -0.04em;
  margin: 0;
}

.admin-command-list,
.admin-feed-list,
.admin-context-stack,
.admin-mini-feed,
.admin-related-list {
  display: grid;
  gap: 10px;
}

.admin-command-list button,
.admin-feed-list button,
.admin-context-stack button,
.admin-related-item {
  background: rgba(255, 250, 240, 0.86);
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  color: var(--admin-ink);
  cursor: pointer;
  padding: 13px;
  text-align: left;
  transition: border 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.admin-command-list button:hover,
.admin-feed-list button:hover,
.admin-context-stack button:hover,
.admin-related-item:hover {
  border-color: rgba(182, 36, 27, 0.24);
  box-shadow: 0 12px 28px rgba(50, 31, 20, 0.1);
  transform: translateY(-1px);
}

.admin-feed-list strong,
.admin-context-stack strong,
.admin-related-item strong {
  display: block;
  font-size: 0.94rem;
}

.admin-feed-list span,
.admin-context-stack span,
.admin-related-item small {
  color: var(--admin-muted);
  display: block;
  font-size: 0.82rem;
  font-weight: 720;
  margin-top: 3px;
}

.admin-filter-bar {
  background: rgba(255, 250, 240, 0.76);
  border: 1px solid var(--admin-line);
  border-radius: 22px;
  padding: 10px;
}

.admin-filter-bar input,
.admin-filter-bar select {
  flex: 1 1 210px;
  min-width: 0;
}

.support-admin-panel {
  display: grid;
  gap: 16px;
}

.support-workspace-header {
  align-items: end;
  background: linear-gradient(135deg, #fff 0%, #fff8ee 55%, #f4efff 100%);
  border: 1px solid var(--admin-line);
  border-radius: 26px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 20px;
}

.support-workspace-header h2 { color: var(--admin-ink); margin: 4px 0 5px; }
.support-workspace-header p { color: var(--admin-muted); margin: 0; max-width: 660px; }
.support-workspace-switcher { background: #fff; border: 1px solid var(--admin-line); border-radius: 16px; display: flex; gap: 4px; padding: 4px; }
.support-workspace-switcher button { align-items: center; background: transparent; border: 0; border-radius: 12px; color: var(--admin-muted); cursor: pointer; display: flex; font-weight: 850; gap: 8px; padding: 10px 13px; white-space: nowrap; }
.support-workspace-switcher button.active { background: #241b34; color: #fff; }
.support-workspace-switcher button span { align-items: center; background: rgba(128, 113, 147, 0.16); border-radius: 999px; display: inline-flex; font-size: .72rem; justify-content: center; min-width: 23px; padding: 3px 6px; }
.support-workspace-switcher button span.alert { background: #fee2e2; color: #a61b1b; }
.support-inbox-toolbar { position: sticky; top: 8px; z-index: 4; }

.support-inbox-workspace {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
}

.support-ticket-list {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--admin-line);
  border-radius: 22px;
  display: grid;
  gap: 7px;
  max-height: 72vh;
  overflow: auto;
  padding: 8px;
  position: sticky;
  top: 82px;
}

.support-ticket-preview { background: transparent; border: 1px solid transparent; border-radius: 15px; color: var(--admin-ink); cursor: pointer; display: grid; gap: 6px; padding: 12px; text-align: left; width: 100%; }
.support-ticket-preview:hover { background: #fffaf2; }
.support-ticket-preview.active { background: #f5f0ff; border-color: #d6c8f5; box-shadow: inset 3px 0 #7654c9; }
.support-ticket-preview-top, .support-ticket-preview-bottom { align-items: center; display: flex; gap: 7px; justify-content: space-between; }
.support-ticket-preview-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-ticket-preview-top time { color: var(--admin-muted); font-size: .7rem; white-space: nowrap; }
.support-ticket-preview-subject { color: var(--admin-muted); font-size: .82rem; font-weight: 740; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-ticket-preview-bottom { color: var(--admin-muted); font-size: .7rem; justify-content: flex-start; text-transform: capitalize; }
.support-ticket-preview-bottom b { background: #e93186; border-radius: 999px; color: #fff; margin-left: auto; min-width: 20px; padding: 2px 6px; text-align: center; }
.status-dot { background: #20aeea; border-radius: 50%; height: 8px; width: 8px; }
.status-dot.awaiting_support, .status-dot.open { background: #e93186; }
.status-dot.awaiting_customer, .status-dot.in_progress { background: #f7bf2d; }
.status-dot.resolved, .status-dot.closed { background: #1f9d58; }
.support-conversation-workspace { min-width: 0; }
.support-conversation-workspace .support-request-card { min-height: 520px; }

@media (max-width: 840px) {
  .support-workspace-header { align-items: stretch; flex-direction: column; }
  .support-workspace-switcher { width: 100%; }
  .support-workspace-switcher button { flex: 1; justify-content: center; }
  .support-inbox-workspace { grid-template-columns: 1fr; }
  .support-ticket-list { max-height: 240px; position: static; }
  .support-contact-strip { display: none; }
}

.support-empty-card,
.support-request-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 240, 0.88)),
    #fffaf0;
  border: 1px solid var(--admin-line);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(50, 31, 20, 0.08);
}

.support-empty-card h3,
.support-request-card h3 {
  color: var(--admin-ink);
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}

.support-contact-strip {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--admin-line);
  border-radius: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
}

.support-contact-strip span {
  color: var(--admin-muted);
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.35;
}

.email-operations-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--admin-line);
  border-radius: 22px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

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

.email-operations-panel > .section-minihead > div:first-child {
  display: grid;
  gap: 3px;
}

.email-ops-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.email-ops-summary span {
  background: #f2f5f8;
  border: 1px solid #d9e2ef;
  border-radius: 999px;
  color: #4b5563;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 7px 10px;
}

.email-ops-summary span.has-alert {
  background: #fff0f0;
  border-color: #efb1b1;
  color: #a61b1b;
}

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

.email-event-card.etsy-exception-card {
  grid-column: 1 / -1;
}

.email-event-list {
  display: grid;
  gap: 9px;
  max-height: 520px;
  overflow: auto;
}

.email-event-row,
.email-provider-row {
  align-items: start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  display: grid;
  gap: 8px;
  padding: 11px;
}

.email-event-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.email-event-row > div:first-child,
.email-provider-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.email-event-row strong,
.email-provider-row strong {
  color: #172033;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.email-event-row span,
.email-provider-row span,
.email-event-row small,
.email-provider-row small {
  color: #64748b;
  font-size: 0.74rem;
  overflow-wrap: anywhere;
}

.email-event-row > p {
  color: #9b1c1c;
  font-size: 0.74rem;
  grid-column: 1 / -1;
  margin: 0;
  max-height: 4.3em;
  overflow: auto;
  white-space: pre-wrap;
}

.email-event-actions {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.email-provider-row {
  grid-template-columns: auto minmax(0, 1fr);
}

.status-badge.failed,
.status-badge.bounced,
.status-badge.complained,
.status-badge.suppressed {
  background: #fff0f0;
  border-color: #efb1b1;
  color: #a61b1b;
}

.status-badge.queued,
.status-badge.sending,
.status-badge.sent {
  background: #eef5ff;
  border-color: #b8d2f3;
  color: #245c9c;
}

@media (max-width: 900px) {
  .email-operations-grid { grid-template-columns: 1fr; }
  .email-event-card.etsy-exception-card { grid-column: auto; }
}

.support-request-list {
  display: grid;
  gap: 14px;
}

.support-request-card {
  border-left: 6px solid var(--loteria-blue, #20aeea);
  display: grid;
  gap: 14px;
  padding: 16px;
}

.support-request-card.open { border-left-color: var(--loteria-magenta, #e93186); }
.support-request-card.in_progress { border-left-color: var(--loteria-yellow, #f7bf2d); }
.support-request-card.resolved,
.support-request-card.closed { border-left-color: var(--loteria-green, #1f9d58); }

.support-request-top,
.support-request-main,
.support-context-list {
  align-items: start;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.support-request-top {
  justify-content: space-between;
}

.support-request-top time {
  color: var(--admin-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.support-request-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.32fr);
}

.support-request-main p {
  color: var(--admin-muted);
  font-weight: 780;
  line-height: 1.5;
  margin: 8px 0 0;
  white-space: pre-wrap;
}

.support-request-main aside {
  background: rgba(32, 174, 234, 0.08);
  border: 1px solid rgba(32, 174, 234, 0.16);
  border-radius: 18px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.support-request-main aside strong {
  color: var(--admin-ink);
}

.support-request-main aside a {
  color: var(--loteria-green, #1f9d58);
  font-size: 0.86rem;
  font-weight: 950;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.support-request-main aside span,
.support-context-list span {
  color: var(--admin-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.support-context-list span {
  background: rgba(23, 16, 12, 0.045);
  border: 1px solid var(--admin-line);
  border-radius: 999px;
  padding: 7px 10px;
}

.activity-admin-panel,
.activity-overview-grid,
.activity-row-list,
.activity-event-list,
.activity-lead-list {
  display: grid;
  gap: 14px;
}

.activity-kpi-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.activity-kpi-grid article {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 240, 0.86)),
    #fffaf0;
  border: 1px solid var(--admin-line);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(50, 31, 20, 0.07);
  display: grid;
  gap: 4px;
  padding: 16px;
}

.activity-kpi-grid article.danger {
  border-color: rgba(213, 37, 31, 0.28);
}

.activity-kpi-grid span,
.activity-kpi-grid small,
.activity-freshness,
.activity-session-row small,
.activity-event-row small,
.activity-lead-row small {
  color: var(--admin-muted);
  font-size: 0.78rem;
  font-weight: 840;
}

.activity-kpi-grid strong {
  color: var(--admin-ink);
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.activity-filter-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.activity-filter-bar .compact-tabs {
  flex: 2 1 420px;
  margin: 0;
}

.activity-freshness {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

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

.activity-overview-grid.two-col {
  align-items: start;
}

.activity-session-row,
.activity-event-row,
.activity-lead-row,
.activity-empty-card {
  background: rgba(255, 250, 240, 0.78);
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  padding: 13px;
}

.activity-session-row,
.activity-event-row,
.activity-lead-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.activity-session-row strong,
.activity-event-row strong,
.activity-lead-row strong,
.support-activity-block > strong {
  color: var(--admin-ink);
  display: block;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.activity-session-row span,
.activity-lead-row span {
  color: #5f473a;
  display: block;
  font-size: 0.84rem;
  font-weight: 850;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.activity-session-row aside {
  display: grid;
  gap: 4px;
  justify-items: end;
  min-width: 112px;
}

.activity-session-row aside b,
.activity-event-chip {
  background: rgba(107, 75, 216, 0.1);
  border: 1px solid rgba(107, 75, 216, 0.16);
  border-radius: 999px;
  color: var(--loteria-purple, #6b4bd8);
  font-size: 0.72rem;
  font-weight: 950;
  padding: 5px 8px;
  text-transform: capitalize;
}

.activity-session-row time,
.activity-event-row time,
.support-activity-timeline time {
  color: var(--admin-muted);
  font-size: 0.72rem;
  font-weight: 820;
  white-space: nowrap;
}

.activity-event-row {
  border-left: 5px solid var(--loteria-blue, #20aeea);
}

.activity-event-row.severity-warning {
  border-left-color: var(--loteria-yellow, #f7bf2d);
}

.activity-event-row.severity-error {
  border-left-color: var(--loteria-red, #d5251f);
}

.activity-event-row.severity-error .activity-event-chip,
.support-activity-timeline .severity-error b {
  background: rgba(213, 37, 31, 0.1);
  border-color: rgba(213, 37, 31, 0.18);
  color: var(--loteria-red, #d5251f);
}

.activity-event-row.severity-warning .activity-event-chip,
.support-activity-timeline .severity-warning b {
  background: rgba(247, 191, 45, 0.16);
  border-color: rgba(247, 191, 45, 0.28);
  color: #8a5d00;
}

.activity-journey-table-wrap {
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  overflow-x: auto;
}

.activity-journey-table {
  border-collapse: collapse;
  min-width: 1120px;
  width: 100%;
}

.activity-journey-table th,
.activity-journey-table td {
  border-bottom: 1px solid rgba(21, 17, 15, 0.08);
  color: var(--admin-ink);
  font-size: 0.82rem;
  line-height: 1.35;
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}

.activity-journey-table th {
  background: #fffaf0;
  color: var(--admin-muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  position: sticky;
  top: 0;
  text-transform: uppercase;
}

.activity-journey-table tr:last-child td {
  border-bottom: 0;
}

.activity-journey-table tr.severity-warning td:first-child {
  box-shadow: inset 5px 0 0 var(--loteria-yellow, #f7bf2d);
}

.activity-journey-table tr.severity-error td:first-child {
  box-shadow: inset 5px 0 0 var(--loteria-red, #d5251f);
}

.activity-journey-table strong,
.activity-journey-table small {
  display: block;
  overflow-wrap: anywhere;
}

.activity-journey-table small,
.activity-journey-table time {
  color: var(--admin-muted);
  font-size: 0.72rem;
  font-weight: 820;
}

.activity-journey-table code {
  background: rgba(41, 189, 242, 0.1);
  border: 1px solid rgba(41, 189, 242, 0.18);
  border-radius: 999px;
  color: #075985;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 850;
  padding: 4px 7px;
  white-space: nowrap;
}

.activity-lead-row .small-button {
  white-space: nowrap;
}

.activity-empty-card {
  display: grid;
  gap: 5px;
}

.activity-empty-card h3 {
  color: var(--admin-ink);
  font-size: 1.05rem;
  margin: 0;
}

.activity-empty-card p {
  color: var(--admin-muted);
  font-size: 0.86rem;
  font-weight: 780;
  margin: 0;
}

.support-activity-block {
  background: rgba(23, 16, 12, 0.035);
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  display: grid;
  gap: 9px;
  padding: 12px;
}

.support-activity-timeline {
  display: grid;
  gap: 7px;
}

.support-activity-timeline span {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 23, 17, 0.06);
  border-radius: 14px;
  display: grid;
  gap: 3px;
  grid-template-columns: minmax(110px, 0.34fr) minmax(0, 1fr) auto;
  padding: 8px 10px;
}

.support-activity-timeline b {
  background: rgba(32, 174, 234, 0.1);
  border: 1px solid rgba(32, 174, 234, 0.16);
  border-radius: 999px;
  color: var(--loteria-blue, #20aeea);
  font-size: 0.7rem;
  font-weight: 950;
  padding: 4px 7px;
  text-transform: capitalize;
}

.support-activity-timeline small {
  color: var(--admin-muted);
  font-size: 0.74rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.support-empty-card {
  padding: 22px;
}

.admin-page .admin-workspace {
  align-items: start;
  display: grid;
  gap: 18px;
}

.admin-page .support-workspace {
  grid-template-columns: minmax(260px, 0.82fr) minmax(340px, 1fr) minmax(290px, 0.82fr);
}

.admin-page .project-inspector-workspace {
  grid-template-columns: minmax(300px, 0.42fr) minmax(520px, 1fr);
}

.admin-page .ai-admin-workspace {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
}

.admin-page .ai-admin-workspace .admin-code-card {
  align-items: start;
  grid-template-columns: 1fr;
}

.admin-page .ai-admin-workspace textarea {
  width: 100%;
}

.admin-page .admin-list-panel,
.admin-page .admin-manager-card,
.admin-page .admin-detail-card,
.admin-page .admin-code-card,
.admin-context-card {
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.94), rgba(255, 248, 236, 0.78)),
    #fffaf0;
  border: 1px solid var(--admin-line);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(50, 31, 20, 0.08);
}

.admin-context-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

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

.admin-support-metrics article,
.admin-row-metrics span {
  background: rgba(31, 111, 76, 0.07);
  border: 1px solid rgba(31, 111, 76, 0.12);
  border-radius: 16px;
  padding: 11px;
}

.admin-support-metrics span,
.admin-row-metrics span {
  color: var(--admin-muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 860;
}

.admin-support-metrics strong {
  display: block;
  font-size: 1.05rem;
  margin-top: 3px;
}

.admin-related-item {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.admin-related-item em,
.status-badge {
  background: rgba(31, 111, 76, 0.1);
  border: 1px solid rgba(31, 111, 76, 0.16);
  border-radius: 999px;
  color: var(--admin-green);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  padding: 6px 9px;
  text-transform: uppercase;
}

.status-badge.paused,
.status-badge.expired,
.status-badge.used {
  background: rgba(182, 36, 27, 0.08);
  border-color: rgba(182, 36, 27, 0.18);
  color: var(--admin-red);
}

.status-badge.open {
  background: rgba(233, 49, 134, 0.1);
  border-color: rgba(233, 49, 134, 0.18);
  color: var(--loteria-magenta, #e93186);
}

.status-badge.in-progress {
  background: rgba(247, 191, 45, 0.18);
  border-color: rgba(247, 191, 45, 0.28);
  color: #8a5b00;
}

.status-badge.resolved,
.status-badge.closed {
  background: rgba(31, 157, 88, 0.1);
  border-color: rgba(31, 157, 88, 0.16);
  color: var(--loteria-green, #1f9d58);
}

.admin-card-table {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.admin-code-row,
.admin-ledger-row {
  align-items: center;
  background: rgba(255, 250, 240, 0.84);
  border: 1px solid var(--admin-line);
  border-radius: 20px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 0.95fr) minmax(270px, 1.08fr) minmax(220px, 0.8fr) auto;
  padding: 14px;
}

.admin-ledger-row {
  grid-template-columns: minmax(180px, 1.2fr) repeat(4, minmax(110px, 0.8fr));
}

.admin-code-row h3 {
  font-size: 1.2rem;
  margin: 7px 0 0;
}

.admin-code-row p,
.admin-ledger-row span {
  color: var(--admin-muted);
  font-weight: 720;
  margin: 0;
}

.codes-admin-workspace {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(360px, 0.86fr) minmax(420px, 1fr);
  margin-bottom: 16px;
}

.code-create-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

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

.code-form-grid label,
.admin-code-assignment {
  display: grid;
  gap: 7px;
}

.code-form-grid label.wide {
  grid-column: 1 / -1;
}

.streamlined-code-form {
  grid-template-columns: 1fr;
}

.code-form-grid span,
.admin-code-assignment span {
  color: var(--admin-muted);
  font-size: 0.73rem;
  font-weight: 930;
  text-transform: uppercase;
}

.code-form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.code-form-actions .primary-button {
  min-width: 180px;
}

.code-ticket-preview {
  background:
    linear-gradient(135deg, rgba(41, 189, 242, 0.16), transparent 34%),
    linear-gradient(135deg, transparent 48%, rgba(255, 211, 51, 0.26) 48% 63%, transparent 63%),
    linear-gradient(135deg, transparent 66%, rgba(236, 47, 145, 0.18) 66%),
    #fffaf0;
  border: 2px solid rgba(50, 31, 20, 0.18);
  border-radius: 22px;
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.52);
  display: grid;
  gap: 10px;
  padding: 16px;
}

.code-ticket-preview > span {
  color: var(--loteria-red, #d5251f);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.code-ticket-preview strong {
  color: var(--admin-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  letter-spacing: 0;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.code-ticket-preview div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.code-ticket-preview em {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(50, 31, 20, 0.12);
  border-radius: 999px;
  color: var(--admin-ink);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 850;
  max-width: 100%;
  overflow: hidden;
  padding: 7px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fixed-code-details {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fixed-code-details article {
  background: #f8fafc;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.fixed-code-details span {
  color: var(--admin-muted);
  font-size: 0.72rem;
  font-weight: 930;
  text-transform: uppercase;
}

.fixed-code-details strong {
  color: var(--admin-ink);
  font-size: 1rem;
  font-weight: 950;
}

.fixed-code-details small {
  color: var(--admin-muted);
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

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

.access-code-composer {
  grid-template-columns: minmax(260px, 1.4fr) repeat(auto-fit, minmax(150px, 0.8fr));
}

.access-code-composer .primary-button {
  min-width: 180px;
}

.etsy-code-message-card {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 18px;
}

.codes-admin-workspace .etsy-code-message-card {
  margin-top: 0;
}

.etsy-code-message-card.empty textarea {
  color: rgba(107, 90, 79, 0.72);
}

.etsy-code-message-card textarea {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  color: var(--admin-ink);
  font: 760 0.92rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  min-height: 260px;
  padding: 14px;
  resize: vertical;
  width: 100%;
}

.etsy-message-preview {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  max-height: 360px;
  overflow: auto;
  padding: 14px;
}

.etsy-message-preview pre {
  color: var(--admin-ink);
  font: 760 0.92rem/1.48 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin: 0;
  white-space: pre-wrap;
}

.etsy-delivery-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.etsy-delivery-checklist span {
  background: rgba(31, 157, 88, 0.1);
  border: 1px solid rgba(31, 157, 88, 0.16);
  border-radius: 999px;
  color: var(--loteria-green, #1f9d58);
  font-size: 0.74rem;
  font-weight: 900;
  padding: 7px 10px;
}

.etsy-code-message-card .inline-actions,
.admin-code-row .inline-actions {
  margin-top: 0;
}

.admin-code-row .inline-actions {
  justify-content: end;
}

.admin-code-main {
  min-width: 0;
}

.admin-code-main h3 {
  overflow-wrap: anywhere;
}

.admin-code-main small {
  color: var(--admin-muted);
  display: block;
  font-size: 0.76rem;
  font-weight: 820;
  margin-top: 6px;
}

.code-list-head {
  align-items: end;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--admin-line);
  border-radius: 22px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 0.72fr) minmax(420px, 1fr);
  margin-bottom: 12px;
  padding: 14px;
}

.code-list-head h3 {
  color: var(--admin-ink);
  font-size: 1.25rem;
  margin: 2px 0;
}

.code-list-head span {
  color: var(--admin-muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.code-filter-bar {
  justify-content: end;
  margin: 0;
}

.codes-card-table {
  padding: 0;
}

.admin-code-row {
  border-left: 7px solid var(--loteria-green, #1f9d58);
  grid-template-columns: minmax(220px, 0.72fr) minmax(360px, 1fr) minmax(210px, 0.62fr) minmax(190px, auto);
  padding: 16px;
}

.admin-code-row.code-status-paused,
.admin-code-row.code-status-expired {
  border-left-color: var(--loteria-yellow, #f7bf2d);
}

.admin-code-row.code-status-used {
  border-left-color: var(--loteria-magenta, #e93186);
}

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

.admin-code-row .admin-row-metrics span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-code-row .admin-row-metrics b {
  color: var(--admin-ink);
  display: block;
  font-size: 0.68rem;
  font-weight: 950;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.admin-code-assignment select {
  min-height: 40px;
}

.admin-code-assignment small {
  color: var(--admin-muted);
  font-weight: 760;
}

.sales-access-panel {
  display: grid !important;
  gap: 16px !important;
  order: 10 !important;
}

.sales-access-nav {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(240px, 1fr) auto;
}

.sales-access-nav h3,
.sales-access-toolbar h3 {
  color: var(--admin-ink);
  font-size: 1.35rem;
  margin: 2px 0;
}

.sales-access-nav span,
.sales-access-toolbar span {
  color: var(--admin-muted);
  font-size: 0.86rem;
  font-weight: 780;
}

.sales-subtabs {
  background: #f1f5f9;
  border: 1px solid var(--admin-line);
  border-radius: 999px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 300px;
  padding: 4px;
}

.sales-subtabs button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #475569;
  cursor: pointer;
  font-weight: 950;
  min-height: 38px;
  padding: 8px 14px;
}

.sales-subtabs button.active {
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  color: var(--admin-ink);
}

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

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

.access-summary-strip article {
  background: #f8fafc;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  padding: 12px;
}

.access-summary-strip span {
  color: var(--admin-muted);
  display: block;
  font-size: 0.75rem;
  font-weight: 920;
  text-transform: uppercase;
}

.access-summary-strip strong {
  color: var(--admin-ink);
  display: block;
  font-size: 1.45rem;
  margin-top: 3px;
}

.sales-access-toolbar {
  align-items: center;
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(240px, 1fr) auto;
  padding: 14px;
}

.sales-access-toolbar .inline-actions {
  justify-content: end;
  margin-top: 0;
}

.sales-access-toolbar .primary-button,
.sales-access-toolbar .secondary-button {
  min-height: 40px;
}

.access-workflow-card {
  align-items: start;
  box-shadow: none !important;
  grid-template-columns: minmax(260px, 0.7fr) minmax(340px, 1fr);
}

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

.access-workflow-card .code-ticket-preview {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.access-workflow-card .streamlined-code-form {
  align-self: end;
  grid-column: 1;
}

.access-workflow-card .fixed-code-details,
.access-workflow-card .code-form-actions {
  grid-column: 1 / -1;
}

.access-workflow-card .code-form-actions {
  justify-content: flex-end;
}

.access-code-table-shell {
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  max-height: min(700px, calc(100vh - 360px));
  overflow: auto;
}

.access-code-table {
  background: #fff;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1180px;
  width: 100%;
}

.access-code-table th,
.access-code-table td {
  border-bottom: 1px solid #e5edf6;
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}

.access-code-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 1;
}

.access-code-table tr:last-child td {
  border-bottom: 0;
}

.access-code-table tbody tr:hover {
  background: #f8fbff;
}

.access-code-table tbody tr.code-status-active td:first-child {
  box-shadow: inset 4px 0 0 var(--loteria-green, #1f9d58);
}

.access-code-table tbody tr.code-status-paused td:first-child,
.access-code-table tbody tr.code-status-expired td:first-child {
  box-shadow: inset 4px 0 0 var(--loteria-yellow, #f7bf2d);
}

.access-code-table tbody tr.code-status-used td:first-child {
  box-shadow: inset 4px 0 0 var(--loteria-magenta, #e93186);
}

.access-code-table strong,
.access-code-table small {
  display: block;
}

.access-code-table strong {
  color: var(--admin-ink);
  font-weight: 900;
}

.access-code-table small {
  color: var(--admin-muted);
  font-size: 0.76rem;
  font-weight: 760;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.access-code-table .code-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.access-code-table select {
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  color: var(--admin-ink);
  font-weight: 800;
  min-height: 36px;
  max-width: 260px;
  width: 100%;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  min-width: 210px;
}

.table-actions .small-button {
  min-height: 32px;
  padding: 6px 9px;
}

.sales-info-view .commerce-summary-grid {
  margin-bottom: 0;
}

.admin-background-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.admin-background-tile {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.admin-background-tile > span {
  background-color: #fff4dc;
  background-position: center;
  background-size: cover;
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  display: block;
  min-height: 180px;
}

.admin-background-tile button {
  background: rgba(182, 36, 27, 0.08);
  border: 1px solid rgba(182, 36, 27, 0.18);
  border-radius: 999px;
  color: var(--admin-red);
  font-weight: 850;
  min-height: 38px;
}

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

.admin-page .admin-deck-card em {
  background: rgba(215, 154, 41, 0.14);
  border-radius: 999px;
  color: #7a4b06;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
  grid-column: 2 / -1;
  justify-self: start;
  padding: 5px 8px;
  text-transform: uppercase;
}

.admin-page .admin-deck-mini i {
  background-position: center;
  background-size: cover;
}

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

.ios-analytics-hero,
.ios-filter-panel,
.ios-report-card,
.ios-table-card,
.ios-pack-strip,
.ios-warning {
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(255, 248, 236, 0.82)),
    #fffaf0;
  border: 1px solid var(--admin-line);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(50, 31, 20, 0.08);
}

.ios-analytics-hero {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 16px 18px;
}

.ios-analytics-hero h2 {
  color: var(--admin-ink);
  font-size: clamp(1.65rem, 2.6vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0;
}

.ios-analytics-hero p {
  color: var(--admin-muted);
  font-weight: 720;
  line-height: 1.45;
  margin: 6px 0 0;
  max-width: 820px;
}

.ios-filter-panel {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  padding: 12px;
}

.ios-filter-panel label,
.ios-raw-filter-row label {
  display: grid;
  gap: 6px;
}

.ios-filter-panel span,
.ios-raw-filter-row span {
  color: var(--admin-muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.ios-warning {
  background: rgba(215, 154, 41, 0.13);
  color: #704606;
  font-weight: 850;
  padding: 12px 14px;
}

.ios-warning.error {
  background: rgba(213, 37, 31, 0.09);
  color: #971b16;
}

.ios-rollup-banner,
.ios-definition-drawer {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 253, 250, 0.92));
  border: 1px solid rgba(17, 125, 118, 0.14);
  border-left: 6px solid #11a7a0;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(24, 16, 10, 0.06);
}

.ios-rollup-banner {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px 16px;
}

.ios-rollup-banner.partial {
  background: linear-gradient(135deg, rgba(255, 252, 244, 0.98), rgba(255, 248, 224, 0.88));
  border-color: rgba(247, 191, 45, 0.22);
  border-left-color: var(--loteria-yellow, #f7bf2d);
}

.ios-rollup-banner strong,
.ios-definition-drawer summary {
  color: var(--admin-ink);
  font-weight: 950;
}

.ios-rollup-banner span {
  color: var(--admin-muted);
  display: block;
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.35;
  margin-top: 2px;
}

.ios-rollup-banner em {
  background: rgba(17, 125, 118, 0.1);
  border-radius: 999px;
  color: #0e6f69;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 950;
  padding: 8px 11px;
}

.ios-definition-drawer {
  border-left-color: var(--loteria-purple, #6b4bd8);
  padding: 0;
}

.ios-definition-drawer summary {
  cursor: pointer;
  list-style-position: inside;
  padding: 13px 16px;
}

.ios-definition-drawer > div {
  border-top: 1px solid rgba(23, 16, 12, 0.08);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding: 14px 16px 16px;
}

.ios-definition-drawer p {
  background: rgba(23, 16, 12, 0.04);
  border-radius: 15px;
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 10px;
}

.ios-definition-drawer p strong {
  color: var(--admin-ink);
  font-size: 0.85rem;
}

.ios-definition-drawer p span {
  color: var(--admin-muted);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.3;
}

.ios-kpi-grid {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
}

.ios-report-grid {
  display: grid;
  gap: 18px;
}

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

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

.ios-report-card,
.ios-table-card {
  min-width: 0;
  padding: 16px;
}

.ios-card-head,
.ios-table-head,
.ios-raw-filter-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ios-card-head h3,
.ios-table-head h4 {
  color: var(--admin-ink);
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  margin: 0;
}

.ios-card-head span {
  color: var(--admin-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.admin-line-chart {
  display: block;
  height: auto;
  width: 100%;
}

.admin-line-chart path {
  fill: none;
  stroke: rgba(23, 16, 12, 0.18);
  stroke-width: 2;
}

.admin-line-chart polyline {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.admin-line-chart text {
  fill: var(--admin-muted);
  font-size: 18px;
  font-weight: 800;
}

.admin-bar-chart {
  display: grid;
  gap: 9px;
}

.admin-bar-row {
  align-items: center;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(92px, 0.48fr) minmax(120px, 1fr) auto;
}

.admin-bar-row span,
.admin-bar-row strong {
  color: var(--admin-ink);
  font-size: 0.84rem;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-bar-row div {
  background: rgba(23, 16, 12, 0.08);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.admin-bar-row i {
  border-radius: inherit;
  display: block;
  height: 100%;
}

.admin-chart-empty {
  align-items: center;
  background: rgba(23, 16, 12, 0.04);
  border: 1px dashed rgba(23, 16, 12, 0.16);
  border-radius: 18px;
  color: var(--admin-muted);
  display: flex;
  font-weight: 850;
  justify-content: center;
  min-height: 160px;
  padding: 18px;
}

.ios-table-scroll {
  max-height: 440px;
  overflow: auto;
}

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

.ios-table-scroll th,
.ios-table-scroll td {
  border-bottom: 1px solid rgba(23, 16, 12, 0.08);
  color: var(--admin-ink);
  font-size: 0.82rem;
  padding: 10px 9px;
  text-align: left;
  vertical-align: top;
}

.ios-table-scroll th {
  background: rgba(255, 250, 240, 0.96);
  font-size: 0.72rem;
  font-weight: 950;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 1;
}

.ios-table-scroll td {
  color: #5d4639;
  font-weight: 720;
  max-width: 280px;
  word-break: break-word;
}

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

.ios-funnel article,
.ios-mini-kpis span,
.ios-pack-strip span {
  background: rgba(31, 111, 76, 0.07);
  border: 1px solid rgba(31, 111, 76, 0.12);
  border-radius: 16px;
  padding: 10px;
}

.ios-funnel article span {
  align-items: center;
  background: var(--admin-green);
  border-radius: 999px;
  color: #fffaf0;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 950;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.ios-funnel strong {
  color: var(--admin-ink);
  display: block;
  font-size: 1.4rem;
  margin-top: 8px;
}

.ios-funnel p {
  color: var(--admin-muted);
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1.2;
  margin: 2px 0 0;
  text-transform: capitalize;
}

.ios-pack-strip {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}

.ios-pack-strip strong {
  color: var(--admin-ink);
  margin-right: 6px;
}

.ios-pack-strip span {
  color: var(--admin-green);
  font-size: 0.78rem;
  font-weight: 850;
  padding: 7px 9px;
}

.ios-mini-kpis {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}

.ios-mini-kpis span {
  color: var(--admin-muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.ios-mini-kpis strong {
  color: var(--admin-ink);
  display: block;
  font-size: 1.08rem;
}

.raw-events-card {
  display: grid;
  gap: 12px;
}

.ios-raw-filter-row {
  justify-content: start;
}

.ios-raw-filter-row label {
  flex: 1 1 260px;
}

.ios-page-indicator {
  background: rgba(23, 16, 12, 0.06);
  border-radius: 999px;
  color: var(--admin-muted);
  font-weight: 900;
  padding: 9px 12px;
}

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

.ios-hero-meta,
.ios-chart-legend,
.ios-section-nav,
.ios-insight-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ios-hero-meta {
  margin-top: 14px;
}

.ios-hero-meta span,
.ios-chart-legend span,
.ios-section-nav button,
.ios-insight-strip article {
  border: 1px solid rgba(23, 16, 12, 0.1);
  border-radius: 999px;
  color: var(--admin-muted);
  font-size: 0.78rem;
  font-weight: 850;
  padding: 8px 11px;
}

.ios-section-nav {
  background: rgba(255, 250, 240, 0.76);
  border: 1px solid rgba(23, 16, 12, 0.08);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(50, 31, 20, 0.08);
  padding: 6px;
  position: sticky;
  top: 10px;
  z-index: 3;
}

.ios-section-nav button {
  background: transparent;
  border-color: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ios-section-nav button:hover {
  transform: translateY(-1px);
}

.ios-section-nav button.active {
  background: #1d120d;
  color: #fffaf0;
}

.ios-filter-panel.collapsed {
  display: none;
}

.ios-insight-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ios-insight-strip article {
  background: linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(250, 241, 224, 0.86));
  border-radius: 20px;
  padding: 14px;
}

.ios-insight-strip article.up {
  border-color: rgba(31, 122, 77, 0.28);
}

.ios-insight-strip article.down {
  border-color: rgba(180, 35, 24, 0.28);
}

.ios-insight-strip article strong {
  color: var(--admin-ink);
  display: block;
  font-size: 1rem;
  margin-top: 4px;
}

.ios-insight-strip article p {
  color: var(--admin-muted);
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.25;
  margin: 4px 0 0;
}

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

.ios-metric-grid.priority {
  grid-template-columns: repeat(6, minmax(140px, 1fr));
}

.ios-metric-grid.compact {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.ios-metric-card {
  background:
    radial-gradient(circle at top right, rgba(211, 50, 39, 0.1), transparent 44%),
    linear-gradient(180deg, rgba(255, 252, 244, 0.98), rgba(255, 248, 236, 0.88));
  border: 1px solid rgba(23, 16, 12, 0.1);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(50, 31, 20, 0.08);
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 15px;
}

.ios-metric-card span {
  color: var(--admin-muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.ios-metric-card strong {
  color: var(--admin-ink);
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.ios-metric-card p {
  color: var(--admin-muted);
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0;
}

.ios-metric-card p b {
  color: var(--admin-ink);
}

.ios-metric-card.up p b {
  color: #147a4c;
}

.ios-metric-card.down p b {
  color: #b42318;
}

.ios-metric-card em {
  color: var(--admin-muted);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 760;
}

.ios-kpi-sparkline {
  height: 42px;
  width: 100%;
}

.ios-kpi-sparkline polyline {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.ios-kpi-spark-empty {
  background: rgba(23, 16, 12, 0.05);
  border-radius: 999px;
  display: block;
  height: 8px;
  margin: 16px 0;
}

.ios-report-card.featured {
  background:
    radial-gradient(circle at 12% 10%, rgba(245, 184, 59, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 252, 244, 0.98), rgba(255, 248, 236, 0.88));
}

.ios-chart-wrap {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 250, 252, 0.52));
  border: 1px solid rgba(21, 17, 15, 0.07);
  border-radius: 20px;
  display: grid;
  gap: 12px;
  overflow: hidden;
  padding: 12px;
}

.ios-chart-wrap.feature {
  background:
    radial-gradient(circle at 14% 8%, rgba(41, 189, 242, 0.12), transparent 14rem),
    radial-gradient(circle at 86% 12%, rgba(236, 47, 145, 0.1), transparent 16rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.64));
}

.ios-multi-line-chart {
  display: block;
  height: auto;
  width: 100%;
}

.ios-multi-line-chart path:not(.area-fill) {
  fill: none;
  stroke: rgba(23, 16, 12, 0.15);
  stroke-width: 2;
}

.ios-multi-line-chart .area-fill {
  stroke: none;
}

.ios-multi-line-chart .grid-line {
  stroke: rgba(21, 17, 15, 0.08);
  stroke-dasharray: 5 8;
  stroke-width: 1.6;
}

.ios-multi-line-chart .axis-line {
  stroke: rgba(21, 17, 15, 0.14);
  stroke-width: 2;
}

.ios-multi-line-chart polyline {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4.8;
  filter: drop-shadow(0 5px 7px rgba(15, 23, 42, 0.09));
  transition: opacity 0.2s ease, stroke-width 0.2s ease;
}

.ios-multi-line-chart text {
  fill: var(--admin-muted);
  font-size: 18px;
  font-weight: 850;
}

.ios-multi-line-chart .hit-point {
  cursor: crosshair;
  fill: transparent;
  stroke: transparent;
}

.ios-multi-line-chart .endpoint {
  filter: drop-shadow(0 3px 5px rgba(15, 23, 42, 0.18));
  stroke: #fff;
  stroke-width: 2.5;
}

.ios-chart-legend span {
  align-items: center;
  background: rgba(255, 250, 240, 0.8);
  display: inline-flex;
  gap: 7px;
  padding: 6px 9px;
}

.ios-chart-legend span b {
  background: rgba(21, 17, 15, 0.07);
  border-radius: 999px;
  color: var(--admin-ink);
  font-size: 0.72rem;
  margin-left: 3px;
  padding: 3px 7px;
}

.ios-chart-legend i,
.ios-donut-legend i {
  border-radius: 999px;
  display: inline-block;
  height: 9px;
  width: 9px;
}

.ios-overview-trend-card {
  display: grid;
  gap: 14px;
}

.ios-trend-head {
  align-items: start;
}

.ios-trend-controls {
  align-items: center;
  background: rgba(21, 17, 15, 0.05);
  border: 1px solid rgba(21, 17, 15, 0.08);
  border-radius: 999px;
  display: inline-flex;
  gap: 4px;
  padding: 5px;
}

.ios-trend-controls button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--admin-muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 950;
  padding: 8px 11px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.ios-trend-controls button:hover {
  transform: translateY(-1px);
}

.ios-trend-controls button.active {
  background: var(--gallery-ink, #15110f);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
  color: #fff;
}

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

.ios-trend-summary span {
  background:
    radial-gradient(circle at 100% 0%, rgba(41, 189, 242, 0.12), transparent 4rem),
    rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(21, 17, 15, 0.08);
  border-radius: 17px;
  color: var(--admin-muted);
  font-size: 0.78rem;
  font-weight: 850;
  padding: 10px;
}

.ios-trend-summary b {
  color: var(--admin-ink);
  display: block;
  font-size: 1.22rem;
  line-height: 1;
}

.ios-horizontal-bars {
  display: grid;
  gap: 10px;
}

.ios-horizontal-bar {
  display: grid;
  gap: 6px;
}

.ios-horizontal-bar > div {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.ios-horizontal-bar span,
.ios-horizontal-bar strong {
  color: var(--admin-ink);
  font-size: 0.86rem;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ios-horizontal-bar > i {
  background: rgba(23, 16, 12, 0.07);
  border-radius: 999px;
  display: block;
  height: 11px;
  overflow: hidden;
}

.ios-horizontal-bar > i b {
  border-radius: inherit;
  display: block;
  height: 100%;
}

.ios-heatmap {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(110px, 1.2fr) repeat(var(--heatmap-columns, 4), minmax(var(--heatmap-cell-min, 70px), 1fr));
  overflow-x: auto;
}

.ios-heatmap strong,
.ios-heatmap b,
.ios-heatmap span {
  align-items: center;
  border-radius: 12px;
  color: var(--admin-ink);
  display: flex;
  font-size: 0.78rem;
  font-weight: 900;
  min-height: var(--heatmap-cell-height, 42px);
  padding: 8px;
}

.ios-heatmap strong,
.ios-heatmap b,
.ios-heatmap-corner {
  background: rgba(23, 16, 12, 0.05);
}

.ios-heatmap strong {
  justify-content: center;
  text-align: center;
}

.ios-heatmap span {
  border: 1px solid rgba(17, 125, 118, 0.1);
  justify-content: center;
}

.ios-usage-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.36fr);
  margin: 0 auto;
  max-width: 980px;
}

.ios-usage-board {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.ios-usage-toolbar {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  justify-self: start;
}

.ios-usage-toolbar span {
  color: var(--admin-muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.ios-usage-toolbar button {
  background: rgba(23, 16, 12, 0.04);
  border: 1px solid rgba(23, 16, 12, 0.1);
  border-radius: 999px;
  color: var(--admin-muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 7px 10px;
}

.ios-usage-toolbar button.active {
  background: var(--admin-ink);
  border-color: var(--admin-ink);
  color: #fffaf0;
}

.ios-usage-grid {
  display: grid;
  gap: 5px;
  grid-template-columns: minmax(98px, 0.85fr) repeat(var(--usage-columns, 7), minmax(44px, 1fr));
  min-width: 0;
  overflow-x: auto;
}

.ios-usage-grid strong,
.ios-usage-corner,
.ios-usage-row-label,
.ios-usage-hour-label,
.ios-usage-cell {
  align-items: center;
  border-radius: 11px;
  display: flex;
  font-size: 0.76rem;
  font-weight: 900;
  justify-content: center;
  min-height: 34px;
  padding: 7px;
}

.ios-usage-grid strong,
.ios-usage-corner,
.ios-usage-row-label,
.ios-usage-hour-label {
  background: rgba(23, 16, 12, 0.055);
  color: var(--admin-ink);
}

.ios-usage-row-label,
.ios-usage-cell.clickable {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.ios-usage-row-label {
  gap: 6px;
  justify-content: flex-start;
  text-align: left;
}

.ios-usage-row-label span {
  align-items: center;
  background: rgba(17, 125, 118, 0.12);
  border-radius: 999px;
  color: #0f5f5a;
  display: inline-flex;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.ios-usage-row-label.active {
  background: rgba(17, 125, 118, 0.13);
  color: #0f5f5a;
}

.ios-usage-hour-label {
  color: var(--admin-muted);
  font-size: 0.72rem;
  padding-left: 28px;
}

.ios-usage-cell {
  border: 1px solid rgba(17, 125, 118, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.16);
  text-align: center;
}

.ios-usage-cell.detail {
  border-radius: 9px;
  font-size: 0.72rem;
  min-height: 28px;
}

.ios-usage-summary {
  background: rgba(255, 250, 240, 0.72);
  border: 1px solid rgba(23, 16, 12, 0.08);
  border-radius: 18px;
  display: grid;
  gap: 9px;
  padding: 13px;
}

.ios-usage-summary > div {
  display: grid;
  gap: 2px;
}

.ios-usage-summary strong {
  color: var(--admin-ink);
  font-size: 0.95rem;
}

.ios-usage-summary > div span,
.ios-usage-summary small,
.ios-usage-summary em {
  color: var(--admin-muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
}

.ios-usage-summary p {
  align-items: center;
  background: rgba(17, 125, 118, 0.07);
  border: 1px solid rgba(17, 125, 118, 0.1);
  border-radius: 14px;
  color: var(--admin-muted);
  display: flex;
  font-size: 0.78rem;
  font-weight: 850;
  justify-content: space-between;
  margin: 0;
  padding: 9px;
}

.ios-usage-summary p b {
  color: var(--admin-ink);
}

.ios-usage-note {
  background: rgba(29, 171, 216, 0.08);
  border: 1px solid rgba(29, 171, 216, 0.16);
  border-radius: 14px;
  color: var(--admin-muted);
  font-size: 0.78rem;
  font-weight: 800;
  grid-column: 1 / -1;
  line-height: 1.35;
  margin: 0;
  padding: 10px 12px;
}

.ios-pack-leaderboard {
  display: grid;
  gap: 10px;
}

.ios-pack-leaderboard article {
  background: rgba(255, 250, 240, 0.72);
  border: 1px solid rgba(23, 16, 12, 0.08);
  border-radius: 18px;
  display: grid;
  gap: 8px;
  padding: 11px;
}

.ios-pack-leaderboard article > div {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.ios-pack-leaderboard span {
  align-items: center;
  background: var(--admin-ink);
  border-radius: 999px;
  color: #fffaf0;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 950;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.ios-pack-leaderboard strong {
  color: var(--admin-ink);
  font-size: 0.88rem;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ios-pack-leaderboard i {
  background: rgba(23, 16, 12, 0.07);
  border-radius: 999px;
  display: block;
  height: 10px;
  overflow: hidden;
}

.ios-pack-leaderboard i b {
  background: linear-gradient(90deg, #b42318, #f5b83b, #1f7a4d);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.ios-pack-leaderboard p {
  color: var(--admin-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.76rem;
  gap: 8px;
  margin: 0;
}

.ios-pack-leaderboard p b {
  background: rgba(23, 16, 12, 0.05);
  border-radius: 999px;
  color: var(--admin-muted);
  font-weight: 850;
  padding: 5px 7px;
}

.ios-donut-chart {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr;
}

.ios-donut {
  align-items: center;
  border-radius: 999px;
  box-shadow: inset 0 0 0 22px rgba(255, 250, 240, 0.88), 0 12px 26px rgba(50, 31, 20, 0.1);
  display: flex;
  flex-direction: column;
  height: 156px;
  justify-content: center;
  width: 156px;
}

.ios-donut strong {
  color: var(--admin-ink);
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.ios-donut span {
  color: var(--admin-muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.ios-donut-legend {
  display: grid;
  gap: 8px;
}

.ios-donut-legend span {
  align-items: center;
  color: var(--admin-muted);
  display: flex;
  font-size: 0.83rem;
  font-weight: 820;
  gap: 8px;
  justify-content: space-between;
}

.ios-donut-legend b {
  color: var(--admin-ink);
  margin-left: auto;
}

.ios-funnel-chart {
  display: grid;
  gap: 10px;
}

.ios-funnel-chart article {
  background: rgba(31, 111, 76, 0.06);
  border: 1px solid rgba(31, 111, 76, 0.12);
  border-radius: 18px;
  display: grid;
  gap: 7px;
  padding: 11px;
}

.ios-funnel-chart article div {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto 1fr auto;
}

.ios-funnel-chart span {
  align-items: center;
  background: var(--admin-green);
  border-radius: 999px;
  color: #fffaf0;
  display: inline-flex;
  font-weight: 950;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.ios-funnel-chart strong,
.ios-funnel-chart em {
  color: var(--admin-ink);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 900;
}

.ios-funnel-chart > article > i {
  background: rgba(23, 16, 12, 0.07);
  border-radius: 999px;
  display: block;
  height: 10px;
  overflow: hidden;
}

.ios-funnel-chart > article > i b {
  background: linear-gradient(90deg, #b42318, #f5b83b, #1f7a4d);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.ios-funnel-chart p,
.ios-big-stat p {
  color: var(--admin-muted);
  font-size: 0.8rem;
  font-weight: 800;
  margin: 0;
}

.ios-big-stat {
  background: rgba(180, 35, 24, 0.06);
  border: 1px solid rgba(180, 35, 24, 0.1);
  border-radius: 20px;
  margin-bottom: 12px;
  padding: 14px;
}

.ios-big-stat strong {
  color: var(--admin-ink);
  display: block;
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.ios-big-stat span {
  color: var(--admin-muted);
  display: block;
  font-weight: 900;
  margin: 4px 0 8px;
}

.ios-divider {
  background: rgba(23, 16, 12, 0.08);
  height: 1px;
  margin: 14px 0;
}

.ios-event-chip {
  background: rgba(17, 125, 118, 0.1);
  border: 1px solid rgba(17, 125, 118, 0.16);
  border-radius: 999px;
  color: #0d6864;
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 5px 8px;
}

.ios-payload-cell {
  background: rgba(23, 16, 12, 0.04);
  border: 1px solid rgba(23, 16, 12, 0.08);
  border-radius: 12px;
  color: #5d4639;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  max-width: 420px;
  padding: 8px;
  text-align: left;
  white-space: normal;
  word-break: break-word;
}

.ios-payload-cell.open {
  max-width: 680px;
}

.ios-empty-payload {
  color: var(--admin-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
}

/* Refresh-safe admin portal */
.admin-portal-shell {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 280px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1780px;
  padding: clamp(14px, 2vw, 24px);
  width: min(100%, 1780px);
}

.admin-portal-sidebar,
.admin-portal-topbar,
.admin-locked-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(21, 17, 15, 0.1);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.admin-portal-sidebar {
  border-radius: 24px;
  display: grid;
  gap: 18px;
  padding: 16px;
  position: sticky;
  top: 14px;
}

.admin-portal-brand {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 48px minmax(0, 1fr);
}

.admin-portal-brand > span {
  align-items: center;
  background: linear-gradient(135deg, var(--loteria-blue), var(--loteria-magenta));
  border-radius: 14px;
  color: #fff;
  display: inline-flex;
  font-weight: 1000;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.admin-portal-brand strong,
.admin-portal-brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-portal-brand strong {
  color: var(--gallery-ink, #15110f);
  font-size: 0.98rem;
}

.admin-portal-brand small {
  color: var(--gallery-muted, #62544c);
  font-weight: 850;
}

.admin-portal-nav,
.admin-portal-links {
  display: grid;
  gap: 8px;
}

.admin-portal-nav {
  gap: 14px;
}

.admin-portal-nav-group {
  display: grid;
  gap: 6px;
}

.admin-portal-nav-heading {
  color: rgba(21, 17, 15, 0.52);
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  padding: 0 10px;
  text-transform: uppercase;
}

.admin-portal-nav button,
.admin-portal-links button {
  --nav-accent: var(--loteria-blue);
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--gallery-ink, #15110f);
  cursor: pointer;
  display: flex;
  font-weight: 950;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  text-align: left;
}

.admin-portal-nav button.tone-green { --nav-accent: var(--loteria-green); }
.admin-portal-nav button.tone-gold { --nav-accent: var(--loteria-yellow); }
.admin-portal-nav button.tone-purple { --nav-accent: var(--loteria-purple); }
.admin-portal-nav button.tone-red { --nav-accent: var(--loteria-red); }
.admin-portal-nav button.tone-teal { --nav-accent: #11a7a0; }
.admin-portal-nav button.tone-magenta { --nav-accent: var(--loteria-magenta); }

.admin-portal-nav button:hover,
.admin-portal-nav button.active,
.admin-portal-links button:hover {
  background: color-mix(in srgb, var(--nav-accent) 11%, white);
  border-color: color-mix(in srgb, var(--nav-accent) 28%, transparent);
}

.admin-portal-nav button.active {
  box-shadow: inset 5px 0 0 var(--nav-accent);
}

.admin-portal-nav b {
  background: var(--gallery-ink, #15110f);
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  min-width: 24px;
  padding: 3px 7px;
  text-align: center;
}

.admin-portal-links {
  border-top: 1px solid rgba(21, 17, 15, 0.08);
  padding-top: 12px;
}

.admin-portal-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.admin-portal-topbar {
  align-items: center;
  border-radius: 24px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: clamp(18px, 2.4vw, 28px);
}

.admin-portal-topbar h1 {
  color: var(--gallery-ink, #15110f);
  font-size: clamp(2rem, 3vw, 3.9rem);
  line-height: 0.96;
  margin: 4px 0 8px;
}

.admin-portal-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-mobile-tabs {
  display: none;
}

.product-studio-nav {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 24px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.4vw, 26px);
  position: sticky;
  top: 12px;
  z-index: 8;
}

.product-studio-nav-heading {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
}

.product-studio-nav-heading h3,
.product-studio-nav-heading p { margin: 0; }
.product-studio-nav-heading h3 { font-size: clamp(1.35rem, 2vw, 2rem); }
.product-studio-nav-heading > p { color: var(--admin-muted, #6b5a4f); font-weight: 750; }

.product-studio-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.product-studio-tabs button {
  background: rgba(21, 17, 15, 0.045);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--admin-ink, #17100c);
  cursor: pointer;
  flex: 0 0 auto;
  font-weight: 950;
  padding: 10px 15px;
}

.product-studio-tabs button:hover,
.product-studio-tabs button.active {
  background: #e8f8f6;
  border-color: rgba(17, 167, 160, 0.34);
  color: #087a75;
}

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

.product-studio-launch-card {
  align-items: center;
  background: linear-gradient(145deg, rgba(255,255,255,.99), rgba(246,252,250,.93));
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 22px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 118px;
  padding: 20px;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-studio-launch-card:hover { box-shadow: 0 20px 42px rgba(15, 23, 42, 0.1); transform: translateY(-2px); }
.product-studio-launch-card > span { color: #0b8f89; font-size: .75rem; font-weight: 1000; letter-spacing: .12em; }
.product-studio-launch-card div { display: grid; gap: 5px; }
.product-studio-launch-card strong { color: var(--admin-ink, #17100c); font-size: 1.08rem; }
.product-studio-launch-card small { color: var(--admin-muted, #6b5a4f); font-size: .84rem; font-weight: 750; line-height: 1.35; }
.product-studio-launch-card > b { color: #0b8f89; font-size: 1.35rem; }

@media (max-width: 980px) {
  .product-studio-nav { position: static; }
  .product-studio-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .product-studio-nav-heading { grid-template-columns: 1fr; }
  .product-studio-home { grid-template-columns: 1fr; }
}

.admin-page .admin-cockpit {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.admin-section-hero {
  --section-accent: var(--loteria-blue);
  align-items: end;
  background:
    radial-gradient(circle at 94% 0%, color-mix(in srgb, var(--section-accent) 18%, transparent), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.84));
  border: 1px solid color-mix(in srgb, var(--section-accent) 24%, rgba(21, 17, 15, 0.1));
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.admin-section-hero::before {
  background: var(--section-accent);
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  top: 0;
  width: 7px;
}

.admin-section-hero.tone-green { --section-accent: var(--loteria-green); }
.admin-section-hero.tone-gold { --section-accent: var(--loteria-yellow); }
.admin-section-hero.tone-purple { --section-accent: var(--loteria-purple); }
.admin-section-hero.tone-red { --section-accent: var(--loteria-red); }
.admin-section-hero.tone-teal { --section-accent: #11a7a0; }
.admin-section-hero.tone-magenta { --section-accent: var(--loteria-magenta); }

.admin-section-hero h2 {
  color: var(--gallery-ink, #15110f);
  font-size: clamp(1.55rem, 2.4vw, 2.65rem);
  line-height: 0.98;
  margin: 0;
}

.admin-section-hero p {
  color: var(--admin-muted);
  font-weight: 760;
  line-height: 1.4;
  margin: 8px 0 0;
  max-width: 820px;
}

.admin-section-metrics {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, minmax(112px, 1fr));
}

.admin-section-metrics span {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(21, 17, 15, 0.09);
  border-radius: 16px;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
}

.admin-section-metrics small {
  color: var(--admin-muted);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-section-metrics strong {
  color: var(--admin-ink);
  font-size: 0.94rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wedding-admin-panel {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.75fr);
}

.wedding-portal-card,
.wedding-portal-notes {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.88)),
    #fff;
  border: 1px solid rgba(21, 17, 15, 0.09);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.wedding-portal-card {
  display: grid;
  gap: 16px;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 28px);
  position: relative;
}

.wedding-portal-card::before {
  background: var(--loteria-magenta, #e93186);
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  top: 0;
  width: 7px;
}

.wedding-portal-card h3,
.wedding-portal-notes h3 {
  color: var(--gallery-ink, #15110f);
  font-size: clamp(1.45rem, 2.4vw, 2.45rem);
  line-height: 1;
  margin: 0;
}

.wedding-portal-card p {
  color: var(--admin-muted);
  font-weight: 800;
  line-height: 1.45;
  margin: 8px 0 0;
  max-width: 720px;
}

.wedding-portal-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wedding-portal-actions > * {
  min-height: 44px;
}

.wedding-portal-link {
  background: rgba(248, 250, 252, 0.84);
  border: 1px solid rgba(21, 17, 15, 0.08);
  border-radius: 16px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.wedding-portal-link span,
.wedding-portal-checklist span {
  color: var(--admin-muted);
  font-size: 0.78rem;
  font-weight: 930;
}

.wedding-portal-link strong {
  color: var(--admin-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.wedding-portal-checklist {
  display: grid;
  gap: 8px;
}

.wedding-portal-checklist span {
  background: rgba(233, 49, 134, 0.08);
  border: 1px solid rgba(233, 49, 134, 0.13);
  border-radius: 999px;
  color: var(--admin-ink);
  padding: 8px 11px;
}

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

.wedding-cloud-hero,
.wedding-workspace-bar,
.wedding-budget-settings-form,
.wedding-budget-add-form,
.wedding-cloud-note,
.wedding-kanban-column {
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.wedding-cloud-hero {
  align-items: center;
  border-left: 6px solid var(--loteria-magenta, #e93186);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px;
}

.wedding-cloud-hero h3,
.wedding-budget-settings-form h4,
.wedding-budget-add-form h4,
.wedding-kanban-column h4 {
  color: var(--admin-ink);
  margin: 0;
}

.wedding-cloud-hero h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.wedding-cloud-hero p {
  color: var(--admin-muted);
  font-weight: 780;
  line-height: 1.45;
  margin: 7px 0 0;
  max-width: 820px;
}

.wedding-cloud-stats,
.wedding-budget-summary,
.wedding-task-mini-stats {
  display: grid;
  gap: 10px;
}

.wedding-cloud-stats {
  grid-template-columns: repeat(3, minmax(110px, 1fr));
}

.wedding-cloud-stats span,
.wedding-budget-summary article,
.wedding-task-mini-stats span {
  background: #f8fafc;
  border: 1px solid #e5edf6;
  border-radius: 14px;
  padding: 11px 12px;
}

.wedding-cloud-stats small,
.wedding-budget-summary span,
.wedding-task-mini-stats span {
  color: var(--admin-muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.wedding-cloud-stats strong,
.wedding-budget-summary strong,
.wedding-task-mini-stats strong {
  color: var(--admin-ink);
  display: block;
  font-size: 1.25rem;
  margin-top: 3px;
}

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

.wedding-subtabs {
  min-width: 260px;
}

.wedding-planner-tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.wedding-planner-tools input {
  max-width: 420px;
  min-width: min(100%, 260px);
}

.wedding-planner-tools span {
  color: var(--admin-muted);
  font-size: 0.82rem;
  font-weight: 850;
}

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

.wedding-budget-control-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.wedding-budget-settings-form,
.wedding-budget-add-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 14px;
}

.wedding-budget-settings-form > div,
.wedding-budget-add-form > div,
.wedding-budget-settings-form .wide,
.wedding-budget-add-form .wide {
  grid-column: 1 / -1;
}

.wedding-budget-settings-form label,
.wedding-budget-add-form label,
.wedding-budget-table label,
.wedding-task-form label,
.wedding-task-fields label,
.wedding-notes-field {
  color: var(--admin-muted);
  display: grid;
  font-size: 0.72rem;
  font-weight: 950;
  gap: 5px;
  text-transform: uppercase;
}

.wedding-budget-table input,
.wedding-budget-table select,
.wedding-budget-table textarea,
.wedding-budget-settings-form input,
.wedding-budget-add-form input,
.wedding-budget-add-form select,
.wedding-task-form input,
.wedding-task-form select,
.wedding-planner-tools input,
.wedding-task-card input,
.wedding-task-card select,
.wedding-task-card textarea {
  background: #f8fafc;
  border: 1px solid #dbe6f2;
  border-radius: 10px;
  color: var(--admin-ink);
  font: inherit;
  font-weight: 800;
  min-height: 38px;
  padding: 9px 10px;
  width: 100%;
}

.wedding-budget-table textarea,
.wedding-task-card textarea {
  min-height: 74px;
  resize: vertical;
}

.wedding-budget-table-shell {
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  max-height: min(680px, calc(100vh - 330px));
  overflow: auto;
}

.wedding-budget-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1320px;
  width: 100%;
}

.wedding-budget-table th,
.wedding-budget-table td {
  border-bottom: 1px solid #e5edf6;
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}

.wedding-budget-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 1;
}

.wedding-budget-table tr:last-child td {
  border-bottom: 0;
}

.wedding-budget-table tbody tr:hover {
  background: #f8fbff;
}

.wedding-budget-table tbody tr.budget-status-paid td:first-child,
.wedding-budget-table tbody tr.budget-status-covered td:first-child {
  box-shadow: inset 4px 0 0 var(--loteria-green, #1f9d58);
}

.wedding-budget-table tbody tr.budget-status-partially_covered td:first-child,
.wedding-budget-table tbody tr.budget-status-review td:first-child {
  box-shadow: inset 4px 0 0 var(--loteria-yellow, #f7bf2d);
}

.wedding-budget-table tbody tr.budget-status-open td:first-child {
  box-shadow: inset 4px 0 0 var(--loteria-magenta, #e93186);
}

.budget-item-name {
  font-size: 0.96rem;
  font-weight: 950 !important;
}

.budget-inline-pair,
.budget-money-stack {
  display: grid;
  gap: 7px;
}

.budget-inline-pair {
  grid-template-columns: minmax(0, 1fr) minmax(105px, 0.7fr);
  margin: 7px 0;
}

.budget-money-stack strong,
.wedding-budget-table small {
  color: var(--admin-muted);
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  margin-top: 5px;
}

.wedding-planner-toolbar {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.wedding-task-form {
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(120px, 0.45fr)) auto;
  padding: 12px;
}

.wedding-task-mini-stats {
  grid-template-columns: repeat(3, minmax(82px, 1fr));
}

.wedding-kanban-board {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  overflow-x: auto;
  padding-bottom: 4px;
}

.wedding-kanban-column {
  box-shadow: none;
  min-width: 250px;
  padding: 12px;
}

.wedding-kanban-column header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.wedding-kanban-column header span {
  color: var(--admin-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.wedding-kanban-column header strong {
  background: #f1f5f9;
  border-radius: 999px;
  color: var(--admin-ink);
  padding: 5px 9px;
}

.wedding-task-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.wedding-task-card {
  background: #f8fafc;
  border: 1px solid #e2eaf3;
  border-radius: 14px;
  display: grid;
  gap: 9px;
  padding: 11px;
}

.wedding-task-card.priority-critical {
  border-color: rgba(220, 38, 38, 0.34);
}

.wedding-task-card.priority-high {
  border-color: rgba(233, 49, 134, 0.32);
}

.wedding-task-top,
.wedding-todo-row,
.wedding-add-todo,
.wedding-move-row {
  align-items: center;
  display: flex;
  gap: 7px;
}

.wedding-task-top .task-title {
  font-weight: 950;
}

.wedding-task-fields {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wedding-task-progress {
  align-items: center;
  display: grid;
  gap: 7px;
  grid-template-columns: auto auto minmax(0, 1fr);
}

.wedding-task-progress span,
.wedding-task-progress strong {
  color: var(--admin-muted);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.wedding-task-progress i {
  background: #e2e8f0;
  border-radius: 999px;
  display: block;
  height: 7px;
  overflow: hidden;
}

.wedding-task-progress b {
  background: var(--loteria-green, #1f9d58);
  display: block;
  height: 100%;
}

.wedding-todo-list {
  display: grid;
  gap: 6px;
}

.wedding-todo-row.done input[type="text"] {
  color: #64748b;
  text-decoration: line-through;
}

.wedding-add-todo input {
  flex: 1 1 auto;
}

.wedding-move-row {
  justify-content: flex-end;
}

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

.wedding-tool-page {
  background:
    linear-gradient(180deg, #f8fafc 0%, #eef4f9 100%);
  color: var(--admin-ink);
  min-height: 100vh;
}

.wedding-tool-shellbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #dbe6f2;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, auto) minmax(0, 1fr) auto;
  padding: 12px clamp(14px, 2vw, 26px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.wedding-tool-brand {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--admin-ink);
  cursor: pointer;
  display: grid;
  gap: 2px 11px;
  grid-template-columns: 42px auto;
  justify-self: start;
  padding: 0;
  text-align: left;
}

.wedding-tool-brand span {
  align-items: center;
  background: linear-gradient(135deg, var(--loteria-blue), var(--loteria-magenta));
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 1000;
  grid-row: 1 / span 2;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.wedding-tool-brand strong,
.wedding-tool-brand small {
  display: block;
  line-height: 1.1;
}

.wedding-tool-brand strong {
  font-size: 1rem;
}

.wedding-tool-brand small {
  color: var(--admin-muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.wedding-tool-tabs,
.wedding-tool-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wedding-tool-tabs {
  justify-content: center;
}

.wedding-tool-tabs button {
  background: #f8fafc;
  border: 1px solid #dbe6f2;
  border-radius: 999px;
  color: #475569;
  cursor: pointer;
  font-weight: 950;
  min-height: 36px;
  padding: 8px 13px;
}

.wedding-tool-tabs button:hover {
  background: #111827;
  color: #fff;
}

.wedding-tool-actions {
  justify-content: flex-end;
}

.wedding-tool-body,
.wedding-tool-locked {
  margin: 0 auto;
  max-width: 1920px;
  padding: clamp(12px, 1.6vw, 22px);
  width: 100%;
}

.wedding-tool-locked {
  align-items: center;
  display: grid;
  min-height: calc(100vh - 90px);
}

.wedding-tool-page .cloud-wedding-panel {
  animation: none;
  gap: 12px;
}

.wedding-tool-page .wedding-cloud-hero {
  border-left: 0;
  border-radius: 8px;
  box-shadow: none;
  grid-template-columns: minmax(0, 1fr) minmax(340px, auto);
  padding: 16px;
}

.wedding-tool-page .wedding-workspace-bar {
  border-radius: 8px;
  box-shadow: none;
}

.wedding-clickup-board {
  background: #fff;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  display: grid;
  gap: 12px;
  padding: 12px;
}

.wedding-board-head {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.wedding-board-head h4 {
  color: var(--admin-ink);
  font-size: 1.15rem;
  margin: 0;
}

.clickup-task-composer {
  border-radius: 8px;
  box-shadow: none;
  grid-template-columns: minmax(260px, 1fr) minmax(120px, 0.35fr) minmax(130px, 0.3fr) minmax(130px, 0.3fr) auto;
}

.clickup-board {
  gap: 10px;
  grid-template-columns: repeat(4, minmax(310px, 1fr));
  max-height: calc(100vh - 340px);
  min-height: min(620px, calc(100vh - 340px));
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
}

.clickup-board .wedding-kanban-column {
  align-self: stretch;
  background: #f8fafc;
  border-color: #dbe6f2;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 310px;
  padding: 10px;
}

.clickup-board .wedding-kanban-column header {
  background: #fff;
  border: 1px solid #e5edf6;
  border-radius: 8px;
  padding: 9px 10px;
}

.clickup-board .wedding-kanban-column h4 {
  align-items: center;
  display: flex;
  gap: 8px;
  font-size: 0.92rem;
}

.clickup-board .wedding-kanban-column h4 span {
  border-radius: 999px;
  display: inline-flex;
  height: 10px;
  width: 10px;
}

.clickup-board .wedding-kanban-column.status-todo h4 span {
  background: #64748b;
}

.clickup-board .wedding-kanban-column.status-doing h4 span {
  background: var(--loteria-blue, #1a73e8);
}

.clickup-board .wedding-kanban-column.status-waiting h4 span {
  background: var(--loteria-yellow, #f7bf2d);
}

.clickup-board .wedding-kanban-column.status-done h4 span {
  background: var(--loteria-green, #1f9d58);
}

.clickup-board .wedding-task-stack {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.clickup-task-card {
  background: #fff;
  border-color: #dbe6f2;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  padding: 10px;
  position: relative;
}

.clickup-task-card::before {
  border-radius: 999px;
  bottom: 10px;
  content: "";
  left: 0;
  position: absolute;
  top: 10px;
  width: 3px;
}

.clickup-task-card.priority-low::before {
  background: #94a3b8;
}

.clickup-task-card.priority-medium::before {
  background: var(--loteria-blue, #1a73e8);
}

.clickup-task-card.priority-high::before {
  background: var(--loteria-magenta, #e93186);
}

.clickup-task-card.priority-critical::before {
  background: #dc2626;
}

.clickup-task-card.expanded {
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.clickup-task-card .wedding-task-top {
  align-items: start;
}

.task-expand-button {
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #dbe6f2;
  border-radius: 8px;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 1000;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.task-expand-button:hover {
  background: #111827;
  color: #fff;
}

.clickup-card-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.priority-chip,
.owner-chip,
.due-chip {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e5edf6;
  border-radius: 999px;
  color: #475569;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 950;
  gap: 5px;
  min-height: 25px;
  padding: 4px 8px;
}

.priority-chip.priority-critical {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.priority-chip.priority-high {
  background: rgba(233, 49, 134, 0.09);
  border-color: rgba(233, 49, 134, 0.18);
  color: #9d174d;
}

.priority-chip.priority-medium {
  background: rgba(26, 115, 232, 0.09);
  border-color: rgba(26, 115, 232, 0.18);
  color: #1d4ed8;
}

.owner-chip b {
  align-items: center;
  background: #111827;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.62rem;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.clickup-note-preview {
  color: #64748b;
  display: -webkit-box;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.35;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.clickup-task-details {
  border-top: 1px solid #e5edf6;
  display: grid;
  gap: 9px;
  padding-top: 10px;
}

.clickup-empty-column {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.35;
  margin: 0;
  padding: 14px;
  text-align: center;
}

.planner-board-toolbar {
  position: sticky;
  top: 70px;
  z-index: 14;
}

.planner-board-toolbar .wedding-task-mini-stats {
  grid-template-columns: repeat(4, minmax(74px, 1fr));
}

.planner-board {
  max-height: calc(100vh - 270px);
  min-height: min(680px, calc(100vh - 270px));
}

.planner-kanban-column.drop-active {
  background: #eef6ff;
  border-color: rgba(26, 115, 232, 0.28);
}

.planner-kanban-column.status-todo {
  background: #f8fafc;
}

.planner-kanban-column.status-doing {
  background: #f3f8ff;
}

.planner-kanban-column.status-waiting {
  background: #fffaf0;
}

.planner-kanban-column.status-done {
  background: #f1fbf5;
}

.planner-column-actions {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.planner-column-actions button {
  align-items: center;
  background: #111827;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 1000;
  height: 30px;
  justify-content: center;
  line-height: 1;
  width: 30px;
}

.planner-task-stack {
  align-content: start;
  gap: 8px;
  grid-auto-rows: max-content;
  padding: 8px 2px 2px;
}

.planner-task-card {
  cursor: grab;
  gap: 8px;
  min-height: 104px;
  padding: 11px 11px 11px 13px;
  align-self: start;
  touch-action: pan-y;
  user-select: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.planner-task-card.status-todo {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border-color: #d7e0ea;
}

.planner-task-card.status-doing {
  background: linear-gradient(180deg, #fff 0%, #f4f9ff 100%);
  border-color: rgba(26, 115, 232, 0.24);
}

.planner-task-card.status-waiting {
  background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
  border-color: rgba(247, 191, 45, 0.34);
}

.planner-task-card.status-done {
  background: linear-gradient(180deg, #fff 0%, #f0fdf4 100%);
  border-color: rgba(31, 157, 88, 0.24);
}

.planner-task-card.status-todo::before {
  background: #64748b;
}

.planner-task-card.status-doing::before {
  background: var(--loteria-blue, #1a73e8);
}

.planner-task-card.status-waiting::before {
  background: var(--loteria-yellow, #f7bf2d);
}

.planner-task-card.status-done::before {
  background: var(--loteria-green, #1f9d58);
}

.planner-task-card:hover,
.planner-task-card:focus-visible {
  border-color: rgba(26, 115, 232, 0.34);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.11);
  outline: none;
  transform: translateY(-1px);
}

.planner-task-card.dragging {
  cursor: grabbing;
  opacity: 0.24;
  transform: scale(0.985);
}

.planner-drag-preview {
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.22);
  left: 0;
  opacity: 0.98;
  pointer-events: none;
  position: fixed;
  top: 0;
  z-index: 1200;
}

.planner-card-title-row {
  align-items: start;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.planner-drag-grip {
  align-self: start;
  background-image: radial-gradient(#94a3b8 1.25px, transparent 1.25px);
  background-position: 0 0;
  background-size: 5px 5px;
  cursor: grab;
  height: 20px;
  opacity: 0.7;
  touch-action: none;
  width: 13px;
}

.planner-task-card:hover .planner-drag-grip,
.planner-task-card:focus-visible .planner-drag-grip {
  opacity: 1;
}

.planner-task-card.dragging .planner-drag-grip,
.planner-pointer-dragging .planner-drag-grip {
  cursor: grabbing;
}

.planner-card-title-row strong {
  color: var(--admin-ink);
  font-size: 0.92rem;
  line-height: 1.25;
}

.planner-card-title-row span {
  background: rgba(17, 24, 39, 0.06);
  border: 1px solid #e5edf6;
  border-radius: 999px;
  color: #475569;
  font-size: 0.62rem;
  font-weight: 950;
  padding: 3px 6px;
  text-transform: uppercase;
}

.planner-drop-target {
  align-items: center;
  display: flex;
  height: 12px;
  pointer-events: none;
}

.planner-drop-target::before {
  background: rgba(26, 115, 232, 0.72);
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
  content: "";
  display: block;
  height: 3px;
  width: 100%;
}

.planner-pointer-dragging,
.planner-pointer-dragging * {
  cursor: grabbing !important;
}

.wedding-task-modal-layer {
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.wedding-task-modal {
  background: #fff;
  border: 1px solid #dbe6f2;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
  display: grid;
  gap: 14px;
  max-height: min(760px, calc(100vh - 32px));
  max-width: 760px;
  overflow: auto;
  padding: 18px;
  position: relative;
  width: min(760px, calc(100vw - 32px));
}

.wedding-task-modal-head {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  padding-right: 36px;
}

.wedding-task-modal-head h3,
.wedding-modal-section-head h4 {
  color: var(--admin-ink);
  margin: 0;
}

.wedding-task-modal label,
.wedding-task-modal-grid {
  display: grid;
  gap: 6px;
}

.wedding-task-modal label span {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.wedding-task-modal input,
.wedding-task-modal select,
.wedding-task-modal textarea {
  background: #f8fafc;
  border: 1px solid #dbe6f2;
  border-radius: 8px;
  color: var(--admin-ink);
  font: inherit;
  font-weight: 820;
  min-height: 40px;
  padding: 9px 10px;
  width: 100%;
}

.wedding-task-modal textarea {
  line-height: 1.4;
  resize: vertical;
}

.wedding-modal-title-field input {
  font-size: 1.05rem;
  font-weight: 950;
}

.wedding-details-toggle {
  justify-self: start;
}

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

.wedding-task-modal-grid .wide,
.wedding-modal-todos {
  grid-column: 1 / -1;
}

.wedding-modal-todos {
  background: #f8fafc;
  border: 1px solid #e5edf6;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.wedding-modal-section-head,
.wedding-task-modal-actions,
.wedding-task-modal-actions > div {
  align-items: center;
  display: flex;
  gap: 8px;
}

.wedding-modal-section-head {
  justify-content: space-between;
}

.wedding-modal-section-head span {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 950;
}

.wedding-task-modal .wedding-todo-row {
  background: #fff;
  border: 1px solid #e5edf6;
  border-radius: 8px;
  padding: 6px;
}

.wedding-task-modal .wedding-todo-row input[type="checkbox"] {
  min-height: auto;
  width: auto;
}

.wedding-task-modal-actions {
  border-top: 1px solid #e5edf6;
  justify-content: space-between;
  padding-top: 12px;
}

.secondary-button.danger {
  border-color: rgba(220, 38, 38, 0.22);
  color: #991b1b;
}

.admin-locked-panel {
  border-radius: 8px;
  justify-items: start;
  padding: 24px;
}

@media (max-width: 1280px) {
  .admin-health-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .admin-page .admin-cockpit-summary {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }

  .ios-metric-grid,
  .ios-metric-grid.priority,
  .ios-insight-strip,
  .ios-trend-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ios-kpi-grid,
  .ios-report-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .admin-portal-shell {
    grid-template-columns: 1fr;
  }

  .admin-portal-sidebar {
    position: static;
  }

  .admin-portal-nav {
    display: none;
  }

  .admin-mobile-tabs {
    display: flex;
    overflow-x: auto;
    position: sticky;
    top: 0;
    z-index: 12;
  }

  .admin-mobile-tabs button {
    flex: 0 0 auto;
  }

  .admin-page .support-workspace,
  .admin-page .project-inspector-workspace,
  .admin-page .ai-admin-workspace,
  .wedding-admin-panel,
  .activity-overview-grid,
  .activity-overview-grid.two-col,
  .codes-admin-workspace,
  .code-list-head,
  .sales-access-nav,
  .sales-access-toolbar,
  .wedding-cloud-hero,
  .wedding-workspace-bar,
  .wedding-tool-shellbar,
  .wedding-board-head,
  .wedding-budget-control-grid,
  .wedding-planner-toolbar,
  .wedding-cloud-note,
  .support-request-main,
  .ios-report-grid.two,
  .ios-report-grid.three {
    grid-template-columns: 1fr;
  }

  .code-filter-bar {
    justify-content: start;
  }

  .sales-subtabs {
    min-width: 0;
    width: 100%;
  }

  .sales-access-toolbar .inline-actions {
    justify-content: start;
  }

  .wedding-planner-tools {
    justify-content: start;
  }

  .wedding-cloud-stats,
  .wedding-budget-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .planner-board-toolbar .wedding-task-mini-stats,
  .wedding-task-modal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wedding-tool-tabs {
    justify-content: flex-start;
  }

  .wedding-tool-actions {
    justify-content: flex-start;
  }

  .wedding-task-form .wide,
  .wedding-task-form .primary-button {
    grid-column: 1 / -1;
  }

  .ios-analytics-hero {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .ios-hero-actions {
    justify-content: start;
  }

  .ios-usage-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-portal-shell {
    padding: 10px;
  }

  .admin-portal-sidebar,
  .admin-portal-topbar {
    border-radius: 18px;
  }

  .admin-portal-topbar {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .admin-portal-actions {
    justify-content: start;
  }

  .admin-portal-actions .primary-button,
  .admin-portal-actions .secondary-button {
    min-height: 42px;
  }

  .wedding-cloud-stats,
  .wedding-budget-summary,
  .wedding-budget-settings-form,
  .wedding-budget-add-form,
  .clickup-task-composer,
  .wedding-task-form,
  .wedding-task-fields,
  .wedding-task-mini-stats {
    grid-template-columns: 1fr;
  }

  .wedding-tool-shellbar {
    position: static;
  }

  .wedding-tool-tabs,
  .wedding-tool-actions {
    width: 100%;
  }

  .wedding-tool-tabs button,
  .wedding-tool-actions .secondary-button {
    flex: 1 1 auto;
  }

  .wedding-tool-page .wedding-cloud-hero {
    grid-template-columns: 1fr;
  }

  .clickup-board {
    max-height: none;
    min-height: 520px;
  }

  .planner-board-toolbar {
    position: static;
  }

  .planner-board-toolbar .wedding-task-mini-stats,
  .wedding-task-modal-head,
  .wedding-task-modal-grid,
  .wedding-task-modal-actions {
    grid-template-columns: 1fr;
  }

  .wedding-task-modal {
    max-height: calc(100vh - 20px);
    padding: 14px;
    width: calc(100vw - 20px);
  }

  .wedding-task-modal-head {
    padding-right: 34px;
  }

  .wedding-task-modal-actions,
  .wedding-task-modal-actions > div {
    align-items: stretch;
    display: grid;
    width: 100%;
  }

  .planner-board {
    min-height: 580px;
  }

  .planner-kanban-column {
    min-width: 285px;
  }

  .wedding-budget-table-shell {
    max-height: none;
  }

  .wedding-planner-tools input,
  .wedding-planner-tools .secondary-button {
    max-width: none;
    width: 100%;
  }

  .admin-hero-panel,
  .admin-section-hero,
  .admin-dashboard-grid,
  .activity-kpi-grid,
  .activity-session-row,
  .activity-event-row,
  .activity-lead-row,
  .support-grid,
  .support-two-col,
  .ios-analytics-hero,
  .ios-kpi-grid,
  .ios-mini-kpis,
  .ios-funnel {
    grid-template-columns: 1fr;
  }

  .ios-metric-grid,
  .ios-metric-grid.priority,
  .ios-metric-grid.compact,
  .ios-insight-strip,
  .ios-trend-summary,
  .ios-donut-chart,
  .ios-funnel-chart article div {
    grid-template-columns: 1fr;
  }

  .ios-trend-head {
    align-items: stretch;
    display: grid;
  }

  .ios-trend-controls {
    justify-self: start;
    max-width: 100%;
    overflow-x: auto;
  }

  .ios-section-nav {
    border-radius: 22px;
    flex-wrap: nowrap;
    overflow-x: auto;
    position: static;
  }

  .ios-section-nav button {
    flex: 0 0 auto;
  }

  .ios-hero-actions > * {
    flex: 1 1 100%;
  }

  .ios-rollup-banner {
    align-items: start;
    flex-direction: column;
  }

  .ios-donut {
    height: 132px;
    width: 132px;
  }

  .ios-usage-grid {
    grid-template-columns: minmax(92px, 0.85fr) repeat(var(--usage-columns, 7), minmax(40px, 1fr));
  }

  .ios-usage-grid strong,
  .ios-usage-corner,
  .ios-usage-row-label,
  .ios-usage-hour-label,
  .ios-usage-cell {
    font-size: 0.7rem;
    min-height: 30px;
    padding: 6px;
  }

  .admin-quick-actions {
    justify-content: stretch;
  }

  .activity-session-row aside {
    justify-items: start;
  }

  .admin-quick-actions > * {
    flex: 1 1 100%;
  }

  .admin-section-metrics,
  .support-activity-timeline span,
  .access-summary-strip,
  .fixed-code-details,
  .code-form-grid,
  .admin-row-metrics {
    grid-template-columns: 1fr;
  }

  .access-workflow-card {
    grid-template-columns: 1fr;
  }

  .access-workflow-card .code-ticket-preview,
  .access-workflow-card .streamlined-code-form,
  .access-workflow-card .fixed-code-details,
  .access-workflow-card .code-form-actions {
    grid-column: auto;
    grid-row: auto;
  }

  .access-workflow-card .fixed-code-details {
    grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
  }

  .admin-code-row {
    grid-template-columns: 1fr;
  }

  .admin-code-row .admin-row-metrics {
    grid-template-columns: 1fr;
  }

  .code-form-grid label.wide {
    grid-column: auto;
  }

  .code-form-actions,
  .admin-code-row .inline-actions,
  .sales-access-toolbar .inline-actions,
  .table-actions {
    justify-content: stretch;
  }

  .code-form-actions > *,
  .admin-code-row .inline-actions > *,
  .sales-access-toolbar .inline-actions > *,
  .table-actions > * {
    flex: 1 1 100%;
  }

  .help-launcher {
    bottom: max(14px, env(safe-area-inset-bottom));
    min-height: 44px;
    padding-right: 13px;
    right: max(14px, env(safe-area-inset-right));
  }

  .support-card {
    border-radius: 24px;
    padding: 18px;
  }

  .support-card-header {
    padding-right: 40px;
  }

  .admin-page .admin-cockpit-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-health-grid {
    grid-template-columns: 1fr;
  }

  .raw-events-card .ios-table-scroll {
    max-height: none;
  }

  .raw-events-card .ios-table-scroll table,
  .raw-events-card .ios-table-scroll thead,
  .raw-events-card .ios-table-scroll tbody,
  .raw-events-card .ios-table-scroll tr,
  .raw-events-card .ios-table-scroll td {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .raw-events-card .ios-table-scroll thead {
    display: none;
  }

  .raw-events-card .ios-table-scroll tr {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(23, 16, 12, 0.08);
    border-radius: 18px;
    margin-bottom: 12px;
    overflow: hidden;
  }

  .raw-events-card .ios-table-scroll td {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(92px, 0.35fr) minmax(0, 1fr);
    max-width: none;
    padding: 9px 11px;
  }

  .raw-events-card .ios-table-scroll td::before {
    color: var(--admin-muted);
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
  }

  .admin-code-row,
  .admin-ledger-row,
  .admin-row-metrics,
  .admin-support-metrics {
    grid-template-columns: 1fr;
  }
}

/* Viewport-safe modal layer */
body.modal-open {
  overflow: hidden;
}

.modal-backdrop,
.template-modal-backdrop,
.ai-token-backdrop,
.ai-preview-lightbox {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(16px, 4dvh, 42px);
  position: fixed;
  z-index: 1000;
}

.ai-preview-lightbox {
  z-index: 1010;
}

.modal-backdrop > *,
.template-modal-backdrop > *,
.ai-token-backdrop > *,
.ai-preview-lightbox > * {
  flex: 0 1 auto;
  margin: auto;
  max-height: calc(100dvh - clamp(32px, 8dvh, 84px));
}

.auth-card,
.ai-token-modal,
.template-modal,
.support-card,
.ai-preview-lightbox-card {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.auth-card,
.ai-token-modal,
.support-card {
  max-width: min(720px, calc(100vw - 32px));
}

.auth-card,
.ai-token-modal,
.support-card {
  max-height: calc(100dvh - clamp(32px, 8dvh, 84px));
}

.support-card {
  max-width: min(840px, calc(100vw - 32px));
}

@media (max-width: 640px), (max-height: 720px) {
  .modal-backdrop,
  .template-modal-backdrop,
  .ai-token-backdrop,
  .ai-preview-lightbox {
    align-items: flex-start;
    padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  }

  .modal-backdrop > *,
  .template-modal-backdrop > *,
  .ai-token-backdrop > *,
  .ai-preview-lightbox > * {
    margin-bottom: 0;
    margin-top: 0;
    max-height: calc(100dvh - 28px);
  }

  .auth-card {
    border-radius: 22px;
    gap: 8px;
    padding: 18px;
  }

  .auth-card h2 {
    font-size: clamp(1.55rem, 7.4vw, 2.2rem);
  }

  .auth-card label {
    gap: 5px;
  }

  .auth-card label span {
    font-size: 0.82rem;
  }

  .auth-card input:not([type="checkbox"]) {
    border-radius: 15px;
    min-height: 42px;
    padding: 0 12px;
  }

  .auth-card .primary-button.full,
  .auth-card .secondary-button.full {
    min-height: 42px;
  }

  .auth-card .soft-copy,
  .auth-consent-row span {
    font-size: 0.82rem;
    line-height: 1.32;
  }

  .auth-benefit-strip {
    display: none;
  }

  .auth-consent-row,
  .auth-code-toggle {
    padding: 10px 12px;
  }
}

/* Compact commerce status for project and builder headers */
.project-hub-side,
.builder-intro-side {
  display: grid;
  gap: 10px;
}

.builder-intro-side > p {
  color: var(--studio-muted, #654d3f);
  font-size: clamp(0.9rem, 1.04vw, 1.02rem);
  font-weight: 620;
  line-height: 1.45;
  margin: 0;
  max-width: 560px;
}

.purchase-wallet.compact-wallet {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.92), rgba(244, 238, 226, 0.78)),
    rgba(255, 250, 240, 0.9);
  border: 1px solid rgba(23, 16, 12, 0.1);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(50, 31, 20, 0.08);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 0.9fr) minmax(220px, 1.35fr) auto;
  padding: 10px;
}

.compact-wallet-status {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.compact-wallet-status span,
.compact-wallet-pills b {
  color: rgba(83, 54, 39, 0.66);
  font-size: 0.64rem;
  font-weight: 940;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compact-wallet-status strong {
  color: var(--studio-ink, #24130e);
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.compact-wallet-status small {
  color: rgba(83, 54, 39, 0.72);
  font-size: 0.72rem;
  font-weight: 720;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-wallet-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.compact-wallet-pills span,
.compact-wallet-pills a {
  align-items: center;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(23, 16, 12, 0.08);
  border-radius: 999px;
  color: var(--studio-ink, #24130e);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  gap: 6px;
  min-height: 32px;
  padding: 6px 9px;
}

.compact-wallet-actions,
.square-pass-mini {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  min-width: 0;
}

.square-pass-mini .access-code-message {
  flex-basis: 100%;
  font-size: 0.72rem;
  text-align: right;
}

.mini-wallet-button {
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  min-height: 32px !important;
  padding: 0 10px !important;
  white-space: nowrap;
}

.project-hub-page .project-hub-hero {
  align-items: start;
  margin-bottom: 14px;
}

.project-hub-page .project-hub-stats {
  gap: 8px;
}

.project-hub-page .project-hub-stats article {
  border-radius: 16px;
  padding: 11px;
}

.project-hub-page .project-hub-stats strong {
  font-size: 1.05rem;
  margin-top: 3px;
}

.project-hub-page .project-hub-stats article small {
  color: var(--gallery-muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 760;
  margin-top: 2px;
}

.project-hub-page .project-hub-stats .ai-token-stat {
  --card-accent: var(--loteria-purple);
}

.project-commerce-card {
  background:
    linear-gradient(90deg, var(--loteria-magenta) 0 6px, transparent 6px),
    radial-gradient(circle at 96% 12%, rgba(236, 47, 145, 0.13), transparent 9rem),
    radial-gradient(circle at 8% 100%, rgba(41, 189, 242, 0.11), transparent 9rem),
    rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px 14px 14px 18px;
}

.project-commerce-card span {
  color: var(--loteria-magenta);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-commerce-card strong {
  color: var(--gallery-ink);
  display: block;
  font-size: 1.08rem;
  line-height: 1.05;
  margin-top: 3px;
}

.project-commerce-card p {
  color: var(--gallery-muted);
  font-size: 0.82rem;
  font-weight: 720;
  line-height: 1.35;
  margin: 4px 0 0;
}

.project-commerce-actions,
.project-commerce-actions .square-pass-mini {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.project-hub-page .project-action-grid {
  grid-template-columns: 1fr;
  margin-bottom: 16px;
}

.project-hub-page .project-action-card {
  align-items: center;
  gap: 6px 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px 16px;
}

.project-hub-page .project-action-card h2 {
  font-size: 1.2rem;
  margin: 0;
}

.project-hub-page .project-action-card p {
  margin: 0;
}

.project-hub-page .project-action-card button {
  grid-column: 2;
}

.project-hub-page .project-action-card > span,
.project-hub-page .project-action-card h2,
.project-hub-page .project-action-card p {
  grid-column: 1;
}

.project-hub-page .project-action-card > .primary-button {
  grid-row: 1 / span 3;
}

@media (max-width: 1180px) {
  .project-pass-checkout-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .project-pass-checkout-summary {
    border-bottom: 1px solid rgba(255, 250, 240, 0.12);
    border-right: 0;
  }

  .purchase-wallet.compact-wallet {
    grid-template-columns: 1fr;
  }

  .compact-wallet-actions,
  .square-pass-mini {
    justify-content: flex-start;
  }

  .square-pass-mini .access-code-message {
    text-align: left;
  }

  .project-commerce-card {
    grid-template-columns: 1fr;
  }

  .project-commerce-actions,
  .project-commerce-actions .square-pass-mini {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .project-pass-checkout-card {
    border-radius: 18px;
  }

  .project-pass-checkout-summary,
  .project-pass-payment-panel {
    padding: 22px;
  }

  .project-pass-checkout-summary h2 {
    font-size: 2.15rem;
    line-height: 0.92;
  }

  .project-pass-checkout-summary > p,
  .project-pass-trust-list li,
  .project-pass-choice-copy p {
    font-size: 0.9rem;
  }

  .etsy-choice {
    grid-template-columns: 1fr;
  }

  .project-pass-etsy-link,
  .project-pass-text-button {
    justify-self: stretch;
    text-align: center;
  }

  .project-hub-page .project-action-card {
    grid-template-columns: 1fr;
  }

  .project-hub-page .project-action-card button,
  .project-hub-page .project-action-card > span,
  .project-hub-page .project-action-card h2,
  .project-hub-page .project-action-card p,
  .project-hub-page .project-action-card > .primary-button {
    grid-column: 1;
    grid-row: auto;
  }
}

/* Gallery Lotería theme: white-first app-wide refresh */
.landing,
.builder-page,
.seo-redesign,
.landing-redesign {
  background:
    radial-gradient(circle at 8% 8%, rgba(41, 189, 242, 0.12), transparent 26rem),
    radial-gradient(circle at 94% 10%, rgba(236, 47, 145, 0.1), transparent 25rem),
    radial-gradient(circle at 80% 92%, rgba(255, 211, 51, 0.12), transparent 24rem),
    linear-gradient(180deg, var(--gallery-white) 0%, var(--gallery-canvas) 52%, var(--gallery-white) 100%) !important;
  color: var(--gallery-ink);
}

.landing::before,
.builder-page::before,
.landing-redesign::before {
  background-image:
    linear-gradient(45deg, rgba(41, 189, 242, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(236, 47, 145, 0.045) 25%, transparent 25%);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.32), transparent 70%);
  opacity: 0.44;
}

.top-nav,
.landing-redesign .top-nav,
.builder-header {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(21, 17, 15, 0.1) !important;
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1) !important;
  color: var(--gallery-ink) !important;
}

.top-nav::after,
.landing-redesign .top-nav::after,
.builder-header::after {
  background: linear-gradient(90deg, var(--loteria-blue), var(--loteria-green), var(--loteria-yellow), var(--loteria-magenta), var(--loteria-purple)) !important;
  bottom: -5px;
  height: 4px;
}

.brand-label,
.landing-redesign .brand-label,
.landing-redesign .nav-links a,
.nav-links a,
.nav-ghost,
.nav-cta {
  color: var(--gallery-ink) !important;
}

.logo-mark {
  background: var(--gallery-white);
  border-color: var(--gallery-white);
  border-radius: 15px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.nav-ghost,
.nav-cta,
.landing-redesign .nav-ghost,
.landing-redesign .nav-cta,
.landing-redesign .secondary-button,
.secondary-button,
.small-button,
.mini-wallet-button {
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(21, 17, 15, 0.12) !important;
  box-shadow: none !important;
  color: var(--gallery-ink) !important;
}

.nav-ghost:hover,
.nav-cta:hover,
.secondary-button:hover,
.small-button:hover {
  background: rgba(41, 189, 242, 0.1) !important;
  border-color: rgba(41, 189, 242, 0.24) !important;
  color: #087ca0 !important;
}

.nav-icon {
  background: rgba(41, 189, 242, 0.12) !important;
  color: #087ca0 !important;
}

.language-toggle,
.landing-redesign .language-toggle {
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(21, 17, 15, 0.12) !important;
}

.language-toggle button,
.language-toggle a,
.landing-redesign .language-toggle button,
.landing-redesign .language-toggle a {
  color: var(--gallery-muted) !important;
}

.language-toggle button.active,
.language-toggle a.active,
.landing-redesign .language-toggle button.active,
.landing-redesign .language-toggle a.active {
  background: var(--gallery-ink) !important;
  color: var(--gallery-white) !important;
}

.primary-button,
.landing-redesign .primary-button,
.nav-cta.primary,
.auth-submit,
.checkout-button,
.builder-page .sparkle-button {
  background: linear-gradient(135deg, var(--loteria-magenta), var(--loteria-red)) !important;
  border: 0 !important;
  box-shadow: 0 14px 30px rgba(236, 47, 145, 0.22) !important;
  color: var(--gallery-white) !important;
}

.primary-button:hover,
.landing-redesign .primary-button:hover,
.builder-page .sparkle-button:hover {
  box-shadow: 0 18px 38px rgba(236, 47, 145, 0.28) !important;
  filter: saturate(1.04);
  transform: translateY(-1px);
}

.danger-button,
.delete-button,
.builder-page .delete-button {
  background: rgba(228, 58, 46, 0.08) !important;
  border-color: rgba(228, 58, 46, 0.2) !important;
  color: #ba241b !important;
}

/* Public landing */
.landing-redesign {
  --lm-dark: var(--gallery-ink);
  --lm-dark-2: #2a241f;
  --lm-cream: var(--gallery-white);
  --lm-paper: var(--gallery-white);
  --lm-red: var(--loteria-red);
  --lm-red-dark: #ad2118;
  --lm-teal: var(--loteria-blue);
  --lm-green: var(--loteria-green);
  --lm-gold: var(--loteria-yellow);
  --lm-pink: var(--loteria-magenta);
  --lm-purple: var(--loteria-purple);
}

.lm-hero {
  background:
    radial-gradient(circle at 78% 18%, rgba(41, 189, 242, 0.16), transparent 22rem),
    radial-gradient(circle at 12% 78%, rgba(255, 211, 51, 0.14), transparent 22rem),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(21, 17, 15, 0.08);
  border-radius: 42px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.1);
}

.lm-hero::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 252, 0.78)) !important;
  border-color: rgba(21, 17, 15, 0.08);
}

.lm-hero::after {
  background:
    linear-gradient(135deg, var(--loteria-blue) 0 18%, transparent 18% 30%, var(--loteria-yellow) 30% 50%, transparent 50% 62%, var(--loteria-magenta) 62% 82%, var(--loteria-green) 82%) !important;
  opacity: 1;
}

.lm-kicker,
.landing-redesign .seo-faq-section .eyebrow,
.lm-intro .lm-kicker,
.lm-section-head .lm-kicker {
  color: var(--loteria-magenta) !important;
}

.lm-hero h1,
.lm-hero h1 span,
.lm-ai-copy h2,
.lm-statement h2,
.lm-print-section .lm-section-head h2,
.lm-final-cta h2 {
  color: var(--gallery-ink) !important;
}

.lm-hero h1 em {
  color: var(--loteria-blue) !important;
}

.seo-home-route .lm-hero h1 {
  font-size: clamp(3.1rem, 5.15vw, 6.2rem);
  letter-spacing: -0.055em;
  line-height: 0.88;
  max-width: 820px;
}

.seo-home-route .lm-hero h1 em {
  font-size: clamp(1.22rem, 1.7vw, 2rem);
  letter-spacing: 0;
  line-height: 1.12;
  max-width: 32ch;
}

.seo-home-route .lm-hero-sub {
  max-width: 660px;
}

.lm-hero-sub,
.lm-ai-copy p:not(.lm-kicker),
.lm-statement p,
.lm-print-section .lm-section-head p:not(.lm-kicker),
.landing-redesign .site-footer p,
.landing-redesign .site-footer a,
.landing-redesign .site-footer button {
  color: var(--gallery-muted) !important;
}

.lm-proof-row span {
  background: var(--gallery-white) !important;
  border-color: rgba(21, 17, 15, 0.1) !important;
  color: var(--gallery-ink) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.lm-marquee {
  background: var(--gallery-white) !important;
  border-bottom-color: rgba(21, 17, 15, 0.1);
  border-top-color: rgba(21, 17, 15, 0.1);
  color: var(--gallery-ink) !important;
}

.lm-marquee span:nth-child(4n + 1) {
  color: var(--loteria-blue);
}

.lm-marquee span:nth-child(4n + 2) {
  color: var(--loteria-green);
}

.lm-marquee span:nth-child(4n + 3) {
  color: var(--loteria-magenta);
}

.lm-marquee span:nth-child(4n + 4) {
  color: var(--loteria-purple);
}

.lm-intro,
.lm-ai-promo,
.lm-process,
.lm-feature-showcase,
.lm-statements,
.lm-gallery,
.lm-print-section,
.lm-reviews,
.landing-redesign .seo-faq-section,
.landing-redesign .seo-related-section,
.lm-final-cta,
.landing-redesign .site-footer {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(21, 17, 15, 0.08);
  border-radius: 34px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
  color: var(--gallery-ink) !important;
  margin-bottom: 28px;
  margin-top: 28px;
}

.lm-ai-promo,
.lm-print-section,
.lm-final-cta {
  background:
    radial-gradient(circle at 88% 16%, rgba(41, 189, 242, 0.12), transparent 24rem),
    radial-gradient(circle at 12% 88%, rgba(236, 47, 145, 0.09), transparent 24rem),
    rgba(255, 255, 255, 0.92) !important;
}

.lm-statements {
  gap: 16px;
  padding: clamp(20px, 3vw, 34px);
}

.lm-statement,
.lm-step-card,
.lm-feature-tile,
.lm-sample-card,
.lm-review-card,
.landing-redesign .seo-faq-grid details,
.landing-redesign .seo-related-grid a,
.landing-redesign .seo-topic-links a,
.physical-product-card {
  background: var(--gallery-white) !important;
  border: 1px solid rgba(21, 17, 15, 0.1) !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08) !important;
}

.lm-step-card::after {
  background: linear-gradient(90deg, var(--loteria-blue), var(--loteria-green), var(--loteria-yellow), var(--loteria-magenta)) !important;
}

.lm-step-card > span,
.lm-statement > div > span,
.lm-sample-tag {
  background: rgba(41, 189, 242, 0.1) !important;
  border-color: rgba(41, 189, 242, 0.2) !important;
  color: #087ca0 !important;
}

.lm-feature-tile:nth-child(6n + 1),
.lm-step-card:nth-child(4n + 1) {
  border-top: 5px solid var(--loteria-blue) !important;
}

.lm-feature-tile:nth-child(6n + 2),
.lm-step-card:nth-child(4n + 2) {
  border-top: 5px solid var(--loteria-green) !important;
}

.lm-feature-tile:nth-child(6n + 3),
.lm-step-card:nth-child(4n + 3) {
  border-top: 5px solid var(--loteria-yellow) !important;
}

.lm-feature-tile:nth-child(6n + 4),
.lm-step-card:nth-child(4n + 4) {
  border-top: 5px solid var(--loteria-magenta) !important;
}

.lm-feature-tile:nth-child(6n + 5) {
  border-top: 5px solid var(--loteria-purple) !important;
}

.lm-feature-tile:nth-child(6n + 6) {
  border-top: 5px solid var(--loteria-red) !important;
}

.lm-memory-collage,
.lm-memory-board,
.lm-sample-art {
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.lm-ai-card {
  border-color: rgba(21, 17, 15, 0.1);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.lm-ai-arrow {
  background: linear-gradient(135deg, var(--loteria-blue), var(--loteria-magenta)) !important;
  box-shadow: 0 14px 30px rgba(41, 189, 242, 0.2);
}

.landing-redesign .site-footer {
  border-radius: 34px 34px 0 0;
  box-shadow: none;
}

/* Builder, projects, account, legal */
.builder-page {
  --studio-bg: var(--gallery-canvas);
  --studio-canvas: var(--gallery-white);
  --studio-surface: rgba(255, 255, 255, 0.86);
  --studio-surface-strong: rgba(255, 255, 255, 0.96);
  --studio-ink: var(--gallery-ink);
  --studio-muted: var(--gallery-muted);
  --studio-soft: #8b94a3;
  --studio-red: var(--loteria-magenta);
  --studio-red-dark: #bf1f70;
  --studio-green: var(--loteria-green);
  --studio-gold: var(--loteria-yellow);
  --studio-line: rgba(21, 17, 15, 0.1);
  --studio-line-strong: rgba(21, 17, 15, 0.18);
  --studio-shadow: 0 24px 70px rgba(15, 23, 42, 0.11);
  --studio-soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.builder-page .builder-shell,
.project-hub-page .builder-shell,
.account-page .builder-shell,
.legal-page .builder-shell {
  background: transparent !important;
}

.builder-page .builder-intro,
.project-hub-hero,
.dashboard-panel,
.builder-panel,
.builder-page .studio-panel,
.builder-page .studio-action-card,
.builder-page .download-card,
.builder-page .generator-card,
.builder-page .template-section-card,
.builder-page .text-style-card,
.builder-page .design-control-card,
.builder-page .label-style-panel,
.builder-page .photo-edit,
.builder-page .upload-progress-card,
.builder-page .cards-main-head,
.builder-page .ai-glow-panel,
.builder-page .project-start-card,
.project-action-card,
.saved-project-card,
.signin-project-callout {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(21, 17, 15, 0.1) !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08) !important;
}

.builder-page .studio-panel-header,
.builder-page .studio-sidebar,
.builder-page .studio-main {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(21, 17, 15, 0.1) !important;
}

.builder-page .studio-main {
  background:
    radial-gradient(circle at 10% 6%, rgba(41, 189, 242, 0.08), transparent 18rem),
    rgba(255, 255, 255, 0.72) !important;
}

.builder-page input,
.builder-page select,
.builder-page textarea,
.builder-page .template-select-label select,
.builder-page .color-inline,
.builder-page .weight-picker,
.builder-page .alignment-picker {
  background: var(--gallery-white) !important;
  border-color: rgba(21, 17, 15, 0.12) !important;
  color: var(--gallery-ink) !important;
}

.builder-page input:focus,
.builder-page select:focus,
.builder-page textarea:focus {
  border-color: rgba(41, 189, 242, 0.52) !important;
  box-shadow: 0 0 0 4px rgba(41, 189, 242, 0.14) !important;
}

.builder-page .drop-zone {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.84)),
    repeating-linear-gradient(135deg, rgba(41, 189, 242, 0.06) 0 1px, transparent 1px 12px) !important;
  border-color: rgba(236, 47, 145, 0.32) !important;
}

.builder-page .drop-art {
  background:
    linear-gradient(135deg, var(--loteria-blue) 0 28%, var(--loteria-yellow) 28% 54%, var(--loteria-magenta) 54% 78%, var(--loteria-green) 78%) !important;
}

.builder-page .cards-main-head span,
.builder-page .crop-toggle button.active,
.builder-page .alignment-picker button.active,
.builder-page .weight-picker button.active,
.dashboard-tabs button.active,
.step-pill.active {
  background: var(--gallery-ink) !important;
  color: var(--gallery-white) !important;
}

.builder-page .card-editor,
.builder-page .saved-project-card {
  background: var(--gallery-white) !important;
  border-color: rgba(21, 17, 15, 0.1) !important;
}

.builder-page .card-editor:hover,
.project-action-card:hover,
.saved-project-card:hover {
  border-color: rgba(41, 189, 242, 0.32) !important;
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.12) !important;
}

.builder-page .cards-studio-panel .ai-glow-panel {
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 211, 51, 0.2), transparent 18rem),
    radial-gradient(circle at 90% 82%, rgba(98, 70, 217, 0.12), transparent 16rem),
    var(--gallery-white) !important;
  border-left: 6px solid var(--loteria-purple) !important;
}

.builder-page .stepper {
  background:
    linear-gradient(90deg, rgba(41, 189, 242, 0.1), rgba(32, 165, 90, 0.09), rgba(255, 211, 51, 0.12), rgba(236, 47, 145, 0.09), rgba(98, 70, 217, 0.1)),
    rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(21, 17, 15, 0.1) !important;
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08) !important;
  gap: 7px;
  padding: 8px;
}

.builder-page .stepper::before {
  background: linear-gradient(90deg, var(--loteria-blue), var(--loteria-green), var(--loteria-yellow), var(--loteria-magenta), var(--loteria-purple));
  height: 3px;
  left: 42px;
  opacity: 0.26;
  right: 42px;
}

.builder-page .step-pill {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(21, 17, 15, 0.08);
  border-radius: 999px;
  color: var(--gallery-muted);
  min-height: 46px;
}

.builder-page .step-pill span {
  background: #ffffff;
  border: 1px solid rgba(21, 17, 15, 0.12);
  color: var(--gallery-muted);
}

.builder-page .step-pill.active {
  background: linear-gradient(135deg, var(--loteria-magenta), var(--loteria-red)) !important;
  box-shadow: 0 16px 34px rgba(236, 47, 145, 0.2) !important;
  color: #ffffff !important;
}

.builder-page .step-pill.active span {
  background: #ffffff !important;
  color: var(--loteria-magenta) !important;
}

.builder-page .step-pill.complete:not(.active) {
  background: rgba(32, 165, 90, 0.08);
  border-color: rgba(32, 165, 90, 0.18);
  color: #12733d;
}

.builder-page .step-pill.complete:not(.active) span {
  background: var(--loteria-green);
  border-color: var(--loteria-green);
  color: #ffffff;
}

.builder-page .ai-settings-card {
  --card-accent: var(--loteria-purple);
  background:
    linear-gradient(180deg, var(--card-accent) 0 5px, transparent 5px),
    radial-gradient(circle at 100% 0%, rgba(98, 70, 217, 0.16), transparent 8rem),
    rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(98, 70, 217, 0.18);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 8px;
  padding: 11px;
}

.builder-page .section-minihead.compact {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: 0;
}

.builder-page .section-minihead.compact span {
  color: var(--gallery-ink);
  font-size: 0.72rem;
}

.builder-page .ai-minihead {
  gap: 8px;
}

.builder-page .ai-minihead-actions {
  align-items: center;
  display: flex;
  gap: 6px;
}

.builder-page .ai-minihead .small-button {
  min-height: 30px;
  padding: 5px 8px;
}

.builder-page .ai-settings-card .soft-copy {
  font-size: 0.82rem;
  margin: 0;
}

.builder-page .ai-token-pill.compact {
  align-items: center;
  background: linear-gradient(135deg, rgba(98, 70, 217, 0.1), rgba(41, 189, 242, 0.1));
  border: 1px solid rgba(98, 70, 217, 0.18);
  border-radius: 999px;
  box-shadow: none;
  display: flex;
  gap: 5px;
  justify-content: space-between;
  min-height: 30px;
  padding: 5px 8px;
}

.builder-page .ai-token-pill.compact strong {
  color: var(--loteria-purple);
  font-size: 0.98rem;
  line-height: 1;
}

.builder-page .ai-token-pill.compact span {
  font-size: 0.7rem;
  font-weight: 850;
}

.builder-page .ai-style-pills.compact {
  grid-template-columns: 1fr 1fr;
}

.builder-page .ai-style-pills.compact button,
.builder-page .ai-quality-toggle button {
  font-size: 0.73rem;
  min-height: 32px;
  padding: 6px;
}

.builder-page .ai-settings-card .ai-control-group {
  gap: 5px;
}

.builder-page .ai-settings-card .ai-style-pills,
.builder-page .ai-settings-card .ai-quality-toggle {
  border-radius: 14px;
  gap: 4px;
  padding: 4px;
}

.builder-page .ai-settings-card .ai-more-style {
  min-height: 34px;
}

.builder-page .ai-bulk-bar.compact {
  align-items: center;
  background: rgba(255, 211, 51, 0.16);
  border: 1px solid rgba(255, 211, 51, 0.32);
  border-radius: 14px;
  color: var(--gallery-ink);
  font-size: 0.82rem;
  font-weight: 850;
  padding: 8px 10px;
}

.builder-page .studio-action-card.ai {
  --card-accent: var(--loteria-purple);
  background:
    linear-gradient(180deg, var(--card-accent) 0 8px, transparent 8px),
    radial-gradient(circle at 96% 4%, rgba(98, 70, 217, 0.2), transparent 8rem),
    radial-gradient(circle at 0% 100%, rgba(236, 47, 145, 0.12), transparent 9rem),
    #ffffff !important;
}

.builder-page .ai-guidance-preview {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto 1fr;
  margin: 12px 0;
}

.builder-page .ai-mini-card {
  background: #fff7df;
  border: 2px solid #ffffff;
  border-radius: 15px;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 5px;
  overflow: hidden;
  padding: 6px;
  transform: rotate(-3deg);
}

.builder-page .ai-mini-card.illustrated {
  border-color: rgba(255, 211, 51, 0.8);
  transform: rotate(3deg);
}

.builder-page .ai-mini-card img,
.builder-page .ai-mini-card span {
  aspect-ratio: 2.5 / 3.5;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(21, 17, 15, 0.46);
  border-radius: 10px 10px 3px 3px;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.builder-page .ai-mini-card b {
  color: var(--gallery-ink);
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.builder-page .ai-mini-arrow {
  align-items: center;
  background: linear-gradient(135deg, var(--loteria-yellow), var(--loteria-magenta), var(--loteria-blue));
  border-radius: 999px;
  color: #ffffff;
  display: flex;
  font-size: 0.68rem;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.builder-page .ai-guidance-balance {
  align-items: center;
  background: rgba(98, 70, 217, 0.08);
  border: 1px solid rgba(98, 70, 217, 0.14);
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  margin: 8px 0 12px;
  padding: 10px 12px;
}

.builder-page .ai-guidance-balance strong {
  color: var(--loteria-purple);
  font-size: 1.5rem;
}

/* Builder header: studio cover + compact progress */
.builder-page .builder-intro {
  align-items: stretch !important;
  background:
    linear-gradient(90deg, rgba(41, 189, 242, 0.16) 0 6px, transparent 6px),
    radial-gradient(circle at 5% 0%, rgba(41, 189, 242, 0.14), transparent 19rem),
    radial-gradient(circle at 96% 18%, rgba(236, 47, 145, 0.1), transparent 18rem),
    rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(21, 17, 15, 0.1) !important;
  border-radius: 30px !important;
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.09) !important;
  display: grid !important;
  gap: clamp(18px, 2.6vw, 42px) !important;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.56fr) !important;
  margin: 10px 0 14px !important;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px) !important;
  position: relative;
}

.builder-page .builder-intro::after {
  background: linear-gradient(90deg, var(--loteria-blue), var(--loteria-green), var(--loteria-yellow), var(--loteria-magenta), var(--loteria-purple));
  border-radius: 999px;
  bottom: 0;
  content: "";
  height: 5px;
  left: 18px;
  opacity: 0.95;
  position: absolute;
  right: 18px;
}

.builder-page .builder-intro > div:first-child {
  align-self: end;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.builder-page .builder-intro .eyebrow {
  color: var(--loteria-magenta) !important;
  margin-bottom: 8px !important;
}

.builder-page .builder-intro h1 {
  font-size: clamp(2.8rem, 4.6vw, 5rem) !important;
  letter-spacing: -0.075em !important;
  line-height: 0.92 !important;
  margin: 0 !important;
  max-width: 760px;
}

.builder-page .builder-intro-side {
  align-content: center;
  align-self: stretch;
  display: grid;
  gap: 12px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.builder-page .builder-intro-side > p {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(21, 17, 15, 0.08);
  border-radius: 18px;
  color: rgba(25, 24, 24, 0.76);
  font-size: clamp(0.9rem, 1vw, 1.02rem);
  line-height: 1.42;
  margin: 0;
  max-width: none;
  padding: 12px 14px;
}

.builder-page .builder-intro .purchase-wallet.compact-wallet {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(21, 17, 15, 0.1) !important;
  border-radius: 20px !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.68), 0 13px 30px rgba(15, 23, 42, 0.07) !important;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr) auto !important;
  padding: 12px !important;
}

.builder-page .builder-intro .compact-wallet-status strong {
  font-size: 1.02rem;
}

.builder-page .builder-intro .compact-wallet-status small {
  color: rgba(25, 24, 24, 0.62);
}

.builder-page .builder-intro .compact-wallet-pills {
  align-items: center;
}

.builder-page .builder-intro .compact-wallet-pills span,
.builder-page .builder-intro .compact-wallet-pills a {
  background: #ffffff !important;
  border-color: rgba(21, 17, 15, 0.1) !important;
  min-height: 30px;
  padding: 5px 9px;
}

.builder-page .builder-intro .compact-wallet-actions:empty {
  display: none;
}

.builder-page .stepper {
  align-items: center;
  background: #ffffff !important;
  border: 1px solid rgba(21, 17, 15, 0.1) !important;
  border-radius: 999px !important;
  box-shadow: 0 15px 38px rgba(15, 23, 42, 0.08) !important;
  gap: 7px !important;
  margin-bottom: 18px !important;
  min-height: 60px;
  padding: 8px !important;
}

.builder-page .stepper::before {
  background: linear-gradient(90deg, var(--loteria-blue), var(--loteria-green), var(--loteria-yellow), var(--loteria-magenta), var(--loteria-purple)) !important;
  height: 2px !important;
  left: 34px !important;
  opacity: 0.22 !important;
  right: 34px !important;
  top: 50% !important;
}

.builder-page .step-pill {
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  gap: 9px !important;
  justify-content: center;
  min-height: 43px !important;
  padding: 7px 11px !important;
  position: relative;
}

.builder-page .step-pill span {
  height: 27px !important;
  min-width: 27px !important;
  width: 27px !important;
}

.builder-page .step-pill.active {
  background: linear-gradient(135deg, var(--loteria-magenta), var(--loteria-red)) !important;
  border-color: transparent !important;
  box-shadow: 0 16px 30px rgba(236, 47, 145, 0.18) !important;
  transform: none !important;
}

.builder-page .step-pill.complete:not(.active) {
  background: rgba(32, 165, 90, 0.1) !important;
  border-color: rgba(32, 165, 90, 0.18) !important;
}

.builder-page .step-pill.locked {
  background: rgba(248, 250, 252, 0.72) !important;
  opacity: 0.62;
}

@media (max-width: 1080px) {
  .builder-page .builder-intro {
    grid-template-columns: 1fr !important;
  }

  .builder-page .builder-intro-side {
    align-content: start;
  }

  .builder-page .builder-intro .purchase-wallet.compact-wallet {
    grid-template-columns: 1fr !important;
  }

  .builder-page .builder-intro .compact-wallet-actions,
  .builder-page .builder-intro .square-pass-mini {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .builder-page .builder-intro {
    border-radius: 24px !important;
    margin-top: 8px !important;
    padding: 18px !important;
  }

  .builder-page .builder-intro::after {
    left: 14px;
    right: 14px;
  }

  .builder-page .builder-intro h1 {
    font-size: clamp(2.55rem, 15vw, 4.2rem) !important;
    letter-spacing: -0.065em !important;
  }

  .builder-page .builder-intro-side > p {
    font-size: 0.9rem;
    padding: 11px 12px;
  }

  .builder-page .stepper {
    border-radius: 24px !important;
    display: grid !important;
    grid-auto-columns: minmax(148px, 58vw);
    grid-auto-flow: column;
    grid-template-columns: none !important;
    min-height: auto;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 8px !important;
    scroll-padding-inline: 8px;
    scroll-snap-type: x proximity;
  }

  .builder-page .stepper::before {
    display: none;
  }

  .builder-page .step-pill {
    justify-content: center;
    min-height: 40px !important;
    scroll-snap-align: start;
    white-space: nowrap;
    width: auto;
  }
}

.access-status-badge,
.purchase-wallet.compact-wallet,
.project-access-callout,
.attempt-notice,
.finalize-panel {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(21, 17, 15, 0.1) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

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

.access-status-badge.needed,
.attempt-notice {
  border-left-color: var(--loteria-yellow) !important;
}

.access-status-badge.locked {
  border-left-color: var(--loteria-purple) !important;
}

.project-hub-stats article {
  background: var(--gallery-white) !important;
  border: 1px solid rgba(21, 17, 15, 0.1) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.project-action-card.new-project-card {
  border-left: 7px solid var(--loteria-blue) !important;
}

/* Admin and analytics */
.admin-page {
  --admin-ink: var(--gallery-ink);
  --admin-muted: var(--gallery-muted);
  --admin-red: var(--loteria-magenta);
  --admin-green: var(--loteria-green);
  --admin-gold: var(--loteria-yellow);
  --admin-line: rgba(21, 17, 15, 0.1);
  --admin-surface: rgba(255, 255, 255, 0.92);
}

.admin-hero-panel,
.admin-page .admin-summary-grid article,
.admin-page .admin-list-panel,
.admin-page .admin-manager-card,
.admin-page .admin-detail-card,
.admin-page .admin-code-card,
.admin-page .admin-context-card,
.ios-analytics-hero,
.ios-report-card,
.ios-table-card,
.ios-metric-card,
.ios-insight-strip article {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(21, 17, 15, 0.1) !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08) !important;
}

.admin-page .admin-tabs,
.ios-section-nav {
  background: rgba(255, 255, 255, 0.86) !important;
  border-color: rgba(21, 17, 15, 0.1) !important;
}

.admin-page .admin-tabs button.active,
.admin-page .admin-tabs button:hover,
.ios-section-nav button.active {
  background: var(--gallery-ink) !important;
  color: var(--gallery-white) !important;
}

.ios-analytics-hero,
.ios-report-card.featured,
.ios-metric-card {
  background:
    radial-gradient(circle at 88% 8%, rgba(41, 189, 242, 0.1), transparent 16rem),
    var(--gallery-white) !important;
}

.ios-event-chip {
  background: rgba(41, 189, 242, 0.12) !important;
  border-color: rgba(41, 189, 242, 0.22) !important;
  color: #087ca0 !important;
}

.ios-funnel-chart > article > i b,
.mixing-bar span,
.frequency-mini i {
  background: linear-gradient(90deg, var(--loteria-blue), var(--loteria-green), var(--loteria-yellow), var(--loteria-magenta)) !important;
}

/* Lotería gallery card accents */
.lm-step-card,
.lm-feature-tile,
.lm-sample-card,
.lm-review-card,
.physical-product-card,
.project-action-card,
.saved-project-card,
.builder-page .card-editor,
.builder-page .studio-action-card,
.builder-page .download-card,
.builder-page .generator-card,
.builder-page .template-section-card,
.builder-page .text-style-card,
.builder-page .design-control-card,
.builder-page .label-style-panel,
.builder-page .upload-progress-card,
.admin-page .admin-summary-grid article,
.admin-page .admin-manager-card,
.admin-page .admin-detail-card,
.admin-page .admin-code-card,
.admin-page .admin-context-card,
.admin-page .admin-deck-card,
.ios-metric-card,
.ios-report-card {
  --card-accent: var(--loteria-blue);
  background:
    linear-gradient(180deg, var(--card-accent) 0 8px, transparent 8px),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--card-accent) 22%, transparent), transparent 9rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.88)) !important;
  border-color: color-mix(in srgb, var(--card-accent) 24%, rgba(21, 17, 15, 0.1)) !important;
  overflow: hidden;
  position: relative;
}

.lm-step-card::before,
.lm-feature-tile::before,
.lm-sample-card::before,
.lm-review-card::before,
.physical-product-card::before,
.project-action-card::before,
.saved-project-card::before,
.builder-page .card-editor::before,
.builder-page .studio-action-card::before,
.builder-page .download-card::before,
.builder-page .generator-card::before,
.builder-page .template-section-card::before,
.builder-page .text-style-card::before,
.builder-page .design-control-card::before,
.builder-page .label-style-panel::before,
.builder-page .upload-progress-card::before,
.admin-page .admin-summary-grid article::before,
.admin-page .admin-manager-card::before,
.admin-page .admin-detail-card::before,
.admin-page .admin-code-card::before,
.admin-page .admin-context-card::before,
.admin-page .admin-deck-card::before,
.ios-metric-card::before,
.ios-report-card::before {
  background:
    radial-gradient(circle, var(--card-accent) 0 3px, transparent 3.5px),
    radial-gradient(circle, var(--card-accent) 0 2px, transparent 2.5px);
  background-position: 0 0, 10px 12px;
  background-size: 20px 20px;
  border-radius: 999px;
  content: "";
  height: 42px;
  opacity: 0.18;
  pointer-events: none;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 42px;
}

.lm-step-card:nth-child(6n + 1),
.lm-feature-tile:nth-child(6n + 1),
.lm-sample-card:nth-child(6n + 1),
.lm-review-card:nth-child(6n + 1),
.saved-project-card:nth-child(6n + 1),
.builder-page .card-editor:nth-child(6n + 1),
.admin-page .admin-summary-grid article:nth-child(6n + 1),
.admin-page .admin-deck-card:nth-child(6n + 1),
.ios-metric-card:nth-child(6n + 1),
.ios-report-card:nth-child(6n + 1) {
  --card-accent: var(--loteria-blue);
}

.lm-step-card:nth-child(6n + 2),
.lm-feature-tile:nth-child(6n + 2),
.lm-sample-card:nth-child(6n + 2),
.lm-review-card:nth-child(6n + 2),
.saved-project-card:nth-child(6n + 2),
.builder-page .card-editor:nth-child(6n + 2),
.admin-page .admin-summary-grid article:nth-child(6n + 2),
.admin-page .admin-deck-card:nth-child(6n + 2),
.ios-metric-card:nth-child(6n + 2),
.ios-report-card:nth-child(6n + 2) {
  --card-accent: var(--loteria-green);
}

.lm-step-card:nth-child(6n + 3),
.lm-feature-tile:nth-child(6n + 3),
.lm-sample-card:nth-child(6n + 3),
.lm-review-card:nth-child(6n + 3),
.saved-project-card:nth-child(6n + 3),
.builder-page .card-editor:nth-child(6n + 3),
.admin-page .admin-summary-grid article:nth-child(6n + 3),
.admin-page .admin-deck-card:nth-child(6n + 3),
.ios-metric-card:nth-child(6n + 3),
.ios-report-card:nth-child(6n + 3) {
  --card-accent: var(--loteria-yellow);
}

.lm-step-card:nth-child(6n + 4),
.lm-feature-tile:nth-child(6n + 4),
.lm-sample-card:nth-child(6n + 4),
.lm-review-card:nth-child(6n + 4),
.saved-project-card:nth-child(6n + 4),
.builder-page .card-editor:nth-child(6n + 4),
.admin-page .admin-summary-grid article:nth-child(6n + 4),
.admin-page .admin-deck-card:nth-child(6n + 4),
.ios-metric-card:nth-child(6n + 4),
.ios-report-card:nth-child(6n + 4) {
  --card-accent: var(--loteria-magenta);
}

.lm-step-card:nth-child(6n + 5),
.lm-feature-tile:nth-child(6n + 5),
.lm-sample-card:nth-child(6n + 5),
.lm-review-card:nth-child(6n + 5),
.saved-project-card:nth-child(6n + 5),
.builder-page .card-editor:nth-child(6n + 5),
.admin-page .admin-summary-grid article:nth-child(6n + 5),
.admin-page .admin-deck-card:nth-child(6n + 5),
.ios-metric-card:nth-child(6n + 5),
.ios-report-card:nth-child(6n + 5) {
  --card-accent: var(--loteria-purple);
}

.lm-step-card:nth-child(6n + 6),
.lm-feature-tile:nth-child(6n + 6),
.lm-sample-card:nth-child(6n + 6),
.lm-review-card:nth-child(6n + 6),
.saved-project-card:nth-child(6n + 6),
.builder-page .card-editor:nth-child(6n + 6),
.admin-page .admin-summary-grid article:nth-child(6n + 6),
.admin-page .admin-deck-card:nth-child(6n + 6),
.ios-metric-card:nth-child(6n + 6),
.ios-report-card:nth-child(6n + 6) {
  --card-accent: var(--loteria-red);
}

.project-action-card.new-project-card,
.builder-page .cards-studio-panel .ai-glow-panel,
.ios-report-card.featured {
  --card-accent: var(--loteria-magenta);
}

.ios-overview-trend-card.featured {
  --card-accent: var(--loteria-blue);
}

.builder-page .studio-action-card,
.builder-page .download-card,
.builder-page .generator-card,
.builder-page .template-section-card,
.builder-page .text-style-card,
.builder-page .design-control-card,
.builder-page .label-style-panel,
.builder-page .upload-progress-card,
.admin-page .admin-manager-card,
.admin-page .admin-detail-card,
.admin-page .admin-code-card,
.admin-page .admin-context-card {
  box-shadow:
    inset 0 6px 0 var(--card-accent),
    0 18px 45px rgba(15, 23, 42, 0.08) !important;
}

/* Card builder v2: cleaner gallery tiles + focused inspector */
.builder-page .cards-studio-panel .builder-studio-layout {
  grid-template-columns: minmax(250px, 292px) minmax(560px, 1fr) minmax(300px, 340px);
}

.builder-page .cards-studio-panel .card-grid {
  gap: 12px !important;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)) !important;
}

.builder-page .cards-studio-panel .card-editor {
  background:
    linear-gradient(180deg, var(--card-accent) 0 4px, transparent 4px),
    #ffffff !important;
  border: 1px solid rgba(21, 17, 15, 0.1) !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08) !important;
  gap: 7px !important;
  padding: 10px !important;
}

.builder-page .cards-studio-panel .card-editor::before {
  display: none !important;
}

.builder-page .cards-studio-panel .card-editor.selected {
  border-color: color-mix(in srgb, var(--card-accent) 52%, rgba(21, 17, 15, 0.1)) !important;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--card-accent) 18%, transparent),
    0 18px 42px rgba(15, 23, 42, 0.12) !important;
}

.builder-page .card-select-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: grid;
  justify-items: center;
  min-width: 0;
  overflow: visible;
  padding: 0;
  text-align: inherit;
  width: 100%;
}

.builder-page .cards-studio-panel .lazy-card-preview {
  display: grid;
  justify-items: center;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.builder-page .card-select-button:focus-visible {
  border-radius: 18px;
  outline: 3px solid rgba(41, 189, 242, 0.28);
  outline-offset: 4px;
}

.builder-page .deck-management-bar,
.builder-page .cards-filter-empty {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.builder-page .deck-management-bar {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.builder-page .deck-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.builder-page .deck-filter-chips button {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 999px;
  color: var(--gallery-muted);
  display: inline-flex;
  gap: 8px;
  min-height: 34px;
  padding: 0 8px 0 12px;
}

.builder-page .deck-filter-chips button span {
  color: inherit;
  font-size: 0.76rem;
  font-weight: 900;
}

.builder-page .deck-filter-chips button b {
  align-items: center;
  background: rgba(21, 17, 15, 0.06);
  border-radius: 999px;
  color: var(--gallery-ink);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 950;
  justify-content: center;
  min-width: 24px;
  padding: 4px 7px;
}

.builder-page .deck-filter-chips button.active {
  background: var(--gallery-ink);
  border-color: var(--gallery-ink);
  color: var(--gallery-white);
}

.builder-page .deck-filter-chips button.active b {
  background: rgba(255, 255, 255, 0.18);
  color: var(--gallery-white);
}

.builder-page .deck-view-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.builder-page .deck-view-toggle {
  min-width: 150px;
  padding: 4px;
}

.builder-page .deck-view-toggle button {
  min-height: 32px;
  padding: 6px 9px;
}

.builder-page .cards-studio-panel .card-preview-canvas {
  border-width: 8px !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12) !important;
  max-width: 100%;
  width: min(100%, 156px);
}

.builder-page .card-grid.list-mode {
  grid-template-columns: 1fr !important;
}

.builder-page .card-grid.list-mode .card-editor {
  align-items: center;
  gap: 12px !important;
  grid-template-columns: 96px minmax(190px, 0.8fr) minmax(190px, 1fr);
}

.builder-page .card-grid.list-mode .card-preview-canvas {
  border-width: 6px !important;
  width: 86px;
}

.builder-page .card-grid.list-mode .card-name-field {
  align-self: center;
}

.builder-page .card-grid.list-mode .card-quick-actions,
.builder-page .card-grid.list-mode .ai-card-tools.compact {
  grid-column: 2 / -1;
}

.builder-page .cards-filter-empty {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 20px;
}

.builder-page .cards-filter-empty h3 {
  color: var(--gallery-ink);
  font-size: 1.08rem;
  margin: 0;
}

.builder-page .cards-filter-empty p {
  color: var(--gallery-muted);
  font-weight: 720;
  margin: 0;
}

.builder-page .cards-studio-panel .card-name-field {
  gap: 5px !important;
}

.builder-page .cards-studio-panel .card-name-field input {
  min-height: 36px !important;
}

.builder-page .card-quick-actions {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: 34px 34px minmax(0, 1fr);
}

.builder-page .card-quick-actions button {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 999px;
  color: var(--gallery-muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
}

.builder-page .card-quick-actions .icon-button {
  font-size: 1rem;
  padding: 0;
}

.builder-page .card-quick-actions .adjust-button {
  background: var(--gallery-ink);
  border-color: var(--gallery-ink);
  color: var(--gallery-white);
  width: 100%;
}

.builder-page .ai-card-tools.compact {
  align-items: center;
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.builder-page .ai-card-tools.compact .ai-select-card {
  min-width: 0;
}

.builder-page .ai-card-tools.compact .ai-select-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.builder-page .ai-card-tools.compact .sparkle-button {
  min-height: 34px;
  padding: 0 10px;
  white-space: nowrap;
}

.builder-page .settings-group {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.builder-page .settings-group-title,
.builder-page .inspector-control-group > span,
.card-adjust-dialog .inspector-control-group > span {
  color: var(--gallery-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-adjust-dialog {
  background: #ffffff;
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
  display: grid;
  gap: 14px;
  max-width: min(940px, calc(100vw - 32px));
  overflow-y: auto;
  padding: 20px;
  position: relative;
  width: min(940px, calc(100vw - 32px));
}

.card-adjust-head {
  display: grid;
  gap: 2px;
  padding-right: 42px;
}

.card-adjust-head span {
  color: var(--gallery-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-adjust-head h3 {
  color: var(--gallery-ink);
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1;
  margin: 0;
  overflow-wrap: anywhere;
}

.card-adjust-head small {
  color: var(--gallery-muted);
  font-weight: 800;
}

.card-adjust-body {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
}

.card-adjust-preview,
.card-adjust-controls {
  display: grid;
  gap: 12px;
}

.card-adjust-preview .card-preview-canvas.compact {
  justify-self: center;
  width: min(180px, 100%);
}

.photo-placement-editor {
  background:
    radial-gradient(circle at 16% 10%, rgba(41, 189, 242, 0.11), transparent 34%),
    radial-gradient(circle at 88% 92%, rgba(236, 47, 145, 0.1), transparent 34%),
    rgba(255, 250, 240, 0.82);
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 20px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.photo-placement-canvas-shell {
  cursor: grab;
  display: grid;
  justify-items: center;
  touch-action: none;
  user-select: none;
}

.photo-placement-canvas-shell.dragging {
  cursor: grabbing;
}

.photo-placement-canvas {
  aspect-ratio: 2.5 / 3.5;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
  display: block;
  height: auto;
  max-width: 100%;
  width: min(100%, 300px);
}

.photo-placement-canvas:focus-visible {
  outline: 3px solid rgba(41, 189, 242, 0.42);
  outline-offset: 4px;
}

.photo-placement-toolbar {
  display: grid;
  gap: 9px;
}

.photo-placement-toolbar .crop-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-placement-toolbar .crop-toggle button {
  white-space: nowrap;
}

.photo-resize-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
}

.photo-resize-row .icon-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(21, 17, 15, 0.12);
  border-radius: 999px;
  color: var(--gallery-ink);
  display: inline-flex;
  font-size: 1rem;
  font-weight: 950;
  height: 38px;
  justify-content: center;
  padding: 0;
  width: 38px;
}

.photo-placement-shortcuts {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-placement-shortcuts .secondary-button {
  min-height: 36px;
  padding-inline: 10px;
}

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

.card-adjust-actions .secondary-button {
  min-height: 38px;
  padding-inline: 10px;
}

.card-adjust-dialog .inspector-control-group,
.card-adjust-dialog .inspector-sliders,
.builder-page .inspector-control-group,
.builder-page .inspector-sliders,
.builder-page .settings-group {
  display: grid;
  gap: 7px;
}

.builder-page .inspector-toggle {
  margin: 0;
}

.card-adjust-dialog .inspector-sliders label,
.builder-page .inspector-sliders label {
  display: grid;
  gap: 5px;
}

.builder-page .compact-settings-body {
  gap: 8px !important;
}

.builder-page .settings-group {
  box-shadow: none;
  padding: 9px;
}

.builder-page .settings-group .segmented-control {
  border-radius: 14px;
}

.builder-page .settings-group .switch-row.compact-switch {
  min-height: 34px;
  padding: 7px 8px;
}

.builder-page .compact-switch-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.builder-page .color-swatch-field {
  display: grid;
  gap: 5px;
}

.builder-page .color-swatch-control {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 14px;
  display: grid;
  gap: 8px;
  grid-template-columns: 34px 1fr auto;
  min-height: 38px;
  padding: 5px 8px 5px 5px;
  position: relative;
}

.builder-page .color-swatch-control input[type="color"] {
  cursor: pointer;
  height: 28px;
  left: 5px;
  opacity: 0;
  padding: 0;
  position: absolute;
  top: 5px;
  width: 28px;
}

.builder-page .color-swatch-control b {
  border: 1px solid rgba(21, 17, 15, 0.16);
  border-radius: 10px;
  display: block;
  height: 28px;
  position: relative;
  width: 28px;
}

.builder-page .color-swatch-control code {
  color: var(--gallery-muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .builder-page .cards-studio-panel .builder-studio-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .builder-page .cards-studio-panel .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)) !important;
  }

  .builder-page .cards-studio-panel .card-grid.list-mode {
    grid-template-columns: 1fr !important;
  }

  .builder-page .cards-studio-panel .card-preview-canvas {
    border-width: 7px !important;
    border-radius: 14px !important;
    width: min(100%, 132px);
  }

  .builder-page .deck-management-bar {
    grid-template-columns: 1fr;
  }

  .builder-page .deck-view-actions {
    justify-content: stretch;
  }

  .builder-page .deck-view-actions > *,
  .builder-page .deck-view-toggle {
    flex: 1 1 160px;
  }

  .card-adjust-body {
    grid-template-columns: 1fr;
  }

  .builder-page .card-grid.list-mode .card-editor {
    align-items: start;
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .builder-page .card-grid.list-mode .lazy-card-preview {
    justify-items: start;
  }

  .builder-page .card-grid.list-mode .card-preview-canvas {
    border-width: 5px !important;
    border-radius: 12px !important;
    width: 72px;
  }

  .builder-page .card-grid.list-mode .card-name-field {
    grid-column: 2;
  }

  .builder-page .card-grid.list-mode .card-quick-actions,
  .builder-page .card-grid.list-mode .ai-card-tools.compact {
    grid-column: 1 / -1;
  }

  .builder-page .card-quick-actions {
    grid-template-columns: 34px 34px minmax(0, 1fr);
  }

  .card-adjust-dialog {
    border-radius: 20px;
    gap: 10px;
    padding: 14px;
  }

  .card-adjust-head h3 {
    font-size: 1.42rem;
  }

  .card-adjust-body,
  .card-adjust-preview,
  .card-adjust-controls {
    gap: 10px;
  }

  .card-adjust-preview .card-preview-canvas.compact {
    width: 150px;
  }

  .card-adjust-actions {
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-adjust-actions .secondary-button {
    min-height: 34px;
  }

  .card-adjust-actions .danger-link {
    grid-column: 1 / -1;
  }
}

/* Landing story rows: brighter Lotería editorial cards */
.landing-redesign .lm-statements {
  background:
    radial-gradient(circle at 8% 0%, rgba(41, 189, 242, 0.12), transparent 18rem),
    radial-gradient(circle at 92% 100%, rgba(236, 47, 145, 0.1), transparent 18rem),
    rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(21, 17, 15, 0.08);
  gap: 18px;
  padding: clamp(18px, 2.6vw, 30px);
}

.landing-redesign .lm-statement {
  --story-accent: var(--loteria-blue);
  --story-accent-2: var(--loteria-yellow);
  align-items: stretch;
  background:
    linear-gradient(90deg, var(--story-accent) 0 10px, transparent 10px),
    radial-gradient(circle at 3% 18%, color-mix(in srgb, var(--story-accent) 20%, transparent), transparent 12rem),
    radial-gradient(circle at 98% 8%, color-mix(in srgb, var(--story-accent-2) 18%, transparent), transparent 14rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92)) !important;
  border: 1px solid color-mix(in srgb, var(--story-accent) 26%, rgba(21, 17, 15, 0.1)) !important;
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09) !important;
  gap: clamp(20px, 3vw, 42px);
  grid-template-columns: minmax(210px, 0.34fr) minmax(0, 1fr);
  overflow: hidden;
  padding: clamp(22px, 3vw, 38px);
  position: relative;
}

.landing-redesign .lm-statement.reveal-pending,
.landing-redesign .lm-statement.reveal-pending.is-visible {
  opacity: 1 !important;
  transform: none !important;
}

.landing-redesign .lm-statement:nth-child(1) {
  --story-accent: var(--loteria-blue);
  --story-accent-2: var(--loteria-magenta);
}

.landing-redesign .lm-statement:nth-child(2) {
  --story-accent: var(--loteria-red);
  --story-accent-2: var(--loteria-yellow);
}

.landing-redesign .lm-statement:nth-child(3) {
  --story-accent: var(--loteria-green);
  --story-accent-2: var(--loteria-purple);
}

.landing-redesign .lm-statement::before {
  background:
    radial-gradient(circle, var(--story-accent) 0 3px, transparent 3.6px),
    radial-gradient(circle, var(--story-accent-2) 0 2.5px, transparent 3px);
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
  border-radius: 999px;
  content: "";
  height: 82px;
  opacity: 0.16;
  pointer-events: none;
  position: absolute;
  right: 22px;
  top: 18px;
  width: 82px;
}

.landing-redesign .lm-statement::after {
  background:
    linear-gradient(135deg, transparent 0 34%, var(--story-accent) 34% 50%, transparent 50% 62%, var(--story-accent-2) 62% 78%, transparent 78%);
  bottom: 0;
  content: "";
  height: 18px;
  left: 0;
  opacity: 0.9;
  position: absolute;
  right: 0;
}

.landing-redesign .lm-statement-media {
  align-self: center;
  background-color: color-mix(in srgb, var(--story-accent) 16%, #ffffff);
  border: 8px solid color-mix(in srgb, var(--story-accent) 18%, #ffffff);
  border-radius: 24px;
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
  min-height: 170px;
  position: relative;
  transform: rotate(-1.5deg);
}

.landing-redesign .lm-statement:nth-child(2) .lm-statement-media {
  transform: rotate(1.5deg);
}

.landing-redesign .lm-statement:nth-child(3) .lm-statement-media {
  transform: rotate(-0.75deg);
}

.landing-redesign .lm-statement > div:not(.lm-statement-media) {
  align-self: center;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.landing-redesign .lm-statement > div > span {
  background: var(--story-accent) !important;
  border: 0 !important;
  border-radius: 999px;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--story-accent) 24%, transparent);
  color: #ffffff !important;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 9px 12px;
}

.landing-redesign .lm-statement h2 {
  color: var(--gallery-ink) !important;
  font-size: clamp(2.15rem, 4vw, 4.8rem);
  line-height: 0.9;
  margin-top: 14px;
  max-width: 780px;
}

.landing-redesign .lm-statement h2 .reveal-word,
.landing-redesign .lm-statement h2 span {
  color: inherit;
}

.landing-redesign .lm-statement p {
  color: var(--gallery-muted) !important;
  font-size: clamp(1rem, 1.08vw, 1.18rem);
  line-height: 1.48;
  margin-top: 14px;
  max-width: 660px;
}

@media (max-width: 700px) {
  .landing-redesign {
    background:
      radial-gradient(circle at 12% 6%, rgba(41, 189, 242, 0.12), transparent 18rem),
      linear-gradient(180deg, var(--gallery-white) 0%, var(--gallery-canvas) 100%) !important;
    overflow-x: clip;
  }

  .landing-redesign .top-nav {
    border-radius: 0 0 22px 22px;
  }

  .landing-redesign .nav-links {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(21, 17, 15, 0.1);
  }

  .lm-hero {
    border-radius: 0 0 30px 30px;
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
  }

  .lm-hero-copy {
    max-width: 100%;
    min-width: 0;
    width: min(100%, 330px);
  }

  .lm-hero h1 {
    font-size: clamp(2.7rem, 13.2vw, 3.75rem) !important;
    letter-spacing: -0.052em !important;
    line-height: 0.84 !important;
    max-width: 100%;
  }

  .lm-hero h1 em {
    font-size: clamp(1.55rem, 8vw, 2.15rem) !important;
    letter-spacing: -0.035em !important;
    line-height: 0.98 !important;
    max-width: 12.5ch;
  }

  .lm-hero-sub,
  .lm-proof-row {
    max-width: 100%;
    width: 100%;
  }

  .lm-kicker,
  .lm-hero-sub {
    overflow-wrap: anywhere;
  }

  .lm-hero-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .lm-hero-actions .large,
  .lm-hero-actions .ghost-link {
    justify-content: center;
    width: 100%;
  }

  .lm-hero-stage {
    max-width: 100%;
    overflow: hidden;
    width: 100%;
  }

  .lm-hero-stage .hero-showcase {
    display: grid;
    justify-items: center;
    height: auto;
    min-height: 0;
    width: min(100%, 330px);
  }

  .lm-hero-stage .hero-replacement-image img {
    max-width: 100%;
  }

  .lm-hero-stage .realistic-board {
    justify-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
    width: min(80vw, 280px) !important;
  }

  .lm-hero-stage .hero-deck-stack,
  .lm-hero-stage .hero-floating-cards {
    display: none;
  }

  .lm-intro,
  .lm-ai-promo,
  .lm-process,
  .lm-feature-showcase,
  .lm-statements,
  .lm-gallery,
  .lm-print-section,
  .lm-reviews,
  .landing-redesign .seo-faq-section,
  .landing-redesign .seo-related-section,
  .lm-final-cta {
    border-radius: 26px;
    margin-left: 10px;
    margin-right: 10px;
  }
}

/* Landing content sections: tighten the editorial blocks that were getting cramped. */
.landing-redesign .lm-process,
.landing-redesign .lm-feature-showcase,
.landing-redesign .seo-related-section {
  overflow: hidden;
  padding: clamp(28px, 4vw, 54px) clamp(18px, 4vw, 48px) !important;
}

.landing-redesign .lm-process .lm-section-head,
.landing-redesign .lm-feature-showcase .lm-section-head,
.landing-redesign .seo-related-section .lm-section-head {
  align-items: start !important;
  display: grid !important;
  gap: 12px 30px !important;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr) !important;
  margin-bottom: 20px !important;
}

.landing-redesign .lm-process .lm-section-head .lm-kicker,
.landing-redesign .lm-feature-showcase .lm-section-head .lm-kicker,
.landing-redesign .seo-related-section .lm-section-head .lm-kicker {
  align-self: end;
  grid-column: 1;
  letter-spacing: 0.16em;
  margin: 0 0 4px;
}

.landing-redesign .lm-process .lm-section-head h2,
.landing-redesign .lm-feature-showcase .lm-section-head h2,
.landing-redesign .seo-related-section .lm-section-head h2 {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: clamp(2.2rem, 3.75vw, 4.45rem) !important;
  letter-spacing: -0.05em;
  line-height: 0.9;
  max-width: 690px;
  text-wrap: balance;
}

.landing-redesign .lm-process .lm-section-head p:not(.lm-kicker),
.landing-redesign .lm-feature-showcase .lm-section-head p:not(.lm-kicker),
.landing-redesign .seo-related-section .lm-section-head p:not(.lm-kicker) {
  grid-column: 1;
  font-size: clamp(0.92rem, 1vw, 1.02rem) !important;
  line-height: 1.48;
  max-width: 380px;
}

.landing-redesign .lm-step-grid,
.landing-redesign .lm-feature-grid {
  gap: clamp(12px, 1.5vw, 18px);
}

.landing-redesign .lm-step-card,
.landing-redesign .lm-feature-tile {
  border-radius: 20px;
  min-height: 0;
  padding: clamp(16px, 1.8vw, 22px);
}

.landing-redesign .lm-step-card > span {
  font-size: 0.78rem;
  margin-bottom: 14px;
  padding: 7px 10px;
}

.landing-redesign .lm-step-card h3,
.landing-redesign .lm-feature-tile h3 {
  font-size: clamp(1.05rem, 1.35vw, 1.35rem) !important;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: 8px;
}

.landing-redesign .lm-step-card p,
.landing-redesign .lm-feature-tile p {
  font-size: clamp(0.82rem, 0.9vw, 0.94rem);
  line-height: 1.42;
}

.landing-redesign .lm-feature-tile .marketing-icon {
  height: 46px;
  margin-bottom: 14px;
  width: 46px;
}

.landing-redesign .lm-feature-tile .marketing-icon svg {
  height: 25px;
  width: 25px;
}

.landing-redesign .seo-related-section {
  min-height: 0;
}

.landing-redesign .seo-related-section .lm-section-head {
  margin-bottom: 8px !important;
}

.landing-redesign .seo-related-section .seo-topic-links {
  gap: 8px;
  justify-content: flex-start;
  max-width: 800px;
}

.landing-redesign .seo-related-section .seo-topic-links a {
  border-radius: 999px;
  font-size: 0.78rem;
  padding: 9px 12px;
}

.landing-redesign .seo-page-directory {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.landing-redesign .seo-page-directory-group {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 235, 0.9)),
    radial-gradient(circle at 100% 0, rgba(41, 189, 242, 0.12), transparent 11rem);
  border: 1px solid rgba(20, 12, 8, 0.1);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
  overflow: hidden;
  padding: 18px;
}

.landing-redesign .seo-page-directory-group:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 235, 0.9)),
    radial-gradient(circle at 100% 0, rgba(31, 160, 96, 0.12), transparent 11rem);
}

.landing-redesign .seo-page-directory-group:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 235, 0.9)),
    radial-gradient(circle at 100% 0, rgba(236, 47, 145, 0.12), transparent 11rem);
}

.landing-redesign .seo-page-directory-group h3 {
  color: var(--gallery-ink);
  font-size: clamp(1.15rem, 1.6vw, 1.55rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 12px;
}

.landing-redesign .seo-page-directory-group > div {
  display: grid;
  gap: 8px;
}

.landing-redesign .seo-page-directory-group a {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 12, 8, 0.08);
  border-radius: 16px;
  color: var(--gallery-ink);
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.landing-redesign .seo-page-directory-group a:hover {
  border-color: rgba(236, 47, 145, 0.35);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.landing-redesign .seo-page-directory-group strong {
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.landing-redesign .seo-page-directory-group span {
  color: var(--gallery-muted);
  font-size: 0.76rem;
  font-weight: 720;
  line-height: 1.25;
}

.landing-redesign .seo-page-directory.compact {
  gap: 12px;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  margin-top: 0;
}

.landing-redesign .seo-page-directory.compact .seo-page-directory-group {
  border-radius: 18px;
  padding: 14px;
}

.landing-redesign .seo-page-directory.compact .seo-page-directory-group h3 {
  color: var(--gallery-ink);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-redesign .seo-page-directory.compact .seo-page-directory-group a {
  background: rgba(255, 255, 255, 0.68);
  border-radius: 12px;
  color: var(--gallery-ink);
  display: block;
  padding: 7px 9px;
}

.landing-redesign .seo-page-directory.compact .seo-page-directory-group a:hover {
  color: var(--loteria-magenta);
}

.landing-redesign .site-footer-links {
  display: grid;
  gap: 24px;
  min-width: min(760px, 100%);
}

.landing-redesign .site-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.landing-redesign .site-footer .seo-page-directory.compact {
  gap: 18px;
}

.landing-redesign .site-footer .seo-page-directory.compact .seo-page-directory-group {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.landing-redesign .site-footer .seo-page-directory.compact .seo-page-directory-group h3 {
  color: rgba(255, 250, 240, 0.95);
}

.landing-redesign .site-footer .seo-page-directory.compact .seo-page-directory-group a {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: rgba(255, 250, 240, 0.76);
  padding: 4px 0;
}

.landing-redesign .site-footer .seo-page-directory.compact .seo-page-directory-group a:hover {
  box-shadow: none;
  color: #ffffff;
  transform: none;
}

.landing-redesign .compact-page-directory-section {
  padding-bottom: clamp(24px, 3vw, 38px) !important;
  padding-top: clamp(24px, 3vw, 38px) !important;
}

.landing-redesign .compact-page-directory-section .lm-section-head {
  margin-bottom: 18px !important;
}

.landing-redesign .compact-page-directory-section .lm-section-head h2 {
  font-size: clamp(1.75rem, 2.6vw, 3.2rem) !important;
  line-height: 0.96;
}

.landing-redesign .seo-mini-directory {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.landing-redesign .seo-mini-directory a {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 244, 220, 0.9));
  border: 1px solid rgba(20, 12, 8, 0.09);
  border-radius: 18px;
  color: var(--gallery-ink);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 13px 14px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.landing-redesign .seo-mini-directory a::after {
  color: var(--loteria-magenta);
  content: "→";
  font-size: 1.1rem;
  font-weight: 950;
}

.landing-redesign .seo-mini-directory a:hover {
  border-color: rgba(236, 47, 145, 0.32);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.landing-redesign .seo-mini-directory strong {
  display: block;
  font-size: 1rem;
  line-height: 1;
}

.landing-redesign .seo-mini-directory span {
  color: var(--gallery-muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.2;
  margin-top: 4px;
}

.landing-redesign .content-hub-section {
  background:
    radial-gradient(circle at 8% 12%, rgba(41, 189, 242, 0.1), transparent 18rem),
    radial-gradient(circle at 92% 8%, rgba(236, 47, 145, 0.08), transparent 20rem),
    rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(21, 17, 15, 0.08);
  border-radius: 34px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
  color: var(--gallery-ink);
  margin: 28px auto;
  max-width: 1360px;
  overflow: hidden;
  padding: clamp(30px, 4vw, 58px) clamp(18px, 4vw, 52px);
  position: relative;
  z-index: 2;
}

.landing-redesign .content-hub-section::before {
  background: linear-gradient(90deg, var(--loteria-blue), var(--loteria-green), var(--loteria-yellow), var(--loteria-magenta), var(--loteria-purple));
  content: "";
  height: 7px;
  left: clamp(18px, 4vw, 52px);
  position: absolute;
  right: clamp(18px, 4vw, 52px);
  top: 0;
}

.landing-redesign .content-hub-head {
  align-items: end;
  display: grid;
  gap: 14px clamp(22px, 4vw, 54px);
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  margin-bottom: clamp(20px, 3vw, 34px);
}

.landing-redesign .content-hub-head h2 {
  color: var(--gallery-ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.25rem, 4vw, 4.7rem);
  font-weight: 930;
  grid-column: 2;
  grid-row: 1 / span 2;
  letter-spacing: -0.05em;
  line-height: 0.92;
  margin: 0;
  max-width: 780px;
  text-wrap: balance;
}

.landing-redesign .content-hub-head p:not(.lm-kicker) {
  color: var(--gallery-muted);
  font-size: clamp(0.98rem, 1.08vw, 1.12rem);
  font-weight: 720;
  line-height: 1.52;
  margin: 0;
  max-width: 410px;
}

.landing-redesign .content-hub-grid {
  display: grid;
  gap: clamp(12px, 1.6vw, 18px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-redesign .content-hub-card {
  background: var(--gallery-white);
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  padding: clamp(18px, 2vw, 26px);
  position: relative;
}

.landing-redesign .content-hub-card::after {
  background: var(--loteria-blue);
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.landing-redesign .content-hub-card:nth-child(2)::after {
  background: var(--loteria-green);
}

.landing-redesign .content-hub-card:nth-child(3)::after {
  background: var(--loteria-magenta);
}

.landing-redesign .content-hub-card > span {
  align-items: center;
  background: rgba(41, 189, 242, 0.1);
  border: 1px solid rgba(41, 189, 242, 0.22);
  border-radius: 999px;
  color: #087ca0;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  line-height: 1;
  margin-bottom: 16px;
  padding: 7px 10px;
}

.landing-redesign .content-hub-card h3 {
  color: var(--gallery-ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.18rem, 1.55vw, 1.55rem);
  font-weight: 930;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 10px;
}

.landing-redesign .content-hub-card p,
.landing-redesign .content-hub-card li {
  color: var(--gallery-muted);
  font-size: 0.94rem;
  font-weight: 680;
  line-height: 1.48;
}

.landing-redesign .content-hub-card p {
  margin: 0 0 14px;
}

.landing-redesign .content-hub-card ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.landing-redesign .content-hub-card li {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto 1fr;
}

.landing-redesign .content-hub-card li::before {
  background: var(--loteria-yellow);
  border-radius: 999px;
  content: "";
  height: 9px;
  width: 9px;
}

.landing-redesign .content-hub-cta {
  align-items: center;
  background:
    radial-gradient(circle at 92% 12%, rgba(250, 204, 21, 0.16), transparent 15rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(241, 250, 255, 0.82));
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 26px;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: clamp(18px, 3vw, 32px);
  padding: clamp(20px, 3vw, 34px);
}

.landing-redesign .content-hub-cta h2 {
  color: var(--gallery-ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.7rem, 2.7vw, 3.1rem);
  font-weight: 930;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0;
}

.landing-redesign .content-hub-cta p:not(.lm-kicker) {
  color: var(--gallery-muted);
  font-weight: 720;
  line-height: 1.48;
  margin: 10px 0 0;
  max-width: 700px;
}

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

.landing-redesign .content-article-section {
  align-items: start;
  background:
    radial-gradient(circle at 6% 4%, rgba(41, 189, 242, 0.11), transparent 18rem),
    radial-gradient(circle at 94% 10%, rgba(236, 47, 145, 0.09), transparent 20rem),
    rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(21, 17, 15, 0.08);
  border-radius: 34px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
  color: var(--gallery-ink);
  display: grid;
  gap: clamp(20px, 3vw, 42px);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  margin: 28px auto;
  max-width: 1320px;
  padding: clamp(28px, 4vw, 58px);
  position: relative;
  z-index: 2;
}

.landing-redesign .content-article-section.content-card-guide-page {
  gap: clamp(18px, 2.4vw, 32px);
  grid-template-columns: minmax(0, 1fr);
  max-width: min(1680px, calc(100vw - 48px));
  padding: clamp(24px, 3vw, 44px);
}

.landing-redesign .content-card-guide-page .content-article-sidebar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  position: static;
}

.landing-redesign .content-article-section::before {
  background: linear-gradient(90deg, var(--loteria-blue), var(--loteria-green), var(--loteria-yellow), var(--loteria-magenta), var(--loteria-purple));
  border-radius: 999px;
  content: "";
  height: 7px;
  left: clamp(24px, 4vw, 58px);
  position: absolute;
  right: clamp(24px, 4vw, 58px);
  top: 0;
}

.landing-redesign .content-article-main {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(21, 17, 15, 0.06);
  border-radius: 28px;
  display: grid;
  gap: 24px;
  padding: clamp(22px, 3.5vw, 44px);
}

.landing-redesign .content-article-header {
  border-bottom: 1px solid rgba(21, 17, 15, 0.1);
  display: grid;
  gap: 13px;
  padding-bottom: clamp(22px, 3vw, 34px);
}

.landing-redesign .content-article-header .lm-kicker {
  margin: 2px 0 0;
}

.landing-redesign .content-article-header h1 {
  color: var(--gallery-ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.9;
  margin: 0;
  max-width: 940px;
  text-wrap: balance;
}

.landing-redesign .content-article-header p:not(.lm-kicker) {
  color: var(--gallery-muted);
  font-size: clamp(1.05rem, 1.4vw, 1.24rem);
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
  max-width: 820px;
}

.landing-redesign .content-language-link {
  align-items: center;
  background: rgba(41, 189, 242, 0.1);
  border: 1px solid rgba(41, 189, 242, 0.24);
  border-radius: 999px;
  color: #087ca0;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 900;
  justify-content: center;
  padding: 10px 14px;
  text-decoration: none;
  width: fit-content;
}

.landing-redesign .content-language-link:hover {
  background: rgba(41, 189, 242, 0.18);
  color: #065f7d;
}

.landing-redesign .content-article-meta {
  color: var(--gallery-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  text-transform: uppercase;
}

.landing-redesign .content-article-meta span {
  background: rgba(41, 189, 242, 0.1);
  border: 1px solid rgba(41, 189, 242, 0.24);
  border-radius: 999px;
  color: #087ca0;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  padding: 8px 11px;
}

.landing-redesign .content-article-lede {
  color: #33221d;
  font-size: clamp(1.1rem, 1.45vw, 1.32rem);
  font-weight: 720;
  line-height: 1.62;
  margin: 0;
  max-width: 880px;
}

.landing-redesign .content-article-toc {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 250, 255, 0.9)),
    radial-gradient(circle at 0 0, rgba(41, 189, 242, 0.14), transparent 16rem);
  border: 1px solid rgba(21, 17, 15, 0.09);
  border-left: 7px solid var(--loteria-blue);
  border-radius: 24px;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.landing-redesign .content-article-toc div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landing-redesign .content-article-toc span {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(21, 17, 15, 0.09);
  border-radius: 999px;
  color: var(--gallery-ink);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.1;
  padding: 9px 12px;
}

.landing-redesign .content-article-toc a {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(21, 17, 15, 0.09);
  border-radius: 999px;
  color: var(--gallery-ink);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.1;
  padding: 9px 12px;
  text-decoration: none;
}

.landing-redesign .content-article-toc a:hover {
  border-color: rgba(236, 47, 145, 0.38);
  color: var(--loteria-magenta);
}

.landing-redesign .content-article-block {
  border-top: 1px solid rgba(21, 17, 15, 0.1);
  padding-top: 24px;
}

.landing-redesign .content-article-block h2,
.landing-redesign .content-article-callout h2,
.landing-redesign .content-article-cta-card h2 {
  color: var(--gallery-ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.7rem, 2.55vw, 3.05rem);
  font-weight: 930;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0 0 12px;
  text-wrap: balance;
}

.landing-redesign .content-article-block p,
.landing-redesign .content-article-block li,
.landing-redesign .content-article-callout p,
.landing-redesign .content-article-cta-card p,
.landing-redesign .content-article-related-card a {
  color: var(--gallery-muted);
  font-size: 1rem;
  font-weight: 680;
  line-height: 1.58;
}

.landing-redesign .content-article-block p,
.landing-redesign .content-article-callout p,
.landing-redesign .content-article-cta-card p {
  margin: 0;
}

.landing-redesign .content-article-block p + p {
  margin-top: 13px;
}

.landing-redesign .content-article-block ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.landing-redesign .content-article-block li {
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr;
}

.landing-redesign .content-article-block li::before {
  background: var(--loteria-magenta);
  border-radius: 999px;
  content: "";
  height: 9px;
  margin-top: 0.52em;
  width: 9px;
}

.landing-redesign .content-article-callout {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(241, 250, 255, 0.88)),
    radial-gradient(circle at 100% 0%, rgba(250, 204, 21, 0.18), transparent 16rem);
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-left: 7px solid var(--loteria-green);
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  padding: clamp(20px, 3vw, 32px);
}

.landing-redesign .content-callout-grid {
  display: grid;
  gap: 16px;
}

.landing-redesign .content-article-callout.compact {
  border-left-color: var(--loteria-magenta);
}

.landing-redesign .content-article-callout ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.landing-redesign .content-article-callout li {
  color: var(--gallery-muted);
  font-weight: 720;
  line-height: 1.5;
}

.landing-redesign .content-visual-blocks {
  display: grid;
  gap: 18px;
}

.landing-redesign .content-visual-block,
.landing-redesign .content-mid-cta {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 250, 255, 0.92)),
    radial-gradient(circle at 0 0, rgba(41, 189, 242, 0.16), transparent 18rem),
    radial-gradient(circle at 100% 100%, rgba(236, 47, 145, 0.12), transparent 18rem);
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
  display: grid;
  gap: 20px;
  padding: clamp(20px, 3vw, 32px);
}

.landing-redesign .content-visual-block {
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
}

.landing-redesign .content-visual-block.has-media {
  grid-template-columns: minmax(210px, 0.34fr) minmax(0, 0.9fr) minmax(180px, 0.32fr);
}

.landing-redesign .content-visual-block-copy {
  display: grid;
  gap: 10px;
}

.landing-redesign .content-visual-block h2,
.landing-redesign .content-mid-cta h2 {
  color: var(--gallery-ink);
  font-size: clamp(1.75rem, 3vw, 3.1rem);
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 0.96;
  margin: 0;
}

.landing-redesign .content-visual-block p,
.landing-redesign .content-mid-cta p {
  color: var(--gallery-muted);
  font-weight: 720;
  line-height: 1.54;
  margin: 0;
}

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

.landing-redesign .content-visual-item {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(21, 17, 15, 0.09);
  border-top: 6px solid var(--loteria-blue);
  border-radius: 20px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
  min-height: 150px;
  padding: 16px;
}

.landing-redesign .content-visual-item:nth-child(2n) {
  border-top-color: var(--loteria-green);
}

.landing-redesign .content-visual-item:nth-child(3n) {
  border-top-color: var(--loteria-yellow);
}

.landing-redesign .content-visual-item:nth-child(4n) {
  border-top-color: var(--loteria-magenta);
}

.landing-redesign .content-visual-item span {
  align-items: center;
  background: var(--gallery-ink);
  border-radius: 14px;
  color: #fff;
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 950;
  height: 42px;
  justify-content: center;
  margin-bottom: 14px;
  min-width: 42px;
  padding: 0 10px;
}

.landing-redesign .content-visual-item span.country-flags {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(21, 17, 15, 0.12);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  color: var(--gallery-ink);
  font-size: 1.18rem;
  gap: 4px;
  min-width: 54px;
}

.landing-redesign .content-visual-item h3 {
  color: var(--gallery-ink);
  font-size: 1.02rem;
  font-weight: 950;
  letter-spacing: -0.02em;
  margin: 0 0 7px;
}

.landing-redesign .content-visual-item p {
  font-size: 0.92rem;
  line-height: 1.43;
}

.landing-redesign .content-visual-media {
  align-self: stretch;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 229, 0.95));
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 22px;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 10px;
  justify-items: center;
  margin: 0;
  padding: 14px;
}

.landing-redesign .content-visual-media img {
  border: 1px solid rgba(21, 17, 15, 0.15);
  border-radius: 16px;
  display: block;
  height: auto;
  max-height: 360px;
  max-width: min(100%, 260px);
  object-fit: contain;
  width: 100%;
}

.landing-redesign .content-visual-media figcaption {
  color: var(--gallery-muted);
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.35;
  margin: 0;
  text-align: center;
}

.landing-redesign .content-image-gallery {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 236, 0.94)),
    radial-gradient(circle at 0 0, rgba(236, 47, 145, 0.12), transparent 18rem),
    radial-gradient(circle at 100% 0, rgba(41, 189, 242, 0.12), transparent 18rem);
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 32px);
}

.landing-redesign .content-image-gallery-head {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.landing-redesign .content-image-gallery-head h2 {
  color: var(--gallery-ink);
  font-size: clamp(1.75rem, 3vw, 3.1rem);
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0;
}

.landing-redesign .content-image-gallery-head p:not(.lm-kicker) {
  color: var(--gallery-muted);
  font-weight: 720;
  line-height: 1.55;
  margin: 0;
}

.landing-redesign .content-image-gallery-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-redesign .content-image-gallery-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 10px;
  margin: 0;
  overflow: hidden;
  padding: 12px;
  position: relative;
}

.landing-redesign .content-image-gallery-card.featured {
  border-top: 7px solid var(--loteria-magenta);
  grid-column: span 3;
}

.landing-redesign .content-card-guide-productDeck .content-image-gallery,
.landing-redesign .content-card-guide-spookyDeck .content-image-gallery,
.landing-redesign .content-card-guide-amorToxicoDeck .content-image-gallery,
.landing-redesign .content-card-guide-gratefulAfDeck .content-image-gallery {
  gap: 14px;
  padding: clamp(16px, 2vw, 24px);
}

.landing-redesign .content-card-guide-productDeck .content-image-gallery-grid,
.landing-redesign .content-card-guide-spookyDeck .content-image-gallery-grid,
.landing-redesign .content-card-guide-amorToxicoDeck .content-image-gallery-grid,
.landing-redesign .content-card-guide-gratefulAfDeck .content-image-gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-redesign .content-card-guide-productDeck .content-image-gallery-card.featured,
.landing-redesign .content-card-guide-spookyDeck .content-image-gallery-card.featured,
.landing-redesign .content-card-guide-amorToxicoDeck .content-image-gallery-card.featured,
.landing-redesign .content-card-guide-gratefulAfDeck .content-image-gallery-card.featured {
  grid-column: auto;
}

.landing-redesign .content-image-gallery-card img {
  background: #fff8e8;
  border: 1px solid rgba(21, 17, 15, 0.12);
  border-radius: 16px;
  display: block;
  height: auto;
  max-height: 640px;
  object-fit: contain;
  width: 100%;
}

.landing-redesign .protected-gallery-image {
  -webkit-user-select: none;
  user-select: none;
}

.landing-redesign .protected-gallery-image::before {
  background:
    repeating-linear-gradient(
      -28deg,
      rgba(255, 255, 255, 0) 0 62px,
      rgba(255, 255, 255, 0.22) 62px 65px
    );
  content: "";
  inset: 12px;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.landing-redesign .protected-gallery-image::after {
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 999px;
  color: rgba(21, 17, 15, 0.46);
  content: attr(data-watermark);
  font-size: 0.6rem;
  font-weight: 950;
  left: 52%;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  pointer-events: none;
  position: absolute;
  text-transform: uppercase;
  top: 48%;
  transform: translate(-50%, -50%) rotate(-23deg);
  white-space: nowrap;
  z-index: 3;
}

.landing-redesign .protected-gallery-image img {
  -webkit-user-drag: none;
  pointer-events: none;
}

.landing-redesign .content-image-gallery-card:not(.featured) img {
  max-height: 430px;
}

.landing-redesign .content-card-guide-productDeck .content-image-gallery-card img,
.landing-redesign .content-card-guide-productDeck .content-image-gallery-card:not(.featured) img,
.landing-redesign .content-card-guide-spookyDeck .content-image-gallery-card img,
.landing-redesign .content-card-guide-spookyDeck .content-image-gallery-card:not(.featured) img,
.landing-redesign .content-card-guide-amorToxicoDeck .content-image-gallery-card img,
.landing-redesign .content-card-guide-amorToxicoDeck .content-image-gallery-card:not(.featured) img,
.landing-redesign .content-card-guide-gratefulAfDeck .content-image-gallery-card img,
.landing-redesign .content-card-guide-gratefulAfDeck .content-image-gallery-card:not(.featured) img {
  max-height: 360px;
}

.landing-redesign .content-image-gallery-card figcaption {
  color: var(--gallery-muted);
  font-size: 0.82rem;
  font-weight: 820;
  line-height: 1.35;
  margin: 0;
  text-align: center;
}

.landing-redesign .content-mid-cta {
  border-left: 7px solid var(--loteria-red);
}

.landing-redesign .content-mid-cta .content-hub-actions {
  justify-content: flex-start;
  margin-top: 4px;
}

.landing-redesign .content-product-grid,
.landing-redesign .content-article-split {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.landing-redesign .content-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-redesign .content-product-grid article,
.landing-redesign .content-article-split > div {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(21, 17, 15, 0.09);
  border-radius: 20px;
  padding: 18px;
}

.landing-redesign .content-product-grid h3 {
  color: var(--gallery-ink);
  font-size: 1rem;
  font-weight: 920;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.landing-redesign .content-article-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 92px;
}

.landing-redesign .content-article-cta-card,
.landing-redesign .content-article-related-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 26px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  padding: 22px;
}

.landing-redesign .content-article-cta-card {
  border-top: 7px solid var(--loteria-magenta);
}

.landing-redesign .content-article-related-card {
  border-top: 7px solid var(--loteria-blue);
}

.landing-redesign .content-article-related-card h3 {
  color: var(--gallery-ink);
  font-size: 1.05rem;
  font-weight: 930;
  margin: 0 0 12px;
}

.landing-redesign .content-article-related-card a {
  border-top: 1px solid rgba(21, 17, 15, 0.09);
  color: var(--gallery-ink);
  display: block;
  font-weight: 800;
  padding: 11px 0;
  text-decoration: none;
}

.landing-redesign .content-article-related-card a:hover {
  color: var(--loteria-magenta);
}

.landing-redesign.seo-article-route .lm-hero,
.landing-redesign .content-article-hero {
  margin-bottom: 22px;
}

.landing-redesign .traditional-card-guide {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(252, 248, 237, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(236, 47, 145, 0.12), transparent 18rem);
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 28px;
  display: grid;
  gap: 22px;
  margin-left: clamp(-18px, -2vw, 0px);
  margin-right: clamp(-18px, -2vw, 0px);
  padding: clamp(20px, 3vw, 34px);
}

.landing-redesign .traditional-card-guide-head {
  display: grid;
  gap: 8px;
}

.landing-redesign .traditional-card-guide-head h2,
.landing-redesign .content-article-sources h2 {
  color: var(--gallery-ink);
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0;
}

.landing-redesign .traditional-card-guide-head p:not(.lm-kicker) {
  color: var(--gallery-muted);
  font-weight: 720;
  line-height: 1.55;
  margin: 0;
  max-width: 760px;
}

.landing-redesign .traditional-card-sequence {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.landing-redesign .traditional-card-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(21, 17, 15, 0.09);
  border-radius: 24px;
  display: grid;
  gap: clamp(18px, 2.5vw, 28px);
  grid-template-columns: minmax(116px, 154px) minmax(0, 1fr);
  padding: clamp(16px, 2.2vw, 24px);
  position: relative;
}

.landing-redesign .deck-card-guide .traditional-card-sequence {
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-redesign .deck-card-guide .traditional-card-item {
  animation: deckCardFloatIn 0.55s ease both;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 235, 0.92)),
    radial-gradient(circle at 100% 0, rgba(236, 47, 145, 0.08), transparent 10rem);
  border-radius: 26px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  overflow: hidden;
  padding: 14px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.landing-redesign .deck-card-guide .traditional-card-item:nth-child(3n + 1) {
  border-top: 6px solid var(--loteria-blue);
}

.landing-redesign .deck-card-guide .traditional-card-item:nth-child(3n + 2) {
  border-top: 6px solid var(--loteria-green);
}

.landing-redesign .deck-card-guide .traditional-card-item:nth-child(3n) {
  border-top: 6px solid var(--loteria-magenta);
}

.landing-redesign .deck-card-guide .traditional-card-item:nth-child(4n) {
  border-top-color: var(--loteria-yellow);
}

.landing-redesign .deck-card-guide .traditional-card-item:hover {
  border-color: rgba(21, 17, 15, 0.18);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
  transform: translateY(-4px);
}

.landing-redesign .deck-card-guide .traditional-card-copy {
  align-self: start;
  gap: 6px;
  padding: 2px 2px 4px;
}

.landing-redesign .deck-card-guide .traditional-card-number {
  font-size: 0.75rem;
  height: 28px;
  min-width: 36px;
}

.landing-redesign .deck-card-guide .traditional-card-item h4 {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.landing-redesign .deck-card-guide .traditional-card-image-wrap {
  justify-self: center;
  max-width: 210px;
  width: min(100%, 210px);
}

.landing-redesign .protected-card-guide {
  -webkit-user-select: none;
  user-select: none;
}

.landing-redesign .traditional-card-image-wrap {
  align-self: start;
  background: #fff7df;
  border: 1px solid rgba(21, 17, 15, 0.12);
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  position: relative;
}

.landing-redesign .protected-card-guide .traditional-card-image-wrap {
  cursor: default;
}

.landing-redesign .protected-card-guide .traditional-card-image-wrap::before {
  background:
    repeating-linear-gradient(
      -28deg,
      rgba(255, 255, 255, 0) 0 58px,
      rgba(255, 255, 255, 0.24) 58px 61px
    );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.landing-redesign .protected-card-guide .traditional-card-image-wrap::after {
  align-items: center;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 999px;
  color: rgba(21, 17, 15, 0.48);
  content: attr(data-watermark);
  display: flex;
  font-size: 0.52rem;
  font-weight: 950;
  justify-content: center;
  left: 53%;
  letter-spacing: 0.08em;
  line-height: 1;
  max-width: calc(100% - 18px);
  min-height: 20px;
  padding: 5px 9px;
  pointer-events: none;
  position: absolute;
  text-transform: uppercase;
  top: 49%;
  transform: translate(-50%, -50%) rotate(-23deg);
  white-space: nowrap;
  z-index: 3;
}

.landing-redesign .traditional-card-image-wrap img {
  aspect-ratio: 386 / 615;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.landing-redesign .protected-card-guide .traditional-card-image-wrap img {
  -webkit-user-drag: none;
  pointer-events: none;
}

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

.landing-redesign .traditional-card-copy {
  align-self: center;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.landing-redesign .traditional-card-number {
  align-items: center;
  background: rgba(255, 220, 55, 0.96);
  border: 2px solid rgba(21, 17, 15, 0.92);
  border-radius: 999px;
  box-shadow: 0 7px 14px rgba(15, 23, 42, 0.18);
  color: var(--gallery-ink);
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 950;
  height: 32px;
  justify-content: center;
  left: 12px;
  min-width: 40px;
  padding: 0 10px;
  position: absolute;
  top: 12px;
  z-index: 4;
}

.landing-redesign .traditional-card-item h4 {
  color: var(--gallery-ink);
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: -0.02em;
  margin: 0;
}

.landing-redesign .traditional-card-item p {
  color: var(--gallery-muted);
  font-size: 0.92rem;
  font-weight: 680;
  line-height: 1.45;
  margin: 0;
}

.landing-redesign .traditional-card-item .traditional-card-meaning {
  color: var(--loteria-magenta);
  font-size: 0.84rem;
  font-weight: 900;
}

.landing-redesign .traditional-card-saying {
  background:
    linear-gradient(135deg, rgba(255, 248, 220, 0.98), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(236, 47, 145, 0.24);
  border-left: 5px solid var(--loteria-magenta);
  border-radius: 16px;
  display: grid;
  gap: 9px;
  margin-top: 10px;
  max-width: 560px;
  padding: 11px 12px;
}

.landing-redesign .traditional-card-saying p {
  color: var(--gallery-ink);
  font-size: 0.93rem;
  font-weight: 850;
  line-height: 1.38;
  margin: 0;
}

.landing-redesign .traditional-card-saying strong {
  color: var(--loteria-magenta);
  display: block;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.1;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.landing-redesign .traditional-card-saying span {
  color: var(--gallery-muted);
  display: block;
  font-size: 0.86rem;
  font-weight: 780;
  line-height: 1.4;
}

.landing-redesign .content-card-guide-full-width {
  margin-left: 0;
  margin-right: 0;
}

.landing-redesign .card-guide-productDeck {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 236, 0.94)),
    radial-gradient(circle at 0 0, rgba(41, 189, 242, 0.13), transparent 20rem),
    radial-gradient(circle at 100% 8%, rgba(236, 47, 145, 0.12), transparent 20rem);
  border-top: 7px solid var(--loteria-magenta);
}

.landing-redesign .card-guide-spookyDeck {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 248, 232, 0.93)),
    radial-gradient(circle at 0 0, rgba(21, 17, 15, 0.1), transparent 18rem),
    radial-gradient(circle at 100% 5%, rgba(247, 191, 46, 0.18), transparent 18rem),
    radial-gradient(circle at 20% 100%, rgba(126, 87, 194, 0.12), transparent 18rem);
  border-top: 7px solid #15110f;
}

.landing-redesign .card-guide-amorToxicoDeck {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 249, 0.94)),
    radial-gradient(circle at 0 0, rgba(236, 47, 145, 0.16), transparent 18rem),
    radial-gradient(circle at 100% 5%, rgba(232, 55, 55, 0.13), transparent 18rem),
    radial-gradient(circle at 25% 100%, rgba(126, 87, 194, 0.12), transparent 18rem);
  border-top: 7px solid var(--loteria-magenta);
}

.landing-redesign .card-guide-gratefulAfDeck {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 232, 0.95)),
    radial-gradient(circle at 0 0, rgba(226, 103, 36, 0.16), transparent 18rem),
    radial-gradient(circle at 100% 5%, rgba(246, 183, 56, 0.2), transparent 18rem),
    radial-gradient(circle at 25% 100%, rgba(113, 141, 82, 0.14), transparent 18rem);
  border-top: 7px solid #d96f24;
}

.landing-redesign .content-card-guide-spookyDeck .content-image-gallery-card.featured {
  border-top-color: #15110f;
}

.landing-redesign .content-card-guide-amorToxicoDeck .content-image-gallery-card.featured {
  border-top-color: var(--loteria-magenta);
}

.landing-redesign .content-card-guide-gratefulAfDeck .content-image-gallery-card.featured {
  border-top-color: #d96f24;
}

.landing-redesign .card-guide-productDeck .traditional-card-sequence,
.landing-redesign .card-guide-spookyDeck .traditional-card-sequence,
.landing-redesign .card-guide-amorToxicoDeck .traditional-card-sequence,
.landing-redesign .card-guide-gratefulAfDeck .traditional-card-sequence {
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.landing-redesign .card-guide-productDeck .traditional-card-item,
.landing-redesign .card-guide-spookyDeck .traditional-card-item,
.landing-redesign .card-guide-amorToxicoDeck .traditional-card-item,
.landing-redesign .card-guide-gratefulAfDeck .traditional-card-item {
  border-radius: 20px;
  gap: 10px;
  padding: 10px;
  padding-top: 40px;
}

.landing-redesign .card-guide-productDeck .traditional-card-item:nth-child(5n + 1) {
  border-top-color: var(--loteria-blue);
}

.landing-redesign .card-guide-productDeck .traditional-card-item:nth-child(5n + 2) {
  border-top-color: var(--loteria-green);
}

.landing-redesign .card-guide-productDeck .traditional-card-item:nth-child(5n + 3) {
  border-top-color: var(--loteria-yellow);
}

.landing-redesign .card-guide-productDeck .traditional-card-item:nth-child(5n + 4) {
  border-top-color: var(--loteria-magenta);
}

.landing-redesign .card-guide-productDeck .traditional-card-item:nth-child(5n) {
  border-top-color: var(--loteria-purple);
}

.landing-redesign .card-guide-spookyDeck .traditional-card-item:nth-child(5n + 1) {
  border-top-color: #15110f;
}

.landing-redesign .card-guide-spookyDeck .traditional-card-item:nth-child(5n + 2) {
  border-top-color: #f7bf2e;
}

.landing-redesign .card-guide-spookyDeck .traditional-card-item:nth-child(5n + 3) {
  border-top-color: var(--loteria-magenta);
}

.landing-redesign .card-guide-spookyDeck .traditional-card-item:nth-child(5n + 4) {
  border-top-color: var(--loteria-purple);
}

.landing-redesign .card-guide-spookyDeck .traditional-card-item:nth-child(5n) {
  border-top-color: var(--loteria-green);
}

.landing-redesign .card-guide-amorToxicoDeck .traditional-card-item:nth-child(5n + 1) {
  border-top-color: var(--loteria-magenta);
}

.landing-redesign .card-guide-amorToxicoDeck .traditional-card-item:nth-child(5n + 2) {
  border-top-color: var(--loteria-red);
}

.landing-redesign .card-guide-amorToxicoDeck .traditional-card-item:nth-child(5n + 3) {
  border-top-color: var(--loteria-purple);
}

.landing-redesign .card-guide-amorToxicoDeck .traditional-card-item:nth-child(5n + 4) {
  border-top-color: #f6a7bd;
}

.landing-redesign .card-guide-amorToxicoDeck .traditional-card-item:nth-child(5n) {
  border-top-color: #15110f;
}

.landing-redesign .card-guide-gratefulAfDeck .traditional-card-item:nth-child(5n + 1) {
  border-top-color: #d96f24;
}

.landing-redesign .card-guide-gratefulAfDeck .traditional-card-item:nth-child(5n + 2) {
  border-top-color: #f0b43d;
}

.landing-redesign .card-guide-gratefulAfDeck .traditional-card-item:nth-child(5n + 3) {
  border-top-color: #718d52;
}

.landing-redesign .card-guide-gratefulAfDeck .traditional-card-item:nth-child(5n + 4) {
  border-top-color: #11623b;
}

.landing-redesign .card-guide-gratefulAfDeck .traditional-card-item:nth-child(5n) {
  border-top-color: #7c3f24;
}

.landing-redesign .card-guide-productDeck .traditional-card-image-wrap,
.landing-redesign .card-guide-spookyDeck .traditional-card-image-wrap,
.landing-redesign .card-guide-amorToxicoDeck .traditional-card-image-wrap,
.landing-redesign .card-guide-gratefulAfDeck .traditional-card-image-wrap {
  border-radius: 14px;
  max-width: none;
  width: 100%;
}

.landing-redesign .card-guide-productDeck .traditional-card-image-wrap img {
  aspect-ratio: 399 / 560;
  object-fit: contain;
}

.landing-redesign .card-guide-spookyDeck .traditional-card-image-wrap img {
  aspect-ratio: 465 / 597;
  object-fit: contain;
}

.landing-redesign .card-guide-amorToxicoDeck .traditional-card-image-wrap img {
  aspect-ratio: 5 / 7;
  object-fit: contain;
}

.landing-redesign .card-guide-gratefulAfDeck .traditional-card-image-wrap img {
  aspect-ratio: 5 / 7;
  object-fit: contain;
}

.landing-redesign .card-guide-productDeck .traditional-card-copy,
.landing-redesign .card-guide-spookyDeck .traditional-card-copy,
.landing-redesign .card-guide-amorToxicoDeck .traditional-card-copy,
.landing-redesign .card-guide-gratefulAfDeck .traditional-card-copy {
  gap: 4px;
  padding: 0 2px 3px;
}

.landing-redesign .card-guide-productDeck .traditional-card-number,
.landing-redesign .card-guide-spookyDeck .traditional-card-number,
.landing-redesign .card-guide-amorToxicoDeck .traditional-card-number,
.landing-redesign .card-guide-gratefulAfDeck .traditional-card-number {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(21, 17, 15, 0.22);
  color: var(--gallery-ink);
  font-size: 0.72rem;
  height: 24px;
  left: 10px;
  min-width: auto;
  padding: 0 8px;
  top: 10px;
}

.landing-redesign .card-guide-productDeck .traditional-card-item h4,
.landing-redesign .card-guide-spookyDeck .traditional-card-item h4,
.landing-redesign .card-guide-amorToxicoDeck .traditional-card-item h4,
.landing-redesign .card-guide-gratefulAfDeck .traditional-card-item h4 {
  font-size: clamp(0.9rem, 1vw, 1.02rem);
  line-height: 1.05;
}

.landing-redesign .card-guide-productDeck .traditional-card-item .traditional-card-meaning {
  color: #087ca0;
  font-size: 0.78rem;
  line-height: 1.18;
}

.landing-redesign .card-guide-amorToxicoDeck .traditional-card-item .traditional-card-meaning {
  color: #a51660;
  font-size: 0.78rem;
  line-height: 1.18;
}

.landing-redesign .card-guide-gratefulAfDeck .traditional-card-item .traditional-card-meaning {
  color: #11623b;
  font-size: 0.78rem;
  line-height: 1.18;
}

.landing-redesign .card-guide-traditionalReference .traditional-card-sequence {
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-redesign .card-guide-traditionalReference .traditional-card-item {
  border-radius: 22px;
  gap: 12px;
  grid-template-columns: 1fr;
  padding: 46px 14px 14px;
}

.landing-redesign .card-guide-traditionalReference .traditional-card-image-wrap {
  justify-self: center;
  max-width: 180px;
  width: min(100%, 180px);
}

.landing-redesign .card-guide-traditionalReference .traditional-card-copy {
  align-self: start;
}

.landing-redesign .card-guide-traditionalReference .traditional-card-saying {
  display: grid;
  gap: 7px;
  max-width: none;
  padding: 11px 12px;
}

.landing-redesign .card-guide-traditionalReference .traditional-card-saying summary {
  color: var(--loteria-magenta);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  list-style: none;
  padding: 11px 12px;
  text-transform: uppercase;
}

.landing-redesign .card-guide-traditionalReference .traditional-card-saying summary::-webkit-details-marker {
  display: none;
}

.landing-redesign .card-guide-traditionalReference .traditional-card-saying summary::after {
  content: "+";
  float: right;
}

.landing-redesign .card-guide-traditionalReference .traditional-card-saying[open] summary::after {
  content: "−";
}

.landing-redesign .card-guide-traditionalReference .traditional-card-saying p,
.landing-redesign .card-guide-traditionalReference .traditional-card-saying span {
  padding-left: 0;
  padding-right: 0;
}

.landing-redesign .card-guide-traditionalReference .traditional-card-saying span {
  padding-bottom: 0;
}

.landing-redesign .content-article-sources {
  border-top: 1px solid rgba(21, 17, 15, 0.1);
  display: grid;
  gap: 14px;
  padding-top: 24px;
}

.landing-redesign .content-article-sources ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.landing-redesign .content-article-sources li {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(21, 17, 15, 0.08);
  border-radius: 16px;
  display: grid;
  gap: 4px;
  padding: 13px 14px;
}

.landing-redesign .content-article-sources a {
  color: var(--gallery-ink);
  font-weight: 950;
  text-decoration: none;
}

.landing-redesign .content-article-sources a:hover {
  color: var(--loteria-magenta);
}

.landing-redesign .content-article-sources span {
  color: var(--gallery-muted);
  font-size: 0.92rem;
  font-weight: 680;
}

@media (max-width: 980px) {
  .landing-redesign .lm-process .lm-section-head,
  .landing-redesign .lm-feature-showcase .lm-section-head,
  .landing-redesign .seo-related-section .lm-section-head,
  .landing-redesign .content-hub-head,
  .landing-redesign .content-hub-cta {
    display: block !important;
  }

  .landing-redesign .lm-process .lm-section-head h2,
  .landing-redesign .lm-feature-showcase .lm-section-head h2,
  .landing-redesign .seo-related-section .lm-section-head h2 {
    font-size: clamp(2.25rem, 8vw, 4rem) !important;
    margin-top: 8px;
    max-width: 760px;
  }

  .landing-redesign .lm-process .lm-section-head p:not(.lm-kicker),
  .landing-redesign .lm-feature-showcase .lm-section-head p:not(.lm-kicker) {
    margin-top: 12px;
    max-width: 620px;
  }

  .landing-redesign .lm-step-grid,
  .landing-redesign .lm-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .landing-redesign .content-article-section {
    grid-template-columns: 1fr;
  }

  .landing-redesign .content-article-sidebar {
    position: static;
  }

  .landing-redesign .content-hub-actions {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .landing-redesign .deck-card-guide .traditional-card-sequence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .landing-redesign .lm-process,
  .landing-redesign .lm-feature-showcase,
  .landing-redesign .seo-related-section,
  .landing-redesign .content-hub-section,
  .landing-redesign .content-article-section {
    padding: 24px 18px !important;
  }

  .landing-redesign .lm-step-grid,
  .landing-redesign .lm-feature-grid {
    grid-template-columns: 1fr;
  }

  .landing-redesign .lm-step-card,
  .landing-redesign .lm-feature-tile {
    padding: 16px;
  }

  .landing-redesign .seo-related-section .seo-topic-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .landing-redesign .seo-page-directory,
  .landing-redesign .seo-page-directory.compact {
    grid-template-columns: 1fr;
  }

  .landing-redesign .seo-mini-directory {
    grid-template-columns: 1fr;
  }

  .landing-redesign .content-hub-actions .primary-button,
  .landing-redesign .content-hub-actions .secondary-button {
    justify-content: center;
    width: 100%;
  }

  .landing-redesign .content-article-main,
  .landing-redesign .content-article-cta-card,
  .landing-redesign .content-article-related-card {
    border-radius: 22px;
    padding: 20px;
  }

  .landing-redesign .content-product-grid,
  .landing-redesign .content-article-split,
  .landing-redesign .content-visual-block,
  .landing-redesign .content-visual-block.has-media,
  .landing-redesign .content-image-gallery-grid,
  .landing-redesign .traditional-card-sequence {
    grid-template-columns: 1fr;
  }

  .landing-redesign .content-image-gallery-card.featured {
    grid-column: auto;
  }

  .landing-redesign .deck-card-guide .traditional-card-sequence {
    grid-template-columns: 1fr;
  }

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

  .landing-redesign .traditional-card-item {
    gap: 14px;
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .landing-redesign .traditional-card-image-wrap {
    justify-self: center;
    max-width: 150px;
    width: min(46vw, 150px);
  }

  .landing-redesign .traditional-card-guide {
    margin-left: 0;
    margin-right: 0;
  }

  .landing-redesign .traditional-card-saying {
    max-width: none;
  }
}

@media (max-width: 1280px) {
  .landing-redesign .card-guide-productDeck .traditional-card-sequence,
  .landing-redesign .card-guide-amorToxicoDeck .traditional-card-sequence,
  .landing-redesign .card-guide-spookyDeck .traditional-card-sequence,
  .landing-redesign .card-guide-gratefulAfDeck .traditional-card-sequence {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .landing-redesign .content-article-section.content-card-guide-page {
    grid-template-columns: 1fr;
    max-width: min(100%, calc(100vw - 28px));
  }

  .landing-redesign .content-card-guide-productDeck .content-image-gallery-grid,
  .landing-redesign .content-card-guide-spookyDeck .content-image-gallery-grid,
  .landing-redesign .content-card-guide-amorToxicoDeck .content-image-gallery-grid,
  .landing-redesign .content-card-guide-gratefulAfDeck .content-image-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-redesign .card-guide-productDeck .traditional-card-sequence,
  .landing-redesign .card-guide-amorToxicoDeck .traditional-card-sequence,
  .landing-redesign .card-guide-spookyDeck .traditional-card-sequence,
  .landing-redesign .card-guide-gratefulAfDeck .traditional-card-sequence {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .landing-redesign .card-guide-traditionalReference .traditional-card-sequence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .landing-redesign .content-card-guide-productDeck .content-image-gallery-grid,
  .landing-redesign .content-card-guide-spookyDeck .content-image-gallery-grid,
  .landing-redesign .content-card-guide-amorToxicoDeck .content-image-gallery-grid,
  .landing-redesign .content-card-guide-gratefulAfDeck .content-image-gallery-grid,
  .landing-redesign .card-guide-productDeck .traditional-card-sequence,
  .landing-redesign .card-guide-amorToxicoDeck .traditional-card-sequence,
  .landing-redesign .card-guide-spookyDeck .traditional-card-sequence,
  .landing-redesign .card-guide-gratefulAfDeck .traditional-card-sequence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-redesign .content-card-guide-page .content-article-sidebar {
    grid-template-columns: 1fr;
  }

  .landing-redesign .card-guide-traditionalReference .traditional-card-sequence {
    grid-template-columns: 1fr;
  }

  .landing-redesign .card-guide-productDeck,
  .landing-redesign .card-guide-amorToxicoDeck,
  .landing-redesign .card-guide-spookyDeck,
  .landing-redesign .card-guide-gratefulAfDeck {
    padding: 14px;
  }

  .landing-redesign .card-guide-productDeck .traditional-card-item,
  .landing-redesign .card-guide-amorToxicoDeck .traditional-card-item,
  .landing-redesign .card-guide-spookyDeck .traditional-card-item,
  .landing-redesign .card-guide-gratefulAfDeck .traditional-card-item {
    border-radius: 16px;
    gap: 8px;
    padding: 34px 8px 8px;
  }

  .landing-redesign .card-guide-productDeck .traditional-card-item h4,
  .landing-redesign .card-guide-amorToxicoDeck .traditional-card-item h4,
  .landing-redesign .card-guide-spookyDeck .traditional-card-item h4,
  .landing-redesign .card-guide-gratefulAfDeck .traditional-card-item h4 {
    font-size: 0.82rem;
  }

  .landing-redesign .card-guide-productDeck .traditional-card-item .traditional-card-meaning,
  .landing-redesign .card-guide-amorToxicoDeck .traditional-card-item .traditional-card-meaning,
  .landing-redesign .card-guide-gratefulAfDeck .traditional-card-item .traditional-card-meaning {
    font-size: 0.72rem;
  }
}

/* Compact app-first navigation */
.top-nav.app-nav {
  gap: 12px;
  min-height: 70px;
  padding: 8px 12px;
}

.top-nav.app-nav .brand-mark {
  flex: 0 0 auto;
  min-width: 0;
}

.top-nav.app-nav .brand-label {
  font-size: 1rem;
  white-space: nowrap;
}

.top-nav.app-nav .logo-mark {
  border-radius: 14px;
  height: 44px;
  width: 44px;
}

.top-nav.app-nav .nav-links {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
}

.top-nav.app-nav .nav-dropdown {
  flex: 0 0 auto;
}

.top-nav.app-nav .nav-dropdown summary,
.top-nav.app-nav .nav-ghost,
.top-nav.app-nav .nav-cta,
.top-nav.app-nav .secondary-button.small-button {
  border-width: 1px !important;
  font-size: 0.88rem;
  min-height: 38px;
  padding: 0 13px;
}

.top-nav.app-nav .nav-projects-button,
.top-nav.app-nav .nav-caller-button,
.top-nav.app-nav .nav-shop-button {
  background: linear-gradient(135deg, #ffffff, #eefbff) !important;
  border-color: rgba(41, 189, 242, 0.32) !important;
  box-shadow: 0 8px 18px rgba(41, 189, 242, 0.12) !important;
  color: var(--gallery-ink) !important;
}

.top-nav.app-nav .nav-shop-button {
  background: linear-gradient(135deg, #fff9df, #fff1f8) !important;
  border-color: rgba(236, 47, 145, 0.24) !important;
  box-shadow: 0 8px 18px rgba(236, 47, 145, 0.09) !important;
}

.top-nav.app-nav .nav-start-button {
  background: linear-gradient(135deg, var(--loteria-magenta), var(--loteria-red)) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.top-nav.app-nav .language-toggle {
  border-width: 1px;
  padding: 3px;
}

.top-nav.app-nav .language-toggle button,
.top-nav.app-nav .language-toggle a {
  font-size: 0.74rem;
  min-height: 30px;
  padding: 0 9px;
}

.nav-explore-menu .nav-explore-panel {
  gap: 12px;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  left: 50%;
  min-width: min(620px, calc(100vw - 48px));
  transform: translateX(-50%);
}

.nav-profile-menu .nav-dropdown-menu {
  left: auto;
  min-width: 190px;
  right: 0;
}

.nav-menu-section {
  display: grid;
  gap: 7px;
}

.nav-menu-section strong {
  color: var(--loteria-magenta);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  padding: 0 8px;
  text-transform: uppercase;
}

.nav-dropdown-menu button {
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: var(--gallery-ink);
  cursor: pointer;
  display: block;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 850;
  padding: 10px 11px;
  text-align: left;
  width: 100%;
}

.nav-dropdown-menu button:hover {
  background: #fff4dc;
  color: var(--loteria-magenta);
}

.nav-dropdown-menu .danger-menu-action {
  color: var(--loteria-red);
}

.static-seo-page .seo-static-nav .nav-dropdown-menu a {
  box-shadow: none;
  display: block;
  min-height: 0;
}

.static-language-toggle {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 950;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
}

.release-update-banner {
  align-items: center;
  background: rgba(255, 255, 255, 0.97);
  border: 0;
  border-bottom: 3px solid var(--loteria-blue);
  border-radius: 0;
  box-shadow: 0 10px 28px rgba(17, 12, 10, 0.1);
  color: var(--gallery-ink);
  display: flex;
  gap: 16px;
  justify-content: center;
  left: 0;
  max-width: none;
  padding: 10px 18px;
  position: fixed;
  right: 0;
  top: 0;
  transform: none;
  width: 100%;
  z-index: 1200;
}

.release-update-banner.warning {
  border-bottom-color: var(--loteria-yellow);
}

.release-update-banner.danger {
  border-bottom-color: var(--loteria-red);
}

.release-update-banner > div:first-child {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  justify-content: center;
  min-width: 0;
  text-align: center;
}

.release-update-banner strong {
  display: inline;
  font-size: 0.84rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.release-update-banner span {
  color: var(--gallery-muted);
  display: inline;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.35;
  margin-top: 0;
  max-width: min(640px, 100%);
}

.release-update-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.release-update-button {
  background: linear-gradient(135deg, var(--loteria-magenta), var(--loteria-red));
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
  font-weight: 950;
  min-height: 40px;
  padding: 0 18px;
}

.release-update-button:disabled {
  background: #ece7df;
  color: #8d8177;
  cursor: not-allowed;
}

.release-dismiss-button {
  align-items: center;
  background: rgba(21, 17, 15, 0.06);
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 999px;
  color: var(--gallery-muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.25rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 34px;
}

.release-dismiss-button:hover {
  background: rgba(21, 17, 15, 0.1);
  color: var(--gallery-ink);
}

@media (max-width: 700px) {
  .release-update-banner {
    align-items: center;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    width: 100%;
  }

  .release-update-button {
    min-height: 38px;
    width: auto;
  }

  .release-update-actions {
    align-items: center;
    justify-content: center;
  }

  .release-dismiss-button {
    height: 40px;
    width: 44px;
  }

  .top-nav.app-nav {
    min-height: 0;
  }

  .top-nav.app-nav .nav-links {
    flex-wrap: initial;
  }

  .top-nav.app-nav .nav-dropdown,
  .top-nav.app-nav .nav-profile-menu {
    width: 100%;
  }

  .top-nav.app-nav .nav-explore-panel {
    grid-template-columns: 1fr;
    left: auto;
    min-width: 0;
    transform: none;
  }

  .top-nav.app-nav .nav-profile-menu .nav-dropdown-menu {
    right: auto;
  }

  .top-nav.app-nav .nav-dropdown summary,
  .top-nav.app-nav .nav-ghost,
  .top-nav.app-nav .nav-cta,
  .top-nav.app-nav .language-toggle {
    width: 100%;
  }
}

/* Audit polish: keep public pages compact and readable on small screens. */
@media (max-width: 700px) {
  .landing-redesign .lm-ai-promo,
  .landing-redesign .lm-process,
  .landing-redesign .lm-feature-showcase,
  .landing-redesign .lm-statements,
  .landing-redesign .lm-gallery,
  .landing-redesign .lm-print-section,
  .landing-redesign .lm-reviews {
    margin-left: 12px;
    margin-right: 12px;
    padding: 22px 16px !important;
  }

  .landing-redesign .lm-ai-promo {
    gap: 18px;
  }

  .landing-redesign .lm-ai-copy h2,
  .landing-redesign .lm-gallery .lm-section-head h2,
  .landing-redesign .lm-print-section .lm-section-head h2,
  .landing-redesign .lm-reviews .lm-section-head h2 {
    font-size: clamp(2.05rem, 10vw, 3.15rem) !important;
    line-height: 0.92 !important;
  }

  .landing-redesign .lm-gallery .lm-section-head,
  .landing-redesign .lm-print-section .lm-section-head,
  .landing-redesign .lm-reviews .lm-section-head {
    gap: 10px !important;
    margin-bottom: 16px !important;
  }

  .landing-redesign .lm-sample-grid,
  .landing-redesign .lm-review-grid,
  .landing-redesign .product-carousel-track {
    gap: 12px !important;
  }

  .landing-redesign .lm-sample-card,
  .landing-redesign .lm-review-card,
  .landing-redesign .physical-product-card {
    border-radius: 20px !important;
    padding: 12px !important;
  }

  .landing-redesign .lm-sample-card img,
  .landing-redesign .lm-review-card img,
  .landing-redesign .physical-product-card img {
    max-height: 230px;
    object-fit: contain;
  }

  .landing-redesign .lm-statements {
    display: grid !important;
    gap: 14px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    overflow: visible !important;
  }

  .landing-redesign .lm-statement,
  .landing-redesign .lm-statement:nth-child(even) {
    display: grid !important;
    gap: 16px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    min-width: 0;
    overflow: hidden !important;
    padding: 16px !important;
  }

  .landing-redesign .lm-statement-media {
    aspect-ratio: 16 / 10;
    border-width: 5px !important;
    justify-self: stretch;
    min-height: 0 !important;
    transform: none !important;
    width: 100%;
  }

  .landing-redesign .lm-statement > div:not(.lm-statement-media) {
    align-self: start !important;
    min-width: 0;
    width: 100%;
  }

  .landing-redesign .lm-statement h2 {
    font-size: clamp(2rem, 9.2vw, 2.85rem) !important;
    line-height: 0.94 !important;
    margin-top: 12px !important;
    max-width: 100%;
  }

  .landing-redesign .lm-statement p {
    font-size: 0.95rem !important;
    line-height: 1.42 !important;
    max-width: 100%;
  }
}

/* Audit polish: denser card-reference layouts without hiding card calls. */
.landing-redesign .traditional-card-item,
.landing-redesign .traditional-card-image-wrap,
.landing-redesign .traditional-card-copy,
.landing-redesign .traditional-card-saying {
  box-sizing: border-box;
}

.landing-redesign .card-guide-traditionalReference .traditional-card-item {
  align-content: start;
}

.landing-redesign .card-guide-traditionalReference .traditional-card-saying {
  margin-top: 4px;
}

.landing-redesign .card-guide-traditionalReference .traditional-card-saying p {
  font-size: 0.86rem;
  line-height: 1.28;
}

.landing-redesign .card-guide-traditionalReference .traditional-card-saying span {
  font-size: 0.78rem;
  line-height: 1.3;
}

.landing-redesign .card-guide-productDeck .traditional-card-image-wrap,
.landing-redesign .card-guide-spookyDeck .traditional-card-image-wrap,
.landing-redesign .card-guide-amorToxicoDeck .traditional-card-image-wrap,
.landing-redesign .card-guide-gratefulAfDeck .traditional-card-image-wrap {
  justify-self: stretch;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

@media (max-width: 640px) {
  .landing-redesign .traditional-card-guide {
    gap: 16px;
    padding: 16px !important;
  }

  .landing-redesign .traditional-card-guide-head h2 {
    font-size: clamp(1.7rem, 8vw, 2.45rem) !important;
  }

  .landing-redesign .card-guide-traditionalReference .traditional-card-sequence {
    gap: 12px;
    grid-template-columns: 1fr !important;
  }

  .landing-redesign .card-guide-traditionalReference .traditional-card-item {
    gap: 10px 12px !important;
    grid-template-columns: 88px minmax(0, 1fr) !important;
    padding: 14px 12px 12px 46px !important;
  }

  .landing-redesign .card-guide-traditionalReference .traditional-card-number {
    font-size: 0.7rem;
    height: 26px;
    left: 10px;
    min-width: 30px;
    padding: 0 7px;
    top: 10px;
  }

  .landing-redesign .card-guide-traditionalReference .traditional-card-image-wrap {
    grid-column: 1;
    justify-self: start;
    max-width: 88px !important;
    width: 88px !important;
  }

  .landing-redesign .card-guide-traditionalReference .traditional-card-copy {
    gap: 5px;
    grid-column: 2;
  }

  .landing-redesign .card-guide-traditionalReference .traditional-card-item h4 {
    font-size: 0.98rem;
    line-height: 1.02;
  }

  .landing-redesign .card-guide-traditionalReference .traditional-card-item .traditional-card-meaning {
    font-size: 0.76rem;
    line-height: 1.18;
  }

  .landing-redesign .card-guide-traditionalReference .traditional-card-saying {
    border-left-width: 4px;
    border-radius: 12px;
    gap: 5px;
    padding: 9px 10px;
  }

  .landing-redesign .card-guide-traditionalReference .traditional-card-saying strong {
    font-size: 0.64rem;
    margin-bottom: 2px;
  }

  .landing-redesign .card-guide-traditionalReference .traditional-card-saying p {
    font-size: 0.78rem;
  }

  .landing-redesign .card-guide-traditionalReference .traditional-card-saying span {
    font-size: 0.72rem;
  }

  .landing-redesign .card-guide-productDeck .traditional-card-sequence,
  .landing-redesign .card-guide-amorToxicoDeck .traditional-card-sequence,
  .landing-redesign .card-guide-spookyDeck .traditional-card-sequence,
  .landing-redesign .card-guide-gratefulAfDeck .traditional-card-sequence {
    gap: 12px !important;
  }

  .landing-redesign .card-guide-productDeck .traditional-card-item,
  .landing-redesign .card-guide-amorToxicoDeck .traditional-card-item,
  .landing-redesign .card-guide-spookyDeck .traditional-card-item,
  .landing-redesign .card-guide-gratefulAfDeck .traditional-card-item {
    min-width: 0;
    padding: 32px 7px 9px !important;
  }

  .landing-redesign .card-guide-productDeck .traditional-card-copy,
  .landing-redesign .card-guide-amorToxicoDeck .traditional-card-copy,
  .landing-redesign .card-guide-spookyDeck .traditional-card-copy,
  .landing-redesign .card-guide-gratefulAfDeck .traditional-card-copy {
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Digital Baraja Caller */
.caller-download-card {
  border-left: 6px solid var(--loteria-blue);
  position: relative;
}

.builder-page .caller-download-card .primary-button {
  background: var(--loteria-blue);
  border-color: rgba(41, 189, 242, 0.35);
  box-shadow: 0 14px 30px rgba(41, 189, 242, 0.24);
  color: #05151b;
}

.caller-page {
  --caller-line: rgba(21, 17, 15, 0.12);
  --caller-shadow: 0 22px 58px rgba(15, 23, 42, 0.12);
  background: #fffdfa;
  color: var(--gallery-ink);
  min-height: 100vh;
}

.caller-hero {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 46px 22px 30px;
}

.caller-hero h1 {
  font-size: 3.35rem;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
  max-width: 760px;
}

.caller-hero p {
  color: var(--gallery-muted);
  font-size: 1.05rem;
  font-weight: 760;
  line-height: 1.55;
  margin: 14px 0 0;
  max-width: 650px;
}

.caller-landing-hero {
  align-items: center;
  background:
    radial-gradient(circle at 78% 30%, rgba(255, 211, 51, 0.45), transparent 24%),
    radial-gradient(circle at 88% 88%, rgba(236, 47, 145, 0.42), transparent 28%),
    linear-gradient(135deg, #27bdf2 0%, #20c797 58%, #f53392 100%);
  grid-template-columns: minmax(0, 1180px);
  justify-content: center;
  margin: 0;
  max-width: none;
  min-height: min(760px, 78svh);
  overflow: hidden;
  padding: clamp(58px, 8svh, 96px) 22px clamp(72px, 10svh, 110px);
  position: relative;
}

.caller-landing-hero::after {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 253, 250, 0.86) 88%, #fffdfa 100%);
  bottom: 0;
  content: "";
  height: 34%;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 1;
}

.caller-hero-copy {
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.caller-landing-hero .eyebrow,
.caller-landing-hero h1,
.caller-landing-hero .caller-hero-copy > p {
  color: #14100f;
  text-shadow: 0 1px 22px rgba(255, 255, 255, 0.34);
}

.caller-landing-hero .caller-hero-copy > p {
  color: rgba(20, 16, 15, 0.78);
}

.caller-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.caller-hero-points span {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  color: #24170b;
  font-size: 0.84rem;
  font-weight: 900;
  padding: 9px 12px;
}

.caller-hero-visual {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.caller-hero-device {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.22);
  display: grid;
  gap: 12px;
  padding: 16px;
  position: absolute;
  right: clamp(28px, 8vw, 150px);
  top: clamp(36px, 7svh, 74px);
  transform: rotate(2deg);
  width: min(420px, 38vw);
}

.caller-hero-device-top {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.caller-hero-device-top img {
  background: #fff;
  border-radius: 4px;
  display: block;
  height: 28px;
  object-fit: contain;
  padding: 2px 6px;
  width: 132px;
}

.caller-hero-device-top span {
  color: rgba(20, 16, 15, 0.76);
  font-size: 0.64rem;
  font-weight: 900;
}

.caller-hero-current-card {
  aspect-ratio: 2.5 / 3.5;
  background: #fff;
  border: 9px solid #fff;
  border-radius: 18px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.22);
  justify-self: center;
  overflow: hidden;
  transform: rotate(-1deg);
  width: min(74%, 268px);
}

.caller-hero-current-card img,
.caller-hero-history img,
.caller-hero-floating-card img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.caller-hero-history {
  display: flex;
  gap: 8px;
  overflow: hidden;
}

.caller-hero-history span {
  aspect-ratio: 2.5 / 3.5;
  background: #fff;
  border: 5px solid #fff;
  border-radius: 10px;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.14);
  display: block;
  flex: 0 0 54px;
  overflow: hidden;
}

.caller-hero-controls {
  align-items: center;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1.45fr 1fr;
  padding: 8px;
}

.caller-hero-controls span,
.caller-hero-controls b {
  background: #fff;
  border-radius: 999px;
  display: block;
  height: 38px;
}

.caller-hero-controls b {
  background: linear-gradient(135deg, var(--loteria-yellow), #7bd94a);
  border: 6px solid rgba(25, 189, 184, 0.8);
  height: 56px;
}

.caller-hero-floating-card {
  aspect-ratio: 2.5 / 3.5;
  background: #fff;
  border: 8px solid #fff;
  border-radius: 18px;
  box-shadow: 0 26px 56px rgba(15, 23, 42, 0.2);
  overflow: hidden;
  position: absolute;
  width: min(150px, 14vw);
}

.caller-hero-floating-card.one {
  bottom: 14%;
  right: clamp(330px, 42vw, 560px);
  transform: rotate(-10deg);
}

.caller-hero-floating-card.two {
  right: clamp(16px, 4vw, 70px);
  top: 18%;
  transform: rotate(12deg);
}

.caller-hero-actions,
.caller-inline-actions,
.caller-setup-actions,
.caller-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.caller-benefit-band,
.caller-deck-hub {
  margin: 0 auto;
  max-width: 1180px;
  padding-left: 22px;
  padding-right: 22px;
}

.caller-benefit-band {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: -46px;
  padding-bottom: 24px;
  position: relative;
  z-index: 2;
}

.caller-benefit-band article,
.caller-source-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--caller-line);
  border-radius: 8px;
  box-shadow: var(--caller-shadow);
}

.caller-benefit-band article {
  display: grid;
  gap: 7px;
  padding: 18px;
}

.caller-benefit-band strong {
  font-size: 1.02rem;
  font-weight: 950;
}

.caller-benefit-band p,
.caller-source-card p,
.caller-section-head p,
.caller-project-deck-copy p,
.caller-project-deck-copy small {
  color: var(--gallery-muted);
  font-weight: 760;
  line-height: 1.42;
  margin: 0;
}

.caller-deck-hub {
  display: grid;
  gap: 18px;
  padding-bottom: 22px;
  padding-top: 14px;
}

.caller-section-head {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.caller-section-head h2 {
  font-size: 2rem;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

.caller-deck-source-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
}

.caller-source-card {
  align-content: start;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.caller-source-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.caller-source-head span {
  color: var(--gallery-muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.caller-source-head h3 {
  font-size: 1.3rem;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 3px 0 0;
}

.caller-source-head small {
  background: color-mix(in srgb, var(--loteria-blue) 14%, white);
  border: 1px solid color-mix(in srgb, var(--loteria-blue) 28%, white);
  border-radius: 999px;
  color: #07394a;
  font-weight: 950;
  padding: 7px 10px;
}

.caller-project-signin {
  background:
    linear-gradient(90deg, rgba(41, 189, 242, 0.12), rgba(255, 211, 51, 0.16)),
    #fffdfa;
  border: 1px dashed rgba(21, 17, 15, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.caller-inline-actions {
  margin-top: 0;
}

.caller-project-deck-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.caller-project-deck-card {
  background: #fffdfa;
  border: 1px solid rgba(21, 17, 15, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  display: grid;
  gap: 10px;
  padding: 10px;
}

.caller-project-deck-card .saved-project-cover-preview {
  border-radius: 8px;
  min-height: 118px;
  padding: 8px;
}

.caller-project-deck-card .saved-project-cover-preview span {
  border-radius: 8px;
  min-height: 102px;
}

.caller-project-deck-copy {
  display: grid;
  gap: 5px;
}

.caller-project-deck-copy h4 {
  font-size: 1.02rem;
  line-height: 1.08;
  margin: 0;
}

.caller-project-deck-copy .access-status-badge {
  margin-top: 4px;
}

.caller-upload-source-card {
  background:
    linear-gradient(135deg, rgba(255, 211, 51, 0.18), rgba(236, 47, 145, 0.12)),
    #fff;
}

.caller-hero-preview {
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px solid var(--caller-line);
  border-radius: 8px;
  box-shadow: var(--caller-shadow);
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  padding: 14px;
}

.caller-demo-card {
  align-items: end;
  border-radius: 8px;
  color: #fff;
  display: flex;
  font-size: 1.15rem;
  font-weight: 950;
  justify-content: center;
  letter-spacing: 0;
  min-height: 0;
  padding: 18px 12px;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

.caller-demo-card.one {
  background: var(--loteria-blue);
}

.caller-demo-card.two {
  background: var(--loteria-magenta);
}

.caller-demo-card.three {
  background: var(--loteria-yellow);
  color: #24170b;
  grid-column: 1 / -1;
  text-shadow: none;
}

.caller-builder-panel {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 22px 56px;
}

.caller-setup-card,
.caller-card-editor,
.caller-empty-editor,
.caller-edit-row {
  background: #fff;
  border: 1px solid var(--caller-line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.caller-setup-card {
  align-self: start;
  display: grid;
  gap: 14px;
  padding: 18px;
}

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

.caller-setup-head h2 {
  font-size: 1.45rem;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 2px 0 0;
}

.caller-setup-head > span {
  background: color-mix(in srgb, var(--loteria-green) 12%, white);
  border: 1px solid color-mix(in srgb, var(--loteria-green) 24%, white);
  border-radius: 999px;
  color: #0b4b2a;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 8px 10px;
  white-space: nowrap;
}

.caller-setup-card label,
.caller-edit-fields label,
.caller-controls label {
  display: grid;
  gap: 6px;
}

.caller-setup-card label span,
.caller-edit-fields label span,
.caller-controls label span {
  color: var(--gallery-muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.caller-setup-card input,
.caller-edit-fields input,
.caller-controls select {
  background: #fffdfa;
  border: 1px solid var(--caller-line);
  border-radius: 8px;
  color: var(--gallery-ink);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.caller-upload-zone {
  background:
    linear-gradient(90deg, rgba(41, 189, 242, 0.13), rgba(236, 47, 145, 0.12)),
    #fff;
  border: 2px dashed rgba(21, 17, 15, 0.18);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 18px;
  place-items: center;
  text-align: center;
}

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

.caller-option-grid > div {
  display: grid;
  gap: 7px;
}

.caller-option-grid > div > span {
  color: var(--gallery-muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.caller-segmented-control {
  background: rgba(21, 17, 15, 0.06);
  border: 1px solid rgba(21, 17, 15, 0.08);
  border-radius: 999px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 5px;
}

.caller-segmented-control button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--gallery-ink);
  font-size: 0.78rem;
  font-weight: 880;
  min-height: 36px;
  padding: 0 9px;
}

.caller-segmented-control button.active {
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  color: var(--loteria-magenta);
}

.caller-upload-zone strong {
  font-size: 1.02rem;
}

.caller-upload-zone p,
.caller-status-text {
  color: var(--gallery-muted);
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.42;
  margin: 0;
}

.caller-card-editor {
  display: grid;
  gap: 12px;
  min-height: 360px;
  padding: 14px;
}

.caller-empty-editor {
  align-content: center;
  border-style: dashed;
  box-shadow: none;
  display: grid;
  justify-items: center;
  min-height: 280px;
  padding: 26px 18px;
  text-align: center;
}

.caller-empty-editor h3 {
  font-size: 1.45rem;
  line-height: 1.08;
  margin: 0;
}

.caller-empty-editor p {
  color: var(--gallery-muted);
  font-weight: 760;
  margin: 8px 0 0;
}

.caller-edit-row {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 112px minmax(0, 1fr);
  padding: 12px;
}

.caller-edit-preview {
  width: 112px;
}

.caller-edit-preview .card-preview,
.caller-edit-preview .card-preview-canvas {
  min-width: 0;
  width: 100%;
}

.caller-edit-fields {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.caller-edit-actions {
  margin-top: 0;
}

.caller-edit-actions .small-button {
  min-height: 36px;
}

.caller-stage,
.caller-empty-stage {
  color: var(--gallery-ink);
  min-height: 100vh;
}

.caller-stage {
  background:
    linear-gradient(180deg, rgba(24, 161, 248, 0.96) 0%, rgba(15, 184, 190, 0.94) 37%, rgba(48, 198, 105, 0.92) 66%, rgba(236, 47, 145, 0.96) 100%);
  display: grid;
  gap: clamp(8px, 1.5svh, 14px);
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  padding: 14px 14px 86px;
  position: relative;
  overflow-x: hidden;
}

.caller-stage.has-current-card {
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  padding-bottom: 12px;
}

.caller-empty-stage {
  background: #fffdfa;
}

.caller-stage:fullscreen {
  height: 100vh;
  overflow: auto;
  width: 100vw;
}

.caller-stage-top {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(96px, auto) minmax(0, 1fr) minmax(112px, auto);
  position: relative;
  z-index: 3;
}

.caller-stage-brand {
  align-items: center;
  color: rgba(20, 16, 15, 0.78);
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  min-width: 0;
  text-align: center;
  text-shadow: 0 1px 18px rgba(255, 255, 255, 0.38);
}

.caller-stage-brand img {
  display: block;
  height: auto;
  max-height: 34px;
  object-fit: contain;
  width: min(186px, 34vw);
}

.caller-stage-brand span {
  font-size: 0.74rem;
  font-weight: 920;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.caller-stage-nav-button {
  border-radius: 999px !important;
  font-size: 0.84rem !important;
  font-weight: 920 !important;
  min-height: 38px !important;
  padding: 0 14px !important;
}

.caller-card-theater {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  justify-content: center;
  min-height: 0;
  position: relative;
  z-index: 2;
}

.caller-stage.has-current-card .caller-card-theater {
  padding-bottom: clamp(6px, 1svh, 10px);
}

.caller-stage.is-opening .caller-card-theater {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  width: 100%;
}

.caller-card-frame {
  margin: 0 auto;
  max-height: 62vh;
  max-width: 430px;
  min-width: 220px;
  transform: translate(var(--caller-card-shift-x, 0), var(--caller-card-shift-y, 0)) rotate(var(--caller-card-rotate, 0deg));
  transition: transform 220ms ease, filter 220ms ease;
  width: min(100%, 430px);
}

.caller-stage.has-current-card .caller-card-frame {
  min-width: 0;
  width: min(100%, 430px, 36svh);
}

.caller-card-frame .card-preview,
.caller-card-frame .card-preview-canvas {
  background: #fff;
  border-color: #fff;
  border-radius: 18px;
  border-width: 11px;
  box-shadow:
    0 30px 58px rgba(18, 18, 18, 0.28),
    0 5px 0 rgba(255, 255, 255, 0.58) inset;
}

.caller-card-frame {
  animation: callerDrawCard 340ms cubic-bezier(0.18, 0.86, 0.28, 1.08);
}

.caller-preload-cards {
  height: 1px;
  left: -10000px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  top: 0;
  width: 1px;
}

.caller-stage.is-shuffling .caller-card-frame {
  animation: callerShuffle 640ms ease-in-out;
}

.caller-opening-stack {
  display: grid;
  justify-items: center;
  min-height: min(62vh, 560px);
  padding: 20px 0;
  perspective: 1200px;
  place-items: center;
  width: min(100%, 520px);
}

.caller-stack-preview {
  aspect-ratio: 2.5 / 3.5;
  max-width: 420px;
  position: relative;
  width: min(78vw, 420px);
}

.caller-stack-card,
.caller-stack-top-card {
  aspect-ratio: 2.5 / 3.5;
  border-radius: 18px;
  left: 50%;
  overflow: hidden;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 88%;
}

.caller-stack-card {
  background: #fff;
  box-shadow: 0 24px 48px rgba(18, 18, 18, 0.24);
  pointer-events: none;
}

.caller-stack-card .card-preview,
.caller-stack-card .card-preview-canvas {
  border-color: #fff;
  border-radius: 18px;
  border-width: 9px;
  height: 100%;
  min-width: 0;
  width: 100%;
}

.stack-card-1 {
  animation: callerStackFanOne 2.05s cubic-bezier(0.25, 0.82, 0.22, 1) 160ms both;
}

.stack-card-2 {
  animation: callerStackFanTwo 2.05s cubic-bezier(0.25, 0.82, 0.22, 1) 220ms both;
}

.stack-card-3 {
  animation: callerStackFanThree 2.05s cubic-bezier(0.25, 0.82, 0.22, 1) 280ms both;
}

.stack-card-4 {
  animation: callerStackFanFour 2.05s cubic-bezier(0.25, 0.82, 0.22, 1) 340ms both;
}

.stack-card-5 {
  animation: callerStackFanFive 2.05s cubic-bezier(0.25, 0.82, 0.22, 1) 400ms both;
}

.caller-stack-top-card {
  align-items: center;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.72) 0 8%, transparent 9%),
    radial-gradient(circle at 72% 74%, rgba(255, 255, 255, 0.52) 0 7%, transparent 8%),
    linear-gradient(135deg, rgba(16, 16, 16, 0.13) 0 2px, transparent 2px 20px),
    repeating-linear-gradient(45deg, rgba(15, 15, 15, 0.18) 0 2px, transparent 2px 18px),
    repeating-linear-gradient(-45deg, rgba(15, 15, 15, 0.08) 0 1px, transparent 1px 22px),
    linear-gradient(135deg, #faf6ec 0%, #e8ddcb 52%, #fffdf6 100%);
  border: 12px solid #fff;
  box-shadow:
    0 30px 58px rgba(18, 18, 18, 0.28),
    -18px 18px 0 rgba(255, 255, 255, 0.74),
    -34px 34px 22px rgba(15, 23, 42, 0.16);
  color: #fff;
  cursor: pointer;
  display: grid;
  justify-items: center;
  padding: 0;
  transform: translate(-50%, -50%) rotate(-1deg);
  z-index: 8;
}

.caller-stage.is-opening .caller-stack-top-card {
  animation: callerTopStackSettle 2.2s cubic-bezier(0.25, 0.82, 0.22, 1) 180ms both;
}

.caller-card-back-mark {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 3px solid rgba(21, 17, 15, 0.12);
  border-radius: 999px;
  box-shadow:
    0 18px 34px rgba(21, 17, 15, 0.12),
    0 0 0 8px rgba(255, 255, 255, 0.34);
  display: inline-flex;
  height: 42%;
  justify-content: center;
  overflow: hidden;
  padding: 7%;
  position: relative;
  width: 58%;
  z-index: 2;
}

.caller-card-back-mark img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.caller-card-back-lines {
  background:
    radial-gradient(ellipse at 50% 18%, transparent 0 30%, rgba(16, 16, 16, 0.11) 31% 33%, transparent 34%),
    radial-gradient(ellipse at 50% 82%, transparent 0 30%, rgba(16, 16, 16, 0.1) 31% 33%, transparent 34%),
    linear-gradient(90deg, rgba(16, 16, 16, 0.06) 12%, transparent 12% 24%, rgba(16, 16, 16, 0.05) 24% 36%, transparent 36% 48%, rgba(16, 16, 16, 0.05) 48% 60%, transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), transparent 48%, rgba(16, 16, 16, 0.08));
  inset: 0;
  opacity: 0.82;
  position: absolute;
}

.caller-stack-play-button {
  align-items: center;
  background: linear-gradient(135deg, var(--loteria-yellow), #78d84b);
  border: 8px solid rgba(25, 189, 184, 0.86);
  border-radius: 999px;
  bottom: 7%;
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.24),
    0 0 0 8px rgba(255, 255, 255, 0.2);
  color: #fff;
  display: inline-flex;
  height: 104px;
  justify-content: center;
  position: absolute;
  width: 104px;
  z-index: 3;
}

.caller-play-symbol {
  border-bottom: 24px solid transparent;
  border-left: 34px solid currentColor;
  border-top: 24px solid transparent;
  display: block;
  height: 0;
  margin-left: 8px;
  width: 0;
}

.caller-controls {
  align-items: end;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  box-shadow: 0 24px 52px rgba(34, 8, 37, 0.18);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(96px, 0.65fr) minmax(132px, 0.95fr) minmax(96px, 0.65fr) minmax(160px, 0.72fr) minmax(220px, 0.9fr);
  justify-content: center;
  justify-self: center;
  max-width: 980px;
  padding: 14px;
  position: relative;
  width: min(100%, 900px);
  z-index: 3;
}

.caller-controls button {
  min-height: 62px;
  min-width: 0;
}

.caller-round-button,
.caller-play-button {
  align-items: center;
  border-radius: 999px !important;
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  padding: 0 18px;
}

.caller-play-button {
  background: linear-gradient(135deg, var(--loteria-yellow), #7bd94a) !important;
  border: 8px solid rgba(25, 189, 184, 0.88) !important;
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.2),
    0 0 0 8px rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  isolation: isolate;
  min-height: 86px !important;
  overflow: visible;
  position: relative;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.caller-play-button::before {
  background:
    conic-gradient(from -90deg, var(--loteria-yellow) 0 var(--caller-auto-progress, 0%), rgba(255, 255, 255, 0.28) var(--caller-auto-progress, 0%) 100%);
  border-radius: inherit;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.16),
    0 0 24px rgba(255, 255, 255, 0.22);
  content: "";
  inset: -8px;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  padding: 4px;
  pointer-events: none;
  position: absolute;
  transition: opacity 180ms ease;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  z-index: 0;
}

.caller-play-button.is-auto-mode::before {
  opacity: 1;
}

.caller-play-button > * {
  position: relative;
  z-index: 1;
}

.caller-stage.is-playing .caller-play-button {
  background: linear-gradient(135deg, var(--loteria-red), var(--loteria-magenta)) !important;
  border-color: rgba(255, 211, 51, 0.72) !important;
}

.caller-next-button {
  background: linear-gradient(135deg, #ff3b73, var(--loteria-magenta)) !important;
  border-color: rgba(236, 47, 145, 0.36) !important;
  color: #fff !important;
}

.caller-restart-symbol,
.caller-next-symbol,
.caller-play-control-icon {
  display: inline-block;
  flex: 0 0 auto;
  position: relative;
}

.caller-restart-symbol {
  border: 4px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  height: 22px;
  width: 22px;
}

.caller-restart-symbol::after {
  border-bottom: 7px solid currentColor;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  content: "";
  position: absolute;
  right: -6px;
  top: -5px;
  transform: rotate(42deg);
}

.caller-next-symbol {
  height: 18px;
  width: 20px;
}

.caller-next-symbol::before,
.caller-next-symbol::after {
  border-bottom: 9px solid transparent;
  border-left: 12px solid currentColor;
  border-top: 9px solid transparent;
  content: "";
  position: absolute;
  top: 0;
}

.caller-next-symbol::before {
  left: 0;
}

.caller-next-symbol::after {
  left: 8px;
}

.caller-play-control-icon {
  border-bottom: 14px solid transparent;
  border-left: 20px solid currentColor;
  border-top: 14px solid transparent;
  height: 0;
  margin-left: 3px;
  width: 0;
}

.caller-play-control-icon.is-pause {
  border: 0;
  height: 28px;
  margin-left: 0;
  width: 24px;
}

.caller-play-control-icon.is-pause::before,
.caller-play-control-icon.is-pause::after {
  background: currentColor;
  border-radius: 4px;
  content: "";
  height: 28px;
  position: absolute;
  top: 0;
  width: 8px;
}

.caller-play-control-icon.is-pause::before {
  left: 0;
}

.caller-play-control-icon.is-pause::after {
  right: 0;
}

.caller-speed-segment {
  align-items: center;
  align-self: center;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, 1fr);
  min-height: 48px;
  padding: 5px;
}

.caller-mode-segment {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 150px;
}

.caller-speed-segment button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  color: #24170b;
  font-size: 0.78rem;
  font-weight: 920;
  min-height: 38px;
  padding: 0 10px;
}

.caller-speed-segment button.active {
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
  color: var(--loteria-magenta);
}

.caller-speed-options.is-disabled {
  opacity: 0.5;
}

.caller-history-strip {
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(34, 8, 37, 0.14);
  display: grid;
  gap: 6px;
  justify-self: center;
  margin-top: 2px;
  max-width: 960px;
  padding: 8px;
  position: relative;
  width: min(100%, 980px);
  z-index: 3;
}

.caller-history-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.caller-history-head strong {
  font-size: 0.98rem;
  color: #1c110d;
}

.caller-history-head span {
  color: rgba(28, 17, 13, 0.72);
  font-size: 0.82rem;
  font-weight: 820;
}

.caller-history-list {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: thin;
}

.caller-history-list > div {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 3px solid rgba(255, 255, 255, 0.74);
  border-radius: 12px;
  color: var(--gallery-ink);
  display: grid;
  flex: 0 0 auto;
  grid-template-rows: 76px;
  justify-items: center;
  max-width: 76px;
  min-height: 88px;
  padding: 4px;
  position: relative;
  width: 76px;
}

.caller-history-list > div.active {
  background: rgba(255, 211, 51, 0.86);
  border-color: var(--loteria-yellow);
  box-shadow: 0 10px 26px rgba(236, 47, 145, 0.2);
}

.caller-history-thumb {
  display: block;
  height: 76px;
  overflow: hidden;
  width: 54px;
}

.caller-history-thumb .card-preview,
.caller-history-thumb .card-preview-canvas {
  border-radius: 8px;
  border-width: 4px;
  box-shadow: 0 8px 14px rgba(15, 23, 42, 0.16);
  min-width: 0;
  width: 54px;
}

.caller-empty-stage {
  align-content: center;
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 24px;
  text-align: center;
}

.caller-empty-stage h2 {
  font-size: 2rem;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

@keyframes callerDrawCard {
  from {
    opacity: 0.6;
    transform: translateY(16px) rotateY(8deg) rotate(var(--caller-card-rotate, 0deg)) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(var(--caller-card-shift-x, 0), var(--caller-card-shift-y, 0)) rotate(var(--caller-card-rotate, 0deg)) scale(1);
  }
}

@keyframes callerStackFanOne {
  0% { transform: translate(-50%, -50%) rotate(-2deg); }
  32% { transform: translate(-84%, -56%) rotate(-11deg); }
  64% { transform: translate(-40%, -53%) rotate(5deg); }
  100% { transform: translate(calc(-50% - 22px), calc(-50% + 22px)) rotate(-5deg); }
}

@keyframes callerStackFanTwo {
  0% { transform: translate(-50%, -50%) rotate(1deg); }
  32% { transform: translate(-66%, -68%) rotate(-6deg); }
  64% { transform: translate(-54%, -48%) rotate(-4deg); }
  100% { transform: translate(calc(-50% - 12px), calc(-50% + 12px)) rotate(-2deg); }
}

@keyframes callerStackFanThree {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  32% { transform: translate(-46%, -72%) rotate(0deg); }
  64% { transform: translate(-46%, -48%) rotate(3deg); }
  100% { transform: translate(calc(-50% - 4px), calc(-50% + 4px)) rotate(0deg); }
}

@keyframes callerStackFanFour {
  0% { transform: translate(-50%, -50%) rotate(-1deg); }
  32% { transform: translate(-26%, -66%) rotate(7deg); }
  64% { transform: translate(-58%, -52%) rotate(-3deg); }
  100% { transform: translate(calc(-50% + 7px), calc(-50% - 4px)) rotate(2deg); }
}

@keyframes callerStackFanFive {
  0% { transform: translate(-50%, -50%) rotate(2deg); }
  32% { transform: translate(-10%, -54%) rotate(12deg); }
  64% { transform: translate(-44%, -56%) rotate(4deg); }
  100% { transform: translate(calc(-50% + 18px), calc(-50% - 12px)) rotate(4deg); }
}

@keyframes callerTopStackSettle {
  0% {
    opacity: 0;
    transform: translate(-50%, -46%) rotate(5deg) scale(0.94);
  }
  58% {
    opacity: 0.1;
    transform: translate(-50%, -46%) rotate(5deg) scale(0.94);
  }
  82% {
    opacity: 1;
    transform: translate(-50%, -53%) rotate(-3deg) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-1deg) scale(1);
  }
}

@keyframes callerShuffle {
  0% {
    transform: translateX(0) rotate(0deg) scale(1);
  }
  25% {
    transform: translateX(-16px) rotate(-3deg) scale(0.98);
  }
  50% {
    transform: translateX(16px) rotate(3deg) scale(1.01);
  }
  75% {
    transform: translateX(-8px) rotate(-1deg) scale(0.99);
  }
  100% {
    transform: translateX(0) rotate(0deg) scale(1);
  }
}

@media (max-height: 780px) and (min-width: 901px) {
  .caller-stage.has-current-card {
    gap: 6px;
    padding: 6px 10px 8px;
  }

  .caller-stage-brand img {
    max-height: 28px;
    width: min(160px, 24vw);
  }

  .caller-stage-brand span {
    font-size: 0.68rem;
  }

  .caller-stage-nav-button {
    font-size: 0.78rem !important;
    min-height: 34px !important;
    padding: 0 12px !important;
  }

  .caller-stage.has-current-card .caller-card-frame {
    width: min(100%, 310px, 34svh);
  }

  .caller-card-frame .card-preview,
  .caller-card-frame .card-preview-canvas {
    border-width: 8px;
  }

  .caller-history-strip {
    border-radius: 18px;
    gap: 4px;
    padding: 6px;
  }

  .caller-history-head strong {
    font-size: 0.9rem;
  }

  .caller-history-head span {
    font-size: 0.76rem;
  }

  .caller-history-list {
    gap: 6px;
  }

  .caller-history-list > div {
    border-radius: 10px;
    border-width: 2px;
    grid-template-rows: 62px;
    max-width: 64px;
    min-height: 72px;
    padding: 3px;
    width: 64px;
  }

  .caller-history-thumb {
    height: 62px;
    width: 44px;
  }

  .caller-history-thumb .card-preview,
  .caller-history-thumb .card-preview-canvas {
    border-radius: 6px;
    border-width: 3px;
    width: 44px;
  }

  .caller-controls {
    border-radius: 22px;
    gap: 10px;
    padding: 9px;
  }

  .caller-controls button {
    min-height: 50px;
  }

  .caller-play-button {
    border-width: 6px !important;
    min-height: 64px !important;
  }

  .caller-play-button::before {
    inset: -6px;
    padding: 3px;
  }

  .caller-speed-segment {
    min-height: 40px;
    padding: 4px;
  }

  .caller-speed-segment button {
    font-size: 0.72rem;
    min-height: 30px;
    padding: 0 8px;
  }
}

@media (max-width: 900px) {
  .caller-hero,
  .caller-builder-panel {
    grid-template-columns: 1fr;
  }

  .caller-hero {
    padding-top: 30px;
  }

  .caller-landing-hero {
    align-items: start;
    min-height: 720px;
    padding: 38px 18px 92px;
  }

  .caller-hero-copy {
    max-width: 610px;
    padding-top: 10px;
  }

  .caller-hero-visual {
    opacity: 0.72;
  }

  .caller-hero-device {
    right: -34px;
    top: 260px;
    width: min(420px, 62vw);
  }

  .caller-hero-floating-card.one {
    bottom: 12%;
    left: 20px;
    right: auto;
    width: 118px;
  }

  .caller-hero-floating-card.two {
    right: 18px;
    top: 18%;
    width: 112px;
  }

  .caller-hero h1 {
    font-size: 2.6rem;
  }

  .caller-benefit-band,
  .caller-deck-hub {
    padding-left: 14px;
    padding-right: 14px;
  }

  .caller-benefit-band,
  .caller-deck-source-grid {
    grid-template-columns: 1fr;
  }

  .caller-benefit-band {
    margin-top: -40px;
  }

  .caller-stage {
    grid-template-rows: auto auto auto minmax(94px, auto);
  }

  .caller-stage.has-current-card {
    grid-template-rows: auto minmax(0, 1fr) auto auto;
  }

  .caller-card-theater {
    grid-template-columns: 1fr;
  }

  .caller-stage-brand img {
    width: min(168px, 28vw);
  }

  .caller-stage-brand span {
    font-size: 0.68rem;
  }

  .caller-card-frame {
    max-height: none;
    width: min(86vw, 360px);
  }

  .caller-stage.has-current-card .caller-card-frame {
    min-width: 0;
    width: min(82vw, 38svh, 350px);
  }

  .caller-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 640px;
  }

  .caller-speed-segment {
    grid-column: 1 / -1;
  }

  .caller-mode-segment {
    min-width: 0;
  }

  .caller-play-button {
    min-height: 76px !important;
  }
}

@media (max-width: 560px) {
  .caller-hero,
  .caller-builder-panel {
    padding-left: 14px;
    padding-right: 14px;
  }

  .caller-landing-hero {
    min-height: 700px;
    padding: 30px 14px 86px;
  }

  .caller-landing-hero::after {
    height: 42%;
  }

  .caller-hero-copy {
    padding-top: 0;
  }

  .caller-hero h1 {
    font-size: 2.15rem;
  }

  .caller-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .caller-hero-actions .primary-button,
  .caller-hero-actions .secondary-button {
    width: 100%;
  }

  .caller-hero-points {
    gap: 6px;
  }

  .caller-hero-points span {
    font-size: 0.76rem;
    padding: 8px 10px;
  }

  .caller-hero-device {
    bottom: 42px;
    right: -72px;
    top: auto;
    width: 310px;
  }

  .caller-hero-device-top img {
    height: 22px;
    width: 108px;
  }

  .caller-hero-device-top span {
    font-size: 0.54rem;
  }

  .caller-hero-current-card {
    border-width: 7px;
    width: 68%;
  }

  .caller-hero-history span {
    flex-basis: 42px;
  }

  .caller-hero-controls b {
    height: 44px;
  }

  .caller-hero-floating-card {
    display: none;
  }

  .caller-benefit-band {
    gap: 10px;
    margin-top: -34px;
    padding-bottom: 18px;
  }

  .caller-benefit-band article,
  .caller-source-card {
    padding: 14px;
  }

  .caller-section-head h2 {
    font-size: 1.55rem;
  }

  .caller-project-deck-grid {
    grid-template-columns: 1fr;
  }

  .caller-hero-preview {
    aspect-ratio: auto;
    grid-template-columns: 1fr;
  }

  .caller-demo-card.three {
    grid-column: auto;
  }

  .caller-edit-row {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .caller-edit-preview {
    width: 86px;
  }

  .caller-edit-actions .small-button {
    flex: 1 1 92px;
  }

  .caller-option-grid {
    grid-template-columns: 1fr;
  }

  .caller-stage {
    padding: 10px 10px 86px;
  }

  .caller-stage.has-current-card {
    gap: 7px;
    padding: 8px 10px 10px;
  }

  .caller-stage-top .secondary-button {
    flex: 0 1 auto;
    min-width: 0;
  }

  .caller-stage-nav-button {
    font-size: 0.78rem !important;
    min-height: 32px !important;
    padding: 0 10px !important;
    white-space: nowrap;
  }

  .caller-controls {
    border-radius: 22px;
    gap: 7px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 8px;
    width: 100%;
  }

  .caller-controls button {
    font-size: 0.78rem;
    min-height: 48px;
    padding: 0 6px;
  }

  .caller-round-button,
  .caller-play-button {
    gap: 6px;
  }

  .caller-play-button {
    border-width: 6px !important;
    box-shadow:
      0 12px 24px rgba(0, 0, 0, 0.18),
      0 0 0 5px rgba(255, 255, 255, 0.18) !important;
    min-height: 58px !important;
  }

  .caller-restart-symbol {
    border-width: 3px;
    height: 18px;
    width: 18px;
  }

  .caller-next-symbol {
    height: 15px;
    width: 17px;
  }

  .caller-next-symbol::before,
  .caller-next-symbol::after {
    border-bottom-width: 7px;
    border-left-width: 10px;
    border-top-width: 7px;
  }

  .caller-next-symbol::after {
    left: 7px;
  }

  .caller-play-control-icon {
    border-bottom-width: 11px;
    border-left-width: 16px;
    border-top-width: 11px;
  }

  .caller-speed-segment {
    grid-column: 1 / -1;
    min-height: 36px;
    padding: 4px;
  }

  .caller-speed-segment button {
    font-size: 0.68rem;
    min-height: 28px;
    padding: 0 6px;
  }

  .caller-stage-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .caller-stage-brand {
    flex: 1 0 100%;
    gap: 6px;
    order: -1;
  }

  .caller-stage-brand img {
    max-height: 24px;
    width: 128px;
  }

  .caller-stage-brand span {
    font-size: 0.62rem;
  }

  .caller-card-frame {
    width: min(90vw, 320px);
  }

  .caller-stage.has-current-card .caller-card-frame {
    width: min(78vw, 35svh, 300px);
  }

  .caller-opening-stack {
    min-height: min(56vh, 470px);
    padding: 8px 0 14px;
  }

  .caller-stack-preview {
    width: min(76vw, 318px);
  }

  .caller-stack-top-card {
    border-width: 9px;
  }

  .caller-stack-play-button {
    border-width: 6px;
    height: 82px;
    width: 82px;
  }

  .caller-play-symbol {
    border-bottom-width: 18px;
    border-left-width: 26px;
    border-top-width: 18px;
  }

  .caller-card-frame .card-preview,
  .caller-card-frame .card-preview-canvas {
    border-width: 7px;
  }

  .caller-history-strip {
    border-radius: 18px;
    gap: 4px;
    padding: 7px;
  }

  .caller-history-head {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .caller-history-head strong {
    font-size: 0.84rem;
  }

  .caller-history-head span {
    font-size: 0.7rem;
  }

  .caller-history-list {
    gap: 6px;
  }

  .caller-history-list > div {
    border-radius: 10px;
    border-width: 2px;
    grid-template-rows: 64px;
    max-width: 58px;
    min-height: 72px;
    padding: 3px;
    width: 58px;
  }

  .caller-history-thumb {
    height: 64px;
    width: 46px;
  }

  .caller-history-thumb .card-preview,
  .caller-history-thumb .card-preview-canvas {
    border-radius: 6px;
    border-width: 3px;
    width: 46px;
  }
}

@media (max-width: 560px) and (max-height: 750px) {
  .caller-stage.has-current-card {
    gap: 6px;
    padding: 7px 9px 9px;
  }

  .caller-stage-brand img {
    max-height: 22px;
    width: 118px;
  }

  .caller-stage-brand span {
    font-size: 0.58rem;
  }

  .caller-stage-nav-button {
    font-size: 0.72rem !important;
    min-height: 30px !important;
    padding: 0 9px !important;
  }

  .caller-stage.has-current-card .caller-card-frame {
    width: min(72vw, 29svh, 238px);
  }

  .caller-history-strip {
    padding: 6px;
  }

  .caller-history-head strong {
    font-size: 0.78rem;
  }

  .caller-history-head span {
    font-size: 0.66rem;
  }

  .caller-history-list > div {
    grid-template-rows: 56px;
    max-width: 52px;
    min-height: 64px;
    width: 52px;
  }

  .caller-history-thumb {
    height: 56px;
    width: 40px;
  }

  .caller-history-thumb .card-preview,
  .caller-history-thumb .card-preview-canvas {
    width: 40px;
  }

  .caller-controls {
    gap: 6px;
    padding: 7px;
  }

  .caller-controls button {
    font-size: 0.72rem;
    min-height: 44px;
  }

  .caller-play-button {
    min-height: 52px !important;
  }

  .caller-speed-segment {
    min-height: 32px;
    padding: 3px;
  }

  .caller-speed-segment button {
    font-size: 0.64rem;
    min-height: 26px;
  }
}

/* Homepage footer/process refinement */
.landing-redesign .lm-process-layout {
  align-items: start;
  display: grid;
  gap: clamp(18px, 3vw, 30px);
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.86fr);
}

.landing-redesign .lm-process-main {
  min-width: 0;
}

.landing-redesign .lm-process .lm-section-head {
  margin-bottom: 18px !important;
}

.landing-redesign .lm-process-main .lm-step-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-redesign .lm-process-main .lm-step-card:last-child:nth-child(odd) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(239, 249, 246, 0.92)),
    radial-gradient(circle at 96% 20%, rgba(41, 189, 242, 0.16), transparent 14rem);
  border-color: rgba(41, 189, 242, 0.24);
  grid-column: 1 / -1;
  min-height: 150px;
}

.landing-redesign .lm-process-price-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 249, 246, 0.92)),
    radial-gradient(circle at 100% 0, rgba(41, 189, 242, 0.14), transparent 12rem);
  border: 1px solid rgba(21, 17, 15, 0.1);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
  color: var(--gallery-ink);
  display: grid;
  gap: 12px;
  padding: clamp(18px, 2vw, 24px);
  position: sticky;
  scroll-margin-top: 112px;
  top: 104px;
}

.landing-redesign .lm-process-price-card h3 {
  color: var(--gallery-ink);
  font-size: clamp(1.65rem, 2.2vw, 2.35rem);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 0.96;
  margin: 0;
}

.landing-redesign .lm-process-price-card > p:not(.lm-kicker) {
  color: var(--gallery-muted);
  font-size: 0.95rem;
  font-weight: 720;
  line-height: 1.42;
  margin: 0;
}

.landing-redesign .lm-process-offers {
  display: grid;
  gap: 10px;
}

.landing-redesign .lm-process-offers article {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(21, 17, 15, 0.08);
  border-radius: 18px;
  display: grid;
  gap: 7px;
  padding: 13px;
}

.landing-redesign .lm-process-offers span {
  color: var(--loteria-magenta);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-redesign .lm-process-offers strong {
  color: var(--gallery-ink);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1;
}

.landing-redesign .lm-process-offers p {
  color: var(--gallery-muted);
  font-size: 0.84rem;
  font-weight: 720;
  line-height: 1.34;
  margin: 0;
}

.landing-redesign .lm-process-offers .primary-button,
.landing-redesign .lm-process-offers .secondary-button {
  min-height: 36px;
  padding: 0 12px;
  width: 100%;
}

.landing-redesign .lm-process-offers .secondary-button {
  background: #fff !important;
  border: 1px solid rgba(21, 17, 15, 0.12) !important;
  color: var(--gallery-ink) !important;
}

.landing-redesign .lm-review-proof {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(21, 17, 15, 0.08);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  color: var(--gallery-ink);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 9px 12px;
}

.landing-redesign .lm-review-proof strong {
  color: var(--gallery-ink);
  font-size: 1.18rem;
  font-weight: 950;
  line-height: 1;
}

.landing-redesign .lm-review-proof span:not(.lm-stars),
.landing-redesign .lm-review-proof b {
  color: var(--gallery-muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.landing-redesign .lm-stars {
  color: #f7b500;
  display: inline-flex;
  font-size: 0.96rem;
  letter-spacing: 0.05em;
  line-height: 1;
}

.landing-redesign .lm-review-card .lm-stars {
  margin: 1px 0 8px;
}

.landing-redesign .site-footer.lm-footer {
  background:
    linear-gradient(90deg, var(--loteria-blue), var(--loteria-green), var(--loteria-yellow), var(--loteria-magenta)) top / 100% 6px no-repeat,
    radial-gradient(circle at 12% 0, rgba(41, 189, 242, 0.22), transparent 18rem),
    radial-gradient(circle at 94% 16%, rgba(236, 47, 145, 0.18), transparent 18rem),
    linear-gradient(135deg, #15110f, #253f38) !important;
  border: 0 !important;
  border-radius: 30px 30px 0 0 !important;
  box-shadow: 0 -18px 50px rgba(15, 23, 42, 0.12) !important;
  color: #fffaf0 !important;
  display: grid !important;
  gap: 22px !important;
  grid-template-columns: 1fr !important;
  overflow: hidden;
  padding: clamp(30px, 4.6vw, 58px) clamp(20px, 4vw, 56px) 22px !important;
}

.landing-redesign .lm-footer-top {
  align-items: start;
  display: grid;
  gap: clamp(22px, 4vw, 54px);
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.12fr);
}

.landing-redesign .lm-footer-brand-panel {
  display: grid;
  gap: 14px;
  max-width: 560px;
}

.landing-redesign .lm-footer .brand-mark {
  color: #fffaf0 !important;
  justify-content: flex-start;
  width: fit-content;
}

.landing-redesign .lm-footer .brand-label {
  color: #fffaf0 !important;
}

.landing-redesign .lm-footer .logo-mark {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.9);
}

.landing-redesign .lm-footer-brand-panel p {
  color: rgba(255, 250, 240, 0.76) !important;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  font-weight: 720;
  line-height: 1.48;
  margin: 0;
}

.landing-redesign .lm-footer-proof,
.landing-redesign .lm-footer-bottom {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 14px;
}

.landing-redesign .lm-footer-proof {
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.84rem;
  font-weight: 850;
}

.landing-redesign .lm-footer-proof span:not(.lm-stars) {
  color: rgba(255, 250, 240, 0.78);
}

.landing-redesign .lm-footer-link-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-redesign .lm-footer-link-grid div {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 250, 240, 0.1);
  border-radius: 20px;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.landing-redesign .lm-footer-link-grid strong {
  color: #fffaf0;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.landing-redesign .lm-footer a,
.landing-redesign .lm-footer button {
  color: rgba(255, 250, 240, 0.78) !important;
}

.landing-redesign .lm-footer-link-grid a {
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 850;
  padding: 6px 0;
  text-decoration: none;
}

.landing-redesign .lm-footer-link-grid a:hover {
  color: #fffaf0 !important;
}

.landing-redesign .lm-footer .site-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2px 0 0;
}

.landing-redesign .lm-footer .site-footer-actions .primary-button,
.landing-redesign .lm-footer .site-footer-actions .secondary-button {
  min-height: 42px;
  padding: 0 16px;
}

.landing-redesign .lm-footer .site-footer-actions .primary-button {
  color: #fff !important;
}

.landing-redesign .lm-footer .site-footer-actions .secondary-button {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 250, 240, 0.18) !important;
  box-shadow: none !important;
  color: #fffaf0 !important;
}

.landing-redesign .lm-footer-bottom {
  border-top: 1px solid rgba(255, 250, 240, 0.12);
  justify-content: space-between;
  padding-top: 18px;
}

.landing-redesign .lm-footer-bottom > span {
  color: rgba(255, 250, 240, 0.66);
  font-size: 0.85rem;
  font-weight: 760;
}

.landing-redesign .lm-footer .site-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.landing-redesign .lm-footer .site-legal-links button {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 250, 240, 0.12) !important;
  border-radius: 999px;
  color: rgba(255, 250, 240, 0.72) !important;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
  min-height: 32px;
  padding: 0 11px;
}

.landing-redesign .lm-footer .site-legal-links button:hover {
  color: #fffaf0 !important;
}

@media (max-width: 980px) {
  .landing-redesign .lm-process-layout,
  .landing-redesign .lm-footer-top {
    grid-template-columns: 1fr;
  }

  .landing-redesign .lm-process-price-card {
    position: relative;
    top: auto;
  }

  .landing-redesign .lm-footer-link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .landing-redesign .lm-process-main .lm-step-grid,
  .landing-redesign .lm-footer-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-redesign .lm-footer-link-grid div:nth-child(3) {
    grid-column: 1 / -1;
  }

  .landing-redesign .lm-footer-link-grid div {
    padding: 14px;
  }

  .landing-redesign .lm-process-main .lm-step-grid {
    grid-template-columns: 1fr;
  }

  .landing-redesign .lm-process-price-card {
    border-radius: 20px;
    padding: 16px;
  }

  .landing-redesign .lm-review-proof {
    border-radius: 18px;
    justify-content: flex-start;
    width: 100%;
  }

  .landing-redesign .site-footer.lm-footer {
    border-radius: 24px 24px 0 0 !important;
    margin-left: 10px;
    margin-right: 10px;
    padding: 28px 18px 18px !important;
  }

  .landing-redesign .lm-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-redesign .lm-footer .site-legal-links {
    justify-content: flex-start;
  }
}

/* Homepage cleanup pass */
.landing-redesign .lm-choice-strip,
.landing-redesign .lm-marquee,
.landing-redesign .lm-intro,
.landing-redesign .lm-commerce-strip,
.landing-redesign .lm-ai-promo,
.landing-redesign .lm-process,
.landing-redesign .lm-gallery,
.landing-redesign .lm-print-section,
.landing-redesign .lm-reviews,
.landing-redesign .seo-faq-section,
.landing-redesign .lm-final-cta {
  scroll-margin-top: 112px;
}

.landing-redesign .lm-choice-strip {
  background:
    radial-gradient(circle at 8% 18%, rgba(41, 189, 242, 0.12), transparent 18rem),
    radial-gradient(circle at 92% 18%, rgba(236, 47, 145, 0.1), transparent 18rem),
    rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(21, 17, 15, 0.08);
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px auto 28px;
  padding: 12px;
  position: relative;
  width: min(100% - 32px, 1360px);
  z-index: 2;
}

.landing-redesign .lm-choice-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(21, 17, 15, 0.08);
  border-radius: 22px;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 132px;
  padding: 18px;
}

.landing-redesign .lm-choice-card > span {
  align-items: center;
  background: rgba(41, 189, 242, 0.11);
  border: 1px solid rgba(41, 189, 242, 0.2);
  border-radius: 999px;
  color: #087ca0;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 980;
  height: 38px;
  justify-content: center;
  letter-spacing: 0.08em;
  width: 38px;
}

.landing-redesign .lm-choice-card.choice-2 > span {
  background: rgba(31, 160, 96, 0.11);
  border-color: rgba(31, 160, 96, 0.2);
  color: #147044;
}

.landing-redesign .lm-choice-card.choice-3 > span {
  background: rgba(236, 47, 145, 0.1);
  border-color: rgba(236, 47, 145, 0.2);
  color: #b61864;
}

.landing-redesign .lm-choice-card h2 {
  color: var(--gallery-ink);
  font-size: clamp(1.08rem, 1.45vw, 1.4rem);
  font-weight: 950;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0 0 6px;
}

.landing-redesign .lm-choice-card p {
  color: var(--gallery-muted);
  font-size: 0.88rem;
  font-weight: 720;
  line-height: 1.35;
  margin: 0;
}

.landing-redesign .lm-choice-card .primary-button,
.landing-redesign .lm-choice-card .secondary-button {
  grid-column: 1 / -1;
  min-height: 40px;
  padding: 0 14px;
  width: 100%;
}

.landing-redesign .lm-choice-card .secondary-button,
.landing-redesign .site-footer-actions .secondary-button {
  background: #fff !important;
  border: 1px solid rgba(21, 17, 15, 0.12) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06) !important;
  color: var(--gallery-ink) !important;
}

.landing-redesign .lm-choice-card .primary-button,
.landing-redesign .site-footer-actions .primary-button,
.landing-redesign .lm-final-cta .primary-button {
  color: #fff !important;
}

.landing-redesign .lm-commerce-strip {
  padding: clamp(30px, 4vw, 54px) clamp(18px, 5vw, 64px) !important;
}

.landing-redesign .commerce-offer-grid {
  gap: 14px;
  max-width: 1040px;
}

.landing-redesign .commerce-offer-card {
  border-radius: 18px;
  gap: 9px;
  padding: 18px;
}

.landing-redesign .commerce-offer-card strong {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.landing-redesign .commerce-offer-card p {
  font-size: 0.88rem;
}

.landing-redesign .lm-gallery-note {
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 211, 51, 0.16), rgba(41, 189, 242, 0.1));
  border: 1px solid rgba(21, 17, 15, 0.08);
  border-radius: 18px;
  color: var(--gallery-ink);
  display: flex;
  gap: 10px 14px;
  margin: -10px 0 22px;
  padding: 13px 16px;
}

.landing-redesign .lm-gallery-note strong {
  flex: 0 0 auto;
  font-size: 0.92rem;
  font-weight: 950;
}

.landing-redesign .lm-gallery-note span {
  color: var(--gallery-muted);
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.35;
}

.landing-redesign .lm-final-cta {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  max-width: 1360px !important;
  min-height: 0;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 54px) !important;
}

.landing-redesign .lm-final-cta h2 {
  font-size: clamp(2rem, 4vw, 4.4rem) !important;
  line-height: 0.95 !important;
  max-width: 760px;
}

.landing-redesign .site-footer {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.8fr);
  max-width: 1360px !important;
  padding: clamp(28px, 4vw, 46px) clamp(20px, 4vw, 54px) !important;
}

.landing-redesign .site-footer-brand-block {
  display: grid;
  gap: 12px;
  max-width: 560px;
}

.landing-redesign .site-footer-brand-block .brand-mark {
  justify-content: flex-start;
  width: fit-content;
}

.landing-redesign .site-footer-brand-block p {
  font-size: 0.98rem;
  font-weight: 720;
  line-height: 1.45;
  margin: 0;
  max-width: 42ch;
}

.landing-redesign .site-footer-actions,
.landing-redesign .site-footer-quick-links,
.landing-redesign .site-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-redesign .site-footer-actions {
  margin-top: 4px;
}

.landing-redesign .site-footer-actions .primary-button,
.landing-redesign .site-footer-actions .secondary-button {
  min-height: 40px;
  padding: 0 15px;
}

.landing-redesign .site-footer-links {
  gap: 18px !important;
  justify-items: end;
  min-width: 0 !important;
}

.landing-redesign .site-footer-quick-links,
.landing-redesign .site-legal-links {
  justify-content: flex-end;
}

.landing-redesign .site-footer-quick-links a,
.landing-redesign .site-legal-links button {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(21, 17, 15, 0.08);
  border-radius: 999px;
  color: var(--gallery-ink) !important;
  font-size: 0.84rem;
  font-weight: 850;
  min-height: 36px;
  padding: 0 12px;
  text-decoration: none;
}

.landing-redesign .site-legal-links button {
  cursor: pointer;
}

.landing-redesign .site-footer-quick-links a:hover,
.landing-redesign .site-legal-links button:hover {
  border-color: rgba(236, 47, 145, 0.28);
  color: var(--loteria-magenta) !important;
}

@media (max-width: 1100px) {
  .landing-redesign .lm-hero {
    gap: 22px !important;
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  .landing-redesign .lm-hero-copy {
    max-width: 760px;
  }

  .landing-redesign .lm-hero-stage {
    margin-top: 6px;
  }

  .landing-redesign .lm-hero-stage .hero-showcase {
    height: auto !important;
    min-height: 0 !important;
    width: min(100%, 520px) !important;
  }

  .landing-redesign .lm-choice-strip,
  .landing-redesign .commerce-offer-grid {
    grid-template-columns: 1fr;
  }

  .landing-redesign .lm-choice-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 0;
  }

  .landing-redesign .lm-choice-card .primary-button,
  .landing-redesign .lm-choice-card .secondary-button {
    grid-column: auto;
    white-space: nowrap;
    width: auto;
  }
}

@media (max-width: 760px) {
  .help-launcher {
    font-size: 0;
    justify-content: center;
    min-height: 46px;
    padding: 8px;
    width: 46px;
  }

  .help-launcher span {
    font-size: 1rem;
    height: 30px;
    width: 30px;
  }

  .landing-redesign .lm-hero {
    border-radius: 28px !important;
    padding: 28px 16px 12px !important;
    width: calc(100% - 20px) !important;
  }

  .seo-home-route .lm-hero h1 {
    font-size: clamp(2.35rem, 15vw, 3.45rem) !important;
    line-height: 0.86 !important;
  }

  .seo-home-route .lm-hero h1 em {
    font-size: clamp(1.02rem, 6vw, 1.36rem) !important;
    margin-top: 10px;
  }

  .landing-redesign .lm-hero-sub {
    font-size: 0.96rem !important;
    line-height: 1.42;
  }

  .landing-redesign .lm-hero-actions {
    gap: 10px;
    margin-top: 18px;
  }

  .landing-redesign .lm-hero-actions .large {
    min-height: 50px;
  }

  .landing-redesign .lm-hero-actions .secondary-button.large {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--gallery-ink) !important;
    min-height: 30px;
    padding: 0;
  }

  .landing-redesign .lm-hero-actions .ghost-link {
    display: none !important;
  }

  .landing-redesign .lm-proof-row {
    display: flex;
    gap: 8px;
    grid-template-columns: none;
    margin-top: 12px;
    overflow-x: auto;
  }

  .landing-redesign .lm-proof-row span {
    flex: 0 0 auto;
    font-size: 0.84rem;
    padding: 8px 11px;
    white-space: nowrap;
  }

  .landing-redesign .lm-proof-row span:nth-child(n + 3) {
    display: none;
  }

  .landing-redesign .lm-hero-stage .hero-showcase {
    width: min(100%, 214px) !important;
  }

  .landing-redesign .lm-hero-stage .realistic-board {
    width: min(60vw, 206px) !important;
  }

  .landing-redesign .lm-choice-strip {
    border-radius: 22px;
    margin-top: 4px;
    padding: 8px;
    width: calc(100% - 20px);
  }

  .landing-redesign .lm-choice-card {
    border-radius: 18px;
    gap: 11px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 14px;
  }

  .landing-redesign .lm-choice-card .primary-button,
  .landing-redesign .lm-choice-card .secondary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .landing-redesign .lm-step-card::after {
    display: none;
  }

  .landing-redesign .lm-gallery-note {
    align-items: flex-start;
    flex-direction: column;
    margin-top: -4px;
  }

  .landing-redesign .lm-final-cta {
    align-items: stretch;
    border-radius: 24px;
    flex-direction: column;
    margin-left: 10px;
    margin-right: 10px;
    padding: 24px 18px !important;
  }

  .landing-redesign .lm-final-cta h2 {
    font-size: clamp(1.9rem, 10vw, 3rem) !important;
  }

  .landing-redesign .site-footer {
    border-radius: 24px 24px 0 0 !important;
    grid-template-columns: 1fr;
    margin-left: 10px;
    margin-right: 10px;
    padding: 24px 18px !important;
  }

  .landing-redesign .site-footer-links {
    justify-items: stretch;
  }

  .landing-redesign .site-footer-quick-links,
  .landing-redesign .site-legal-links {
    justify-content: flex-start;
  }
}

/* Final admin workspace overrides: keep after legacy admin styles. */
.admin-page {
  background: #f6f8fb !important;
}

.admin-portal-shell {
  background: transparent !important;
  display: grid !important;
  gap: 18px !important;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) !important;
  max-width: 1480px !important;
}

.admin-portal-sidebar,
.admin-portal-topbar,
.admin-section-hero,
.admin-tab-panel,
.admin-command-card,
.admin-health-card {
  background: #fff !important;
  border: 1px solid #d9e2ef !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06) !important;
}

.admin-cockpit {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.customer-hub-workspace {
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.32fr) !important;
}

.admin-customer-table-card {
  grid-column: 1 / -1;
}

.admin-table-scroll {
  overflow: auto;
  width: 100%;
}

.admin-customer-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 940px;
  width: 100%;
}

.admin-customer-table th,
.admin-customer-table td {
  border-bottom: 1px solid #e5edf6;
  color: #111827;
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.admin-customer-table th {
  color: #5b6472;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-customer-table tbody tr {
  cursor: pointer;
  transition: background 160ms ease;
}

.admin-customer-table tbody tr:hover,
.admin-customer-table tbody tr.selected {
  background: #eef6ff;
}

.admin-table-person {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 240px;
}

.admin-table-person strong,
.admin-table-person small {
  display: block;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-table-person small {
  color: #5b6472;
}

.admin-table-pill {
  background: #f9fafb;
  border: 1px solid #d9e2ef;
  border-radius: 999px;
  color: #374151;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 8px;
}

.customer-action-card {
  align-self: start;
}

.customer-hub-workspace .admin-manager-card {
  background: #fff !important;
  border: 1px solid #d9e2ef !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06) !important;
  min-width: 0;
}

.admin-project-meta-grid,
.admin-project-action-bar {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 12px;
}

.admin-project-meta-grid span {
  background: #f9fafb;
  border: 1px solid #d9e2ef;
  border-radius: 12px;
  color: #374151;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.admin-project-meta-grid b {
  color: #5b6472;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-project-action-bar {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.danger-outline {
  border-color: #fecaca !important;
  color: #991b1b !important;
}

.admin-portal-nav button.active,
.admin-mobile-tabs button.active,
.admin-user-card.selected,
.admin-deck-card.selected {
  background: #eef6ff !important;
  border-color: #bfdbfe !important;
  color: #1d4ed8 !important;
}

.admin-locked-panel .warning-text,
.admin-page .warning-text {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  border-radius: 10px !important;
  color: #7f1d1d !important;
  display: inline-block !important;
  opacity: 1 !important;
  padding: 8px 10px !important;
}

.admin-health-grid {
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.admin-dashboard-grid {
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr) minmax(280px, 0.9fr) !important;
}

.customer-admin-panel { order: 10 !important; }
.project-admin-panel { order: 20 !important; }
.support-admin-panel { order: 30 !important; }
.commerce-admin-panel { order: 10 !important; }
.codes-admin-panel { order: 20 !important; }
.ai-admin-panel { order: 10 !important; }
.site-content-admin-panel { order: 20 !important; }
.background-admin-panel { order: 30 !important; }
.ios-analytics-panel { order: 40 !important; }

@media (max-width: 1080px) {
  .admin-portal-shell {
    grid-template-columns: 1fr !important;
    padding: 0 14px !important;
  }

  .admin-portal-sidebar {
    position: relative !important;
    top: auto !important;
  }

  .admin-portal-nav {
    display: none !important;
  }

  .admin-portal-topbar,
  .admin-section-hero,
  .admin-dashboard-grid {
    grid-template-columns: 1fr !important;
  }

  .admin-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .customer-hub-workspace {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .admin-health-grid,
  .admin-dashboard-grid {
    grid-template-columns: 1fr !important;
  }

  .admin-mobile-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Customer hub v2: table-first workspace with progressive detail drawers. */
.customer-table-workspace {
  animation: none !important;
  display: grid !important;
  gap: 12px !important;
  min-height: min(760px, calc(100vh - 240px));
  overflow: visible !important;
  position: relative;
  transform: none !important;
}

.customer-summary-strip {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.customer-summary-strip button {
  background: #fff;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 2px;
  min-height: 74px;
  padding: 10px 12px;
  text-align: left;
}

.customer-summary-strip button:hover,
.customer-summary-strip button:focus-visible,
.customer-summary-strip button.active {
  background: #f8fafc;
  box-shadow: inset 0 -3px 0 var(--customer-tone, #0ea5e9);
}

.customer-summary-strip .tone-blue { --customer-tone: #0ea5e9; }
.customer-summary-strip .tone-green { --customer-tone: #16a34a; }
.customer-summary-strip .tone-magenta { --customer-tone: #ec4899; }
.customer-summary-strip .tone-yellow { --customer-tone: #eab308; }
.customer-summary-strip .tone-purple { --customer-tone: #8b5cf6; }
.customer-summary-strip .tone-red { --customer-tone: #ef4444; }

.customer-summary-strip span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-summary-strip strong {
  color: #0f172a;
  font-size: 1.35rem;
}

.customer-summary-strip small {
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 800;
}

.customer-table-workspace .customer-filter-bar {
  background: #f8fafc;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1.2fr) repeat(4, minmax(132px, 0.65fr)) auto;
  padding: 10px;
}

.customer-table-workspace .customer-filter-bar label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.customer-table-workspace .customer-filter-bar label > span {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-table-workspace .customer-filter-bar input,
.customer-table-workspace .customer-filter-bar select {
  min-width: 0;
  width: 100%;
}

.customer-table-workspace .admin-customer-table-card {
  grid-column: auto !important;
  min-height: min(640px, calc(100vh - 340px));
  padding: 14px !important;
}

.customer-table-workspace .admin-table-scroll {
  border: 1px solid #e5edf6;
  border-radius: 12px;
  max-height: min(620px, calc(100vh - 395px));
  overflow: auto !important;
}

.customer-table-workspace .admin-customer-table {
  min-width: 1250px;
}

.customer-table-workspace .admin-customer-table th {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}

.customer-table-workspace .admin-customer-table tbody tr.selected {
  box-shadow: inset 4px 0 0 #0ea5e9;
}

.customer-person-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}

.customer-person-button:hover strong,
.customer-person-button:focus-visible strong {
  color: #2563eb;
}

.customer-person-button strong {
  align-items: center;
  display: flex !important;
  gap: 6px;
}

.customer-presence {
  background: #cbd5e1;
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  width: 8px;
}

.customer-presence.online {
  background: #16a34a;
  box-shadow: 0 0 0 3px #dcfce7;
}

.customer-presence.recent {
  background: #eab308;
}

.customer-table-stack {
  display: grid;
  gap: 3px;
  max-width: 220px;
  white-space: normal;
}

.customer-table-stack strong {
  color: #0f172a;
  font-size: 0.86rem;
}

.customer-table-stack small {
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.25;
}

.admin-table-pill.has-access {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #166534;
}

.admin-table-pill.no-access {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.customer-lead-label {
  color: #a16207;
  display: block;
  font-size: 0.7rem;
  font-weight: 900;
  margin-top: 5px;
}

.customer-attention-badges {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.customer-attention-badges button,
.customer-attention-badges span {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 999px;
  color: #6d28d9;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 4px 7px;
}

.customer-attention-badges button {
  cursor: pointer;
}

.customer-attention-badges button.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.customer-attention-badges small {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 800;
}

.customer-row-actions {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(2, minmax(68px, 1fr));
  width: 160px;
}

.customer-row-actions button,
.customer-timeline-event > button {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #0f172a;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  min-height: 29px;
  padding: 5px 7px;
}

.customer-row-actions button:hover,
.customer-row-actions button:focus-visible,
.customer-timeline-event > button:hover,
.customer-timeline-event > button:focus-visible {
  background: #e0f2fe;
  border-color: #7dd3fc;
}

.customer-row-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.customer-pagination {
  align-items: center;
  border-top: 1px solid #e5edf6;
  color: #64748b;
  display: flex;
  font-size: 0.8rem;
  font-weight: 800;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
}

.customer-pagination > div {
  display: flex;
  gap: 8px;
}

.customer-detail-drawer {
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  bottom: 22px;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.22);
  display: grid;
  gap: 14px;
  max-width: calc(100vw - 320px);
  overflow: auto;
  padding: 16px 16px 78px;
  position: fixed;
  right: 22px;
  top: 96px;
  width: min(560px, calc(100vw - 320px));
  z-index: 50;
}

.customer-detail-drawer.project-mode {
  bottom: 18px;
  grid-template-rows: auto minmax(0, 1fr);
  left: clamp(300px, 18vw, 420px);
  max-width: none;
  overflow: hidden;
  padding-bottom: 16px;
  right: 18px;
  width: auto;
}

.customer-drawer-head {
  align-items: start;
  background: #fff;
  border-bottom: 1px solid #e5edf6;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: -2px -2px 0;
  padding: 0 0 12px;
  position: sticky;
  top: -16px;
  z-index: 2;
}

.customer-drawer-head span,
.project-detail-card .admin-detail-head span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.customer-drawer-head h3,
.customer-drawer-head p {
  margin: 0;
}

.customer-drawer-head h3 {
  color: #0f172a;
  font-size: 1.2rem;
  line-height: 1.15;
}

.customer-drawer-head p {
  color: #64748b;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.customer-drawer-tabs,
.project-detail-tabs {
  background: #f1f5f9;
  border: 1px solid #d9e2ef;
  border-radius: 999px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 4px;
}

.customer-drawer-tabs button,
.project-detail-tabs button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #475569;
  cursor: pointer;
  font-weight: 900;
  min-height: 34px;
  padding: 7px 8px;
}

.customer-drawer-tabs button.active,
.project-detail-tabs button.active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.customer-drawer-panel,
.project-detail-panel {
  display: grid;
  gap: 12px;
}

.customer-drawer-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.customer-drawer-metrics article {
  background: #f8fafc;
  border: 1px solid #d9e2ef;
  border-radius: 12px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.customer-drawer-metrics span,
.customer-project-row small,
.customer-activity-list span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
}

.customer-drawer-metrics strong {
  color: #0f172a;
  font-size: 1.05rem;
}

.customer-activity-snapshot {
  border-bottom: 1px solid #e5edf6;
  border-top: 1px solid #e5edf6;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.customer-activity-snapshot > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
}

.customer-activity-snapshot > span + span {
  border-left: 1px solid #e5edf6;
}

.customer-activity-snapshot small,
.customer-activity-snapshot em {
  color: #64748b;
  font-size: 0.7rem;
  font-style: normal;
}

.customer-activity-snapshot small {
  font-weight: 900;
  text-transform: uppercase;
}

.customer-activity-snapshot strong {
  color: #0f172a;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.customer-quick-actions,
.customer-project-shortcuts,
.customer-project-list,
.customer-activity-list {
  display: grid;
  gap: 9px;
}

.customer-quick-actions button,
.customer-project-row,
.customer-activity-list p {
  background: #fff;
  border: 1px solid #d9e2ef;
  border-radius: 12px;
  color: #0f172a;
  margin: 0;
  padding: 11px;
}

.customer-quick-actions button {
  cursor: pointer;
  display: grid;
  gap: 4px;
  text-align: left;
}

.customer-quick-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.customer-quick-actions strong,
.customer-project-row strong,
.customer-activity-list strong {
  color: #0f172a;
  display: block;
  font-weight: 900;
}

.customer-timeline-event {
  align-items: start;
  border-bottom: 1px solid #e5edf6;
  display: grid;
  gap: 9px;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  padding: 10px 2px;
}

.customer-timeline-event > i {
  background: #0ea5e9;
  border-radius: 50%;
  height: 8px;
  margin-top: 5px;
  width: 8px;
}

.customer-timeline-event.severity-warning > i {
  background: #eab308;
}

.customer-timeline-event.severity-error > i {
  background: #ef4444;
}

.customer-timeline-event > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.customer-timeline-event span {
  text-transform: uppercase;
}

.customer-timeline-event p {
  background: transparent;
  border: 0;
  color: #475569;
  font-size: 0.8rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  padding: 0;
}

.customer-timeline-event small {
  color: #64748b;
  font-size: 0.7rem;
}

.customer-quick-actions span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.customer-project-toolbar {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 180px) auto;
}

.customer-project-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
  text-align: left;
}

.customer-project-row.selected,
.customer-project-row:hover,
.customer-project-row:focus-within {
  border-color: #7dd3fc;
  box-shadow: inset 4px 0 0 #0ea5e9;
}

.customer-project-main {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 10px;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  padding: 0;
  text-align: left;
  width: 100%;
}

.customer-project-row.compact .customer-project-main {
  grid-template-columns: minmax(0, 1fr) auto;
}

.customer-project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.customer-project-actions button {
  background: #f8fafc;
  border: 1px solid #d9e2ef;
  border-radius: 999px;
  color: #0f172a;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
  min-height: 30px;
  padding: 5px 10px;
}

.customer-project-actions button:hover,
.customer-project-actions button:focus-visible {
  background: #e0f2fe;
  border-color: #7dd3fc;
}

.customer-project-actions .reset-attempts {
  background: #fff7f7;
  border-color: #fecaca;
  color: #b91c1c;
}

.customer-project-actions .reset-attempts:hover,
.customer-project-actions .reset-attempts:focus-visible {
  background: #fee2e2;
  border-color: #f87171;
}

.customer-project-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.customer-project-action-message {
  border: 1px solid #bae6fd;
  border-radius: 8px;
  color: #075985;
  font-size: 0.82rem;
  font-weight: 800;
  margin: 10px 16px 0;
  padding: 9px 11px;
}

.customer-project-action-message.success {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}

.customer-project-action-message.error {
  background: #fff1f2;
  border-color: #fda4af;
  color: #9f1239;
}

.customer-project-row .admin-deck-mini {
  height: 62px;
  width: 62px;
}

.customer-detail-drawer .admin-manager-card,
.customer-detail-drawer .admin-detail-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.customer-detail-drawer .admin-profile-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-detail-card {
  display: grid;
  gap: 14px;
}

.customer-detail-drawer.project-mode .customer-drawer-head {
  border-bottom: 0;
  grid-template-columns: 1fr;
  justify-items: end;
  margin: -2px -2px -4px;
  padding: 0;
  position: static;
}

.customer-detail-drawer.project-mode .customer-drawer-head > div {
  display: none;
}

.customer-detail-drawer.project-mode .project-detail-card {
  gap: 12px;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.customer-detail-drawer.project-mode .project-detail-panel {
  align-content: start;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.project-detail-card .admin-detail-head {
  align-items: start;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.project-detail-head-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.project-detail-card .admin-project-meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-detail-card .admin-project-meta-grid span {
  min-width: 0;
  overflow-wrap: anywhere;
}

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

.project-visual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.project-visual-actions .secondary-button {
  min-height: 36px;
  padding: 8px 12px;
}

.project-detail-card .admin-card-preview-grid {
  max-height: calc(100vh - 310px);
  overflow: auto;
}

.project-detail-card .admin-board-inspector {
  max-height: calc(100vh - 330px);
  overflow: auto;
}

.customer-detail-drawer.project-mode .project-detail-card .admin-card-preview-grid {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  max-height: none;
  overflow: visible;
}

.customer-detail-drawer.project-mode .project-detail-card .admin-board-inspector {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(88px, 190px);
  max-height: none;
  overflow: visible;
}

.customer-detail-drawer.project-mode .admin-board-inspector .board-preview {
  justify-self: center;
  max-height: none;
  width: min(100%, 620px);
}

.customer-detail-drawer.project-mode .admin-board-picker {
  align-content: start;
  display: flex;
  max-height: calc(100vh - 300px);
  overflow: auto;
}

.customer-detail-drawer.project-mode .admin-board-list {
  display: none;
}

@media (max-width: 1180px) {
  .customer-detail-drawer,
  .customer-detail-drawer.project-mode {
    left: auto;
    max-width: calc(100vw - 40px);
    overflow: auto;
    right: 20px;
    width: min(720px, calc(100vw - 40px));
  }

  .customer-table-workspace .customer-filter-bar,
  .customer-project-toolbar {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .customer-detail-drawer,
  .customer-detail-drawer.project-mode {
    border-radius: 0;
    bottom: 0;
    left: 0;
    max-width: none;
    right: 0;
    top: 0;
    width: auto;
  }

  .customer-drawer-metrics,
  .customer-detail-drawer .admin-profile-form,
  .project-detail-card .admin-project-meta-grid {
    grid-template-columns: 1fr;
  }

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

  .customer-summary-strip button {
    min-height: 68px;
  }

  .customer-table-workspace .admin-customer-table-card {
    padding: 10px !important;
  }

  .customer-table-workspace .admin-table-scroll {
    border: 0;
    max-height: none;
  }

  .customer-table-workspace .admin-customer-table,
  .customer-table-workspace .admin-customer-table tbody {
    display: block;
    min-width: 0;
  }

  .customer-table-workspace .admin-customer-table thead {
    display: none;
  }

  .customer-table-workspace .admin-customer-table tbody {
    display: grid;
    gap: 10px;
  }

  .customer-table-workspace .admin-customer-table tbody tr {
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    display: grid;
    overflow: hidden;
  }

  .customer-table-workspace .admin-customer-table td {
    align-items: start;
    display: grid;
    gap: 8px;
    grid-template-columns: 84px minmax(0, 1fr);
    padding: 9px 10px;
    white-space: normal;
  }

  .customer-table-workspace .admin-customer-table td::before {
    color: #64748b;
    content: attr(data-label);
    font-size: 0.66rem;
    font-weight: 900;
    padding-top: 4px;
    text-transform: uppercase;
  }

  .customer-table-workspace .admin-customer-table td:last-child {
    border-bottom: 0;
  }

  .customer-table-stack {
    max-width: none;
  }

  .customer-row-actions {
    width: 100%;
  }

  .customer-pagination {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .customer-pagination > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-activity-snapshot {
    grid-template-columns: 1fr;
  }

  .customer-activity-snapshot > span + span {
    border-left: 0;
    border-top: 1px solid #e5edf6;
  }

  .customer-drawer-tabs,
  .project-detail-tabs {
    border-radius: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-project-main {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .customer-project-row.compact .customer-project-main,
  .project-visual-head,
  .customer-detail-drawer.project-mode .project-detail-card .admin-board-inspector {
    grid-template-columns: 1fr;
  }

  .customer-project-row em,
  .customer-project-actions {
    grid-column: 1 / -1;
  }

  .customer-project-actions,
  .project-visual-actions {
    justify-content: flex-start;
  }
}

/* Keep the storefront shell overrides after the shared site theme. */
.shop-catalog-page {
  max-width: 1320px;
}

@media (min-width: 981px) {
  .shop-catalog-hero {
    grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
    min-height: 650px;
    padding: clamp(42px, 6vw, 76px);
    position: relative;
  }
}

@media (max-width: 980px) {
  .shop-catalog-hero {
    grid-template-columns: 1fr;
  }
}
/* App Health */
.app-health-panel { display: grid; gap: 18px; }
.app-health-hero { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; padding: 26px; border-radius: 24px; color: white; background: linear-gradient(135deg, #172554, #4338ca 58%, #7c3aed); }
.app-health-hero h3 { margin: 4px 0 8px; font-size: clamp(1.45rem, 3vw, 2.3rem); }
.app-health-hero p { margin: 0; opacity: .82; }
.app-health-hero select { min-height: 42px; border-radius: 12px; padding: 0 12px; }
.app-health-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.app-health-summary article { padding: 18px; border: 1px solid var(--line, #e5e7eb); border-radius: 18px; background: white; display: grid; gap: 5px; }
.app-health-summary article span { color: #64748b; font-size: .8rem; }
.app-health-summary article strong { font-size: 1.8rem; }
.app-health-summary article.danger { border-color: #fecaca; background: #fff1f2; color: #b91c1c; }
.app-health-controls { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; padding: 14px 18px; border-radius: 16px; background: #f8fafc; border: 1px solid #e2e8f0; }
.app-health-controls label { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.app-health-list { display: grid; gap: 10px; }
.app-health-issue { border: 1px solid #e2e8f0; border-left: 5px solid #94a3b8; border-radius: 16px; overflow: hidden; background: white; }
.app-health-issue.severity-critical { border-left-color: #dc2626; }
.app-health-issue.severity-high { border-left-color: #ea580c; }
.app-health-issue.severity-medium { border-left-color: #d97706; }
.app-health-issue-head { border: 0; width: 100%; background: transparent; padding: 16px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; text-align: left; }
.app-health-issue-head div { display: grid; gap: 3px; }
.app-health-issue-head strong { text-transform: capitalize; }
.app-health-issue-head small, .app-health-issue-head em { color: #64748b; font-style: normal; }
.app-health-detail { padding: 0 16px 18px; display: grid; gap: 14px; border-top: 1px solid #f1f5f9; }
.app-health-meta { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 14px; color: #475569; font-size: .82rem; }
.app-health-context { display: flex; flex-wrap: wrap; gap: 8px; }
.app-health-context span { display: grid; padding: 8px 10px; border-radius: 10px; background: #f1f5f9; }
.app-health-context small { color: #64748b; }
.app-health-resolution { display: grid; grid-template-columns: 160px 180px minmax(260px, 1fr); gap: 10px; }
.app-health-resolution select, .app-health-resolution input, .app-health-resolution textarea { border: 1px solid #cbd5e1; border-radius: 12px; padding: 10px; min-height: 44px; }
.app-health-resolution textarea { min-height: 76px; resize: vertical; }
.app-health-empty { padding: 32px; border: 1px dashed #cbd5e1; border-radius: 18px; display: grid; gap: 5px; text-align: center; color: #64748b; }
@media (max-width: 760px) {
  .app-health-hero { align-items: stretch; flex-direction: column; }
  .app-health-summary { grid-template-columns: repeat(2, 1fr); }
  .app-health-issue-head { grid-template-columns: auto minmax(0, 1fr) auto; }
  .app-health-issue-head em { grid-column: 2 / -1; }
  .app-health-resolution { grid-template-columns: 1fr; }
}
.landing-redesign .occasion-context-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 20px;
}

.landing-redesign .occasion-context-links a,
.landing-redesign .occasion-product-planning a {
  color: #633c29;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.landing-redesign .occasion-product-planning {
  margin: 28px 0;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid #e4dacb;
  border-radius: 24px;
  background: #faf7ef;
}

.landing-redesign .occasion-product-planning > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.landing-redesign .occasion-product-planning h2 { margin: 0 0 24px; }
.landing-redesign .occasion-product-planning h3 { margin: 0 0 10px; }
.landing-redesign .occasion-product-planning p { line-height: 1.7; }

@media (max-width: 760px) {
  .landing-redesign .occasion-product-planning > div { grid-template-columns: 1fr; }
}

/* Keep the two owned bridal previews large enough to inspect. */
.landing-redesign .content-page-bridal-shower-loteria-guide .content-image-gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 1101px) {
  .landing-redesign .content-page-bridal-shower-loteria-guide .content-mid-cta,
  .landing-redesign .content-page-wedding-loteria .content-mid-cta { display: none; }
}
@media (max-width: 760px) {
  .landing-redesign .content-page-bridal-shower-loteria-guide .content-image-gallery-grid {
    grid-template-columns: 1fr;
  }
}

body.ios-console-open {
  margin: 0;
  min-width: 320px;
  background: #f5f4ef;
  color: #17283c;
}

.ios-console-shell,
.ios-console-auth-shell {
  --ios-ink: #17283c;
  --ios-muted: #687482;
  --ios-border: #e4e4dd;
  --ios-canvas: #f5f4ef;
  --ios-panel: #fffefa;
  --ios-navy: #112b43;
  --ios-coral: #e65d58;
  --ios-mint: #2f9c86;
  --ios-gold: #dca72c;
  --ios-blue: #4c82b7;
  --ios-plum: #7a668f;
  --ios-shadow: 0 16px 40px rgba(20, 38, 54, 0.07);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ios-ink);
  box-sizing: border-box;
}

.ios-console-shell *,
.ios-console-shell *::before,
.ios-console-shell *::after,
.ios-console-auth-shell *,
.ios-console-auth-shell *::before,
.ios-console-auth-shell *::after {
  box-sizing: border-box;
}

.ios-console-shell button,
.ios-console-shell select,
.ios-console-auth-shell button {
  font: inherit;
}

.ios-console-shell button:focus-visible,
.ios-console-shell select:focus-visible,
.ios-console-auth-shell button:focus-visible {
  outline: 3px solid rgba(76, 130, 183, 0.35);
  outline-offset: 2px;
}

.ios-console-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  background:
    radial-gradient(circle at 77% 0%, rgba(242, 183, 154, 0.17), transparent 27rem),
    radial-gradient(circle at 12% 92%, rgba(124, 192, 171, 0.13), transparent 24rem),
    var(--ios-canvas);
}

.ios-console-icon {
  display: block;
  flex: 0 0 auto;
}

.ios-console-rail {
  position: sticky;
  top: 0;
  z-index: 30;
  align-self: start;
  height: 100vh;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden auto;
  padding: 22px 16px 18px;
  color: #f8fbfd;
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 154, 129, 0.17), transparent 12rem),
    linear-gradient(165deg, #163b56 0%, #102b43 43%, #10263b 100%);
  box-shadow: 12px 0 38px rgba(17, 43, 67, 0.09);
}

.ios-console-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 2px 8px 24px;
}

.ios-console-brand img {
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  border-radius: 12px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.2);
}

.ios-console-brand > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ios-console-brand strong {
  overflow: hidden;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ios-console-brand span {
  color: rgba(238, 247, 251, 0.65);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ios-console-rail-close {
  display: none;
}

.ios-console-rail nav {
  display: grid;
  gap: 5px;
}

.ios-console-nav-label {
  padding: 0 12px 8px;
  color: rgba(238, 247, 251, 0.48);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ios-console-rail nav button {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: rgba(246, 250, 252, 0.76);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.ios-console-rail nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(2px);
}

.ios-console-rail nav button.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(110deg, rgba(234, 100, 91, 0.24), rgba(255, 255, 255, 0.09));
  box-shadow: inset 3px 0 0 #f18878;
}

.ios-console-nav-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: rgba(238, 247, 251, 0.75);
  background: rgba(255, 255, 255, 0.07);
}

.ios-console-rail nav button.active .ios-console-nav-icon {
  color: #fff3ee;
  background: rgba(240, 119, 101, 0.2);
}

.ios-console-rail nav button > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ios-console-rail nav strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ios-console-rail nav small {
  overflow: hidden;
  color: rgba(238, 247, 251, 0.47);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ios-console-rail nav em {
  padding: 3px 5px;
  border-radius: 5px;
  color: rgba(244, 249, 252, 0.55);
  background: rgba(255, 255, 255, 0.07);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ios-console-rail-foot {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 22px;
}

.ios-console-rail-foot button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  color: rgba(238, 247, 251, 0.64);
  background: transparent;
  font-size: 11.5px;
  text-align: left;
  cursor: pointer;
}

.ios-console-rail-foot button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.ios-console-rail-foot small {
  margin-top: 10px;
  padding: 0 10px;
  color: rgba(238, 247, 251, 0.34);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ios-console-scrim {
  display: none;
}

.ios-console-main {
  min-width: 0;
  width: 100%;
}

.ios-console-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 21px clamp(20px, 2.5vw, 40px) 0;
  border-bottom: 1px solid rgba(216, 216, 208, 0.88);
  background: rgba(248, 247, 242, 0.92);
  backdrop-filter: blur(18px);
}

.ios-console-heading-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 17px;
}

.ios-console-mobile-menu {
  display: none;
}

.ios-console-title {
  min-width: 0;
  flex: 1;
}

.ios-console-kicker {
  display: block;
  margin: 0 0 4px;
  color: #a44d4c;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ios-console-title > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
}

.ios-console-title h1 {
  margin: 0;
  color: var(--ios-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.ios-console-title p {
  margin: 6px 0 0;
  color: var(--ios-muted);
  font-size: 12.5px;
}

.ios-console-freshness {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--ios-border);
  border-radius: 999px;
  color: #5d6976;
  background: rgba(255, 255, 255, 0.72);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ios-console-freshness i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ea5ac;
}

.ios-console-freshness.good i {
  background: var(--ios-mint);
  box-shadow: 0 0 0 3px rgba(47, 156, 134, 0.14);
}

.ios-console-freshness.warning i {
  background: var(--ios-gold);
  box-shadow: 0 0 0 3px rgba(220, 167, 44, 0.14);
}

.ios-console-freshness.danger i {
  background: var(--ios-coral);
}

.ios-console-account {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.ios-console-account > div {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: right;
}

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

.ios-console-account strong {
  font-size: 11.5px;
}

.ios-console-account div span {
  color: var(--ios-muted);
  font-size: 10px;
}

.ios-console-account > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid #fff;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--ios-coral), #bd5c78);
  box-shadow: 0 7px 18px rgba(177, 83, 90, 0.18);
  font-size: 12px;
  font-weight: 850;
}

.ios-console-toolbar {
  min-width: 0;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 12px;
  scrollbar-width: thin;
}

.ios-console-periods {
  display: flex;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid #dcddd7;
  border-radius: 10px;
  background: #ecece7;
}

.ios-console-periods button {
  padding: 8px 11px;
  border: 0;
  border-radius: 7px;
  color: #687482;
  background: transparent;
  font-size: 10.5px;
  font-weight: 780;
  cursor: pointer;
}

.ios-console-periods button.active {
  color: var(--ios-ink);
  background: #fff;
  box-shadow: 0 3px 11px rgba(31, 44, 57, 0.08);
}

.ios-console-periods button:disabled:not(.active) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #9a9f9f;
  cursor: not-allowed;
}

.ios-console-periods button small {
  padding: 2px 4px;
  border-radius: 4px;
  color: #8a8f90;
  background: rgba(255, 255, 255, 0.7);
  font-size: 6.5px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ios-console-filter {
  min-width: 142px;
  display: grid;
  gap: 3px;
}

.ios-console-filter.tester {
  min-width: 164px;
}

.ios-console-filter label {
  padding-left: 3px;
  color: #7a828a;
  font-size: 8.5px;
  font-weight: 820;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ios-console-filter select {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 27px 0 9px;
  border: 1px solid #dfe0da;
  border-radius: 9px;
  color: #344354;
  background: #fffefa;
  font-size: 10.5px;
  font-weight: 680;
}

.ios-console-filter select:disabled {
  color: #7f878e;
  background: #f0f0eb;
  opacity: 1;
}

.ios-console-refresh {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid #163b56;
  border-radius: 9px;
  color: #fff;
  background: #163b56;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
}

.ios-console-refresh:hover {
  background: #0f2e47;
}

.ios-console-refresh:disabled {
  cursor: wait;
  opacity: 0.68;
}

.ios-console-refresh:disabled svg {
  animation: ios-console-spin 1s linear infinite;
}

.ios-console-content {
  width: 100%;
  max-width: 1740px;
  min-width: 0;
  margin: 0 auto;
  padding: 22px clamp(20px, 2.5vw, 40px) 48px;
}

.ios-console-report-context {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 13px;
  color: #7a838c;
  font-size: 9.5px;
}

.ios-console-report-context span {
  position: relative;
}

.ios-console-report-context span + span::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #b8bcb9;
}

.ios-console-today {
  min-width: 0;
}

.ios-console-kpi-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 11px;
}

.ios-console-kpi {
  position: relative;
  min-width: 0;
  min-height: 169px;
  overflow: hidden;
  padding: 15px 15px 13px;
  border: 1px solid var(--ios-border);
  border-radius: 15px;
  background: rgba(255, 254, 250, 0.96);
  box-shadow: 0 8px 23px rgba(25, 42, 57, 0.04);
}

.ios-console-kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: #b8c2ca;
}

.ios-console-kpi.accent-mint::before { background: var(--ios-mint); }
.ios-console-kpi.accent-coral::before { background: var(--ios-coral); }
.ios-console-kpi.accent-blue::before { background: var(--ios-blue); }
.ios-console-kpi.accent-plum::before { background: var(--ios-plum); }
.ios-console-kpi.accent-gold::before { background: var(--ios-gold); }

.ios-console-kpi header {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 7px;
  color: #66717d;
  font-size: 10px;
  font-weight: 810;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ios-console-info-tip {
  color: #9aa1a5;
  cursor: help;
}

.ios-console-kpi > strong {
  display: block;
  overflow: hidden;
  margin-top: 10px;
  color: var(--ios-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 2.6vw, 39px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ios-console-kpi.is-unavailable > strong {
  color: #a8adb0;
}

.ios-console-delta {
  min-height: 16px;
  margin-top: 7px;
  color: #77818a;
  font-size: 9.5px;
  font-weight: 740;
}

.ios-console-delta.up { color: #287f6d; }
.ios-console-delta.down { color: #ad5350; }

.ios-console-kpi p {
  margin: 8px 0 0;
  color: #838b92;
  font-size: 9px;
  line-height: 1.4;
}

.ios-console-inline-status {
  position: absolute;
  right: 10px;
  bottom: 9px;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.ios-console-inline-status.warning {
  color: #795814;
  background: #fff3c9;
}

.ios-console-overview-grid,
.ios-console-detail-grid {
  min-width: 0;
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.ios-console-overview-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(250px, 0.72fr);
}

.ios-console-detail-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.ios-console-panel {
  min-width: 0;
  overflow: hidden;
  padding: 17px;
  border: 1px solid var(--ios-border);
  border-radius: 16px;
  background: rgba(255, 254, 250, 0.96);
  box-shadow: 0 8px 26px rgba(25, 42, 57, 0.045);
}

.ios-console-panel-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.ios-console-panel-head h3 {
  margin: 0;
  color: #26384a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  letter-spacing: -0.015em;
}

.ios-console-panel-head p {
  margin: 3px 0 0;
  color: #7b848c;
  font-size: 9.5px;
  line-height: 1.4;
}

.ios-console-eyebrow {
  flex: 0 0 auto;
  padding: 4px 6px;
  border-radius: 6px;
  color: #7a6550;
  background: #f3ede3;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ios-console-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #78818a;
  font-size: 8px;
  font-weight: 700;
}

.ios-console-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ios-console-legend i {
  width: 13px;
  height: 2px;
  border-radius: 2px;
}

.ios-console-legend i.previous {
  background: repeating-linear-gradient(90deg, #aab0b4 0 3px, transparent 3px 5px);
}

.ios-console-chart-wrap {
  min-width: 0;
  width: 100%;
}

.ios-console-chart-wrap svg {
  display: block;
  width: 100%;
  height: 175px;
  overflow: visible;
}

.ios-console-chart-wrap .grid {
  stroke: #ecece7;
  stroke-width: 1;
}

.ios-console-chart-wrap .current-line,
.ios-console-chart-wrap .previous-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ios-console-chart-wrap .previous-line {
  stroke: #b8bdc0;
  stroke-width: 2;
  stroke-dasharray: 5 5;
}

.ios-console-chart-wrap text {
  fill: #8a9298;
  font-size: 8px;
  font-weight: 650;
}

.ios-console-single-point {
  height: 175px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  border-radius: 12px;
  background: linear-gradient(145deg, #faf9f4, #f4f3ed);
}

.ios-console-single-point span,
.ios-console-single-point small {
  color: #838c93;
  font-size: 9px;
  font-weight: 700;
}

.ios-console-single-point strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
}

.ios-console-panel-state,
.ios-console-all-clear {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  border: 1px dashed #d9dad4;
  border-radius: 12px;
  color: #78818a;
  background: #faf9f5;
  text-align: left;
}

.ios-console-panel-state.compact {
  min-height: 125px;
}

.ios-console-panel-state > span,
.ios-console-all-clear > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: #768692;
  background: #ecefeb;
}

.ios-console-panel-state strong,
.ios-console-all-clear strong {
  display: block;
  color: #56636e;
  font-size: 11px;
}

.ios-console-panel-state p,
.ios-console-all-clear p {
  margin: 3px 0 0;
  font-size: 9.5px;
  line-height: 1.4;
}

.ios-console-all-clear {
  min-height: 180px;
  border-style: solid;
  border-color: #dcebe6;
  color: #558072;
  background: #f3faf7;
}

.ios-console-all-clear > span {
  color: #267f6c;
  background: #ddefe8;
}

.ios-console-alert-list {
  display: grid;
  gap: 8px;
}

.ios-console-alert {
  display: flex;
  gap: 9px;
  padding: 10px;
  border: 1px solid #e6e3d9;
  border-radius: 11px;
  background: #faf9f5;
}

.ios-console-alert > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: #6f7f89;
  background: #edf0f0;
}

.ios-console-alert.warning > span { color: #896516; background: #fff0bd; }
.ios-console-alert.critical > span { color: #a74440; background: #fce0dc; }
.ios-console-alert.success > span { color: #287f6d; background: #ddefe8; }

.ios-console-alert strong {
  display: block;
  color: #394957;
  font-size: 10px;
}

.ios-console-alert p {
  margin: 3px 0 0;
  color: #7b848b;
  font-size: 9px;
  line-height: 1.4;
}

.ios-console-journey-steps,
.ios-console-adoption-list {
  display: grid;
  gap: 12px;
}

.ios-console-journey-step {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.ios-console-step-number {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe2dd;
  border-radius: 9px;
  color: #536879;
  background: #f3f4f0;
  font-size: 9px;
  font-weight: 850;
}

.ios-console-step-content {
  min-width: 0;
}

.ios-console-step-content > div:first-child,
.ios-console-adoption-row > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ios-console-step-content strong,
.ios-console-adoption-row strong {
  overflow: hidden;
  color: #435260;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ios-console-step-content b {
  color: #263a4b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.ios-console-progress {
  position: relative;
  width: 100%;
  height: 7px;
  overflow: hidden;
  margin-top: 5px;
  border-radius: 999px;
  background: #ecece7;
}

.ios-console-progress i {
  position: absolute;
  inset: 0 auto 0 0;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #e56b61, #eda58b);
}

.ios-console-journey-step:nth-child(2) .ios-console-progress i { background: linear-gradient(90deg, #d97370, #d99b89); }
.ios-console-journey-step:nth-child(3) .ios-console-progress i { background: linear-gradient(90deg, #88739d, #b191ac); }
.ios-console-journey-step:nth-child(4) .ios-console-progress i { background: linear-gradient(90deg, #368f7e, #72b6a4); }

.ios-console-step-content small {
  display: block;
  margin-top: 4px;
  color: #8a9297;
  font-size: 8.5px;
}

.ios-console-panel-caveat {
  margin: 13px 0 0;
  padding: 9px 10px;
  border-radius: 9px;
  color: #777e84;
  background: #f3f2ed;
  font-size: 8.5px;
  line-height: 1.45;
}

.ios-console-adoption-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 12px;
  align-items: end;
}

.ios-console-adoption-row > div:first-child {
  grid-column: 1 / -1;
}

.ios-console-adoption-row span {
  color: #848c92;
  font-size: 8.5px;
}

.ios-console-adoption-row .ios-console-progress {
  height: 8px;
}

.ios-console-adoption-row .ios-console-progress i {
  background: linear-gradient(90deg, #318f80, #7eb9a8);
}

.ios-console-adoption-row > b {
  color: #53616d;
  font-size: 8.5px;
  font-weight: 760;
  white-space: nowrap;
}

.ios-console-sources {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.ios-console-source {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--ios-border);
  border-radius: 12px;
  background: rgba(255, 254, 250, 0.78);
}

.ios-console-source > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: #367e70;
  background: #e1f0eb;
}

.ios-console-source.unavailable > span {
  color: #77818a;
  background: #ebeeed;
}

.ios-experience-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ios-experience-feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.ios-experience-feature-grid article {
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(17, 43, 67, .1);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(243,248,247,.9));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
}

.ios-experience-feature-grid article > span {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #277f70;
  background: #dff4ee;
}

.ios-experience-feature-grid article strong,
.ios-experience-feature-grid article p { display: block; min-width: 0; }
.ios-experience-feature-grid article strong { color: var(--ios-navy); font-size: 14px; }
.ios-experience-feature-grid article p { margin: 3px 0 0; color: #637487; font-size: 12px; line-height: 1.35; }
.ios-experience-feature-grid article > b { grid-column: 1 / -1; color: var(--ios-navy); font-size: 25px; }
.ios-experience-feature-grid article.unavailable { background: #f6f6f4; opacity: .76; }
.ios-experience-feature-grid article.unavailable > span { color: #718093; background: #e9edef; }

.ios-experience-mix-list { display: grid; gap: 7px; margin-top: 16px; }
.ios-experience-mix-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 4px;
  border-bottom: 1px solid rgba(17, 43, 67, .08);
}
.ios-experience-mix-row:last-child { border-bottom: 0; }
.ios-experience-rank { color: #8a98a4; font-weight: 800; font-size: 12px; text-align: center; }
.ios-experience-mix-row strong { display: block; color: var(--ios-navy); font-size: 14px; }
.ios-experience-mix-row .ios-console-progress { height: 6px; margin: 7px 0 5px; }
.ios-experience-mix-row .ios-console-progress i { background: linear-gradient(90deg, #e65d58, #f4aa6a); }
.ios-experience-mix-row small { color: #7a8996; font-size: 11px; }
.ios-experience-mix-row > b { color: var(--ios-navy); font-size: 19px; text-align: right; }
.ios-experience-mix-row > b small { display: block; margin-top: 2px; font-weight: 700; }
.ios-experience-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ios-experience-voice-ranking{display:grid;margin-top:14px}.ios-experience-voice-ranking article{display:grid;grid-template-columns:28px minmax(0,1fr) auto 62px;gap:12px;align-items:center;padding:12px 2px;border-bottom:1px solid rgba(17,43,67,.08)}.ios-experience-voice-ranking article>span{color:#91a0aa;font-size:12px;font-weight:900;text-align:center}.ios-experience-voice-ranking strong{display:block;color:var(--ios-navy);font-size:14px}.ios-experience-voice-ranking small{display:block;margin-top:3px;color:#7b8a96;font-size:10px}.ios-experience-voice-ranking .ios-console-progress{height:5px;margin-top:7px}.ios-experience-voice-ranking article>b{color:var(--ios-navy);font-size:18px;text-align:right}.ios-experience-voice-ranking em{padding:5px 7px;border-radius:999px;font-size:10px;font-style:normal;font-weight:900;text-align:center}.ios-experience-voice-ranking em.up{color:#247967;background:#dff4ee}.ios-experience-voice-ranking em.down{color:#a44f4f;background:#f7e1e1}.ios-experience-voice-ranking em.neutral{color:#657580;background:#eceff0}
.ios-experience-trend-grid{display:grid;grid-template-columns:minmax(90px,auto) repeat(auto-fit,minmax(35px,1fr));gap:7px;align-items:center;margin-top:15px;overflow-x:auto}.ios-experience-trend-grid>b{color:#84929d;font-size:9px;text-align:center}.ios-experience-trend-grid>strong{color:var(--ios-navy);font-size:11px}.ios-experience-trend-grid>i{padding:8px 4px;border-radius:8px;color:#285d57;background:#e3f2ed;font-size:11px;font-style:normal;font-weight:900;text-align:center}
.ios-experience-heat-grid{display:grid;gap:6px;margin-top:15px}.ios-experience-heat-grid>div{display:grid;grid-template-columns:34px repeat(8,1fr);gap:5px;align-items:center}.ios-experience-heat-grid strong{color:#6f808d;font-size:9px}.ios-experience-heat-grid i{height:19px;border-radius:5px;background:#e65d58}

@media (max-width: 1180px) {
  .ios-experience-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ios-experience-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .ios-experience-kpis,
  .ios-experience-feature-grid,
  .ios-experience-notes { grid-template-columns: 1fr; }
  .ios-experience-voice-ranking article{grid-template-columns:24px minmax(0,1fr) auto}.ios-experience-voice-ranking em{grid-column:2/-1;justify-self:start}.ios-experience-heat-grid>div{grid-template-columns:30px repeat(8,18px);overflow-x:auto}
}

.ios-console-source.warning > span {
  color: #835f1c;
  background: #f8edcc;
}

.ios-console-source.danger > span {
  color: #9b4643;
  background: #f9dfdb;
}

.ios-console-source.neutral > span {
  color: #77818a;
  background: #ebeeed;
}

.ios-console-source.coverage > span {
  color: #835f1c;
  background: #f8edcc;
}

.ios-console-source div {
  min-width: 0;
}

.ios-console-source strong {
  display: block;
  overflow: hidden;
  color: #43515e;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ios-console-source p {
  margin: 3px 0 0;
  color: #858d93;
  font-size: 8px;
  line-height: 1.35;
}

.ios-console-global-state {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px 13px;
  border: 1px solid #e2d4a4;
  border-radius: 13px;
  color: #6f581d;
  background: #fff7da;
}

.ios-console-global-state.danger {
  border-color: #e9b9b3;
  color: #873f3c;
  background: #fff0ed;
}

.ios-console-global-state.neutral {
  border-color: #d9e1e2;
  color: #546a78;
  background: #f0f5f5;
}

.ios-console-global-state.compact {
  padding: 9px 12px;
}

.ios-console-global-state > span {
  flex: 0 0 auto;
}

.ios-console-global-state > div {
  min-width: 0;
  flex: 1;
}

.ios-console-global-state strong {
  display: block;
  font-size: 11px;
}

.ios-console-global-state p {
  margin: 2px 0 0;
  font-size: 9.5px;
}

.ios-console-global-state button {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 255, 255, 0.64);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.ios-console-refreshing-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  color: #667681;
  font-size: 9px;
  font-weight: 700;
}

.ios-console-refreshing-line span,
.ios-console-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid #c9d4d4;
  border-top-color: var(--ios-mint);
  border-radius: 50%;
  animation: ios-console-spin 0.8s linear infinite;
}

.ios-console-skeleton {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: #ecece7;
}

.ios-console-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: ios-console-shimmer 1.4s infinite;
}

.ios-console-skeleton.short { width: 42%; height: 10px; }
.ios-console-skeleton.medium { width: 58%; height: 13px; }
.ios-console-skeleton.value { width: 48%; height: 38px; margin-top: 13px; }
.ios-console-skeleton.copy { width: 88%; height: 27px; margin-top: 11px; }
.ios-console-skeleton.chart { width: 100%; height: 175px; margin-top: 18px; }

.ios-console-loading-panel {
  min-height: 250px;
}

.ios-console-loading-panel.tall {
  min-height: 330px;
}

.ios-console-coming-soon {
  max-width: 650px;
  margin: clamp(35px, 9vh, 100px) auto;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--ios-border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 0%, rgba(242, 156, 135, 0.22), transparent 15rem),
    radial-gradient(circle at 10% 100%, rgba(93, 171, 150, 0.15), transparent 14rem),
    #fffefa;
  box-shadow: var(--ios-shadow);
  text-align: center;
}

.ios-console-coming-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #e56b61, #ad6382);
  box-shadow: 0 12px 25px rgba(185, 90, 91, 0.18);
}

.ios-console-coming-soon h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 5vw, 42px);
}

.ios-console-coming-soon > p:not(.ios-console-kicker) {
  max-width: 510px;
  margin: 12px auto 23px;
  color: var(--ios-muted);
  font-size: 13px;
  line-height: 1.65;
}

.ios-console-primary-button,
.ios-console-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 41px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.ios-console-primary-button {
  border: 1px solid #163b56;
  color: #fff;
  background: #163b56;
}

.ios-console-secondary-button {
  border: 1px solid #d9dbd7;
  color: #43515e;
  background: #fff;
}

.ios-console-auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 15%, rgba(234, 106, 94, 0.18), transparent 25rem),
    radial-gradient(circle at 82% 83%, rgba(63, 151, 132, 0.17), transparent 24rem),
    #f5f4ef;
}

.ios-console-auth-card {
  position: relative;
  width: min(100%, 470px);
  overflow: hidden;
  padding: 41px;
  border: 1px solid #e1e1da;
  border-radius: 25px;
  background: rgba(255, 254, 250, 0.94);
  box-shadow: 0 28px 70px rgba(22, 45, 65, 0.12);
  text-align: center;
}

.ios-console-auth-card > img {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 16px;
}

.ios-console-auth-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  border-radius: 14px;
  color: #fff;
  background: #163b56;
}

.ios-console-auth-card h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.ios-console-auth-card > p:not(.ios-console-kicker) {
  margin: 12px auto 23px;
  color: var(--ios-muted);
  font-size: 13px;
  line-height: 1.6;
}

.ios-console-auth-card > div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ios-console-auth-card.is-checking .ios-console-spinner {
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto 20px;
  border-width: 3px;
}

@keyframes ios-console-spin { to { transform: rotate(360deg); } }
@keyframes ios-console-shimmer { 100% { transform: translateX(100%); } }

@media (max-width: 1480px) {
  .ios-console-kpi-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ios-console-kpi-grid .ios-console-kpi { grid-column: span 2; }
  .ios-console-kpi-grid .ios-console-kpi:nth-child(4),
  .ios-console-kpi-grid .ios-console-kpi:nth-child(5) { grid-column: span 3; }
  .ios-console-kpi-grid .ios-console-kpi:nth-child(4),
  .ios-console-kpi-grid .ios-console-kpi:nth-child(5) { min-height: 151px; }
  .ios-console-overview-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ios-console-alerts { grid-column: 1 / -1; }
  .ios-console-alerts .ios-console-alert-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ios-console-alerts .ios-console-all-clear { min-height: 90px; }
}

@media (max-width: 1180px) {
  .ios-console-shell { grid-template-columns: 224px minmax(0, 1fr); }
  .ios-console-rail { padding-inline: 12px; }
  .ios-console-account > div { display: none; }
  .ios-console-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ios-console-kpi-grid .ios-console-kpi { grid-column: auto; }
  .ios-console-kpi-grid .ios-console-kpi:nth-child(5) { grid-column: 1 / -1; }
  .ios-console-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ios-console-toolbar { flex-wrap: wrap; overflow-x: visible; }
  .ios-console-filter { flex: 1 1 142px; max-width: 210px; }
  .ios-console-refresh { margin-left: auto; }
}

@media (max-width: 940px) {
  .ios-console-shell { display: block; }
  .ios-console-rail {
    position: fixed;
    left: 0;
    top: 0;
    width: min(86vw, 290px);
    transform: translateX(-105%);
    transition: transform 190ms ease;
  }
  .ios-console-rail.is-open { transform: translateX(0); }
  .ios-console-rail-close {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
  }
  .ios-console-scrim {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: block;
    border: 0;
    background: rgba(9, 24, 37, 0.48);
    backdrop-filter: blur(3px);
  }
  .ios-console-mobile-menu {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid #ddded8;
    border-radius: 11px;
    color: #405364;
    background: #fffefa;
  }
  .ios-console-topbar { padding-top: 15px; }
  .ios-console-detail-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .ios-console-topbar { padding-inline: 15px; }
  .ios-console-content { padding: 17px 15px 38px; }
  .ios-console-heading-row { align-items: flex-start; }
  .ios-console-account { display: none; }
  .ios-console-title h1 { font-size: 29px; }
  .ios-console-title p { font-size: 11px; }
  .ios-console-toolbar { margin-inline: -15px; padding-inline: 15px; }
  .ios-console-toolbar { flex-wrap: nowrap; overflow-x: auto; }
  .ios-console-filter { flex: 0 0 142px; max-width: none; }
  .ios-console-filter.tester { flex-basis: 164px; }
  .ios-console-refresh { margin-left: 0; }
  .ios-console-kpi-grid,
  .ios-console-overview-grid,
  .ios-console-sources { grid-template-columns: minmax(0, 1fr); }
  .ios-console-kpi-grid .ios-console-kpi,
  .ios-console-kpi-grid .ios-console-kpi:nth-child(4),
  .ios-console-kpi-grid .ios-console-kpi:nth-child(5) { min-height: 145px; grid-column: auto; }
  .ios-console-alerts { grid-column: auto; }
  .ios-console-alerts .ios-console-alert-list { grid-template-columns: minmax(0, 1fr); }
  .ios-console-panel-head { align-items: flex-start; }
  .ios-console-eyebrow { display: none; }
  .ios-console-global-state { align-items: flex-start; flex-wrap: wrap; }
  .ios-console-global-state button { margin-left: 30px; }
  .ios-console-report-context span + span::before { display: none; }
  .ios-console-report-context { display: grid; gap: 3px; }
  .ios-console-auth-card { padding: 32px 22px; }
}

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

.ios-content-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ios-content-catalog-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ios-content-catalog-strip > div { padding: 16px 18px; border: 1px solid rgba(17,43,67,.1); border-radius: 18px; background: #fffefa; display: flex; gap: 12px; align-items: center; }
.ios-content-catalog-strip > div > span { width: 39px; height: 39px; border-radius: 13px; display: grid; place-items: center; color: #526677; background: #edf1f2; }
.ios-content-catalog-strip > div.ready > span { color: #277f70; background: #dff4ee; }
.ios-content-catalog-strip > div.off > span { color: #9a6449; background: #fae9df; }
.ios-content-catalog-strip strong { display: block; color: var(--ios-navy); font-size: 13px; }
.ios-content-catalog-strip p { margin: 3px 0 0; color: #6b7b88; font-size: 12px; }
.ios-content-table { display: grid; margin-top: 12px; }
.ios-content-table article { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(92px, auto); gap: 13px; align-items: center; padding: 13px 2px; border-bottom: 1px solid rgba(17,43,67,.08); }
.ios-content-table article:last-child { border-bottom: 0; }
.ios-content-table article > div:first-child { min-width: 0; }
.ios-content-table strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ios-navy); font-size: 14px; }
.ios-content-table small { display: block; margin-top: 4px; color: #7a8996; font-size: 11px; }
.ios-content-status { padding: 5px 8px; border-radius: 999px; color: #607181; background: #edf1f2; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.ios-content-status.live { color: #237767; background: #dff4ee; }
.ios-content-status.testing { color: #85600f; background: #fff0bc; }
.ios-content-status.draft { color: #4f6577; background: #e9eef2; }
.ios-content-status.retired,.ios-content-status.disabled { color: #8b5a59; background: #f5e3e3; }
.ios-content-readiness,.ios-content-date { color: #607181; font-size: 11px; font-weight: 800; text-align: right; }
.ios-content-readiness i { display: block; width: 42px; height: 5px; margin: 5px 0 0 auto; border-radius: 999px; background: #efc8aa; }
.ios-content-readiness i.complete { background: #67b5a4; }
.ios-content-performance-list { display: grid; gap: 7px; margin-top: 14px; }
.ios-content-performance-list > div { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 9px 2px; }
.ios-content-performance-list > div > span { color: #94a0aa; font-size: 11px; font-weight: 900; text-align: center; }
.ios-content-performance-list strong { display: block; color: var(--ios-navy); font-size: 13px; }
.ios-content-performance-list .ios-console-progress { height: 6px; margin: 6px 0 4px; }
.ios-content-performance-list .ios-console-progress i { background: linear-gradient(90deg,#a95aa4,#e65d58); }
.ios-content-performance-list small { color: #7c8a96; font-size: 10px; }
.ios-content-performance-list > div > b { color: var(--ios-navy); font-size: 17px; }
.ios-content-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1180px) { .ios-content-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .ios-content-kpis,.ios-content-catalog-strip,.ios-content-notes { grid-template-columns: 1fr; } .ios-content-table article { grid-template-columns: minmax(0, 1fr) auto; } .ios-content-readiness,.ios-content-date { grid-column: 1 / -1; text-align: left; } .ios-content-readiness i { margin-left: 0; } }

.ios-monetization-kpis { grid-template-columns: repeat(5,minmax(0,1fr)); }
.ios-monetization-lanes { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:16px; }
.ios-monetization-lanes article { padding:17px; border:1px solid rgba(17,43,67,.1); border-radius:18px; background:#f7f7f4; }
.ios-monetization-lanes article > span { width:38px; height:38px; display:grid; place-items:center; border-radius:12px; color:#6d7d89; background:#e9edef; }
.ios-monetization-lanes article.ready { background:linear-gradient(145deg,#f7fffc,#e9f7f2); }
.ios-monetization-lanes article.ready > span { color:#287d6e; background:#d9f0e9; }
.ios-monetization-lanes strong { display:block; margin-top:12px; color:var(--ios-navy); font-size:14px; }
.ios-monetization-lanes p { margin:6px 0 0; color:#6c7d8a; font-size:11px; line-height:1.5; }
.ios-monetization-source > div:not(.ios-console-panel-head) { display:flex; gap:12px; align-items:center; padding:13px 2px; border-bottom:1px solid rgba(17,43,67,.08); }
.ios-monetization-source > div > span { width:36px; height:36px; display:grid; place-items:center; border-radius:12px; color:#7d8a94; background:#edf0f1; }
.ios-monetization-source > div.ready > span { color:#287d6e; background:#dff4ee; }
.ios-monetization-source strong { color:var(--ios-navy); font-size:13px; }
.ios-monetization-source p { margin:3px 0 0; color:#7a8996; font-size:11px; }
.ios-monetization-next ol { list-style:none; display:grid; gap:10px; margin:14px 0 0; padding:0; }
.ios-monetization-next li { display:flex; gap:12px; align-items:center; padding:12px; border-radius:15px; background:#f6f6f3; }
.ios-monetization-next li > span { width:30px; height:30px; display:grid; place-items:center; flex:0 0 auto; border-radius:10px; color:#fff; background:var(--ios-navy); font-size:11px; font-weight:900; }
.ios-monetization-next strong { color:var(--ios-navy); font-size:13px; }
.ios-monetization-next p { margin:3px 0 0; color:#758692; font-size:11px; }
.ios-monetization-notes { grid-template-columns:repeat(3,minmax(0,1fr)); }
@media(max-width:1180px){.ios-monetization-kpis{grid-template-columns:repeat(3,minmax(0,1fr));}.ios-monetization-lanes{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:720px){.ios-monetization-kpis,.ios-monetization-lanes,.ios-monetization-notes{grid-template-columns:1fr;}}

.ios-release-hero{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:25px;border:1px solid rgba(17,43,67,.1);border-radius:22px;background:linear-gradient(130deg,#fffefa,#eff8f5 58%,#f9ece5)}
.ios-release-hero>div{display:flex;gap:15px;align-items:center}.ios-release-hero>div>span{width:48px;height:48px;display:grid;place-items:center;flex:0 0 auto;border-radius:15px;color:#fff;background:var(--ios-navy)}
.ios-release-hero h2{margin:2px 0 5px;color:var(--ios-navy);font-family:Georgia,"Times New Roman",serif;font-size:23px}.ios-release-hero p{margin:0;color:#657785;font-size:12px;line-height:1.5}
.ios-release-state-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ios-release-state-grid article{padding:18px;border:1px solid rgba(17,43,67,.1);border-radius:18px;background:#fffefa}.ios-release-state-grid article.ready{background:linear-gradient(145deg,#f7fffc,#e7f6f1)}.ios-release-state-grid article.off{background:#f6f3f0}.ios-release-state-grid strong,.ios-release-state-grid b,.ios-release-state-grid small{display:block}.ios-release-state-grid strong{color:#687a88;font-size:11px;text-transform:uppercase;letter-spacing:.06em}.ios-release-state-grid b{margin-top:8px;color:var(--ios-navy);font-size:23px}.ios-release-state-grid small{margin-top:5px;color:#7d8b96;font-size:10px}
.ios-release-list>article{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(92px,auto);gap:12px;align-items:center;padding:13px 2px;border-bottom:1px solid rgba(17,43,67,.08)}.ios-release-list>article:last-child{border-bottom:0}.ios-release-list strong{display:block;color:var(--ios-navy);font-size:13px}.ios-release-list small{display:block;margin-top:4px;color:#7c8a96;font-size:10px}.ios-release-list>article>span:last-child{color:#71818e;font-size:10px;font-weight:800;text-align:right}
.ios-release-controls>div:last-child{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:15px}.ios-release-controls article{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:11px;align-items:center;padding:14px;border-radius:16px;background:#f6f6f3}.ios-release-controls article>span{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;color:#596c7c;background:#e7ecee}.ios-release-controls strong{color:var(--ios-navy);font-size:13px;text-transform:capitalize}.ios-release-controls p{margin:4px 0 0;color:#72838f;font-size:10px;line-height:1.45}.ios-release-controls b{padding:5px 8px;border-radius:999px;color:#6d7780;background:#e6e9e9;font-size:9px;text-transform:uppercase}
@media(max-width:1000px){.ios-release-state-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ios-release-controls>div:last-child{grid-template-columns:1fr}}
@media(max-width:720px){.ios-release-hero{align-items:flex-start;flex-direction:column}.ios-release-state-grid{grid-template-columns:1fr}.ios-release-list>article{grid-template-columns:minmax(0,1fr) auto}.ios-release-list>article>span:last-child{grid-column:1/-1;text-align:left}.ios-release-controls article{grid-template-columns:auto minmax(0,1fr)}.ios-release-controls article>b{grid-column:2}}

/* Players */
.ios-players-page {
  display: grid;
  gap: 12px;
}

.ios-players-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ios-players-kpi {
  min-height: 184px;
  padding-bottom: 33px;
}

.ios-players-kpi > p {
  max-width: 28ch;
}

.ios-players-metric-role {
  position: absolute;
  right: 13px;
  bottom: 12px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #6a7882;
  background: #eef0ee;
  font-size: 7.5px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ios-players-alerts {
  min-width: 0;
}

.ios-players-alerts .ios-console-alert-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ios-players-primary-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .85fr);
  gap: 12px;
}

.ios-players-growth,
.ios-players-activation {
  min-height: 330px;
}

.ios-players-growth {
  min-height: 490px;
}

.ios-players-chart-wrap {
  min-width: 0;
  overflow: hidden;
  padding: 3px 0 0;
}

.ios-players-chart-wrap svg {
  display: block;
  width: 100%;
  height: 252px;
}

.ios-players-chart-wrap .grid {
  stroke: #e8ebe7;
  stroke-width: 1;
}

.ios-players-chart-wrap .axis-value,
.ios-players-chart-wrap .axis-date {
  fill: #879198;
  font-size: 9px;
  font-weight: 700;
}

.ios-players-area {
  fill: url(#iosPlayersArea);
}

.ios-players-active-line,
.ios-players-new-line,
.ios-players-returning-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ios-players-active-line {
  stroke: var(--ios-mint);
  stroke-width: 3;
}

.ios-players-new-line {
  stroke: var(--ios-coral);
  stroke-width: 2.25;
}

.ios-players-returning-line {
  stroke: #4c82b7;
  stroke-width: 2.25;
}

.ios-players-active-dot {
  fill: #fffefa;
  stroke: var(--ios-mint);
  stroke-width: 2;
}

.ios-players-new-dot {
  fill: #fffefa;
  stroke: var(--ios-coral);
  stroke-width: 1.7;
}

.ios-players-returning-dot {
  fill: #fffefa;
  stroke: #4c82b7;
  stroke-width: 1.7;
}

.ios-players-context-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 3px;
}

.ios-players-context-strip article {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #e4e8e4;
  border-radius: 12px;
  background: #f8f9f6;
}

.ios-players-context-strip span,
.ios-players-context-strip small {
  display: block;
}

.ios-players-context-strip span {
  overflow: hidden;
  color: #75828b;
  font-size: 7.5px;
  font-weight: 850;
  letter-spacing: .045em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ios-players-context-strip strong {
  display: block;
  margin-top: 4px;
  color: var(--ios-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1;
}

.ios-players-context-strip small {
  min-height: 18px;
  margin-top: 5px;
  color: #858f95;
  font-size: 7.5px;
  line-height: 1.25;
}

.ios-players-context-strip article.is-positive strong {
  color: #247e6d;
}

.ios-players-context-strip article.is-negative strong {
  color: #bd4d50;
}

.ios-players-activation-steps {
  display: grid;
  gap: 11px;
}

.ios-players-activation-steps article {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.ios-players-activation-steps article > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid #dbe5e0;
  border-radius: 10px;
  color: #287c6b;
  background: #ecf7f3;
  font-size: 10px;
  font-weight: 900;
}

.ios-players-activation-steps article > div > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.ios-players-activation-steps strong {
  color: #435361;
  font-size: 11px;
}

.ios-players-activation-steps b {
  color: var(--ios-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.ios-players-activation-steps small {
  display: block;
  margin-top: 4px;
  color: #879096;
  font-size: 8.5px;
}

.ios-players-activation-steps article:nth-child(2) .ios-console-progress i {
  background: linear-gradient(90deg, #4c82b7, #74a2cd);
}

.ios-players-activation-steps article:nth-child(3) .ios-console-progress i {
  background: linear-gradient(90deg, #7a668f, #ab8ead);
}

.ios-players-cohorts {
  min-width: 0;
}

.ios-players-cohort-scroll {
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

.ios-players-cohort-grid {
  min-width: 720px;
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) minmax(76px, .55fr) repeat(3, minmax(125px, .9fr));
  gap: 7px;
  align-items: stretch;
}

.ios-players-retention-grid {
  min-width: 970px;
  grid-template-columns: minmax(174px, 1.25fr) minmax(72px, .52fr) repeat(7, minmax(82px, .66fr));
}

.ios-players-cohort-head {
  display: flex;
  align-items: center;
  padding: 4px 7px 7px;
  color: #78858e;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ios-players-cohort-head.centered {
  justify-content: center;
  text-align: center;
}

.ios-players-cohort-label,
.ios-players-cohort-size,
.ios-players-cohort-cell {
  min-height: 62px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 10px 11px;
  border: 1px solid #e5e5df;
  border-radius: 12px;
  background: #f8f8f4;
}

.ios-players-cohort-label strong,
.ios-players-cohort-size strong,
.ios-players-cohort-cell strong {
  color: #334858;
  font-size: 11px;
}

.ios-players-cohort-label small,
.ios-players-cohort-size small,
.ios-players-cohort-cell small {
  display: block;
  margin-top: 3px;
  color: #818b92;
  font-size: 8px;
}

.ios-players-cohort-size,
.ios-players-cohort-cell {
  align-items: center;
  text-align: center;
}

.ios-players-cohort-cell.available {
  border-color: rgba(47, 156, 134, .25);
  background: rgba(47, 156, 134, var(--heat));
}

.ios-players-cohort-cell.available strong,
.ios-players-cohort-cell.available small {
  color: #123c36;
}

.ios-players-cohort-cell.unavailable {
  border-style: dashed;
  background: repeating-linear-gradient(135deg, #f6f6f2, #f6f6f2 7px, #f1f1ed 7px, #f1f1ed 14px);
}

.ios-players-version-adoption {
  min-width: 0;
}

.ios-players-version-legend {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ios-players-version-chart-wrap {
  min-width: 0;
  overflow: hidden;
}

.ios-players-version-chart-wrap svg {
  display: block;
  width: 100%;
  height: 280px;
}

.ios-players-version-chart-wrap .grid {
  stroke: #e8ebe7;
  stroke-width: 1;
}

.ios-players-version-chart-wrap .axis-value,
.ios-players-version-chart-wrap .axis-date {
  fill: #879198;
  font-size: 9px;
  font-weight: 700;
}

.ios-players-version-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

.ios-players-version-dot {
  fill: #fffefa;
  stroke-width: 1.7;
}

.ios-players-version-marker line {
  stroke: #c39b4a;
  stroke-dasharray: 4 5;
  stroke-width: 1.2;
}

.ios-players-version-marker text {
  fill: #956c21;
  font-size: 8px;
  font-weight: 850;
}

.ios-players-version-snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 2px;
}

.ios-players-version-snapshot article {
  position: relative;
  min-width: 0;
  padding: 10px 11px 10px 21px;
  border: 1px solid #e4e7e2;
  border-radius: 12px;
  background: #f9f9f5;
}

.ios-players-version-snapshot article > i {
  position: absolute;
  top: 12px;
  left: 10px;
  width: 5px;
  height: 24px;
  border-radius: 999px;
}

.ios-players-version-snapshot span,
.ios-players-version-snapshot small {
  display: block;
}

.ios-players-version-snapshot span {
  overflow: hidden;
  color: #6e7c85;
  font-size: 8px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ios-players-version-snapshot strong {
  display: block;
  margin-top: 3px;
  color: var(--ios-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.ios-players-version-snapshot small {
  margin-top: 3px;
  color: #8b9398;
  font-size: 7.5px;
  line-height: 1.25;
}

.ios-players-engagement {
  margin-top: 0;
}

.ios-players-distribution-list {
  display: grid;
  gap: 10px;
}

.ios-players-distribution-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 6px 12px;
  align-items: center;
}

.ios-players-distribution-list > div > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 9px;
  grid-column: 1 / -1;
}

.ios-players-distribution-list strong {
  color: #435361;
  font-size: 10px;
}

.ios-players-distribution-list span {
  color: #889197;
  font-size: 8.5px;
}

.ios-players-distribution-list .ios-console-progress {
  margin-top: 0;
}

.ios-players-distribution-list b {
  color: #405463;
  font-size: 10px;
  text-align: right;
}

.ios-players-distribution.accent-mint .ios-console-progress i {
  background: linear-gradient(90deg, #2f9c86, #76bba9);
}

.ios-players-distribution.accent-coral .ios-console-progress i {
  background: linear-gradient(90deg, #e65d58, #ef9a7e);
}

.ios-players-segments {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ios-players-segment-list {
  display: grid;
  gap: 10px;
}

.ios-players-segment-list > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 4px 11px;
  align-items: center;
}

.ios-players-segment-list > div > span {
  position: relative;
  height: 5px;
  overflow: hidden;
  grid-column: 1 / -1;
  border-radius: 999px;
  background: #eceeea;
}

.ios-players-segment-list > div > span i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #4c82b7, #7a668f);
}

.ios-players-segment-list > div > div {
  min-width: 0;
}

.ios-players-segment-list strong,
.ios-players-segment-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ios-players-segment-list strong {
  color: #405261;
  font-size: 10px;
}

.ios-players-segment-list small {
  margin-top: 2px;
  color: #879198;
  font-size: 8px;
}

.ios-players-segment-list b {
  color: #435664;
  font-size: 10px;
  text-align: right;
}

.ios-players-method {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid #dfe4e2;
  border-radius: 14px;
  color: #506573;
  background: linear-gradient(135deg, #f8fbfa, #f3f5f2);
}

.ios-players-method > span {
  flex: 0 0 auto;
  color: var(--ios-mint);
}

.ios-players-method strong {
  display: block;
  font-size: 10px;
}

.ios-players-method p {
  margin: 3px 0 0;
  color: #75838c;
  font-size: 9px;
  line-height: 1.5;
}

@media (max-width: 1480px) {
  .ios-players-kpis {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .ios-players-kpis .ios-players-kpi {
    grid-column: span 2;
  }

  .ios-players-kpis .ios-players-kpi:nth-child(4),
  .ios-players-kpis .ios-players-kpi:nth-child(5) {
    grid-column: span 3;
  }
}

@media (max-width: 1180px) {
  .ios-players-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ios-players-kpis .ios-players-kpi,
  .ios-players-kpis .ios-players-kpi:nth-child(4),
  .ios-players-kpis .ios-players-kpi:nth-child(5) {
    grid-column: auto;
  }

  .ios-players-kpis .ios-players-kpi:nth-child(5) {
    grid-column: 1 / -1;
  }

  .ios-players-primary-grid,
  .ios-players-segments {
    grid-template-columns: minmax(0, 1fr);
  }

  .ios-players-version-snapshot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ios-players-kpis,
  .ios-players-alerts .ios-console-alert-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .ios-players-kpis .ios-players-kpi,
  .ios-players-kpis .ios-players-kpi:nth-child(5) {
    grid-column: auto;
  }

  .ios-players-kpi {
    min-height: 153px;
  }

  .ios-players-chart-wrap svg {
    min-width: 620px;
  }

  .ios-players-chart-wrap {
    overflow-x: auto;
  }

  .ios-players-context-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ios-players-version-chart-wrap {
    overflow-x: auto;
  }

  .ios-players-version-chart-wrap svg {
    min-width: 680px;
  }

  .ios-players-version-snapshot {
    min-width: 600px;
  }
}

@media (max-width: 480px) {
  .ios-players-context-strip,
  .ios-players-version-snapshot {
    grid-template-columns: minmax(0, 1fr);
  }

  .ios-players-version-snapshot {
    min-width: 0;
  }
}

/* App Health — isolated from the shared console and legacy Product Studio. */
.ios-console-health{gap:17px}.ios-health-coverage{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:center;overflow:hidden;padding:22px 24px;border:1px solid rgba(17,43,67,.1);border-radius:22px;background:linear-gradient(130deg,#f4fbf8,#eff4f5 52%,#fff5ea);box-shadow:var(--ios-shadow)}
.ios-health-coverage::after{content:"";position:absolute;right:-55px;top:-70px;width:190px;height:190px;border-radius:50%;background:rgba(255,255,255,.4)}.ios-health-coverage>span{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;color:#fff;background:var(--ios-navy)}.ios-health-coverage.good>span{background:var(--ios-mint)}.ios-health-coverage.warning>span{background:var(--ios-gold)}.ios-health-coverage.danger>span{background:var(--ios-coral)}
.ios-health-coverage h2{margin:2px 0 5px;color:var(--ios-navy);font-family:Georgia,"Times New Roman",serif;font-size:clamp(20px,2vw,27px)}.ios-health-coverage p{margin:0;max-width:760px;color:#647786;font-size:12px;line-height:1.55}.ios-health-coverage-facts{position:relative;z-index:1;min-width:180px;display:grid;gap:7px;padding:12px 14px;border:1px solid rgba(17,43,67,.08);border-radius:15px;background:rgba(255,254,250,.7)}.ios-health-coverage-facts span{color:#70808c;font-size:10px}.ios-health-coverage-facts strong{color:var(--ios-navy);font-size:12px}
.ios-health-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.ios-health-kpis .ios-console-kpi,.ios-health-kpis .ios-console-kpi:nth-child(4){grid-column:auto;min-height:166px}.ios-health-kpi>small{display:block;margin-top:8px;color:#84919a;font-size:9px}.ios-health-overview{grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr)}.ios-health-overview .ios-console-alerts{grid-column:1/-1}
.ios-health-severity-list{display:grid;gap:12px;margin-top:17px}.ios-health-severity-list>div>div:first-child{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center}.ios-health-severity-list>div>div:first-child>span{width:9px;height:9px;border-radius:50%;background:#a5b1b9}.ios-health-severity-list .critical>div:first-child>span{background:#ba3d45}.ios-health-severity-list .high>div:first-child>span{background:#e16b4d}.ios-health-severity-list .medium>div:first-child>span{background:#d9a52d}.ios-health-severity-list .low>div:first-child>span{background:#4b9b8a}.ios-health-severity-list strong{color:var(--ios-navy);font-size:11px;text-transform:capitalize}.ios-health-severity-list b{color:var(--ios-navy);font-size:15px}.ios-health-severity-list small{display:block;margin-top:4px;color:#80909b;font-size:9px}.ios-health-severity-list .ios-console-progress{height:5px;margin:6px 0 0 17px}.ios-health-severity-list .critical .ios-console-progress i{background:#ba3d45}.ios-health-severity-list .high .ios-console-progress i{background:#e16b4d}.ios-health-severity-list .medium .ios-console-progress i{background:#d9a52d}.ios-health-severity-list .low .ios-console-progress i{background:#4b9b8a}
.ios-health-details{align-items:start}.ios-health-feature-list{display:grid;gap:10px;margin-top:14px}.ios-health-feature-list>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px 14px;align-items:center;padding:7px 2px}.ios-health-feature-list>div>div:first-child{grid-column:1/-1;display:flex;justify-content:space-between;gap:12px}.ios-health-feature-list strong{color:var(--ios-navy);font-size:12px;text-transform:capitalize}.ios-health-feature-list span{color:#7d8c97;font-size:9px}.ios-health-feature-list .ios-console-progress{height:7px}.ios-health-feature-list .ios-console-progress i{background:linear-gradient(90deg,var(--ios-coral),#b05f83)}.ios-health-feature-list b{color:var(--ios-navy);font-size:15px}
.ios-health-releases{padding:22px 24px}.ios-health-release-list{display:grid;gap:8px;margin-top:16px}.ios-health-release-list article{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(240px,1.5fr) minmax(110px,.45fr);gap:18px;align-items:center;padding:13px 14px;border:1px solid rgba(17,43,67,.08);border-radius:15px;background:#fbfbf8}.ios-health-release-label strong,.ios-health-release-label span,.ios-health-release-value strong,.ios-health-release-value span{display:block}.ios-health-release-label strong{color:var(--ios-navy);font-size:14px}.ios-health-release-label span{margin-top:4px;color:#7c8c97;font-size:9px}.ios-health-release-bars{display:grid;gap:5px}.ios-health-release-bars>div{height:7px;overflow:hidden;border-radius:999px;background:#e8ecea}.ios-health-release-bars i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--ios-coral),#b05f83)}.ios-health-release-bars .previous{height:4px;background:#eef0ef}.ios-health-release-bars .previous i{background:#9aa8b0}.ios-health-release-value{text-align:right}.ios-health-release-value strong{color:var(--ios-navy);font-size:17px}.ios-health-release-value span{margin-top:3px;color:#7c8c97;font-size:9px}
.ios-health-availability-list{display:grid;margin-top:12px}.ios-health-availability-list article{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:11px;align-items:center;padding:11px 2px;border-bottom:1px solid rgba(17,43,67,.07)}.ios-health-availability-list article:last-child{border-bottom:0}.ios-health-availability-list article>span{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;color:#8a6d56;background:#f3e9df}.ios-health-availability-list article.available>span{color:#277f70;background:#dff4ee}.ios-health-availability-list strong{color:var(--ios-navy);font-size:11px}.ios-health-availability-list p{margin:3px 0 0;color:#7b8a95;font-size:9px;line-height:1.4}.ios-health-availability-list b{padding:5px 7px;border-radius:999px;color:#846657;background:#f4e9e0;font-size:8px;letter-spacing:.04em;text-transform:uppercase}.ios-health-availability-list article.available b{color:#277b6c;background:#dff4ee}
.ios-health-issues{padding:22px 24px}.ios-health-issue-list{display:grid;gap:9px;margin-top:16px}.ios-health-issue{overflow:hidden;border:1px solid rgba(17,43,67,.1);border-radius:17px;background:#fbfbf8}.ios-health-issue-summary{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto auto;gap:12px;align-items:center;padding:14px 15px;border:0;color:inherit;background:transparent;text-align:left;cursor:pointer}.ios-health-issue-summary:hover{background:#f5f6f3}.ios-health-issue-summary>div:nth-child(2){min-width:0}.ios-health-issue-summary>div:nth-child(2) strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ios-navy);font-size:13px}.ios-health-issue-summary>div:nth-child(2) p{margin:4px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#71828e;font-size:9px;text-transform:capitalize}
.ios-health-severity-pill,.ios-health-status{padding:5px 7px;border-radius:999px;font-size:8px;font-weight:900;letter-spacing:.05em;text-transform:uppercase}.ios-health-severity-pill{color:#6e7a83;background:#e9edef}.ios-health-severity-pill.critical{color:#9e303a;background:#f7dfe1}.ios-health-severity-pill.high{color:#9e4c36;background:#f8e1da}.ios-health-severity-pill.medium{color:#806013;background:#f8eccb}.ios-health-severity-pill.low{color:#2c776a;background:#dff1ec}.ios-health-status{color:#536b7b;background:#e7edf0}.ios-health-status.investigating{color:#765c18;background:#f7eccd}.ios-health-status.fixed{color:#277b6c;background:#dff2ed}.ios-health-status.ignored{color:#777;background:#ecebea}.ios-health-issue-count{min-width:55px;text-align:right}.ios-health-issue-count strong,.ios-health-issue-count span{display:block}.ios-health-issue-count strong{color:var(--ios-navy);font-size:15px}.ios-health-issue-count span{color:#8a969f;font-size:8px;text-transform:uppercase}.ios-health-chevron{color:#8a969e;font-size:18px;transition:transform .2s ease}.ios-health-issue.is-open .ios-health-chevron{transform:rotate(180deg)}
.ios-health-issue-detail{padding:0 15px 16px;border-top:1px solid rgba(17,43,67,.07);background:#fffefa}.ios-health-issue-facts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:14px 0}.ios-health-issue-facts span{min-width:0;color:#657987;font-size:9px;line-height:1.45;overflow-wrap:anywhere}.ios-health-issue-facts strong{display:block;margin-bottom:3px;color:#8a969f;font-size:8px;letter-spacing:.04em;text-transform:uppercase}.ios-health-issue-facts code{color:#596f7e;font-size:9px}.ios-health-resolution{display:grid;grid-template-columns:150px 180px minmax(220px,1fr) auto;gap:10px;align-items:end;padding:13px;border-radius:14px;background:#f3f4f1}.ios-health-resolution label{color:#607481;font-size:9px;font-weight:800}.ios-health-resolution select,.ios-health-resolution input,.ios-health-resolution textarea{width:100%;box-sizing:border-box;margin-top:5px;padding:9px 10px;border:1px solid #d8ddd9;border-radius:10px;color:var(--ios-navy);background:#fffefa;font:inherit;outline:none}.ios-health-resolution textarea{resize:vertical;min-height:36px}.ios-health-resolution select:focus,.ios-health-resolution input:focus,.ios-health-resolution textarea:focus{border-color:#7eac9f;box-shadow:0 0 0 3px rgba(47,156,134,.1)}.ios-health-resolution button{min-height:36px;padding:0 13px;border:0;border-radius:11px;color:#fff;background:var(--ios-navy);font-size:10px;font-weight:900;cursor:pointer}.ios-health-resolution button:disabled{opacity:.55;cursor:wait}.ios-health-resolution>span{grid-column:1/-1;font-size:9px;font-weight:800}.ios-health-resolution>span.saved{color:#277b6c}.ios-health-resolution>span.error{color:#a44343}
.ios-health-quality{display:grid;grid-template-columns:minmax(240px,.75fr) minmax(0,1.25fr);gap:20px;align-items:center;padding:20px 22px;border:1px solid rgba(17,43,67,.1);border-radius:20px;background:linear-gradient(130deg,#142f46,#213f53);box-shadow:var(--ios-shadow)}.ios-health-quality h3{margin:2px 0 5px;color:#fff;font-family:Georgia,"Times New Roman",serif;font-size:20px}.ios-health-quality>div:first-child>p:last-child{margin:0;color:#b7c4ce;font-size:10px;line-height:1.45}.ios-health-quality>div:last-child{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.ios-health-quality>div:last-child span{padding:11px;border:1px solid rgba(255,255,255,.08);border-radius:13px;background:rgba(255,255,255,.06)}.ios-health-quality>div:last-child strong,.ios-health-quality>div:last-child small{display:block}.ios-health-quality>div:last-child strong{color:#fff;font-size:16px}.ios-health-quality>div:last-child small{margin-top:3px;color:#afbec9;font-size:8px}.ios-health-sources{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1180px){.ios-health-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ios-health-overview{grid-template-columns:minmax(0,1fr)}.ios-health-overview .ios-console-alerts{grid-column:auto}.ios-health-issue-facts{grid-template-columns:repeat(3,minmax(0,1fr))}.ios-health-resolution{grid-template-columns:repeat(2,minmax(0,1fr))}.ios-health-resolution .notes{grid-column:1/-1}.ios-health-resolution button{justify-self:start}}
@media(max-width:840px){.ios-health-coverage{grid-template-columns:auto minmax(0,1fr)}.ios-health-coverage-facts{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr))}.ios-health-release-list article{grid-template-columns:minmax(145px,.7fr) minmax(180px,1.3fr) auto;gap:12px}.ios-health-issue-summary{grid-template-columns:auto minmax(0,1fr) auto}.ios-health-issue-count:nth-of-type(2),.ios-health-status{display:none}.ios-health-quality{grid-template-columns:1fr}.ios-health-sources{grid-template-columns:1fr}}
@media(max-width:720px){.ios-health-coverage{padding:18px}.ios-health-coverage>span{width:42px;height:42px}.ios-health-coverage-facts{grid-template-columns:1fr}.ios-health-kpis{grid-template-columns:1fr}.ios-health-kpis .ios-console-kpi,.ios-health-kpis .ios-console-kpi:nth-child(4){min-height:145px}.ios-health-releases{padding:18px}.ios-health-release-list article{grid-template-columns:1fr}.ios-health-release-value{text-align:left}.ios-health-issue-summary{gap:8px;padding:12px}.ios-health-issue-count{display:none}.ios-health-issue-facts,.ios-health-resolution{grid-template-columns:1fr}.ios-health-resolution .notes{grid-column:auto}.ios-health-quality>div:last-child{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Content operations retain the proven voice publishing workflow inside the focused iOS console. */
.ios-content-workspace-shell { display: grid; gap: 16px; min-width: 0; }
.ios-content-section-nav { align-items: stretch; background: rgba(255,255,255,.74); border: 1px solid var(--ios-border); border-radius: 18px; display: flex; gap: 6px; padding: 6px; width: fit-content; }
.ios-content-section-nav button { align-items: center; background: transparent; border: 0; border-radius: 13px; color: var(--ios-muted); cursor: pointer; display: flex; gap: 9px; padding: 10px 14px; text-align: left; }
.ios-content-section-nav button span { display: grid; gap: 1px; }
.ios-content-section-nav button strong { color: inherit; font-size: .82rem; }
.ios-content-section-nav button small { font-size: .68rem; }
.ios-content-section-nav button.active { background: var(--ios-ink); box-shadow: 0 8px 18px rgba(26,46,65,.16); color: white; }
.ios-content-voice-workspace { display: grid; gap: 14px; min-width: 0; }
.ios-content-management-note { align-items: center; background: rgba(222,244,237,.84); border: 1px solid rgba(49,137,110,.18); border-radius: 16px; color: #285b4c; display: flex; gap: 12px; padding: 13px 16px; }
.ios-content-management-note > span { align-items: center; background: #d4efe6; border-radius: 11px; display: flex; flex: 0 0 36px; height: 36px; justify-content: center; }
.ios-content-management-note strong { display: block; font-size: .82rem; }
.ios-content-management-note p { font-size: .74rem; line-height: 1.45; margin: 2px 0 0; }
.ios-content-voice-workspace .voice-studio { margin: 0; }
.ios-content-voice-workspace .voice-studio-hero { border-radius: 24px; box-shadow: var(--ios-shadow); }
.ios-content-voice-workspace .voice-studio-hero { align-items: center; grid-template-columns: minmax(0,1fr) auto; padding: 18px 22px; }
.ios-content-voice-workspace .voice-studio-hero h3 { font-size: 1.25rem; margin: 2px 0 4px; }
.ios-content-voice-workspace .voice-studio-hero > div:first-child > p:last-child { display: none; }
.ios-content-voice-workspace .voice-studio-stats { grid-column: 1 / -1; }
.ios-content-voice-workspace .voice-library-panel,.ios-content-voice-workspace .voice-editor-panel { border-color: var(--ios-border); box-shadow: var(--ios-shadow); }
.ios-content-voice-workspace .voice-version-history { background: linear-gradient(135deg,rgba(255,250,237,.94),rgba(239,248,244,.96)); border-bottom: 1px solid rgba(17,43,67,.1); border-top: 1px solid rgba(17,43,67,.08); display: grid; gap: 13px; padding: 20px 24px; }
.ios-content-voice-workspace .voice-version-history header { align-items: start; display: flex; justify-content: space-between; }
.ios-content-voice-workspace .voice-version-history h4 { color: var(--ios-ink); font-family: Georgia,"Times New Roman",serif; font-size: 1.08rem; margin: 2px 0 4px; }
.ios-content-voice-workspace .voice-version-history header span { color: var(--ios-muted); display: block; font-size: .72rem; line-height: 1.45; max-width: 650px; }
.ios-content-voice-workspace .voice-version-history-list { display: grid; gap: 7px; }
.ios-content-voice-workspace .voice-version-history-list article { align-items: center; background: rgba(255,255,255,.72); border: 1px solid rgba(17,43,67,.09); border-radius: 14px; display: grid; gap: 11px; grid-template-columns: auto minmax(0,1fr) auto; min-width: 0; padding: 10px 12px; }
.ios-content-voice-workspace .voice-version-history-list article.current { background: rgba(222,244,237,.82); border-color: rgba(49,137,110,.22); }
.ios-content-voice-workspace .voice-version-number { align-items: center; background: var(--ios-ink); border-radius: 10px; color: white; display: flex; font-size: .72rem; font-weight: 900; height: 34px; justify-content: center; min-width: 42px; }
.ios-content-voice-workspace .voice-version-history-list article.current .voice-version-number { background: var(--ios-mint); }
.ios-content-voice-workspace .voice-version-history-list strong,.ios-content-voice-workspace .voice-version-history-list small { display: block; }
.ios-content-voice-workspace .voice-version-history-list strong { color: var(--ios-ink); font-size: .78rem; }
.ios-content-voice-workspace .voice-version-history-list small { color: var(--ios-muted); font-size: .66rem; margin-top: 2px; }
.ios-content-voice-workspace .voice-version-history-list article > b { background: rgba(49,137,110,.13); border-radius: 999px; color: #26745e; font-size: .65rem; padding: 6px 9px; }
.ios-content-voice-workspace .voice-version-history-list button { min-height: 34px; padding: 7px 10px; white-space: nowrap; }
@media (max-width: 1240px) { .ios-content-voice-workspace .voice-studio-layout { grid-template-columns: 1fr; }.ios-content-voice-workspace .voice-library-panel { max-height: 330px; position: static; } }
@media (max-width: 680px) { .ios-content-section-nav { width: 100%; }.ios-content-section-nav button { flex: 1; }.ios-content-section-nav button small { display: none; }.ios-content-management-note { align-items: flex-start; }.ios-content-voice-workspace .voice-studio-hero { align-items: stretch; grid-template-columns: minmax(0,1fr); }.ios-content-voice-workspace .voice-studio-hero > .primary-button { justify-self: stretch; width: 100%; }.ios-content-voice-workspace .voice-studio-stats { grid-column: auto; }.ios-content-voice-workspace .voice-version-history { padding: 17px; }.ios-content-voice-workspace .voice-version-history-list article { align-items: start; grid-template-columns: auto minmax(0,1fr); }.ios-content-voice-workspace .voice-version-history-list article > b,.ios-content-voice-workspace .voice-version-history-list button { grid-column: 1 / -1; justify-self: stretch; text-align: center; width: 100%; } }

.app-deck-manager{display:grid;gap:20px;color:var(--ios-ink,#173f41)}
.app-deck-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.app-deck-heading h2{margin:4px 0 8px;font-size:28px;letter-spacing:-.7px}
.app-deck-heading p,.app-deck-list>p,.app-deck-package p,.app-deck-previews>p,.app-deck-empty p{color:#64777b;font-size:14px;line-height:1.6;margin:6px 0}
.app-deck-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.app-deck-actions button{min-height:44px}
.app-deck-scope{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.app-deck-scope article{border:1px solid #d5e6e3;background:#f2faf7;border-radius:16px;padding:18px}
.app-deck-scope article+article{background:#fff9ee;border-color:#efdfbd}
.app-deck-scope strong{font-size:16px}
.app-deck-scope p{font-size:13px;line-height:1.6;color:#586c70;margin:7px 0 0}
.app-deck-message{padding:14px 18px;background:#e8f5ed;border:1px solid #bdddc8;border-radius:12px;font-size:14px;line-height:1.6;white-space:pre-line}
.app-deck-message.error{background:#fff0ef;border-color:#efc7c2;color:#83342f}
.app-deck-columns{display:grid;grid-template-columns:270px minmax(0,1fr);align-items:start;gap:20px}
.app-deck-manager .ios-console-panel{padding:20px}
.app-deck-list{display:grid;gap:10px}
.app-deck-list h3,.app-deck-create h3,.app-deck-previews h3,.app-deck-empty h3{margin:0 0 8px;font-size:17px}
.app-deck-list>button{display:grid;gap:8px;text-align:left;background:#fff;border:1px solid #dfe6e9;border-radius:12px;padding:14px;min-width:0;color:inherit;cursor:pointer}
.app-deck-list>button.selected{border:2px solid #287b74;background:#f0f9f6;padding:13px}
.app-deck-list>button:disabled{cursor:wait;opacity:.6}
.app-deck-list>button strong{font-size:14px;overflow-wrap:anywhere}
.app-deck-list small{font-size:11px;line-height:1.5;color:#738287;overflow-wrap:anywhere}
.app-deck-list>button>span{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.app-deck-list b,.app-deck-list em{font-size:10px;font-style:normal;font-weight:700;color:#327b68}
.app-deck-editor{display:grid;gap:20px;min-width:0}
.app-deck-create{display:grid;gap:16px}
.app-deck-create label{display:grid;gap:7px;color:#415b60;font-size:13px;font-weight:600}
.app-deck-manager input:not([type=file]),.app-deck-manager select{border:1px solid #d1dfe0;border-radius:9px;background:#fff;color:#183d41;padding:11px 12px;font:inherit;min-width:0;width:100%;min-height:44px}
.app-deck-create>button{justify-self:start}
.app-deck-package-title{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.app-deck-package-title h3{margin:0 0 6px;font-size:20px}
.app-deck-kind{font-size:11px;font-weight:700;border-radius:20px;background:#edf6f2;color:#2d7264;padding:7px 11px;white-space:nowrap}
.app-deck-readiness{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:20px 0}
.app-deck-readiness>div{display:grid;gap:7px;background:#f6f8fa;padding:14px;border-radius:12px}
.app-deck-readiness strong{font-size:22px;font-weight:750}
.app-deck-readiness span{font-size:11px;color:#6b7e83;line-height:1.5}
.app-deck-note{font-size:12px!important;line-height:1.7!important}
.app-deck-upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}
.app-deck-upload{display:grid;align-content:start;gap:10px;padding:16px;border:1px dashed #bacdcb;border-radius:12px;background:#fcfefd;min-width:0}
.app-deck-upload:last-child{grid-column:1/-1}
.app-deck-upload>strong{font-size:13px}
.app-deck-upload>span{font-size:11px;color:#718187;line-height:1.5}
.app-deck-upload input[type=file]{font-size:12px;max-width:100%;color:#526c6f}
.app-deck-voice-label{display:flex;gap:12px;align-items:center;font-size:12px}
.app-deck-voice-label select{max-width:230px}
.app-deck-progress{display:grid;gap:10px;padding:16px;background:#f5f8f7;border-radius:12px;font-size:12px}
.app-deck-progress progress{width:100%;accent-color:#287b74}
.app-deck-progress button{justify-self:start}
.app-deck-publish-actions{padding:20px 0 8px}
.app-deck-previews>div{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-top:20px}
.app-deck-previews figure{margin:0;min-width:0}
.app-deck-previews img,.app-deck-missing{width:100%;aspect-ratio:386/615;object-fit:contain;background:#f0f3f4;border:1px solid #dfe7e7;border-radius:8px}
.app-deck-missing{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-size:24px;font-weight:700;color:#91a2a6}
.app-deck-missing small{font-size:10px;font-weight:500}
.app-deck-previews figcaption{font-size:10px;line-height:1.5;color:#5b7076;margin-top:6px;overflow-wrap:anywhere}
.app-deck-empty{min-height:190px;display:flex;flex-direction:column;justify-content:center}
@media(max-width:1180px){.app-deck-columns{grid-template-columns:220px minmax(0,1fr)}.app-deck-readiness{grid-template-columns:1fr 1fr}.app-deck-previews>div{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:800px){.app-deck-heading{flex-direction:column}.app-deck-scope,.app-deck-columns{grid-template-columns:1fr}.app-deck-list{grid-template-columns:repeat(2,minmax(0,1fr))}.app-deck-list h3,.app-deck-list>p{grid-column:1/-1}.app-deck-package-title{flex-direction:column}.app-deck-upload-grid{grid-template-columns:1fr}.app-deck-previews>div{grid-template-columns:repeat(4,minmax(0,1fr))}.app-deck-manager .ios-console-panel{padding:16px}}
@media(max-width:480px){.app-deck-list{grid-template-columns:1fr}.app-deck-previews>div{grid-template-columns:repeat(3,minmax(0,1fr))}.app-deck-actions{align-items:stretch}.app-deck-actions button{flex:1}.app-deck-kind{white-space:normal}}

.app-deck-restore{display:flex;align-items:end;flex-wrap:wrap;gap:10px;max-width:100%}
.app-deck-restore label{display:grid;gap:6px;color:#526c70;font-size:12px;max-width:100%}
.app-deck-restore select{max-width:360px}

.app-deck-printables{display:grid;gap:18px}
.app-deck-printables h3{margin:0;font-size:17px}
.app-deck-printables>p,.app-deck-printable-pack p{font-size:12px;color:#64777b;line-height:1.6;margin:4px 0}
.app-deck-printable-pack{display:grid;gap:14px;padding:18px;border:1px solid #d8e4e1;border-radius:14px;background:#fcfefd;min-width:0}
.app-deck-printable-pack h4{margin:0;font-size:14px;overflow-wrap:anywhere}
.app-deck-printable-files{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.app-deck-printable-files .app-deck-upload:last-child{grid-column:auto}
.app-deck-printable-files a{font-size:12px;color:#287b74}
.app-deck-web-binding{display:flex;align-items:end;flex-wrap:wrap;gap:10px}
.app-deck-web-binding label{display:grid;gap:7px;font-size:12px;flex:1;min-width:0}
@media(max-width:1000px){.app-deck-printable-files{grid-template-columns:1fr}.app-deck-printable-pack{padding:12px}}

.physical-order-open {
  min-width: 13.5rem;
}

.physical-order-hint {
  display: block;
  max-width: 30rem;
  color: var(--muted, #675f73);
  line-height: 1.45;
}

.physical-order-checkout-layer {
  z-index: 10030;
}

.physical-order-checkout-dialog {
  position: relative;
  width: min(94vw, 35rem);
  max-height: min(90vh, 50rem);
  overflow: auto;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 1.5rem 5rem rgba(31, 25, 43, 0.28);
  padding: 2rem;
}

.physical-order-checkout-dialog h2 {
  margin: 0.3rem 2.5rem 0.7rem 0;
}

.physical-order-review {
  display: grid;
  gap: 0;
  margin: 1.25rem 0;
  border: 1px solid #e8e2ee;
  border-radius: 1rem;
  overflow: hidden;
}

.physical-order-review div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #eee9f2;
}

.physical-order-review div:last-child {
  border-bottom: 0;
}

.physical-order-review dt {
  color: #6e6677;
}

.physical-order-review dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.physical-order-review .total {
  background: #f6f1ff;
  font-size: 1.05rem;
}

.physical-order-address-note {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: #f4f8ff;
  color: #334a68;
  font-size: 0.9rem;
  line-height: 1.5;
}

.physical-order-checkout-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.physical-order-confirmation-mark {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  font-size: 1.7rem;
  font-weight: 800;
}

.physical-order-confirmation-mark.paid {
  color: #12653c;
  background: #dff7e9;
}

.physical-order-confirmation-mark.pending {
  color: #73530a;
  background: #fff0c7;
}

.physical-order-return-dialog > .primary-button {
  margin-top: 0.75rem;
}

@media (max-width: 560px) {
  .physical-order-checkout-dialog {
    padding: 1.35rem;
    border-radius: 1.1rem;
  }

  .physical-order-checkout-actions > button {
    flex: 1 1 100%;
  }
}

.physical-orders-workspace {
  --po-ink: #211b31;
  --po-soft-ink: #675f76;
  --po-line: #ded8ea;
  --po-soft-line: #ece8f3;
  --po-panel: #ffffff;
  --po-canvas: #f6f4fa;
  --po-purple: #7654c9;
  --po-purple-dark: #5d3caf;
  --po-pink: #ec2b83;
  --po-danger: #b42318;
  --po-warning: #8a5b00;
  --po-success: #14744b;
  color: var(--po-ink);
  min-width: 0;
}

.physical-orders-workspace *,
.physical-orders-workspace *::before,
.physical-orders-workspace *::after {
  box-sizing: border-box;
}

.physical-orders-workspace-content {
  min-width: 0;
}

.physical-orders-hero {
  align-items: end;
  background:
    radial-gradient(circle at 92% 16%, rgba(236, 43, 131, 0.13), transparent 31%),
    radial-gradient(circle at 60% 0%, rgba(22, 169, 224, 0.12), transparent 37%),
    linear-gradient(135deg, #ffffff, #f7f3ff);
  border: 1px solid var(--po-line);
  border-radius: 22px;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.physical-orders-hero::before {
  background: linear-gradient(90deg, #16a9e0 0 16.66%, #1daf70 16.66% 33.32%, #f6c62f 33.32% 49.98%, #ec2b83 49.98% 66.64%, #ef4141 66.64% 83.3%, #7554c9 83.3%);
  content: "";
  height: 7px;
  inset: 0 0 auto;
  position: absolute;
}

.physical-orders-hero h1,
.physical-orders-order-head h2,
.physical-orders-section h3,
.physical-orders-confirm h2 {
  color: var(--po-ink);
  margin: 0;
}

.physical-orders-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-top: 6px;
}

.physical-orders-hero p {
  color: var(--po-soft-ink);
  line-height: 1.55;
  margin: 10px 0 0;
  max-width: 680px;
}

.physical-orders-kicker,
.physical-orders-section > header > div > span {
  color: var(--po-pink);
  display: block;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.physical-orders-summary {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(4, minmax(84px, 1fr));
}

.physical-orders-summary > div {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--po-line);
  border-radius: 13px;
  min-width: 88px;
  padding: 13px 14px;
}

.physical-orders-summary > div.attention {
  background: #fff8dc;
  border-color: #e8ca66;
}

.physical-orders-summary > div.pending {
  background: #f5f3f8;
  border-color: #d9d3e2;
}

.physical-orders-summary strong,
.physical-orders-summary span {
  display: block;
}

.physical-orders-summary strong {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.physical-orders-summary span {
  color: var(--po-soft-ink);
  font-size: 11px;
  font-weight: 750;
  margin-top: 3px;
}

.physical-orders-notice {
  align-items: start;
  background: #edf6ff;
  border: 1px solid #bddbf5;
  border-radius: 12px;
  color: #174c75;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 12px 14px;
}

.physical-orders-notice.success {
  background: #ecf9f2;
  border-color: #b5dfc9;
  color: #155f40;
}

.physical-orders-notice.error {
  background: #fff1f0;
  border-color: #f1beb9;
  color: #8e2017;
}

.physical-orders-notice button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0 2px;
}

.physical-orders-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(300px, 0.34fr) minmax(0, 1fr);
}

.physical-orders-master,
.physical-orders-detail {
  background: var(--po-panel);
  border: 1px solid var(--po-line);
  border-radius: 18px;
  min-width: 0;
}

.physical-orders-master {
  max-height: calc(100vh - 132px);
  overflow: hidden;
  position: sticky;
  top: 18px;
}

.physical-orders-import {
  background: linear-gradient(145deg, #f4efff, #fff8ec);
  border-bottom: 1px solid var(--po-soft-line);
  display: grid;
  gap: 7px;
  padding: 16px;
}

.physical-orders-import label {
  display: grid;
  gap: 7px;
}

.physical-orders-import label > span {
  color: #4d3f65;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.physical-orders-import label > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.physical-orders-import input {
  background: #fff;
  border: 1px solid #cfc7dc;
  border-radius: 9px 0 0 9px;
  color: var(--po-ink);
  font: inherit;
  min-height: 42px;
  min-width: 0;
  outline: none;
  padding: 9px 11px;
}

.physical-orders-import input:focus {
  border-color: var(--po-purple);
  box-shadow: 0 0 0 3px rgba(118, 84, 201, 0.13);
}

.physical-orders-import button {
  background: var(--po-purple);
  border: 0;
  border-radius: 0 9px 9px 0;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  padding: 0 13px;
}

.physical-orders-import button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.physical-orders-import p {
  color: var(--po-soft-ink);
  font-size: 11px;
  line-height: 1.4;
  margin: 0;
}

.physical-orders-queue-tabs {
  background: #fff;
  border-bottom: 1px solid var(--po-soft-line);
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 12px 14px;
}

.physical-orders-queue-tabs button {
  align-items: center;
  background: #f7f5fa;
  border: 1px solid #ddd7e5;
  border-radius: 10px;
  color: #5a5265;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 3px;
  min-width: 0;
  padding: 9px 7px;
  text-align: center;
}

.physical-orders-queue-tabs button.selected {
  background: #f0ebff;
  border-color: #ad98df;
  box-shadow: inset 0 -3px 0 var(--po-purple);
  color: var(--po-purple-dark);
}

.physical-orders-queue-tabs button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.physical-orders-queue-tabs span {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.physical-orders-queue-tabs strong {
  font-size: 16px;
}

.physical-orders-queue-note {
  background: #f7f5fa;
  border-bottom: 1px solid var(--po-soft-line);
  color: #574f62;
  display: grid;
  font-size: 11px;
  gap: 3px;
  line-height: 1.45;
  padding: 11px 16px;
}

.physical-orders-queue-note.pending {
  background: #fff8e8;
  color: #704d07;
}

.physical-orders-queue-note strong {
  font-size: 12px;
}

.physical-orders-filters {
  background: #fbfaff;
  border-bottom: 1px solid var(--po-soft-line);
  display: grid;
  gap: 11px;
  padding: 16px;
}

.physical-orders-filters label,
.physical-orders-shipping-form label,
.physical-orders-note-form label,
.physical-orders-confirm label {
  display: grid;
  gap: 6px;
}

.physical-orders-filters label > span,
.physical-orders-shipping-form label > span,
.physical-orders-note-form label > span,
.physical-orders-confirm label > span {
  color: #544c62;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.physical-orders-filters input,
.physical-orders-filters select,
.physical-orders-shipping-form input,
.physical-orders-note-form textarea,
.physical-orders-confirm textarea {
  background: #fff;
  border: 1px solid #cfc7dc;
  border-radius: 9px;
  color: var(--po-ink);
  font: inherit;
  min-height: 42px;
  outline: none;
  padding: 9px 11px;
  width: 100%;
}

.physical-orders-filters input:focus,
.physical-orders-filters select:focus,
.physical-orders-shipping-form input:focus,
.physical-orders-note-form textarea:focus,
.physical-orders-confirm textarea:focus {
  border-color: var(--po-purple);
  box-shadow: 0 0 0 3px rgba(118, 84, 201, 0.13);
}

.physical-orders-search > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.physical-orders-search input {
  border-radius: 9px 0 0 9px;
}

.physical-orders-search button,
.physical-orders-list-head button,
.physical-orders-link-button {
  background: transparent;
  border: 0;
  color: var(--po-purple-dark);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  padding: 6px;
}

.physical-orders-search button {
  background: var(--po-purple);
  border-radius: 0 9px 9px 0;
  color: #fff;
  padding: 0 13px;
}

.physical-orders-check {
  align-items: center;
  display: flex !important;
  gap: 8px !important;
}

.physical-orders-check input {
  accent-color: var(--po-purple);
  min-height: 0;
  width: auto;
}

.physical-orders-check span {
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.physical-orders-list-head {
  align-items: center;
  border-bottom: 1px solid var(--po-soft-line);
  display: flex;
  justify-content: space-between;
  min-height: 44px;
  padding: 8px 16px;
}

.physical-orders-list-head strong {
  font-size: 13px;
}

.physical-orders-list {
  max-height: calc(100vh - 470px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
}

.physical-orders-list-item {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--po-ink);
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 5px;
  margin: 0 0 4px;
  padding: 13px;
  position: relative;
  text-align: left;
  width: 100%;
}

.physical-orders-list-item:hover {
  background: #f8f5ff;
  border-color: #e1d8f4;
}

.physical-orders-list-item.selected {
  background: #f2edff;
  border-color: #bca9e7;
  box-shadow: inset 3px 0 0 var(--po-purple);
}

.physical-orders-list-item:disabled {
  cursor: wait;
  opacity: 0.7;
}

.physical-orders-list-item > b {
  font-size: 14px;
  line-height: 1.3;
}

.physical-orders-list-item > span:not(.physical-orders-list-top),
.physical-orders-list-item > small {
  color: var(--po-soft-ink);
  font-size: 12px;
  line-height: 1.35;
}

.physical-orders-list-item > em {
  color: var(--po-warning);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  margin-top: 2px;
}

.physical-orders-list-item > em.audit-only {
  color: #6a6275;
}

.physical-orders-list-top {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.physical-orders-list-top > strong {
  font-size: 12px;
  letter-spacing: 0.025em;
}

.physical-orders-status,
.physical-orders-attention-pill {
  align-items: center;
  background: #eeebf3;
  border: 1px solid #d8d2df;
  border-radius: 999px;
  color: #5b5563;
  display: inline-flex;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.1;
  min-height: 23px;
  padding: 4px 8px;
  white-space: nowrap;
}

.physical-orders-status.info { background: #eaf5ff; border-color: #b8d9f2; color: #175a85; }
.physical-orders-status.success { background: #eaf8f0; border-color: #b8dec8; color: #176141; }
.physical-orders-status.warning { background: #fff7dc; border-color: #ead382; color: #765000; }
.physical-orders-status.danger { background: #fff0ef; border-color: #efc0bb; color: #94291f; }
.physical-orders-status.purple { background: #f1ecff; border-color: #cbbbee; color: #5936a1; }

.physical-orders-detail {
  overflow: hidden;
}

.physical-orders-detail-content {
  display: grid;
  gap: 14px;
  padding: 16px;
  transition: opacity 140ms ease;
}

.physical-orders-detail-content.refreshing {
  opacity: 0.68;
  pointer-events: none;
}

.physical-orders-order-head {
  align-items: start;
  background: linear-gradient(145deg, #211b31, #34234f);
  border-radius: 14px;
  color: #fff;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 20px;
}

.physical-orders-order-head > div:first-child > span {
  color: #d9cffa;
  font-size: 12px;
  font-weight: 800;
}

.physical-orders-order-head h2 {
  color: #fff;
  font-size: clamp(22px, 3vw, 31px);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-top: 5px;
}

.physical-orders-order-head p {
  color: #ddd6e8;
  margin: 7px 0 0;
}

.physical-orders-order-head > div:last-child {
  align-items: end;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.physical-orders-attention-pill {
  background: #fff4c4;
  border-color: #f1d252;
  color: #644500;
}

.physical-orders-audit-banner {
  background: #f5f3f8;
  border: 1px solid #d8d2df;
  border-radius: 12px;
  color: #514a5c;
  padding: 13px 15px;
}

.physical-orders-audit-banner.pending {
  background: #fff8e8;
  border-color: #e8cb7a;
  color: #684707;
}

.physical-orders-audit-banner strong {
  display: block;
  font-size: 14px;
}

.physical-orders-audit-banner p {
  font-size: 12px;
  line-height: 1.5;
  margin: 4px 0 0;
}

.physical-orders-section {
  background: #fff;
  border: 1px solid var(--po-soft-line);
  border-radius: 14px;
  min-width: 0;
  padding: 18px;
}

.physical-orders-section > header {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 15px;
}

.physical-orders-section h3 {
  font-size: 17px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-top: 2px;
}

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

.physical-orders-fields {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.physical-orders-fields.one-column {
  grid-template-columns: 1fr;
}

.physical-orders-field {
  border-bottom: 1px solid var(--po-soft-line);
  min-width: 0;
  padding: 10px 12px 10px 0;
}

.physical-orders-field dt {
  color: var(--po-soft-ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.055em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.physical-orders-field dd {
  color: var(--po-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}

.physical-orders-field dd.mono,
.physical-orders-file code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.physical-orders-field a {
  color: var(--po-purple-dark);
}

.physical-orders-table-wrap {
  border: 1px solid var(--po-line);
  border-radius: 10px;
  margin-top: 16px;
  overflow-x: auto;
}

.physical-orders-table-wrap table {
  border-collapse: collapse;
  font-size: 13px;
  min-width: 480px;
  width: 100%;
}

.physical-orders-table-wrap th,
.physical-orders-table-wrap td {
  border-bottom: 1px solid var(--po-soft-line);
  padding: 10px 12px;
  text-align: left;
}

.physical-orders-table-wrap th {
  background: #f7f5fa;
  color: var(--po-soft-ink);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.physical-orders-table-wrap tr:last-child td {
  border-bottom: 0;
}

.physical-orders-integrity {
  background: #ecf8f1;
  border: 1px solid #b9dfc9;
  border-radius: 9px;
  color: #176141;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  margin: 14px 0 0;
  padding: 10px 12px;
}

.physical-orders-integrity.error {
  background: #fff0ef;
  border-color: #efc0bb;
  color: #94291f;
}

.physical-orders-muted,
.physical-orders-safe-copy {
  color: var(--po-soft-ink);
  font-size: 12px;
  line-height: 1.5;
  margin: 12px 0 0;
}

.physical-orders-shipping-guidance {
  margin: 0 0 13px;
}

.physical-orders-section address {
  display: grid;
  font-size: 13px;
  font-style: normal;
  font-weight: 650;
  gap: 4px;
  line-height: 1.45;
}

.physical-orders-shipping-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(140px, 0.7fr) minmax(180px, 1fr);
}

.physical-orders-shipping-form .wide {
  grid-column: 1 / -1;
}

.physical-orders-shipping-form input:disabled {
  background: #f2f0f5;
  color: #81798d;
  cursor: not-allowed;
}

.physical-orders-button {
  align-items: center;
  background: var(--po-purple);
  border: 1px solid var(--po-purple);
  border-radius: 9px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  justify-content: center;
  line-height: 1.2;
  min-height: 40px;
  padding: 9px 14px;
  text-align: center;
}

.physical-orders-button:hover:not(:disabled) {
  background: var(--po-purple-dark);
  border-color: var(--po-purple-dark);
}

.physical-orders-button.secondary {
  background: #fff;
  border-color: #cfc6df;
  color: #4f386f;
}

.physical-orders-button.secondary:hover:not(:disabled) {
  background: #f6f1ff;
  border-color: #a992d7;
}

.physical-orders-button:disabled,
.physical-orders-search button:disabled,
.physical-orders-list-head button:disabled,
.physical-orders-link-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.physical-orders-status-actions,
.physical-orders-production-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.physical-orders-notify-grid,
.physical-orders-production-intro {
  display: grid;
  gap: 11px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.physical-orders-email-disabled {
  background: #fff8e8;
  border: 1px solid #e8cb7a;
  border-radius: 10px;
  color: #684707;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 12px;
  padding: 10px 12px;
}

.physical-orders-notify-grid article,
.physical-orders-production-intro > div {
  background: #faf9fc;
  border: 1px solid var(--po-soft-line);
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 13px;
}

.physical-orders-notify-grid strong,
.physical-orders-production-intro strong {
  font-size: 13px;
}

.physical-orders-notify-grid p,
.physical-orders-production-intro p {
  color: var(--po-soft-ink);
  font-size: 12px;
  line-height: 1.45;
  margin: 6px 0 12px;
}

.physical-orders-notify-grid button {
  margin-top: auto;
}

.physical-orders-production-intro {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.physical-orders-production-intro p {
  margin-bottom: 0;
}

.physical-orders-production-actions .physical-orders-button {
  flex: 1 1 260px;
  min-height: 48px;
}

.physical-orders-export-progress {
  align-items: center;
  background: #f1edfb;
  border: 1px solid #cfc0ed;
  border-radius: 11px;
  display: flex;
  gap: 13px;
  margin-top: 14px;
  padding: 13px;
}

.physical-orders-export-progress strong {
  font-size: 13px;
}

.physical-orders-export-progress p {
  color: var(--po-soft-ink);
  font-size: 11px;
  margin: 3px 0 0;
}

.physical-orders-spinner {
  animation: physical-orders-spin 0.8s linear infinite;
  border: 3px solid rgba(118, 84, 201, 0.2);
  border-radius: 50%;
  border-top-color: var(--po-purple);
  flex: 0 0 24px;
  height: 24px;
  width: 24px;
}

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

.physical-orders-files {
  border-top: 1px solid var(--po-soft-line);
  margin-top: 16px;
  padding-top: 14px;
}

.physical-orders-files h4 {
  font-size: 13px;
  margin: 0 0 7px;
}

.physical-orders-file {
  align-items: center;
  border-bottom: 1px solid var(--po-soft-line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 0;
}

.physical-orders-file:last-child {
  border-bottom: 0;
}

.physical-orders-file > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.physical-orders-file strong {
  font-size: 13px;
}

.physical-orders-file span,
.physical-orders-file small {
  color: var(--po-soft-ink);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.physical-orders-note-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.physical-orders-note-form textarea,
.physical-orders-confirm textarea {
  min-height: 82px;
  resize: vertical;
}

.physical-orders-timeline {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.physical-orders-timeline li {
  display: grid;
  gap: 12px;
  grid-template-columns: 14px minmax(0, 1fr);
  padding: 0 0 16px;
  position: relative;
}

.physical-orders-timeline li::before {
  background: #ded7e8;
  content: "";
  inset: 13px auto -2px 6px;
  position: absolute;
  width: 2px;
}

.physical-orders-timeline li:last-child::before {
  display: none;
}

.physical-orders-timeline-dot {
  background: var(--po-purple);
  border: 3px solid #efe9fb;
  border-radius: 50%;
  height: 13px;
  margin-top: 3px;
  width: 13px;
  z-index: 1;
}

.physical-orders-timeline li.note .physical-orders-timeline-dot { background: #e6a800; border-color: #fff3c7; }
.physical-orders-timeline li.contact .physical-orders-timeline-dot { background: #15945f; border-color: #d8f3e6; }

.physical-orders-timeline header {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.physical-orders-timeline strong {
  font-size: 13px;
  text-transform: capitalize;
}

.physical-orders-timeline time,
.physical-orders-timeline small {
  color: var(--po-soft-ink);
  font-size: 10px;
}

.physical-orders-timeline p {
  color: #4e475a;
  font-size: 12px;
  line-height: 1.5;
  margin: 5px 0;
  white-space: pre-wrap;
}

.physical-orders-state,
.physical-orders-empty-detail {
  color: var(--po-soft-ink);
  font-size: 13px;
  line-height: 1.5;
  padding: 24px 18px;
  text-align: center;
}

.physical-orders-state.error {
  color: var(--po-danger);
}

.physical-orders-empty-detail {
  min-height: 320px;
  place-content: center;
}

.physical-orders-empty-detail strong {
  color: var(--po-ink);
  display: block;
  font-size: 18px;
}

.physical-orders-empty-detail p {
  margin: 6px 0 0;
}

.physical-orders-confirm-backdrop {
  align-items: center;
  background: rgba(20, 15, 30, 0.64);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 1000;
}

.physical-orders-confirm {
  background: #fff;
  border: 1px solid var(--po-line);
  border-radius: 17px;
  box-shadow: 0 24px 80px rgba(20, 15, 30, 0.3);
  max-width: 520px;
  padding: 23px;
  width: 100%;
}

.physical-orders-confirm h2 {
  font-size: 22px;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-top: 6px;
}

.physical-orders-confirm > p {
  color: var(--po-soft-ink);
  font-size: 14px;
  line-height: 1.55;
  margin: 10px 0 16px;
}

.physical-orders-confirm > div:last-child {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 18px;
}

.physical-orders-square-fulfillment-fields {
  margin: 14px 0;
}

.physical-orders-email-preview {
  background: #f7f4fc;
  border: 1px solid #ddd4ee;
  border-radius: 12px;
  margin-bottom: 16px;
  padding: 14px;
}

.physical-orders-email-preview-heading {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.physical-orders-email-preview-heading strong,
.physical-orders-email-preview-heading span {
  display: block;
}

.physical-orders-email-preview-heading span,
.physical-orders-email-preview > p,
.physical-orders-email-preview summary {
  color: var(--po-soft-ink);
  font-size: 13px;
  line-height: 1.45;
}

.physical-orders-email-preview-frame {
  background: #fff;
  border: 1px solid var(--po-line);
  border-radius: 8px;
  height: 620px;
  margin-top: 10px;
  pointer-events: none;
  width: 100%;
}

.physical-orders-email-preview details {
  margin-top: 10px;
}

.physical-orders-email-preview summary {
  cursor: pointer;
  font-weight: 700;
}

.physical-orders-email-preview pre {
  background: #fff;
  border: 1px solid var(--po-line);
  border-radius: 8px;
  color: var(--po-ink);
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
}

@media (max-width: 1180px) {
  .physical-orders-hero {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .physical-orders-summary {
    max-width: none;
  }

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

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

  .physical-orders-master {
    max-height: none;
    position: static;
  }

  .physical-orders-list {
    display: grid;
    gap: 5px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 420px;
  }

  .physical-orders-section-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .physical-orders-hero {
    border-radius: 15px;
    padding: 24px 17px 18px;
  }

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

  .physical-orders-layout {
    gap: 12px;
  }

  .physical-orders-master,
  .physical-orders-detail {
    border-radius: 14px;
  }

  .physical-orders-list {
    grid-template-columns: 1fr;
    max-height: 360px;
  }

  .physical-orders-detail-content {
    gap: 10px;
    padding: 10px;
  }

  .physical-orders-order-head {
    display: grid;
    padding: 16px;
  }

  .physical-orders-order-head > div:last-child {
    align-items: start;
    justify-items: start;
  }

  .physical-orders-section {
    border-radius: 11px;
    padding: 14px;
  }

  .physical-orders-fields,
  .physical-orders-shipping-form,
  .physical-orders-notify-grid,
  .physical-orders-production-intro,
  .physical-orders-note-form {
    grid-template-columns: 1fr;
  }

  .physical-orders-shipping-form .wide {
    grid-column: auto;
  }

  .physical-orders-status-actions,
  .physical-orders-production-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .physical-orders-production-actions .physical-orders-button {
    min-width: 0;
    width: 100%;
  }

  .physical-orders-file {
    align-items: stretch;
    display: grid;
  }

  .physical-orders-timeline header {
    display: grid;
  }

  .physical-orders-confirm {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .physical-orders-spinner {
    animation-duration: 1.8s;
  }
}

.physical-orders-letter-settings { display: grid; gap: 16px; margin: 16px 0; }
.physical-orders-letter-settings label { display: grid; gap: 7px; }
.physical-orders-letter-settings label > span { font-weight: 800; }
.physical-orders-letter-settings input, .physical-orders-letter-settings select { background: #fff; border: 1px solid var(--po-soft-line); border-radius: 8px; color: var(--po-ink); font: inherit; min-height: 40px; padding: 8px; max-width: 100%; }
.physical-orders-letter-settings small { color: var(--po-muted); line-height: 1.5; }
.physical-orders-letter-sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.physical-orders-letter-sources li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border: 1px solid var(--po-soft-line); border-radius: 8px; }
.physical-orders-letter-sources li > span { display: grid; min-width: 0; overflow-wrap: anywhere; }
.physical-orders-letter-sources li > div { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 650px) { .physical-orders-letter-sources li { align-items: flex-start; flex-direction: column; } }

.maker-savings{display:grid;gap:10px;margin:18px 0;padding:18px;background:#fff8ec;border:1px solid #ded6c8;border-radius:14px;color:#283d36}.maker-savings>div{display:flex;justify-content:space-between;gap:20px}.maker-savings dd{margin:0;font-weight:700}.maker-savings .maker-total{border-top:1px solid #ded6c8;padding-top:10px;font-size:20px}.education-discount-page{max-width:1120px;margin:28px auto 60px;padding:0 24px}.education-price-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.education-price-grid article{background:#f8f0df;padding:32px;border:1px solid #e7dbc3;border-radius:24px}.education-price-grid article:nth-child(2){background:#eaf4ef;border-color:#c8ded4}.education-price-grid h2{font-size:42px;color:#173f32;margin:14px 0}.education-price-grid h2 small{font-size:16px}.education-price-grid p,.education-request-card p{line-height:1.7}.education-request-card{background:#fff;padding:32px;border:1px solid #e2ded5;border-radius:24px;max-width:740px;margin:26px auto}.education-request-card form{display:grid;gap:18px}.education-request-card label,.maker-pricing-fields label{display:grid;gap:8px;font-weight:600}.education-request-card input,.education-request-card textarea,.education-request-card select,.maker-pricing-fields input{width:100%;padding:12px;border:1px solid #c8c8c2;border-radius:9px;background:#fff;color:#222;box-sizing:border-box}.education-notice{padding:20px;border-radius:14px;background:#eef6f0;color:#244c37}.maker-pricing-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}.maker-pricing-admin{margin:12px 0 26px}.maker-discount-request{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #ddd;padding:16px 0}.maker-discount-request>div{display:grid;gap:6px;overflow-wrap:anywhere}.maker-pricing-admin h4{margin-top:30px}@media(max-width:680px){.education-price-grid,.maker-pricing-fields{grid-template-columns:1fr}.education-price-grid article,.education-request-card{padding:22px}.education-discount-page{padding:0 16px}.maker-discount-request{align-items:flex-start;flex-direction:column}}
.education-hero{max-width:850px;padding:28px 0 34px}.education-hero h1{font-size:clamp(34px,5vw,62px);line-height:1.06;letter-spacing:-.04em;color:#173f32;margin:14px 0 22px}.education-hero>p:last-child{max-width:660px;font-size:18px;line-height:1.7;color:#526258}
.maker-pricing-admin,.admin-page .maker-pricing-admin{display:block;max-width:100%;padding:24px;background:#fff}.maker-pricing-admin input[type="checkbox"]{width:18px;height:18px;min-height:0;margin:0 8px 0 0;vertical-align:middle}.maker-pricing-admin h3{margin:8px 0 18px}.maker-discount-request>div{flex:1;min-width:0}.maker-discount-request button{flex-shrink:0}
/* Sale prices stay inline; the buying summary opts into a single countdown. */
.maker-price{display:inline-flex;flex-direction:column;align-items:flex-start;gap:5px;position:relative;vertical-align:middle;max-width:100%;font-variant-numeric:tabular-nums;line-height:1.3;cursor:help;letter-spacing:normal;text-transform:none}
.maker-price-values{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:6px 8px;max-width:100%;box-sizing:border-box}
.maker-price .maker-price-regular{color:#6b6470!important;font-size:.8em!important;font-weight:500;text-decoration-thickness:1px;text-decoration-color:#6b6470}
.maker-price .maker-price-current{color:#bd202b!important;font-size:1em!important;font-weight:750;line-height:1.3;letter-spacing:-.02em}
.maker-price-badge{display:inline-block!important;color:#a61722!important;font-size:10px!important;font-weight:750;letter-spacing:.045em;line-height:1.3}
.maker-price.is-compact{vertical-align:baseline}.maker-price.is-compact .maker-price-values{gap:5px 6px}
.maker-countdown{display:block!important;color:#68534a;font:500 11px/1.5 Arial,sans-serif;letter-spacing:.015em;white-space:nowrap}.maker-countdown b{font-weight:650;font-variant-numeric:tabular-nums;color:inherit}
.maker-price-tooltip{position:fixed;z-index:10000;display:grid;gap:9px;box-sizing:border-box;padding:18px;border-radius:14px;background:#24232b;color:#fff!important;box-shadow:0 10px 35px #17111c38;font:400 14px/1.5 Arial,sans-serif;max-height:calc(100vh - 24px);overflow:auto;overflow-wrap:anywhere}.maker-price-tooltip strong{font-size:15px;color:#fff!important}.maker-price-tooltip span{color:#eee8ee!important}
.maker-price:focus-visible{outline:2px solid #c94c57;outline-offset:4px;border-radius:3px}
.maker-savings>dl{margin:0}.maker-savings .maker-total{align-items:flex-start}.maker-savings .maker-total dd{margin:0;max-width:100%}.maker-savings-note{margin:0;font-size:13px!important}.maker-savings .maker-price{font-size:24px}
.maker-price-pending{font-size:14px;font-weight:500}.maker-price-plain{font-variant-numeric:tabular-nums}
.maker-current-price{max-width:650px;margin:0;padding:0 0 20px;border-bottom:1px solid #e9e2e6}
.maker-current-price .maker-savings{margin:0 0 8px;padding:0;border:0;border-radius:0;background:transparent;color:#332833}
.maker-current-price .maker-savings .maker-total{border:0;padding:0;display:flex;align-items:baseline;justify-content:space-between;gap:16px}
.maker-current-price .maker-total dt{font-size:15px;font-weight:650}
.maker-current-price>p{margin:5px 0!important;font-size:13px!important;line-height:1.6!important;color:#6b616a}
.maker-current-price>a{display:inline-block;margin-top:7px;font-size:12px;color:#775c6c;text-underline-offset:3px}
.project-pass-price-card{background:#fffaf5;border:1px solid #e7dfd7;border-radius:14px;color:#332833;gap:8px}
.project-pass-price-card>span:first-child{color:#68534a}
.project-pass-price-card>.maker-price,.project-pass-price-card>.maker-price-plain{font-size:26px}
.project-pass-price-card small{color:#68534a;font-weight:500;line-height:1.5}
.square-pass-mini>.maker-price{font-size:14px;margin-right:4px}
.square-pass-panel .maker-price-values{font-size:inherit}
.auth-proof-row{align-items:center}

/* Homepage only: a quiet, text-led announcement, not another purchase card. */
.maker-sale-banner{width:calc(100% - 48px);max-width:1220px;box-sizing:border-box;margin:0 auto 8px;padding:4px 0;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;column-gap:10px;row-gap:0;border-bottom:1px solid #eee7eb;color:#71656d;font-size:12px;line-height:1.5}
.maker-sale-headline{font-weight:500}
.maker-sale-cta{display:inline-flex;align-items:center;min-height:36px;gap:4px;box-sizing:border-box;color:#ad245f;font-size:12px;font-weight:650;text-decoration:none;text-underline-offset:3px}
.maker-sale-cta:hover{text-decoration:underline;color:#8e194c}
.maker-sale-cta:focus-visible{outline:2px solid #ad245f;outline-offset:3px;border-radius:2px}
.maker-sale-deadline{color:#71656d;font-size:11px}
@media(max-width:680px){
  .maker-sale-banner{width:calc(100% - 32px);padding:6px 0 8px;column-gap:8px}
  .maker-sale-headline{flex-basis:100%;text-align:center}
  .maker-sale-cta{min-height:36px;font-size:11px}
  .maker-sale-deadline{font-size:10px}
  .maker-current-price .maker-savings .maker-total{flex-wrap:wrap;gap:8px 16px}
  .maker-savings .maker-total{flex-wrap:wrap}
  .maker-current-price{padding-bottom:18px}
}

.maker-directory-v2 {overflow:hidden;border:1px solid #e7dedf;border-radius:20px;background:#fff;box-shadow:0 8px 30px #42243607}
.maker-directory-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:22px 22px 14px}.maker-directory-heading h2{margin:0 0 6px;font-size:21px;letter-spacing:-.6px}.maker-directory-heading p{margin:0;color:#6f626a;font-size:13px;line-height:1.5}.maker-directory-total{white-space:nowrap;border-radius:99px;background:#f6eff5;padding:7px 12px;font-size:12px;font-weight:700;color:#872653}
.maker-directory-summary{display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding:0 22px 16px;border-bottom:1px solid #eee6eb;color:#6b5d65;font-size:13px}.maker-directory-summary strong{color:#30252d}.maker-directory-summary small{margin-left:auto;color:#81757d;font-size:11px}.maker-directory-status{padding:10px 22px;color:#756570;font-size:12px;min-height:34px}.maker-directory-v2 .admin-table-scroll{max-height:70vh;overflow:auto;overscroll-behavior:contain}.maker-directory-v2 table{width:100%;border-collapse:collapse;min-width:860px}.maker-directory-v2 th{position:sticky;top:0;background:#fbf8fa;z-index:1;text-align:left;font-size:10px;letter-spacing:1px;text-transform:uppercase;padding:12px 16px;border-bottom:1px solid #e9e0e5;white-space:nowrap}.maker-directory-v2 td{padding:16px;vertical-align:top;border-bottom:1px solid #f0e9ee;font-size:13px}.maker-directory-v2 tr:hover{background:#fdfafd}.maker-directory-v2 .customer-table-name{display:flex;align-items:center;gap:10px;text-align:left;background:transparent;border:0;padding:0;color:inherit;max-width:280px}.maker-directory-v2 .customer-avatar{width:34px;height:34px;border-radius:12px;background:#f7eaf1;color:#a71357;display:grid;place-items:center;flex-shrink:0;font-weight:800}.maker-directory-v2 .customer-table-name>span:last-child{display:grid;gap:3px;min-width:0}.maker-directory-v2 .customer-table-name strong,.maker-directory-v2 .customer-table-name small{overflow-wrap:anywhere}.maker-directory-v2 .customer-table-stack{display:grid;gap:4px;max-width:260px}.maker-directory-v2 small{font-size:11px;line-height:1.5;color:#766873}.maker-directory-v2 .customer-row-actions{display:flex;flex-wrap:wrap;gap:6px;max-width:180px}.maker-directory-v2 .customer-row-actions button{background:#fff6fa;color:#a51253;border:1px solid #efdce6;border-radius:9px;padding:7px 9px;font-size:11px;font-weight:700;min-height:34px}.maker-directory-v2 button:focus-visible{outline:3px solid #b72572;outline-offset:3px}.maker-directory-v2 .customer-pagination{padding:16px 22px;gap:10px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;border-top:1px solid #eee6eb}.maker-directory-v2 .customer-pagination>div{display:flex;gap:6px;flex-wrap:wrap}.maker-directory-v2 .customer-pagination button{min-height:38px;padding:8px 13px}.maker-directory-v2 .customer-pagination button:disabled{opacity:.4;cursor:default}.maker-directory-term{display:block;padding-top:6px}.maker-online{color:#087a55}.maker-directory-empty{padding:40px 22px;text-align:center}.maker-directory-empty p{color:#766873;font-size:13px}.maker-directory-error{background:#fff2f4;color:#862442;display:flex;justify-content:space-between;gap:12px;padding:14px 22px;font-size:13px}.maker-directory-error button{background:white;color:inherit;border:1px solid #e9bac8;border-radius:8px;padding:6px 12px}.maker-directory-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){.maker-directory-heading{padding:18px 16px 12px;gap:10px}.maker-directory-heading h2{font-size:19px}.maker-directory-heading p{font-size:12px}.maker-directory-total{font-size:11px}.maker-directory-summary{padding:0 16px 12px;gap:12px}.maker-directory-summary small{margin:0;width:100%}.maker-directory-v2 .admin-table-scroll{max-height:none;overflow:visible}.maker-directory-v2 table,.maker-directory-v2 tbody{display:block;min-width:0}.maker-directory-v2 thead{display:none}.maker-directory-v2 tr{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px;border-top:1px solid #e9e0e5}.maker-directory-v2 td{display:block;border:0;padding:0;min-width:0}.maker-directory-v2 td:first-child,.maker-directory-v2 td:nth-child(2),.maker-directory-v2 td:last-child{grid-column:1/-1}.maker-directory-v2 td:not(:first-child):before{content:attr(data-label);display:block;color:#81727c;text-transform:uppercase;font-size:9px;letter-spacing:1px;margin-bottom:4px}.maker-directory-v2 .customer-table-stack{max-width:none}.maker-directory-v2 .customer-table-name{max-width:none}.maker-directory-v2 .customer-row-actions{max-width:none}.maker-directory-v2 .customer-row-actions button{min-height:40px}.maker-directory-v2 .customer-pagination{padding:14px 16px}.maker-directory-v2 .customer-pagination button{padding:8px 10px;min-height:40px}}
.customer-table-workspace .maker-directory-v2.admin-customer-table-card{padding:0!important;min-height:0}
.customer-table-workspace .maker-directory-v2 .admin-customer-table{min-width:860px}
.customer-table-workspace .maker-directory-v2 .admin-table-scroll{border:0;border-radius:0;max-height:70vh}
@media(max-width:700px){
 .customer-table-workspace .maker-directory-v2 .admin-table-scroll{max-height:none;overflow:visible!important}
 .customer-table-workspace .maker-directory-v2 .admin-customer-table{display:block;min-width:0;width:100%}
 .customer-table-workspace .maker-directory-v2 .admin-customer-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:16px;gap:14px}
 .customer-table-workspace .maker-directory-v2 .admin-customer-table td{display:block;padding:0;min-width:0;border:0;max-width:100%;overflow-wrap:anywhere}
 .customer-table-workspace .maker-directory-v2 .admin-customer-table td:before{width:auto;min-width:0;position:static}
 .customer-table-workspace .maker-directory-v2 .admin-customer-table td:first-child:before{display:none}
 .customer-table-workspace .maker-directory-v2 .admin-table-pill{max-width:100%;white-space:normal;line-height:1.4;padding:5px 8px}
 .customer-table-workspace .maker-directory-v2 .customer-table-name{max-width:100%;width:100%;font-size:13px}
 .customer-table-workspace .maker-directory-v2 .customer-table-name small{max-width:100%;overflow-wrap:anywhere}
 .customer-table-workspace .maker-directory-v2 .customer-pagination>div{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
 .customer-table-workspace .maker-directory-v2 .customer-pagination button{padding:8px 5px;font-size:12px}
}
@media(max-width:760px){
 .admin-portal-shell:has(.maker-directory-v2)>.admin-portal-sidebar{display:none}
 .admin-portal-main:has(.maker-directory-v2) .admin-portal-topbar{padding:16px;gap:12px}
 .admin-portal-main:has(.maker-directory-v2) .admin-portal-topbar h1{font-size:28px}
 .customer-table-workspace .customer-summary-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .customer-table-workspace .customer-summary-strip button{min-height:58px;padding:9px}
 .customer-table-workspace .customer-summary-strip span{font-size:9px;letter-spacing:.3px}
 .customer-table-workspace .customer-summary-strip strong{font-size:20px}
 .customer-table-workspace .customer-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}
 .customer-table-workspace .customer-filter-bar label:first-child,.customer-table-workspace .customer-filter-bar>button{grid-column:1/-1}
}

/* Compact admin-only customer directory. Numeric totals are not project limits. */
.maker-directory-board-mini{display:flex;flex-direction:column;box-sizing:border-box;width:40px;height:56px;padding:2px;gap:1px}.maker-directory-board-mini-title{display:block;flex:0 0 5px;font:800 3.5px/5px Georgia,serif;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:clip}.maker-directory-board-mini-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:.6px;flex:1;min-height:0}.maker-directory-board-mini-grid>span{display:block;min-width:0;min-height:0;overflow:hidden;background:#e9e2dd;border-radius:.4px}.maker-directory-board-preview .maker-directory-board-mini-grid img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;border-radius:0}
.maker-directory-compact td.maker-count-col:before{white-space:nowrap}
.maker-directory-compact .maker-directory-heading{padding:17px 18px 11px;align-items:center}.maker-directory-compact .maker-directory-heading h2{font-size:19px;margin-bottom:3px}.maker-directory-compact .maker-directory-heading p{font-size:12px}.maker-directory-compact .maker-directory-summary{padding:0 18px 12px;gap:18px}.maker-directory-compact .maker-directory-status{padding:8px 18px;display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:32px}.maker-directory-compact .maker-directory-status small{font-size:10px;color:#847780}
.customer-table-workspace .maker-directory-compact .admin-customer-table{min-width:900px;table-layout:fixed}.maker-directory-compact th:nth-child(1){width:26%}.maker-directory-compact th:nth-child(2){width:22%}.maker-directory-compact th:nth-child(3),.maker-directory-compact th:nth-child(4){width:8%}.maker-directory-compact th:nth-child(5){width:13%}.maker-directory-compact th:nth-child(6){width:14%}.maker-directory-compact th:nth-child(7){width:9%}.maker-directory-compact th{padding:10px 12px;letter-spacing:.7px}.maker-directory-compact td{padding:9px 12px;vertical-align:middle;height:76px}.maker-directory-compact tbody tr:nth-child(even){background:#fcfafb}.maker-directory-compact tbody tr:hover{background:#f9f1f6}.maker-directory-compact tbody tr.selected{background:#f8eaf2;box-shadow:inset 3px 0 #b31561}
.maker-directory-compact .maker-customer-identity-inner{display:flex;align-items:center;gap:10px;min-width:0}.maker-directory-compact .customer-table-name{display:grid;gap:3px;min-width:0;max-width:100%;cursor:pointer;line-height:1.3}.maker-directory-compact .customer-table-name strong{font-size:12px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.maker-directory-compact .customer-table-name small{display:block;max-width:100%;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.maker-directory-preview-slot{display:block;flex:0 0 40px;width:40px;height:56px}.maker-directory-board-preview,.maker-directory-preview-empty{box-sizing:border-box;width:40px;height:56px;display:grid;place-items:center;border:1px solid #e6dce2;border-radius:5px;overflow:hidden;background:#f7f2f5;padding:0;color:#b8aab4}.maker-directory-board-preview{cursor:pointer;box-shadow:0 2px 4px #42243614;transition:transform .15s,border-color .15s}.maker-directory-board-preview:hover{transform:scale(1.09);border-color:#b31561}.maker-directory-board-preview img{display:block;width:40px;height:56px;object-fit:contain}.maker-directory-preview-empty{border-style:dashed}.maker-directory-compact .maker-project-link{display:block;max-width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;background:none;border:0;color:#6f284b;text-align:left;padding:3px 0;font-size:12px;font-weight:650;cursor:pointer}.maker-directory-compact .maker-project-link:disabled{color:#93858e;font-weight:400;cursor:default}.maker-directory-compact .maker-project-cell>small{display:block;font-size:10px}
.maker-directory-compact th.maker-count-col,.maker-directory-compact td.maker-count-col{text-align:right}.maker-directory-compact .maker-count-button{font-size:15px;font-weight:750;line-height:1;min-height:36px;padding:7px 3px;background:none;border:0;color:#382b35;font-variant-numeric:tabular-nums;cursor:pointer}.maker-directory-compact .maker-count-button:hover{color:#b31561;text-decoration:underline;text-underline-offset:4px}.maker-directory-compact .maker-count-button.is-zero{color:#a697a1;font-weight:500}.maker-directory-compact .admin-table-pill{font-size:10px;line-height:1.3;letter-spacing:0;padding:4px 7px;border-radius:6px;white-space:nowrap}.maker-directory-compact .maker-directory-term{padding-top:4px;font-size:10px;white-space:nowrap}.maker-directory-compact .customer-table-stack{gap:3px;line-height:1.3}.maker-directory-compact .customer-table-stack strong{font-size:11px;font-weight:600}.maker-directory-compact .customer-table-stack small{font-size:10px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.maker-online{display:inline-flex;gap:5px;align-items:center}.maker-online i{display:inline-block;width:5px;height:5px;border-radius:100%;background:currentColor}.maker-directory-compact .customer-attention-badges{display:flex;gap:4px;flex-wrap:wrap}.maker-directory-compact .customer-attention-badges button{font-size:9px;line-height:1.3;padding:4px 6px;min-height:25px;border-radius:5px;border:1px solid #e3d6ee;background:#f5eefc;color:#694384;white-space:nowrap}.maker-directory-compact .customer-attention-badges button.error{border-color:#f1d8d4;background:#fff2ee;color:#a44735}.maker-directory-compact .customer-attention-badges .maker-no-alerts{color:#b5a7b0;background:none;border:0;box-shadow:none;padding:0}.maker-directory-compact .customer-pagination{padding:12px 18px}.maker-directory-compact .customer-pagination button{min-height:34px;padding:6px 11px;font-size:11px}
@media(prefers-reduced-motion:reduce){.maker-directory-board-preview{transition:none}.maker-directory-board-preview:hover{transform:none}}
.maker-directory-compact .customer-attention-badges button span{background:none;border:0;padding:0;color:inherit;box-shadow:none;font-size:inherit;line-height:inherit}
@media(max-width:700px){.maker-directory-compact .maker-directory-heading{padding:14px 14px 10px}.maker-directory-compact .maker-directory-heading h2{font-size:17px}.maker-directory-compact .maker-directory-summary{padding:0 14px 10px;gap:10px;font-size:11px}.maker-directory-compact .maker-directory-summary small{font-size:10px}.maker-directory-compact .maker-directory-status{padding:8px 14px;align-items:flex-start;flex-direction:column;gap:3px}.customer-table-workspace .maker-directory-compact .admin-customer-table{min-width:0;table-layout:auto}.customer-table-workspace .maker-directory-compact .admin-customer-table tr{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.8fr) minmax(0,1.2fr);padding:12px 14px;gap:10px 12px}.customer-table-workspace .maker-directory-compact .admin-customer-table td{height:auto;vertical-align:middle}.customer-table-workspace .maker-directory-compact .admin-customer-table .maker-customer-identity{grid-column:1/4;grid-row:1}.customer-table-workspace .maker-directory-compact .admin-customer-table .maker-access-cell{grid-column:4;grid-row:1;align-self:center}.customer-table-workspace .maker-directory-compact .admin-customer-table .maker-access-cell:before{display:none}.customer-table-workspace .maker-directory-compact .admin-customer-table .maker-project-cell{grid-column:1/3;grid-row:2}.customer-table-workspace .maker-directory-compact .admin-customer-table .maker-count-col{grid-row:2;text-align:left}.customer-table-workspace .maker-directory-compact .admin-customer-table .maker-activity-cell{grid-column:1/3;grid-row:3}.customer-table-workspace .maker-directory-compact .admin-customer-table .maker-help-cell{grid-column:3/-1;grid-row:3}.customer-table-workspace .maker-directory-compact .admin-customer-table td:before{font-size:8px;letter-spacing:.6px;margin-bottom:2px}.maker-directory-compact .customer-table-name strong{font-size:12px}.maker-directory-compact .customer-table-name small{font-size:10px}.customer-table-workspace .maker-directory-compact .admin-table-pill{box-sizing:border-box;font-size:8.5px;letter-spacing:0;white-space:nowrap;word-break:normal;overflow-wrap:normal;padding:4px 5px}.maker-directory-compact .maker-directory-term{font-size:8px;white-space:normal}.maker-directory-compact .maker-project-link{font-size:11px;padding:0 0 2px}.maker-directory-compact .maker-count-button{font-size:17px;min-height:30px;padding:0}.maker-directory-compact .customer-table-stack{display:flex;gap:6px;align-items:baseline;flex-wrap:wrap}.maker-directory-compact .customer-table-stack strong,.maker-directory-compact .customer-table-stack small{font-size:10px}.maker-directory-compact .customer-pagination{padding:12px 14px}.maker-directory-compact .customer-pagination>div{margin-top:2px}}

/* Bundled classic artwork-only default. */

.app-deck-classic-default{border:1px solid #bddcd1;background:linear-gradient(115deg,#f1fbf4,#fffdf4);display:grid;gap:16px}
.app-deck-classic-default-heading{display:flex;justify-content:space-between;align-items:start;gap:20px}
.app-deck-classic-default h3{margin:3px 0 8px;font-size:22px;letter-spacing:-.4px}
.app-deck-classic-default p{font-size:13px;color:#526c70;line-height:1.65;margin:4px 0}
.app-deck-classic-default-controls{display:grid;grid-template-columns:minmax(160px,1fr) auto;align-items:end;gap:12px}
.app-deck-classic-default label{display:grid;gap:7px;min-width:0;font-size:12px;color:#415b60;font-weight:600}
.app-deck-classic-default-controls button{min-height:44px}
@media(max-width:800px){.app-deck-classic-default-heading{flex-direction:column}.app-deck-classic-default-controls{grid-template-columns:1fr}.app-deck-classic-default-controls button{width:100%}}

/* Isolated SDK ad diagnostics; existing financial totals remain separate. */

.ios-ad-measurement .ios-ad-report-state { margin: 8px 0 0; color: var(--ios-text-muted, #586473); line-height: 1.6; }
.ios-ad-report-counts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ios-ad-report-counts article { display: grid; gap: 7px; padding: 14px; border: 1px solid #e1e7ed; border-radius: 12px; }
.ios-ad-report-counts span, .ios-ad-report-counts small, .ios-ad-report-currency p, .ios-ad-report-currency small, .ios-ad-report-quality, .ios-ad-report-notes p { color: #637080; font-size: 12px; line-height: 1.6; }
.ios-ad-report-counts strong { font-size: 26px; line-height: 1.1; }
.ios-ad-report-currency { margin-top: 22px; }
.ios-ad-report-currency h4 { margin: 0; font-size: 15px; }
.ios-ad-report-currency > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ios-ad-report-currency article { display: grid; gap: 7px; padding: 16px; background: #f4f8f6; border: 1px solid #dfebe4; border-radius: 12px; }
.ios-ad-report-currency article > span { font-size: 12px; font-weight: 700; color: #35644b; }
.ios-ad-report-currency strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.ios-ad-report-table { margin-top: 22px; overflow-x: auto; }
.ios-ad-report-table table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.ios-ad-report-table th, .ios-ad-report-table td { padding: 10px; border-bottom: 1px solid #e5eaf0; white-space: nowrap; }
.ios-ad-report-table thead th { font-weight: 600; color: #637080; }
.ios-ad-report-notes { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e5eaf0; }
.ios-ad-report-notes summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.ios-ad-report-notes p { margin: 10px 0 0; }
@media (max-width: 1000px) { .ios-ad-report-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ios-ad-report-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ios-ad-measurement { margin-bottom: 16px; }

.admin-card-enlarge { display:grid; gap:7px; padding:0; border:0; background:transparent; color:#684137; width:100%; min-width:0; text-align:inherit; cursor:zoom-in; border-radius:12px; }
.admin-card-enlarge > span { font-size:11px; font-weight:700; text-align:center; }
.admin-card-enlarge:disabled { opacity:.55; cursor:default; }
.admin-card-enlarge:focus-visible { outline:3px solid #ad1b64; outline-offset:4px; }
.modal-backdrop.admin-image-viewer { z-index:1400; padding:16px; background:rgba(15,12,22,.88); overflow:hidden; }
.admin-image-viewer > .admin-image-viewer-panel { display:flex; flex-direction:column; width:min(1100px,100%); height:calc(100dvh - 32px); max-height:calc(100dvh - 32px); margin:auto; padding:0; overflow:hidden; border-radius:18px; background:#fffaf7; color:#29202d; box-shadow:0 24px 90px #0006; }
.admin-image-viewer-panel header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 18px; }
.admin-image-viewer-panel h2 { font-size:19px; line-height:1.3; margin:0; overflow-wrap:anywhere; }
.admin-image-viewer-panel h2 small { color:#796979; font-size:14px; }
.admin-image-viewer-panel header p { font-size:12px; margin:4px 0 0; color:#796979; }
.admin-image-viewer-panel button { min-width:40px; min-height:40px; padding:8px 12px; border:1px solid #d6cdd6; border-radius:9px; background:#fff; color:#49344c; font-size:14px; font-weight:700; cursor:pointer; }
.admin-image-viewer-panel button:disabled { opacity:.4; cursor:default; }
.admin-image-viewer-panel button:focus-visible,.admin-image-viewer-viewport:focus-visible { outline:3px solid #b71b63; outline-offset:-3px; }
.admin-image-viewer-toolbar { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:10px; padding:0 12px 12px; }
.admin-image-viewer-toolbar output { min-width:48px; text-align:center; font-size:14px; font-variant-numeric:tabular-nums; }
.admin-image-viewer-viewport { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; background:#e8e4e9; }
.admin-image-viewer-viewport.zoomed { cursor:grab; }
.admin-image-viewer-viewport.zoomed:active { cursor:grabbing; }
.admin-image-viewer-stage { display:flex; align-items:center; justify-content:center; position:relative; }
.admin-image-viewer-stage > img { display:block; max-width:none; max-height:none; flex:none; object-fit:contain; user-select:none; }
.admin-image-viewer-stage > p { position:absolute; }
.admin-image-viewer-error { max-width:460px; margin:32px auto; padding:20px; text-align:center; }
.admin-image-viewer-panel footer { padding:10px 16px; font-size:12px; line-height:1.4; text-align:center; color:#796979; }
@media(max-width:600px) { .modal-backdrop.admin-image-viewer{padding:8px}.admin-image-viewer > .admin-image-viewer-panel{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:12px}.admin-image-viewer-panel header{padding:12px}.admin-image-viewer-panel h2{font-size:16px}.admin-image-viewer-panel footer{font-size:11px} }

.ios-campaign-workspace { display: grid; gap: 18px; color: var(--ios-ink, #17283c); min-width: 0; }
.ios-campaign-workspace button, .ios-campaign-workspace input, .ios-campaign-workspace select, .ios-campaign-workspace textarea { font: inherit; }
.ios-campaign-workspace button { cursor: pointer; }
.ios-campaign-workspace button:disabled { cursor: default; opacity: .5; }
.ios-campaign-workspace :is(input, select, textarea, button):focus-visible { outline: 3px solid #79bbac; outline-offset: 3px; }
.ios-campaign-toolbar, .ios-campaign-library-heading, .ios-campaign-editor-heading, .ios-campaign-policy-rollback { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ios-campaign-section-tabs { display: flex; gap: 5px; padding: 5px; border: 1px solid var(--ios-border, #e4e4dd); border-radius: 14px; background: #fffefa; }
.ios-campaign-section-tabs button { border: 0; border-radius: 10px; padding: 10px 17px; background: transparent; color: #687482; font-weight: 700; min-height: 44px; }
.ios-campaign-section-tabs button[aria-selected="true"] { background: #173d43; color: white; }
.ios-campaign-layout { display: grid; grid-template-columns: minmax(190px, .62fr) minmax(440px, 1.8fr) minmax(240px, .85fr); gap: 18px; align-items: start; }
.ios-campaign-layout > *, .ios-campaign-policy-layout > * { min-width: 0; }
.ios-campaign-library, .ios-campaign-editor, .ios-campaign-report, .ios-campaign-store-checks { padding: 20px; }
.ios-campaign-library { position: sticky; top: 20px; display: grid; gap: 20px; }
.ios-campaign-library h2 { font-size: 16px; margin: 7px 0 0; }
.ios-campaign-library-heading { flex-wrap: wrap; gap: 10px; }
.ios-campaign-library-heading button { font-size: 12px; padding: 9px 12px; }
.ios-campaign-library > p, .ios-campaign-editor-heading p, .ios-campaign-store-checks > p { color: var(--ios-muted, #687482); font-size: 13px; line-height: 1.6; margin: 4px 0; }
.ios-campaign-editor-heading { margin-bottom: 22px; }
.ios-campaign-editor-heading h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.6px; margin: 5px 0 8px; }
.ios-campaign-editor-column { display: grid; gap: 18px; min-width: 0; }
.ios-campaign-list { display: grid; gap: 6px; max-height: 570px; overflow: auto; }
.ios-campaign-list button { display: grid; gap: 6px; border: 1px solid transparent; border-radius: 12px; background: #f5f5ef; padding: 13px; text-align: left; color: #17283c; }
.ios-campaign-list button[aria-pressed="true"] { background: #eaf5ef; border-color: #b8d8cd; box-shadow: inset 3px 0 #318d78; }
.ios-campaign-list button strong { font-size: 13px; overflow-wrap: anywhere; }
.ios-campaign-list button span, .ios-campaign-list button small { font-size: 11px; color: #687482; }
.ios-campaign-delivery-status { border-top: 1px solid #e4e4dd; padding-top: 16px; display: flex; align-items: flex-start; gap: 9px; }
.ios-campaign-delivery-status > span { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; margin-top: 5px; }
.ios-campaign-delivery-status .ready { background: #2e9279; }
.ios-campaign-delivery-status .pending { background: #dba633; }
.ios-campaign-delivery-status strong { font-size: 11px; }
.ios-campaign-delivery-status p { margin: 5px 0 0; font-size: 11px; line-height: 1.6; color: #687482; }
.ios-campaign-unsaved, .ios-campaign-policy-status { padding: 6px 9px; border-radius: 20px; background: #f5ecd2; color: #81652e; font-size: 10px; font-weight: 800; white-space: nowrap; }
.ios-campaign-policy-status.enabled { color: #226b56; background: #dcf0e5; }
.ios-campaign-form { display: grid; gap: 21px; border: 0; margin: 0; padding: 0; min-width: 0; }
.ios-campaign-field-grid, .ios-campaign-copy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.ios-campaign-copy-grid { gap: 19px; }
.ios-campaign-copy-grid > section { display: grid; gap: 12px; min-width: 0; }
.ios-campaign-form h3, .ios-campaign-test h3, .ios-campaign-confirmation h3, .ios-campaign-store-checks h3, .ios-campaign-report h3 { margin: 0; font-size: 14px; }
.ios-campaign-copy-grid h3 { color: #47716f; border-bottom: 1px solid #e4e4dd; padding-bottom: 9px; }
.ios-campaign-field { display: grid; gap: 7px; font-size: 12px; font-weight: 650; color: #3a545b; min-width: 0; }
.ios-campaign-field.wide { grid-column: 1 / -1; }
.ios-campaign-field :is(input, select, textarea), .ios-campaign-test select, .ios-campaign-preview-controls select { border: 1px solid #dce1dc; background: white; color: #17283c; padding: 10px 11px; border-radius: 9px; min-width: 0; width: 100%; min-height: 43px; }
.ios-campaign-field textarea { resize: vertical; line-height: 1.6; }
.ios-campaign-field input[type="color"] { max-width: 100%; width: 100%; padding: 5px; }
.ios-campaign-field small, .ios-campaign-field-note { font-size: 10px; font-weight: 400; line-height: 1.5; color: #687482; margin: 0; }
.ios-campaign-field-note { padding-top: 22px; }
.ios-campaign-checks { display: flex; flex-wrap: wrap; gap: 11px 17px; }
.ios-campaign-check { display: flex; gap: 8px; align-items: center; min-height: 32px; font-size: 12px; font-weight: 600; color: #365457; }
.ios-campaign-check input { width: 17px; height: 17px; accent-color: #2f8a79; }
.ios-campaign-form-section { border: 1px solid #dce8df; border-radius: 12px; padding: 15px; background: #f4faf4; display: grid; gap: 9px; }
.ios-campaign-form-section p, .ios-campaign-test p, .ios-campaign-policy-rollback p { margin: 0; font-size: 11px; color: #687482; line-height: 1.6; }
.ios-campaign-image-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.ios-campaign-upload { display: grid; gap: 5px; text-align: center; color: #2d6e64; font-size: 11px; cursor: pointer; }
.ios-campaign-upload input { width: 100%; max-width: 180px; font-size: 10px; }
.ios-campaign-upload > span { display: none; }
.ios-campaign-upload small { font-size: 9px; color: #687482; }
.ios-campaign-advanced { padding: 15px; border: 1px solid #e4e4dd; border-radius: 12px; }
.ios-campaign-advanced summary { font-weight: 700; font-size: 12px; cursor: pointer; color: #456260; }
.ios-campaign-advanced > div { margin-top: 16px; }
.ios-campaign-actionbar { display: flex; gap: 10px; flex-wrap: wrap; border-top: 1px solid #e4e4dd; padding-top: 18px; margin-top: 22px; }
.ios-campaign-confirmation { border-radius: 13px; padding: 18px; background: #eff8ef; border: 1px solid #bfdcc8; margin-top: 18px; }
.ios-campaign-confirmation p { font-size: 12px; line-height: 1.5; color: #49665a; }
.ios-campaign-test { margin-top: 22px; display: grid; gap: 10px; }
.ios-campaign-test > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.ios-campaign-test-approval { border: 1px solid #e4e4dd; border-radius: 10px; padding: 13px; }
.ios-campaign-test-approval summary { color: #456260; font-size: 12px; font-weight: 700; cursor: pointer; }
.ios-campaign-test-approval > :not(summary) { margin-top: 12px; }
.ios-campaign-test-approval input { font-family: ui-monospace, monospace; font-size: 11px; }
.ios-campaign-preview-column { position: sticky; top: 20px; display: grid; gap: 13px; }
.ios-campaign-preview-controls { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ios-campaign-preview-controls > div { display: flex; background: white; border: 1px solid #e4e4dd; padding: 3px; border-radius: 9px; }
.ios-campaign-preview-controls button { padding: 6px 9px; font-size: 10px; border: 0; border-radius: 6px; background: transparent; color: #687482; }
.ios-campaign-preview-controls button[aria-pressed="true"] { color: white; background: #173d43; }
.ios-campaign-preview-controls select { font-size: 10px; width: auto; min-height: 34px; padding: 6px; }
.ios-campaign-preview { border: 5px solid #20373e; padding: 18px 11px 28px; border-radius: 29px; background: linear-gradient(150deg, #bce0d5, #f3e7d5 65%, #ecc6b9); min-height: 400px; max-width: 310px; margin: auto; width: 100%; box-shadow: 0 16px 40px #17333a1a; overflow: hidden; }
.ios-campaign-preview-device { display: flex; justify-content: space-between; align-items: center; padding: 0 5px 27px; font-size: 8px; font-weight: 800; color: #29404a; }
.ios-campaign-preview-device i { width: 67px; height: 15px; border-radius: 20px; background: #20373e; }
.ios-campaign-notification { background: #fffffff0; backdrop-filter: blur(12px); border-radius: 18px; padding: 12px; box-shadow: 0 8px 25px #223b4a10; }
.ios-campaign-notification-brand { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.ios-campaign-mini-icon { color: #e75e56; background: #fff; box-shadow: 0 0 0 1px #e8e3d8; border-radius: 4px; height: 18px; width: 18px; display: grid; place-items: center; font-size: 13px; }
.ios-campaign-notification-brand b { font-size: 10px; }
.ios-campaign-notification-brand small { margin-left: auto; font-size: 8px; color: #7c8587; }
.ios-campaign-notification > strong { display: block; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.ios-campaign-preview-subtitle { display: block; font-size: 11px; line-height: 1.4; margin-top: 4px; }
.ios-campaign-notification p { font-size: 11px; line-height: 1.5; margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ios-campaign-notification img { width: 100%; border-radius: 9px; margin-top: 10px; max-height: 170px; object-fit: cover; }
.ios-campaign-preview-image-error { font-size: 10px; padding: 15px; background: #f3eee4; margin-top: 10px; border-radius: 8px; color: #826d55; }
.ios-campaign-preview-note { font-size: 10px; line-height: 1.7; color: #687482; margin: 0 auto; max-width: 280px; }
.ios-campaign-app-card { border-radius: 17px; padding: 17px 13px; background: #fffdf7; text-align: center; display: grid; justify-items: center; gap: 13px; }
.ios-campaign-preview-badge { font-size: 8px; color: var(--campaign-accent); border: 1px solid currentColor; padding: 4px 7px; border-radius: 15px; font-weight: 800; }
.ios-campaign-app-card img { max-height: 140px; border-radius: 12px; width: 100%; object-fit: cover; }
.ios-campaign-preview-art { width: 90px; height: 90px; border-radius: 24px; background: #f5e6c9; color: var(--campaign-accent); font-size: 55px; display: grid; place-items: center; }
.ios-campaign-app-card > strong { font-size: 23px; line-height: 1.1; letter-spacing: -.6px; overflow-wrap: anywhere; max-width: 100%; }
.ios-campaign-app-card p { font-size: 11px; color: #687482; line-height: 1.6; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
.ios-campaign-preview-button { display: block; background: var(--campaign-accent); border-radius: 9px; color: white; padding: 10px 13px; font-size: 10px; font-weight: 800; width: 100%; overflow-wrap: anywhere; }
.ios-campaign-message { padding: 15px 18px; border-radius: 12px; font-size: 13px; line-height: 1.6; }
.ios-campaign-message.error { background: #fff0ea; border: 1px solid #edc6b9; color: #914e3b; }
.ios-campaign-message.success { background: #eaf5eb; border: 1px solid #c9dfca; color: #326745; }
.ios-campaign-message p { margin: 4px 0 0; }
.ios-campaign-errors { font-size: 12px; line-height: 1.7; color: #a44f3d; padding: 12px 12px 12px 27px; border-radius: 9px; background: #fff4ee; }
.ios-campaign-report > p { color: #687482; font-size: 10px; margin: 12px 0 0; line-height: 1.6; }
.ios-campaign-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.ios-campaign-metrics div { display: grid; gap: 5px; }
.ios-campaign-metrics strong { font-size: 21px; }
.ios-campaign-metrics span { font-size: 9px; color: #687482; }
.ios-campaign-policy-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: 20px; align-items: start; }
.ios-campaign-store-checks { display: grid; gap: 16px; }
.ios-campaign-store-checks article { display: grid; gap: 5px; padding: 12px 0; border-top: 1px solid #e4e4dd; }
.ios-campaign-store-checks article strong { font-size: 12px; }
.ios-campaign-store-checks article span, .ios-campaign-store-checks article small { font-size: 10px; color: #687482; }
.ios-campaign-store-checks .ios-campaign-preview { margin-top: 10px; }
.ios-campaign-policy-rollback { border-top: 1px solid #e4e4dd; padding-top: 18px; margin-top: 25px; align-items: center; }
.ios-campaign-policy-rollback strong { font-size: 12px; }
.ios-campaign-loading { padding: 25px; }
@media (max-width: 1450px) {
  .ios-campaign-layout { grid-template-columns: minmax(0, 1fr) 270px; }
  .ios-campaign-library { position: static; grid-column: 1 / -1; }
  .ios-campaign-list { display: flex; overflow-x: auto; max-height: none; }
  .ios-campaign-list button { flex: 0 0 200px; }
  .ios-campaign-library-heading { align-items: center; }
  .ios-campaign-delivery-status { padding-top: 10px; }
}
@media (max-width: 1000px) {
  .ios-campaign-layout, .ios-campaign-policy-layout { grid-template-columns: minmax(0, 1fr); }
  .ios-campaign-preview-column { position: static; order: -1; }
  .ios-campaign-library { grid-column: auto; }
  .ios-campaign-preview-column .ios-campaign-preview { min-height: 230px; max-width: 400px; border-width: 3px; border-radius: 22px; }
  .ios-campaign-preview-column .ios-campaign-preview-device { padding-bottom: 10px; }
  .ios-campaign-preview-note { max-width: none; text-align: center; }
  .ios-campaign-preview-controls { max-width: 400px; width: 100%; margin: auto; }
}
@media (max-width: 600px) {
  .ios-campaign-editor, .ios-campaign-library, .ios-campaign-store-checks, .ios-campaign-report { padding: 16px; }
  .ios-campaign-editor-heading h2 { font-size: 21px; }
  .ios-campaign-field-grid, .ios-campaign-copy-grid, .ios-campaign-image-control, .ios-campaign-test > div { grid-template-columns: minmax(0, 1fr); }
  .ios-campaign-upload { justify-items: start; text-align: left; }
  .ios-campaign-field-note { padding-top: 0; }
  .ios-campaign-policy-rollback { flex-direction: column; align-items: stretch; }
  .ios-campaign-section-tabs button { font-size: 12px; padding: 9px 11px; }
  .ios-campaign-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 15px; }
  .ios-campaign-actionbar > button, .ios-campaign-confirmation > button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ios-campaign-workspace * { scroll-behavior: auto; }
}

.ios-health-issue-summary > .ios-health-impact-copy p {
  white-space: normal;
  text-transform: none;
  color: #516672;
  font-size: 12px;
  line-height: 1.45;
}
@media (max-width: 840px) {
  .ios-health-issue-summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
    row-gap: 4px;
  }
  .ios-health-issue-summary .ios-health-impact-copy {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 3px 0;
  }
  .ios-health-issue-summary .ios-health-issue-count,
  .ios-health-issue-summary .ios-health-issue-count:nth-of-type(2) {
    display: flex;
    align-items: baseline;
    gap: 4px;
    grid-row: 3;
    min-width: 0;
  }
  .ios-health-issue-summary .ios-health-status { display: inline; justify-self: start; grid-column: 2; grid-row: 1; }
  .ios-health-issue-summary .ios-health-chevron { grid-column: 3; grid-row: 1; }
}
