/* ── blocks.css ────────────────────────────────────────────── */
/*
 * alphaCEO block stylesheet — served as a real CSS file at
 * /p/static/ace-blocks.css and linked from every rendered page.
 *
 * Engineers / brand_designers override any rule by writing matching
 * selectors in the per-company stylesheet (theme:css:{companyId},
 * served via /p/theme-css/:companyId). That sheet is linked AFTER
 * this one, so it wins on equal specificity.
 *
 * Every class starts with `ace-` (alphaCEO block). Theme tokens
 * (--alphaceo-color-*, --alphaceo-font-*) stay the source of truth for
 * color + typography; this file is layout + structure.
 */

/* ========================================================================
   Shared atoms
   ====================================================================== */
.ace-section {
  padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 60px);
}

.ace-container {
  max-width: 1200px;
  margin: 0 auto;
}

.ace-eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--alphaceo-color-accent, #c9a14a);
}

.ace-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
}

.ace-eyebrow-row .ace-eyebrow {
  margin: 0;
}

.ace-eyebrow-rule {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--alphaceo-color-accent, #c9a14a);
}

.ace-headline {
  margin: 0;
  font-family: var(--alphaceo-font-display, inherit);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--alphaceo-color-primary-deep, #1a0f33);
}

.ace-headline-large {
  font-size: clamp(40px, 6vw, 72px);
}

.ace-subhead {
  margin: 0 0 28px;
  max-width: 60ch;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--alphaceo-color-textMuted, #4a4255);
}

.ace-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--alphaceo-color-primary, #5b3fb8);
  color: var(--alphaceo-color-primaryFg, #fff);
  border: 0;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--alphaceo-color-primary, #5b3fb8) 60%, transparent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ace-cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -8px color-mix(in srgb, var(--alphaceo-color-primary, #5b3fb8) 70%, transparent);
}

.ace-cta-gold {
  background: var(--alphaceo-color-accent, #c9a14a);
  color: var(--alphaceo-color-primary-deep, #1a0f33);
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--alphaceo-color-accent, #c9a14a) 60%, transparent);
}

/* ========================================================================
   Property detail (alphaceo-property-detail)
   ====================================================================== */
.ace-property-detail {
  background: var(--alphaceo-color-surface-100, #faf6ec);
  color: var(--alphaceo-color-fg, #1a1326);
}

.ace-property-detail__hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  background: var(--alphaceo-color-primary-deep, #1a0f33);
  overflow: hidden;
}

.ace-property-detail__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ace-property-detail__body {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(36px, 5vw, 72px);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) clamp(20px, 5vw, 60px) clamp(80px, 10vw, 140px);
}

@media (max-width: 880px) {
  .ace-property-detail__body {
    grid-template-columns: 1fr;
  }
}

.ace-property-detail__location {
  font-size: 15px;
  color: var(--alphaceo-color-textMuted, #4a4255);
  margin-bottom: 8px;
}

.ace-property-detail__title {
  margin: 0 0 16px;
  font-family: var(--alphaceo-font-display, inherit);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--alphaceo-color-primary-deep, #1a0f33);
}

.ace-property-detail__price {
  margin: 0 0 24px;
  font-family: var(--alphaceo-font-display, inherit);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  color: var(--alphaceo-color-primary, #5b3fb8);
  letter-spacing: -0.01em;
}

.ace-property-detail__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  padding: 24px 0;
  margin: 0 0 32px;
  border-top: 1px solid color-mix(in srgb, var(--alphaceo-color-primary-light, #8b6fdf) 22%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--alphaceo-color-primary-light, #8b6fdf) 22%, transparent);
}

.ace-property-detail__stat-num {
  display: block;
  font-family: var(--alphaceo-font-display, inherit);
  font-size: 28px;
  font-weight: 800;
  color: var(--alphaceo-color-primary-deep, #1a0f33);
  letter-spacing: -0.02em;
}

.ace-property-detail__stat-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--alphaceo-color-textMuted, #4a4255);
  margin-top: 4px;
}

.ace-property-detail__description {
  font-size: 17px;
  line-height: 1.75;
  color: var(--alphaceo-color-fg, #1a1326);
}

.ace-property-detail__aside {
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--alphaceo-color-primary-light, #8b6fdf) 22%, transparent);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 60px -28px color-mix(in srgb, var(--alphaceo-color-primary-deep, #1a0f33) 40%, transparent);
  height: max-content;
  position: sticky;
  top: 24px;
}

.ace-property-detail__aside-title {
  margin: 0 0 8px;
  font-family: var(--alphaceo-font-display, inherit);
  font-size: 20px;
  font-weight: 700;
  color: var(--alphaceo-color-primary-deep, #1a0f33);
}

.ace-property-detail__aside-sub {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--alphaceo-color-textMuted, #4a4255);
}

.ace-property-detail__aside .ace-cta-primary {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
}

.ace-property-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--alphaceo-color-primary, #5b3fb8);
  text-decoration: none;
}

.ace-property-detail__back:hover {
  text-decoration: underline;
}

.ace-property-detail__empty {
  text-align: center;
  padding: 96px 24px;
  color: var(--alphaceo-color-textMuted, #4a4255);
  font-size: 16px;
}

/* ========================================================================
   WhatsApp pill (alphaceo-whatsapp-pill)
   ====================================================================== */
.ace-whatsapp-pill {
  position: fixed;
  inset-inline-end: 24px;
  inset-block-end: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
}

.ace-whatsapp-pill__icon {
  flex-shrink: 0;
}

/* ========================================================================
   Property grid (alphaceo-property-grid)
   ====================================================================== */
.ace-property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.ace-property-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  background: var(--alphaceo-color-bg, #fff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ace-property-card:hover {
  transform: translateY(-3px);
  box-shadow: 10px 24px 60px -20px rgba(26, 15, 51, 0.18);
}

.ace-property-card__hero {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--alphaceo-color-primary-light, #8b6fdf),
    var(--alphaceo-color-primary, #5b3fb8) 60%,
    var(--alphaceo-color-accent, #c9a14a)
  );
}

.ace-property-card__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.ace-property-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.ace-property-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--alphaceo-color-primary-deep, #1a0f33);
}

.ace-property-card__location {
  font-size: 14px;
  color: var(--alphaceo-color-textMuted, #4a4255);
}

.ace-property-card__price {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 800;
  color: var(--alphaceo-color-primary, #5b3fb8);
  letter-spacing: -0.01em;
}

.ace-property-card__chips {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ace-property-card__chip {
  font-size: 13px;
  color: var(--alphaceo-color-textMuted, #64748b);
}

.ace-property-grid__empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--alphaceo-color-textMuted, #64748b);
  font-size: 15px;
}

/* ========================================================================
   Agent grid (alphaceo-agent-grid)
   ====================================================================== */
.ace-agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.ace-agent-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.ace-agent-card__avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.ace-agent-card__avatar--initials {
  background: linear-gradient(
    135deg,
    var(--alphaceo-color-primary-light, #8b6fdf),
    var(--alphaceo-color-primary, #5b3fb8)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ace-agent-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
}

.ace-agent-card__meta {
  font-size: 12px;
  color: var(--alphaceo-color-accent, #c9a14a);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ace-agent-card__name {
  margin: 0;
  font-family: var(--alphaceo-font-display, inherit);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--alphaceo-color-primary-deep, #1a0f33);
}

.ace-agent-card__title {
  margin-top: 4px;
  font-size: 14px;
  color: var(--alphaceo-color-textMuted, #4a4255);
}

.ace-agent-card__bio {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--alphaceo-color-textMuted, #4a4255);
}

.ace-agent-card__wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  background: #25d366;
  color: #fff;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.ace-agent-grid__empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--alphaceo-color-textMuted, #64748b);
  font-size: 15px;
}

/* ========================================================================
   Flagship property (alphaceo-flagship-property)
   ====================================================================== */
.ace-flagship-property {
  position: relative;
  min-height: 60vh;
  overflow: hidden;
  background: var(--alphaceo-color-primary-deep, #1a0f33);
}

.ace-flagship-property__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.ace-flagship-property__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    color-mix(in srgb, var(--alphaceo-color-primary-deep, #1a0f33) 80%, transparent) 0%,
    color-mix(in srgb, var(--alphaceo-color-primary-deep, #1a0f33) 30%, transparent) 60%,
    transparent 100%
  );
}

.ace-flagship-property__body {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 128px) clamp(20px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #fff;
}

.ace-flagship-property__title {
  margin: 0;
  font-family: var(--alphaceo-font-display, inherit);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.ace-flagship-property__location {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

.ace-flagship-property__price {
  margin-top: 8px;
  font-family: var(--alphaceo-font-display, inherit);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  color: var(--alphaceo-color-accent, #c9a14a);
  letter-spacing: -0.02em;
}

.ace-flagship-property__stats {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  max-width: 480px;
}

.ace-flagship-property__stat-num {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.ace-flagship-property__stat-label {
  margin-inline-start: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.ace-flagship-property__cta {
  margin-top: 32px;
  align-self: flex-start;
}

/* ========================================================================
   Broker chat (alphaceo-broker-chat)
   ====================================================================== */
.ace-broker-chat {
  position: relative;
  padding: clamp(72px, 10vw, 140px) clamp(20px, 5vw, 60px);
  background:
    radial-gradient(
      80% 50% at 50% 0%,
      color-mix(in srgb, var(--alphaceo-color-primary-light, #8b6fdf) 12%, transparent),
      transparent 70%
    ),
    linear-gradient(
      180deg,
      var(--alphaceo-color-surface-200, #f4ebd9) 0%,
      var(--alphaceo-color-surface-100, #faf6ec) 100%
    );
}

.ace-broker-chat__container {
  max-width: 820px;
  margin: 0 auto;
}

.ace-broker-chat__headline {
  margin: 0 0 44px;
  font-family: var(--alphaceo-font-display, inherit);
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--alphaceo-color-primary-deep, #1a0f33);
  text-align: center;
}

.ace-broker-chat__card {
  position: relative;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--alphaceo-color-accent, #c9a14a) 35%, transparent);
  border-radius: 28px;
  padding: 36px;
  box-shadow:
    0 40px 100px -40px color-mix(in srgb, var(--alphaceo-color-primary-deep, #1a0f33) 55%, transparent),
    0 0 0 8px color-mix(in srgb, var(--alphaceo-color-accent, #c9a14a) 8%, transparent);
}

.ace-broker-chat__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.ace-broker-chat__portrait {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid color-mix(in srgb, var(--alphaceo-color-accent, #c9a14a) 55%, transparent);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.3);
}

.ace-broker-chat__portrait--initials {
  background: var(--alphaceo-color-primary-light, #8b6fdf);
}

.ace-broker-chat__identity {
  flex: 1;
}

.ace-broker-chat__name {
  font-family: var(--alphaceo-font-display, inherit);
  font-size: 22px;
  font-weight: 800;
  color: var(--alphaceo-color-primary-deep, #1a0f33);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.ace-broker-chat__title {
  font-size: 14px;
  color: var(--alphaceo-color-textMuted, #4a4255);
  margin-top: 4px;
}

.ace-broker-chat__online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #22c55e;
}

.ace-broker-chat__online-dot {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
}

.ace-broker-chat__online-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  animation: ace-online-pulse 2s ease-out infinite;
}

@keyframes ace-online-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.ace-broker-chat__welcome {
  background: var(--alphaceo-color-surface-100, #faf6ec);
  border: 1px solid color-mix(in srgb, var(--alphaceo-color-primary-light, #8b6fdf) 18%, transparent);
  border-radius: 16px;
  padding: 16px 20px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--alphaceo-color-primary-dark, #3d2680);
  margin-bottom: 20px;
}

.ace-broker-chat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.ace-broker-chat__chip {
  background: rgba(255, 255, 255, 0.85);
  color: var(--alphaceo-color-primary-dark, #3d2680);
  border: 1px solid color-mix(in srgb, var(--alphaceo-color-primary-light, #8b6fdf) 35%, transparent);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, background 0.15s ease;
}

.ace-broker-chat__chip:hover {
  transform: translateY(-1px);
  background: #fff;
}

/* ========================================================================
   Broker hero (alphaceo-broker-hero)
   ====================================================================== */
.ace-broker-hero {
  position: relative;
  width: 100%;
  min-height: 88vh;
  overflow: hidden;
  background:
    radial-gradient(
      60% 50% at 50% 35%,
      color-mix(in srgb, var(--alphaceo-color-primary-light, #8b6fdf) 18%, transparent),
      transparent 70%
    ),
    linear-gradient(
      180deg,
      var(--alphaceo-color-surface-100, #faf6ec) 0%,
      var(--alphaceo-color-surface-200, #f4ebd9) 100%
    );
}

.ace-broker-hero__dots {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image: radial-gradient(
    color-mix(in srgb, var(--alphaceo-color-primary, #5b3fb8) 60%, transparent) 1px,
    transparent 1px
  );
  background-size: 32px 32px;
}

.ace-broker-hero__container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(60px, 8vw, 112px) clamp(20px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}

.ace-broker-hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

@media (max-width: 760px) {
  .ace-broker-hero__grid {
    grid-template-columns: 1fr !important;
  }
}

.ace-broker-hero__copy {
  display: flex;
  flex-direction: column;
}

.ace-broker-hero__headline {
  margin: 0 0 22px;
  font-family: var(--alphaceo-font-display, inherit);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--alphaceo-color-primary-deep, #1a0f33);
}

.ace-broker-hero__subhead {
  margin: 0 0 32px;
  max-width: 50ch;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.6;
  color: var(--alphaceo-color-textMuted, #4a4255);
}

.ace-broker-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.ace-broker-hero__cta-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--alphaceo-color-fg, #1a1326);
  text-decoration: none;
}

.ace-broker-hero__cta-ghost::after {
  content: '';
  position: absolute;
  inset-inline: 4px;
  bottom: 4px;
  height: 2px;
  background: var(--alphaceo-color-accent, #c9a14a);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.ace-broker-hero__cta-ghost:hover::after {
  transform: scaleX(1);
}

.ace-broker-hero__traits {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--alphaceo-color-textMuted, #4a4255);
}

.ace-broker-hero__trait-star {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ace-broker-hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ace-broker-hero__portrait,
.ace-broker-hero__video {
  position: relative;
  display: block;
  width: min(420px, 70vw);
  aspect-ratio: 1 / 1;
  border: 2px solid color-mix(in srgb, var(--alphaceo-color-primary-light, #8b6fdf) 50%, transparent);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 30px 70px -20px color-mix(in srgb, var(--alphaceo-color-primary-deep, #1a0f33) 35%, transparent);
}

.ace-broker-hero__video {
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.ace-broker-hero__video:hover {
  transform: scale(1.02);
}

.ace-broker-hero__video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ace-broker-hero__video-overlay {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 33%;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--alphaceo-color-primary-deep, #1a0f33) 55%, transparent),
    transparent
  );
  transition: opacity 0.3s ease;
}

.ace-broker-hero__video-prompt {
  position: absolute;
  inset-block-end: 20px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: rgba(250, 246, 236, 0.92);
  color: var(--alphaceo-color-primary-dark, #3d2680);
  border: 1px solid color-mix(in srgb, var(--alphaceo-color-primary-light, #8b6fdf) 40%, transparent);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.ace-broker-hero__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ace-broker-hero__quote {
  margin: 28px 0 0;
  max-width: 340px;
  background: var(--alphaceo-color-surface-100, #faf6ec);
  border: 1px solid color-mix(in srgb, var(--alphaceo-color-primary-light, #8b6fdf) 30%, transparent);
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.18);
}

.ace-broker-hero__quote-text {
  margin: 0;
  font-family: var(--alphaceo-font-display, inherit);
  font-size: 17px;
  font-style: italic;
  line-height: 1.45;
  color: var(--alphaceo-color-primary-dark, #3d2680);
}

.ace-broker-hero__quote-attr {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--alphaceo-color-textMuted, #4a4255);
}


/* ── blocks-ai-apps.css ────────────────────────────────────────────── */
/*
 * AI-apps block stylesheet — .ace-ai-* taxonomy.
 *
 * Served alongside blocks.css. Override per-company via
 * theme:css:{companyId} (linked after this file, wins on equal specificity).
 *
 * Layout uses logical properties (inline-start/end, block-start/end) so
 * every rule flips automatically under <html dir="rtl">.
 *
 * NO physical left/right/top/bottom in positioning or margin/padding rules.
 */

/* ========================================================================
   Shared dark-surface section
   ====================================================================== */
.ace-ai-section {
  padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 60px);
}

.ace-ai-section--dark {
  background: var(--alphaceo-color-bg-dark, #0a0a0a);
  color: var(--alphaceo-color-fg-dark, #fff);
}

.ace-ai-section--gradient-purple {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
}

.ace-ai-section--gradient-video {
  background: linear-gradient(180deg, #0a0a0a 0%, #1a0a2e 100%);
  color: #fff;
}

.ace-ai-section--gradient-game {
  background: linear-gradient(180deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  color: #fff;
}

.ace-ai-section--game-create {
  background: #0f0c29;
  color: #fff;
}

.ace-ai-section--style-grid {
  background: var(--alphaceo-color-surface-100, #f8fafc);
}

.ace-ai-container {
  max-width: 1200px;
  margin: 0 auto;
}

.ace-ai-container--narrow {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.ace-ai-container--form {
  max-width: 700px;
  margin: 0 auto;
}

/* ========================================================================
   Section header (eyebrow + headline + subhead inside a dark section)
   ====================================================================== */
.ace-ai-header {
  text-align: center;
  margin-block-end: 48px;
}

.ace-ai-header__icon {
  font-size: 3rem;
  display: block;
  margin-block-end: 16px;
}

.ace-ai-header__headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 8px;
  font-family: var(--alphaceo-font-display, inherit);
  letter-spacing: -0.02em;
}

.ace-ai-header__headline--gradient {
  background: linear-gradient(135deg, #e879f9, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ace-ai-header__subhead {
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  margin: 0;
}

/* ========================================================================
   Dark glass form fields
   ====================================================================== */
.ace-ai-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ace-ai-field {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.ace-ai-field--textarea {
  resize: vertical;
}

.ace-ai-field--large {
  padding: 20px;
  font-size: 1.05rem;
  border-radius: 16px;
}

.ace-ai-field::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.ace-ai-field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

/* ========================================================================
   CTA buttons (dark surface variants)
   ====================================================================== */
.ace-ai-btn {
  padding: 18px;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
}

.ace-ai-btn:hover {
  opacity: 0.88;
}

.ace-ai-btn--image {
  background: linear-gradient(135deg, #e879f9, #818cf8);
}

.ace-ai-btn--video {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
}

.ace-ai-btn--game {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

/* ========================================================================
   Image gallery grid (IMAGE_GALLERY_GRID)
   ====================================================================== */
.ace-ai-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.ace-ai-gen-card {
  border-radius: 16px;
  overflow: hidden;
  background: #1a1a2e;
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform 0.2s;
}

.ace-ai-gen-card:hover {
  transform: scale(1.02);
}

.ace-ai-gen-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ace-ai-gen-card__caption {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 16px;
}

.ace-ai-gen-card__prompt {
  color: #fff;
  font-size: 0.75rem;
  margin: 0;
  opacity: 0.9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ace-ai-gen-card__meta {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
}

.ace-ai-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: rgba(255, 255, 255, 0.3);
}

/* ========================================================================
   Style selector grid (AI_STYLE_GRID)
   ====================================================================== */
.ace-ai-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.ace-ai-style-grid__headline {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-block-end: 40px;
  font-family: var(--alphaceo-font-display, inherit);
  color: var(--alphaceo-color-fg, #111);
}

.ace-ai-style-chip {
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.ace-ai-style-chip:hover,
.ace-ai-style-chip--active {
  border-color: #818cf8;
}

.ace-ai-style-chip__img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.ace-ai-style-chip__body {
  padding: 12px;
  background: #fff;
}

.ace-ai-style-chip__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--alphaceo-color-fg, #111);
}

.ace-ai-style-chip__desc {
  color: var(--alphaceo-color-textMuted, #6b7280);
  font-size: 0.8rem;
  margin-block-start: 2px;
}

.ace-ai-style-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--alphaceo-color-textMuted, #9ca3af);
}

/* ========================================================================
   Video showcase grid (VIDEO_SHOWCASE_GRID)
   ====================================================================== */
.ace-ai-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.ace-ai-video-card {
  background: #111;
  border-radius: 16px;
  overflow: hidden;
}

.ace-ai-video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
}

.ace-ai-video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ace-ai-video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ace-ai-video-card__play-btn {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.ace-ai-video-card__duration {
  position: absolute;
  inset-block-end: 8px;
  inset-inline-end: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
}

.ace-ai-video-card__body {
  padding: 16px;
}

.ace-ai-video-card__title {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.ace-ai-video-card__meta {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin: 0;
}

/* ========================================================================
   Music track list (MUSIC_TRACK_LIST)
   ====================================================================== */
.ace-ai-track-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ace-ai-track-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #1a1a1a;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
}

.ace-ai-track-row:hover {
  background: #222;
}

.ace-ai-track-row__icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #10b981, #3b82f6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.ace-ai-track-row__info {
  flex: 1;
  min-width: 0;
}

.ace-ai-track-row__title {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ace-ai-track-row__meta {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  margin-block-start: 2px;
}

.ace-ai-track-row__author {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.ace-ai-track-row__play-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ========================================================================
   Game showcase grid (GAME_SHOWCASE_GRID)
   ====================================================================== */
.ace-ai-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.ace-ai-game-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}

.ace-ai-game-card:hover {
  transform: translateY(-4px);
}

.ace-ai-game-card__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #1a1a3e;
}

.ace-ai-game-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ace-ai-game-card__genre-badge {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
}

.ace-ai-game-card__body {
  padding: 20px;
}

.ace-ai-game-card__title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.ace-ai-game-card__desc {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin: 0 0 16px;
  line-height: 1.5;
}

.ace-ai-game-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ace-ai-game-card__author {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

.ace-ai-game-card__play-btn {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* ========================================================================
   Game template grid (GAME_TEMPLATE_GRID)
   ====================================================================== */
.ace-ai-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.ace-ai-template-grid__headline {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-block-end: 40px;
  font-family: var(--alphaceo-font-display, inherit);
}

.ace-ai-template-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.ace-ai-template-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
}

.ace-ai-template-card__emoji {
  font-size: 2.5rem;
  display: block;
  margin-block-end: 12px;
}

.ace-ai-template-card__name {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.ace-ai-template-card__desc {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 16px;
}

.ace-ai-template-card__genre {
  font-size: 0.75rem;
  color: rgba(245, 158, 11, 0.8);
}


/* ── blocks-ai-design-studio.css ────────────────────────────────────────────── */
/*
 * AI Design Studio block stylesheet.
 *
 * Loaded by every ai_design_studio page via the pack's theme injection.
 * Classes: .ace-{block-slug}__* — BEM, scoped to this pack.
 * No physical-direction properties (left/right/margin-left/padding-left).
 * Use logical properties (inline-start/end, block-start/end) or
 * direction-neutral properties (inset, padding-inline, etc.).
 * Theme tokens (--alphaceo-color-*, --alphaceo-font-*) are the source of truth.
 */

/* ========================================================================
   Shared utilities (aurora/noise backgrounds, gradient text)
   ====================================================================== */
.ace-ads-aurora {
  position: absolute;
  inset: -25% -15%;
  z-index: 0;
  filter: blur(72px);
  opacity: 0.85;
  background:
    radial-gradient(38% 38% at 18% 28%, var(--alphaceo-color-primary, #FF6F3C) 0%, transparent 72%),
    radial-gradient(34% 34% at 82% 18%, var(--alphaceo-color-accent, #FFC93C) 0%, transparent 72%),
    radial-gradient(42% 42% at 72% 82%, var(--alphaceo-color-secondary, #22B8A6) 0%, transparent 72%),
    radial-gradient(30% 30% at 28% 88%, #FF5BA8 0%, transparent 72%);
  animation: ace-ads-drift 20s ease-in-out infinite alternate;
}

@keyframes ace-ads-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  100% { transform: translate3d(0, -4%, 0) scale(1.1) rotate(4deg); }
}

.ace-ads-noise {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ace-ads-aura {
  position: absolute;
  inset: -30% -10%;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.6;
  background:
    radial-gradient(36% 36% at 14% 22%, var(--alphaceo-color-primary, #FF6F3C) 0%, transparent 70%),
    radial-gradient(34% 34% at 86% 80%, var(--alphaceo-color-secondary, #22B8A6) 0%, transparent 70%),
    radial-gradient(30% 30% at 78% 14%, var(--alphaceo-color-accent, #FFC93C) 0%, transparent 70%);
}

.ace-ads-grad-text {
  background: linear-gradient(100deg, var(--alphaceo-color-primary, #FF6F3C), #FF5BA8 46%, var(--alphaceo-color-accent, #FFC93C));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ace-ads-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--alphaceo-color-fg, #2A2540);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 26px;
  box-shadow: 0 8px 24px rgba(42, 37, 64, 0.08);
}

/* ========================================================================
   Brand landing hero  (.ace-hero-*)
   ====================================================================== */
.ace-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 128px 24px 88px;
  box-sizing: border-box;
}

@keyframes ace-ads-bob {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-14px); }
}

.ace-hero__grid {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}

.ace-hero__display {
  font-family: Space Grotesk, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin: 0 0 22px;
  color: var(--alphaceo-color-fg, #2A2540);
}

.ace-hero__sub {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--alphaceo-color-fgMuted, #6E6A86);
  margin: 0 0 36px;
  max-width: 500px;
}

.ace-hero__cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.ace-hero__cta-primary {
  background: linear-gradient(100deg, var(--alphaceo-color-primary, #FF6F3C), #FF5BA8);
  color: #fff;
  padding: 17px 34px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 16px 40px rgba(255, 111, 60, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ace-hero__cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(255, 111, 60, 0.5);
}

.ace-hero__cta-ghost {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--alphaceo-color-fg, #2A2540);
  padding: 17px 28px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none;
  transition: transform 0.2s;
}

.ace-hero__cta-ghost:hover {
  transform: translateY(-3px);
}

.ace-hero__bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 12px;
}

.ace-hero__tile {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(42, 37, 64, 0.07);
}

.ace-hero__tile-num {
  font-family: Space Grotesk, system-ui, sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}

.ace-hero__tile-lbl {
  font-size: 0.74rem;
  color: var(--alphaceo-color-fgMuted, #6E6A86);
  margin-top: 6px;
}

.ace-hero__stage {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.ace-hero__card {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 40px 90px rgba(42, 37, 64, 0.28);
  animation: ace-ads-bob 6s ease-in-out infinite alternate;
}

.ace-hero__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ace-hero__tag {
  position: absolute;
  z-index: 3;
  bottom: 18px;
  inset-inline: 14px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 40px rgba(42, 37, 64, 0.16);
}

.ace-hero__tag-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--alphaceo-color-primary, #FF6F3C), #FF5BA8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.ace-hero__tag-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--alphaceo-color-fg, #2A2540);
  margin-bottom: 2px;
}

.ace-hero__tag-sub {
  font-size: 0.73rem;
  color: var(--alphaceo-color-fgMuted, #6E6A86);
}

.ace-hero__orb {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

@media (max-width: 860px) {
  .ace-hero {
    min-height: auto;
    padding: 104px 20px 64px;
  }
  .ace-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ace-hero__orb {
    display: none !important;
  }
  .ace-hero__stage {
    order: -1;
    max-width: 380px;
  }
}

/* ========================================================================
   Design Studio form  (.ace-studio-*)
   ====================================================================== */
.ace-studio {
  position: relative;
  overflow: hidden;
  background: var(--alphaceo-color-bg, #FFF9F0);
  padding: 96px 24px;
}

.ace-studio__wrap {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}

.ace-studio__head {
  text-align: center;
  margin-bottom: 40px;
}

.ace-studio__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--alphaceo-color-fg, #2A2540);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(42, 37, 64, 0.08);
}

.ace-studio__title {
  font-family: Space Grotesk, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  color: var(--alphaceo-color-fg, #2A2540);
}

.ace-studio__sub {
  color: var(--alphaceo-color-fgMuted, #6E6A86);
  font-size: 1.05rem;
  margin: 0;
}

.ace-studio__card {
  position: relative;
  border-radius: 28px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 30px 80px rgba(42, 37, 64, 0.16);
}

.ace-studio__label {
  display: block;
  color: var(--alphaceo-color-fg, #2A2540);
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ace-studio__input {
  width: 100%;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(42, 37, 64, 0.1);
  border-radius: 16px;
  color: var(--alphaceo-color-fg, #2A2540);
  font-size: 1rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ace-studio__input:focus {
  border-color: var(--alphaceo-color-primary, #FF6F3C);
  box-shadow: 0 0 0 4px rgba(255, 111, 60, 0.14);
}

.ace-studio__drop {
  border: 2px dashed rgba(42, 37, 64, 0.18);
  border-radius: 18px;
  padding: 32px;
  text-align: center;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.ace-studio__drop:hover {
  border-color: var(--alphaceo-color-primary, #FF6F3C);
  background: rgba(255, 111, 60, 0.05);
}

.ace-studio__choose {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(42, 37, 64, 0.12);
  color: var(--alphaceo-color-fg, #2A2540);
  padding: 11px 22px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(42, 37, 64, 0.08);
}

.ace-studio__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.ace-studio__submit {
  width: 100%;
  padding: 20px;
  background: linear-gradient(100deg, var(--alphaceo-color-primary, #FF6F3C), #FF5BA8);
  color: #fff;
  border: none;
  border-radius: 18px;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.2px;
  box-shadow: 0 16px 40px rgba(255, 111, 60, 0.38);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ace-studio__submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(255, 111, 60, 0.48);
}

.ace-studio__drop-hint {
  color: var(--alphaceo-color-fgMuted, #6E6A86);
  font-size: 0.9rem;
  margin: 0 0 14px;
}

@media (max-width: 600px) {
  .ace-studio__card { padding: 26px 20px; }
}

/* ========================================================================
   How It Works  (.ace-hiw-*)
   ====================================================================== */
.ace-hiw {
  position: relative;
  overflow: hidden;
  background: var(--alphaceo-color-surface, #FFFFFF);
  padding: 96px 24px;
}

.ace-hiw__aura {
  position: absolute;
  inset: -30% -10%;
  z-index: 0;
  filter: blur(90px);
  opacity: 0.45;
  background:
    radial-gradient(34% 34% at 20% 30%, var(--alphaceo-color-accent, #FFC93C) 0%, transparent 70%),
    radial-gradient(34% 34% at 82% 72%, var(--alphaceo-color-primary, #FF6F3C) 0%, transparent 70%);
}

.ace-hiw__wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

.ace-hiw__head {
  text-align: center;
  margin-bottom: 56px;
}

.ace-hiw__title {
  font-family: Space Grotesk, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
  color: var(--alphaceo-color-fg, #2A2540);
}

.ace-hiw__sub {
  color: var(--alphaceo-color-fgMuted, #6E6A86);
  font-size: 1.02rem;
  margin: 0;
}

.ace-hiw__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.ace-hiw__card {
  position: relative;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 26px;
  padding: 36px 30px;
  box-shadow: 0 18px 50px rgba(42, 37, 64, 0.1);
  transition: transform 0.25s, box-shadow 0.25s;
}

.ace-hiw__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 64px rgba(42, 37, 64, 0.16);
}

.ace-hiw__card:nth-child(2) {
  transform: translateY(24px);
}

.ace-hiw__card:nth-child(2):hover {
  transform: translateY(18px);
}

.ace-hiw__num {
  font-family: Space Grotesk, system-ui, sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 14px;
}

.ace-hiw__icon {
  position: absolute;
  top: 30px;
  inset-inline-end: 28px;
  font-size: 1.7rem;
}

.ace-hiw__card-title {
  font-family: Space Grotesk, system-ui, sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--alphaceo-color-fg, #2A2540);
  margin: 0 0 10px;
}

.ace-hiw__card-body {
  color: var(--alphaceo-color-fgMuted, #6E6A86);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 760px) {
  .ace-hiw__card:nth-child(2)       { transform: none; }
  .ace-hiw__card:nth-child(2):hover { transform: translateY(-6px); }
}

/* ========================================================================
   About Us  (.ace-about-*)
   ====================================================================== */
.ace-about {
  background: var(--alphaceo-color-bg, #faf7f2);
  padding: 88px 24px;
  overflow: hidden;
}

.ace-about__grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px;
  align-items: center;
}

.ace-about__media {
  position: relative;
}

.ace-about__img-wrap {
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(45, 90, 39, 0.18);
}

.ace-about__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ace-about__badge {
  position: absolute;
  bottom: -24px;
  inset-inline-end: -20px;
  background: var(--alphaceo-color-primary, #2d5a27);
  color: var(--alphaceo-color-primaryFg, #f5f0e8);
  padding: 20px 26px;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(45, 90, 39, 0.28);
}

.ace-about__badge-name {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

.ace-about__badge-label {
  font-size: 0.78rem;
  opacity: 0.7;
  margin-top: 5px;
}

.ace-about__orb {
  position: absolute;
  top: -18px;
  inset-inline-start: -18px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--alphaceo-color-accent, #c9a84c) 0%, transparent 65%);
  opacity: 0.3;
  pointer-events: none;
}

.ace-about__eyebrow {
  display: inline-block;
  background: rgba(45, 90, 39, 0.08);
  border: 1px solid rgba(45, 90, 39, 0.2);
  color: var(--alphaceo-color-primary, #2d5a27);
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.ace-about__headline {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--alphaceo-color-fg, #1a1a1a);
  margin: 0 0 22px;
  line-height: 1.18;
  font-family: var(--alphaceo-typography-fontFamily, Playfair Display, Georgia, serif);
}

.ace-about__body {
  color: var(--alphaceo-color-fgMuted, #6b5e4e);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0 0 20px;
}

.ace-about__stats {
  display: flex;
  gap: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--alphaceo-color-border, #d4c8b8);
}

.ace-about__stat-num {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--alphaceo-color-secondary, #8b5e3c);
  line-height: 1;
}

.ace-about__stat-lbl {
  font-size: 0.82rem;
  color: var(--alphaceo-color-fgMuted, #6b5e4e);
  margin-top: 5px;
}

/* ========================================================================
   Design gallery grid  (.ace-gallery-*)
   ====================================================================== */
.ace-gallery {
  background: var(--alphaceo-color-bg, #faf7f2);
  padding: 72px 24px;
  min-height: 400px;
}

.ace-gallery__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ace-gallery__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.ace-gallery__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--alphaceo-color-fg, #1a1a1a);
  margin: 0 0 6px;
  font-family: var(--alphaceo-typography-fontFamily, Playfair Display, Georgia, serif);
}

.ace-gallery__sub {
  color: var(--alphaceo-color-fgMuted, #6b5e4e);
  font-size: 0.95rem;
  margin: 0;
}

.ace-gallery__new-btn {
  background: var(--alphaceo-color-primary, #2d5a27);
  color: var(--alphaceo-color-primaryFg, #f5f0e8);
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.ace-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.ace-design-card {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 18px rgba(45, 90, 39, 0.08);
  border: 1px solid var(--alphaceo-color-border, #d4c8b8);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.ace-design-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(45, 90, 39, 0.14);
}

.ace-design-card__hero {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--alphaceo-color-surface, #f0ebe3);
}

.ace-design-card__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.ace-design-card:hover .ace-design-card__hero img {
  transform: scale(1.04);
}

.ace-design-card__chips {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  display: flex;
  gap: 6px;
}

.ace-design-card__chip {
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}

.ace-design-card__chip--room {
  background: var(--alphaceo-color-primary, #2d5a27);
  color: var(--alphaceo-color-primaryFg, #f5f0e8);
}

.ace-design-card__chip--style {
  background: var(--alphaceo-color-secondary, #8b5e3c);
  color: #fff;
}

.ace-design-card__body {
  padding: 18px 20px;
}

.ace-design-card__prompt {
  color: var(--alphaceo-color-fgMuted, #6b5e4e);
  font-size: 0.82rem;
  margin: 0 0 14px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.5;
}

.ace-design-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--alphaceo-color-accent, #c9a84c);
  color: var(--alphaceo-color-accentFg, #1a1a1a);
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}

.ace-gallery__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: var(--alphaceo-color-fgMuted, #6b5e4e);
}

.ace-gallery__empty-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.ace-gallery__empty-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--alphaceo-color-fg, #1a1a1a);
  margin: 0 0 8px;
  font-family: var(--alphaceo-typography-fontFamily, Playfair Display, Georgia, serif);
}

.ace-gallery__empty-body {
  font-size: 1rem;
  margin: 0 0 24px;
}

.ace-gallery__empty-cta {
  background: var(--alphaceo-color-primary, #2d5a27);
  color: var(--alphaceo-color-primaryFg, #f5f0e8);
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

/* ========================================================================
   Product pin view (design detail)  (.ace-pin-*)
   ====================================================================== */
.ace-pin {
  background: var(--alphaceo-color-bg, #faf7f2);
  padding: 56px 24px;
  min-height: 400px;
}

.ace-pin__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ace-pin__back {
  color: var(--alphaceo-color-primary, #2d5a27);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
}

.ace-pin__back:hover {
  text-decoration: underline;
}

.ace-pin__layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 36px;
  align-items: start;
}

.ace-pin__canvas {
  border-radius: 20px;
  overflow: hidden;
  background: var(--alphaceo-color-surface, #f0ebe3);
  aspect-ratio: 4 / 3;
  position: relative;
  box-shadow: 0 8px 32px rgba(45, 90, 39, 0.1);
}

.ace-pin__canvas img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ace-pin__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ace-pin__canvas-fade {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  background: linear-gradient(transparent, rgba(15, 34, 17, 0.55));
  padding: 24px;
  pointer-events: none;
}

.ace-pin__aside {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--alphaceo-color-border, #d4c8b8);
  box-shadow: 0 3px 18px rgba(45, 90, 39, 0.06);
}

.ace-pin__aside-head {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--alphaceo-color-border, #d4c8b8);
}

.ace-pin__aside-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--alphaceo-color-fg, #1a1a1a);
  margin: 0 0 4px;
  font-family: var(--alphaceo-typography-fontFamily, Playfair Display, Georgia, serif);
}

.ace-pin__aside-sub {
  color: var(--alphaceo-color-fgMuted, #6b5e4e);
  font-size: 0.82rem;
  margin: 0;
}

.ace-pin__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ace-pin-card {
  background: var(--alphaceo-color-surface, #f0ebe3);
  border: 1px solid var(--alphaceo-color-border, #d4c8b8);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: border-color 0.2s, background 0.2s;
}

.ace-pin-card:hover {
  border-color: var(--alphaceo-color-primary, #2d5a27);
  background: rgba(45, 90, 39, 0.04);
}

.ace-pin-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--alphaceo-color-primary, #2d5a27);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.ace-pin-card__info {
  flex: 1;
  min-width: 0;
}

.ace-pin-card__name {
  color: var(--alphaceo-color-fg, #1a1a1a);
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ace-pin-card__cat {
  color: var(--alphaceo-color-fgMuted, #6b5e4e);
  font-size: 0.75rem;
  margin: 0 0 8px;
}

.ace-pin-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ace-pin-card__price {
  color: var(--alphaceo-color-secondary, #8b5e3c);
  font-weight: 800;
  font-size: 0.95rem;
}

.ace-pin-card__btn {
  background: var(--alphaceo-color-primary, #2d5a27);
  color: var(--alphaceo-color-primaryFg, #f5f0e8);
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.ace-pin-card__btn:hover {
  background: #235220;
}

.ace-pin__empty {
  text-align: center;
  padding: 40px 0;
  color: var(--alphaceo-color-fgMuted, #6b5e4e);
}

/* ========================================================================
   Design lead form  (.ace-lead-*)
   ====================================================================== */
.ace-lead {
  background: var(--alphaceo-color-surface, #f0ebe3);
  padding: 72px 24px;
}

.ace-lead__inner {
  max-width: 720px;
  margin: 0 auto;
}

.ace-lead__head {
  text-align: center;
  margin-bottom: 36px;
}

.ace-lead__eyebrow {
  display: inline-block;
  background: rgba(45, 90, 39, 0.08);
  border: 1px solid rgba(45, 90, 39, 0.2);
  color: var(--alphaceo-color-primary, #2d5a27);
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ace-lead__title {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--alphaceo-color-fg, #1a1a1a);
  margin: 0 0 10px;
  font-family: var(--alphaceo-typography-fontFamily, Playfair Display, Georgia, serif);
}

.ace-lead__sub {
  color: var(--alphaceo-color-fgMuted, #6b5e4e);
  font-size: 1rem;
  margin: 0;
}

.ace-lead__card {
  background: #fff;
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 4px 32px rgba(45, 90, 39, 0.08);
  border: 1px solid var(--alphaceo-color-border, #d4c8b8);
}

.ace-lead__label {
  display: block;
  color: var(--alphaceo-color-fg, #1a1a1a);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ace-lead__input {
  width: 100%;
  padding: 14px 16px;
  background: var(--alphaceo-color-surface, #f0ebe3);
  border: 1.5px solid var(--alphaceo-color-border, #d4c8b8);
  border-radius: 12px;
  color: var(--alphaceo-color-fg, #1a1a1a);
  font-size: 1rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.ace-lead__input:focus {
  border-color: var(--alphaceo-color-primary, #2d5a27);
}

.ace-lead__two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ace-lead__submit {
  width: 100%;
  padding: 18px;
  background: var(--alphaceo-color-primary, #2d5a27);
  color: var(--alphaceo-color-primaryFg, #f5f0e8);
  border: none;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 20px rgba(45, 90, 39, 0.25);
  transition: background 0.2s, transform 0.15s;
}

.ace-lead__submit:hover {
  background: #235220;
  transform: translateY(-1px);
}

.ace-lead__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ========================================================================
   Product catalog  (.ace-catalog-*)
   ====================================================================== */
.ace-catalog {
  background: var(--alphaceo-color-bg, #faf7f2);
  padding: 72px 24px;
  min-height: 400px;
}

.ace-catalog__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ace-catalog__head {
  text-align: center;
  margin-bottom: 52px;
}

.ace-catalog__eyebrow {
  display: inline-block;
  background: rgba(45, 90, 39, 0.08);
  border: 1px solid rgba(45, 90, 39, 0.2);
  color: var(--alphaceo-color-primary, #2d5a27);
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ace-catalog__title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--alphaceo-color-fg, #1a1a1a);
  margin: 0 0 12px;
  font-family: var(--alphaceo-typography-fontFamily, Playfair Display, Georgia, serif);
}

.ace-catalog__sub {
  color: var(--alphaceo-color-fgMuted, #6b5e4e);
  font-size: 1rem;
  margin: 0;
}

.ace-catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.ace-product-card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--alphaceo-color-border, #d4c8b8);
  box-shadow: 0 2px 12px rgba(45, 90, 39, 0.06);
  transition: transform 0.22s, box-shadow 0.22s;
}

.ace-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(45, 90, 39, 0.12);
}

.ace-product-card__hero {
  height: 220px;
  overflow: hidden;
  background: var(--alphaceo-color-surface, #f0ebe3);
  position: relative;
}

.ace-product-card__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.ace-product-card:hover .ace-product-card__hero img {
  transform: scale(1.05);
}

.ace-product-card__body {
  padding: 18px 20px;
}

.ace-product-card__meta {
  color: var(--alphaceo-color-fgMuted, #6b5e4e);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 5px;
}

.ace-product-card__name {
  color: var(--alphaceo-color-fg, #1a1a1a);
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.4;
  font-family: var(--alphaceo-typography-fontFamily, Playfair Display, Georgia, serif);
}

.ace-product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ace-product-card__price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--alphaceo-color-secondary, #8b5e3c);
}

.ace-product-card__btn {
  background: var(--alphaceo-color-primary, #2d5a27);
  color: var(--alphaceo-color-primaryFg, #f5f0e8);
  border: none;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.ace-product-card__btn:hover {
  background: #235220;
}

.ace-catalog__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: var(--alphaceo-color-fgMuted, #6b5e4e);
}

/* ========================================================================
   Inspiration showcase  (.ace-showcase-*)
   ====================================================================== */
.ace-showcase {
  background: linear-gradient(180deg, var(--alphaceo-color-primary, #2d5a27) 0%, #0f2211 100%);
  padding: 72px 24px;
  min-height: 400px;
}

.ace-showcase__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ace-showcase__head {
  text-align: center;
  margin-bottom: 52px;
}

.ace-showcase__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--alphaceo-color-primaryFg, #f5f0e8);
  margin: 0 0 12px;
  font-family: var(--alphaceo-typography-fontFamily, Playfair Display, Georgia, serif);
}

.ace-showcase__sub {
  color: rgba(245, 240, 232, 0.55);
  font-size: 1rem;
  margin: 0;
}

.ace-showcase__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-auto-rows: 260px;
  gap: 16px;
}

.ace-showcase-card {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  height: 100%;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.ace-showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.ace-showcase-card:hover img {
  transform: scale(1.06);
}

.ace-showcase-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 34, 17, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s;
  padding: 20px;
}

.ace-showcase-card:hover .ace-showcase-card__overlay {
  opacity: 1;
}

.ace-showcase-card__desc {
  color: var(--alphaceo-color-primaryFg, #f5f0e8);
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.55;
  margin: 0;
}

.ace-showcase-card__cta {
  background: var(--alphaceo-color-accent, #c9a84c);
  color: var(--alphaceo-color-accentFg, #1a1a1a);
  padding: 9px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
}

.ace-showcase-card__footer {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 16px 18px;
  pointer-events: none;
}

.ace-showcase-card__chips {
  display: flex;
  gap: 7px;
  align-items: center;
}

.ace-showcase-card__chip--room {
  background: var(--alphaceo-color-primary, #2d5a27);
  color: var(--alphaceo-color-primaryFg, #f5f0e8);
  padding: 3px 11px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}

.ace-showcase-card__chip--style {
  background: rgba(201, 168, 76, 0.8);
  color: #1a1a1a;
  padding: 3px 11px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}

.ace-showcase__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: rgba(245, 240, 232, 0.3);
}

/* ========================================================================
   Pricing  (.ace-pricing-*)
   ====================================================================== */
.ace-pricing {
  background: var(--alphaceo-color-bg, #faf7f2);
  padding: 80px 24px;
}

.ace-pricing__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.ace-pricing__head {
  text-align: center;
  margin-bottom: 56px;
}

.ace-pricing__eyebrow {
  display: inline-block;
  background: rgba(45, 90, 39, 0.08);
  border: 1px solid rgba(45, 90, 39, 0.2);
  color: var(--alphaceo-color-primary, #2d5a27);
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ace-pricing__title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--alphaceo-color-fg, #1a1a1a);
  margin: 0 0 14px;
  font-family: var(--alphaceo-typography-fontFamily, Playfair Display, Georgia, serif);
}

.ace-pricing__sub {
  color: var(--alphaceo-color-fgMuted, #6b5e4e);
  font-size: 1.05rem;
  margin: 0;
}

.ace-pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.ace-pricing-tile {
  border-radius: 20px;
  padding: 36px 28px;
  border: 1.5px solid var(--alphaceo-color-border, #d4c8b8);
  box-shadow: 0 3px 16px rgba(45, 90, 39, 0.06);
  background: #fff;
  position: relative;
}

.ace-pricing-tile__emoji {
  font-size: 2rem;
  margin-bottom: 12px;
}

.ace-pricing-tile__name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--alphaceo-color-fg, #1a1a1a);
  margin: 0 0 6px;
  font-family: var(--alphaceo-typography-fontFamily, Playfair Display, Georgia, serif);
}

.ace-pricing-tile__tagline {
  color: var(--alphaceo-color-fgMuted, #6b5e4e);
  font-size: 0.85rem;
  margin: 0 0 20px;
}

.ace-pricing-tile__price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--alphaceo-color-fg, #1a1a1a);
  margin-bottom: 4px;
}

.ace-pricing-tile__quota {
  color: var(--alphaceo-color-fgMuted, #6b5e4e);
  font-size: 0.8rem;
  margin: 0 0 28px;
}

.ace-pricing-tile__features {
  color: var(--alphaceo-color-fgMuted, #6b5e4e);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 0 28px;
}

.ace-pricing-tile__cta {
  display: block;
  text-align: center;
  background: var(--alphaceo-color-primary, #2d5a27);
  color: var(--alphaceo-color-primaryFg, #f5f0e8);
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.ace-pricing__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--alphaceo-color-fgMuted, #6b5e4e);
}


/* ── blocks-ai-verticals.css ────────────────────────────────────────────── */
/*
 * AI Verticals pack stylesheet.
 *
 * Classes: .ace-aiv-* (ai-verticals namespace)
 * All CSS physical-direction properties replaced with logical equivalents.
 * No left/right — RTL tenants get correct layout automatically.
 *
 * Colour via var(--alphaceo-color-*) with fallbacks. Layout structure only.
 */

/* ========================================================================
   Shared section shell
   ====================================================================== */
.ace-aiv-section {
  padding: clamp(48px, 7vw, 80px) clamp(20px, 5vw, 60px);
}

.ace-aiv-section--dark {
  background: #0f172a;
}

.ace-aiv-section--darker {
  background: #0a0a14;
}

.ace-aiv-section--black {
  background: #000;
}

.ace-aiv-section--pitch-dark {
  background: #0a0a0a;
}

.ace-aiv-section--light {
  background: var(--alphaceo-color-surface-100, #f8fafc);
}

.ace-aiv-section--white {
  background: #fff;
}

.ace-aiv-section--warm {
  background: #fffbeb;
}

.ace-aiv-container {
  max-width: 1200px;
  margin: 0 auto;
}

.ace-aiv-container--narrow {
  max-width: 1100px;
  margin: 0 auto;
}

.ace-aiv-container--pod {
  max-width: 920px;
  margin: 0 auto;
}

/* ========================================================================
   Section header (shared)
   ====================================================================== */
.ace-aiv-section-header {
  text-align: center;
  margin-block-end: 40px;
}

.ace-aiv-headline {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  font-family: var(--alphaceo-font-display, inherit);
  color: var(--alphaceo-color-fg, #111);
  letter-spacing: -0.02em;
}

.ace-aiv-headline--light {
  color: #fff;
}

.ace-aiv-headline--amber {
  color: #78350f;
}

.ace-aiv-subhead {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.55;
}

.ace-aiv-subhead--muted {
  color: var(--alphaceo-color-textMuted, #6b7280);
}

.ace-aiv-empty {
  text-align: center;
  padding: 60px 24px;
  font-size: 15px;
  color: var(--alphaceo-color-textMuted, #6b7280);
}

.ace-aiv-empty--dark {
  color: rgba(255, 255, 255, 0.3);
}

.ace-aiv-empty--amber {
  color: #a16207;
}

/* ========================================================================
   Voice Studio
   ====================================================================== */
.ace-aiv-voice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ace-aiv-voice-row {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.ace-aiv-voice-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--alphaceo-color-primary, #6366f1),
    var(--alphaceo-color-primary-light, #8b5cf6)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.ace-aiv-voice-meta {
  flex: 1;
}

.ace-aiv-voice-name {
  color: #fff;
  font-weight: 600;
  margin-block-end: 2px;
}

.ace-aiv-voice-detail {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* ========================================================================
   Lipsync Studio
   ====================================================================== */
.ace-aiv-lipsync-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.ace-aiv-lipsync-card {
  border-radius: 14px;
  overflow: hidden;
  background: #13131f;
}

.ace-aiv-lipsync-card video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
  display: block;
}

.ace-aiv-lipsync-card__body {
  padding: 12px;
}

.ace-aiv-lipsync-card__title {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  margin-block-end: 2px;
}

.ace-aiv-lipsync-card__detail {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
}

/* ========================================================================
   Headshot Studio
   ====================================================================== */
.ace-aiv-headshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.ace-aiv-headshot-card {
  background: var(--alphaceo-color-surface, #fff);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ace-aiv-headshot-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.ace-aiv-headshot-card__body {
  padding: 14px;
}

.ace-aiv-headshot-card__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--alphaceo-color-fg, #111);
  margin-block-end: 2px;
}

.ace-aiv-headshot-card__detail {
  color: var(--alphaceo-color-textMuted, #6b7280);
  font-size: 0.85rem;
}

/* ========================================================================
   Product Photo Studio
   ====================================================================== */
.ace-aiv-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.ace-aiv-product-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--alphaceo-color-surface-100, #f3f4f6);
}

.ace-aiv-product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.ace-aiv-product-card__body {
  padding: 14px;
  background: var(--alphaceo-color-surface, #fff);
}

.ace-aiv-product-card__name {
  font-weight: 700;
  color: var(--alphaceo-color-fg, #111827);
  margin-block-end: 2px;
}

.ace-aiv-product-card__detail {
  color: var(--alphaceo-color-textMuted, #6b7280);
  font-size: 0.85rem;
}

/* ========================================================================
   Avatar Studio
   ====================================================================== */
.ace-aiv-avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.ace-aiv-avatar-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
}

.ace-aiv-avatar-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.ace-aiv-avatar-card__body {
  padding: 12px;
}

.ace-aiv-avatar-card__name {
  color: #fff;
  font-weight: 600;
  margin-block-end: 2px;
}

.ace-aiv-avatar-card__detail {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

/* ========================================================================
   UGC Studio
   ====================================================================== */
.ace-aiv-ugc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.ace-aiv-ugc-card {
  border-radius: 14px;
  overflow: hidden;
  background: #1a1a1a;
}

.ace-aiv-ugc-card video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
  display: block;
}

.ace-aiv-ugc-card__body {
  padding: 12px;
}

.ace-aiv-ugc-card__hook {
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  margin-block-end: 2px;
}

.ace-aiv-ugc-card__detail {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

/* ========================================================================
   Pitch Deck Studio
   ====================================================================== */
.ace-aiv-deck-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.ace-aiv-deck-card {
  background: var(--alphaceo-color-surface, #fff);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.ace-aiv-deck-card:hover {
  transform: translateY(-2px);
}

.ace-aiv-deck-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--alphaceo-color-surface-100, #e5e7eb);
  display: block;
}

.ace-aiv-deck-card__body {
  padding: 14px;
}

.ace-aiv-deck-card__name {
  font-weight: 700;
  color: var(--alphaceo-color-fg, #111827);
  margin-block-end: 2px;
}

.ace-aiv-deck-card__detail {
  color: var(--alphaceo-color-textMuted, #6b7280);
  font-size: 0.85rem;
}

/* ========================================================================
   Podcast Studio
   ====================================================================== */
.ace-aiv-podcast-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ace-aiv-podcast-row {
  background: var(--alphaceo-color-surface, #fff);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ace-aiv-podcast-row img {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--alphaceo-color-surface-100, #fef3c7);
}

.ace-aiv-podcast-row__body {
  flex: 1;
}

.ace-aiv-podcast-row__title {
  font-weight: 700;
  color: var(--alphaceo-color-primary-deep, #78350f);
  margin-block-end: 2px;
}

.ace-aiv-podcast-row__detail {
  color: var(--alphaceo-color-textMuted, #92400e);
  font-size: 0.85rem;
  margin-block-end: 8px;
}

.ace-aiv-podcast-row audio {
  width: 100%;
  height: 34px;
  display: block;
}

/* ========================================================================
   Explainer Studio
   ====================================================================== */
.ace-aiv-explainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.ace-aiv-explainer-card {
  border-radius: 14px;
  overflow: hidden;
  background: #0a0a0a;
}

.ace-aiv-explainer-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: block;
}

.ace-aiv-explainer-card__body {
  padding: 14px;
}

.ace-aiv-explainer-card__title {
  color: #fff;
  font-weight: 600;
  margin-block-end: 2px;
}

.ace-aiv-explainer-card__detail {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
}


/* ── blocks-community.css ────────────────────────────────────────────── */
/*
 * Community pack block stylesheet.
 *
 * Naming: .ace-{block-slug}__* per the alphaCEO taxonomy.
 * All direction properties use logical CSS (inline-start/end, block-start/end)
 * so RTL tenants flip automatically — zero overrides needed.
 *
 * This file is linked AFTER blocks.css so per-block rules win on
 * equal specificity. Theme tokens (--alphaceo-color-*, --alphaceo-font-*)
 * stay the source of truth; this file is layout + structure.
 */

/* ========================================================================
   Shared community atoms
   ====================================================================== */
.ace-community-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
}

.ace-community-wrap--wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
}

.ace-community-wrap--narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
}

.ace-community-head {
  margin-block-end: clamp(24px, 4vw, 40px);
}

.ace-community-head h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--alphaceo-color-fg, #111);
}

.ace-community-head p {
  margin: 0;
  font-size: 16px;
  color: var(--alphaceo-color-fgMuted, #64748b);
}

.ace-field {
  padding: 12px 16px;
  border: 1.5px solid var(--alphaceo-color-border, #e5e7eb);
  border-radius: var(--alphaceo-radius-button, 10px);
  font-size: 15px;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  background: var(--alphaceo-color-surface, #fff);
  color: var(--alphaceo-color-fg, #111);
  transition: border-color 0.2s;
}

.ace-field:focus {
  outline: none;
  border-color: var(--alphaceo-color-primary, #6366f1);
}

.ace-field::placeholder {
  color: var(--alphaceo-color-fgMuted, #9ca3af);
}

/* ========================================================================
   forum:thread-list  (FORUM_THREAD_LIST)
   ====================================================================== */
.ace-forum {
  padding: clamp(40px, 6vw, 80px) 0;
  background: var(--alphaceo-color-bg, #f8fafc);
}

.ace-forum alphaceo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ace-thread-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--alphaceo-color-surface, #fff);
  border: 1px solid var(--alphaceo-color-border, #e5e7eb);
  border-radius: var(--alphaceo-radius-card, 12px);
  padding: clamp(14px, 2vw, 20px) clamp(16px, 2.5vw, 24px);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ace-thread-row:hover {
  border-color: var(--alphaceo-color-primary, #6366f1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.ace-thread-body {
  flex: 1;
  min-width: 0;
}

.ace-thread-title {
  display: block;
  font-weight: 700;
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--alphaceo-color-fg, #111);
  margin-block-end: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ace-thread-meta {
  font-size: 13px;
  color: var(--alphaceo-color-fgMuted, #64748b);
}

.ace-thread-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  background: color-mix(in oklch, var(--alphaceo-color-primary, #6366f1) 10%, transparent);
  color: var(--alphaceo-color-primary, #6366f1);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ========================================================================
   forum:thread-detail  (FORUM_THREAD_DETAIL)
   ====================================================================== */
.ace-thread-detail {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 28px);
}

.ace-thread-detail alphaceo-record h1 {
  margin: 0 0 12px;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--alphaceo-color-fg, #111);
}

.ace-thread-author {
  color: var(--alphaceo-color-fgMuted, #64748b);
  font-size: 14px;
  margin-block-end: clamp(20px, 3vw, 32px);
}

.ace-thread-body-text {
  line-height: 1.75;
  white-space: pre-wrap;
  color: var(--alphaceo-color-fg, #111);
  font-size: 16px;
}

/* ========================================================================
   forum:reply-list  (FORUM_REPLY_LIST)
   ====================================================================== */
.ace-replies {
  padding: clamp(16px, 3vw, 32px) 0;
}

.ace-replies alphaceo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ace-reply-card {
  background: var(--alphaceo-color-surface, #fff);
  border: 1px solid var(--alphaceo-color-border, #e5e7eb);
  border-radius: var(--alphaceo-radius-card, 12px);
  padding: clamp(14px, 2vw, 20px);
}

.ace-reply-author {
  font-weight: 700;
  font-size: 14px;
  color: var(--alphaceo-color-fg, #111);
  margin-block-end: 6px;
}

.ace-reply-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--alphaceo-color-fg, #111);
  white-space: pre-wrap;
  margin: 0;
}

/* ========================================================================
   forum:reply-form  (FORUM_REPLY_FORM)
   ====================================================================== */
.ace-reply-form {
  padding: clamp(16px, 3vw, 28px) 0;
}

.ace-reply-form h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--alphaceo-color-fg, #111);
}

.ace-reply-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ace-btn-reply {
  align-self: flex-start;
  background: var(--alphaceo-color-primary, #111);
  color: var(--alphaceo-color-primaryFg, #fff);
  border: 0;
  border-radius: var(--alphaceo-radius-button, 8px);
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  transition: opacity 0.15s;
}

.ace-btn-reply:hover {
  opacity: 0.85;
}

@media (max-width: 480px) {
  .ace-btn-reply {
    width: 100%;
  }
}

/* ========================================================================
   contest:entry-grid  (CONTEST_ENTRY_GRID)
   ====================================================================== */
.ace-contest {
  padding: clamp(32px, 5vw, 64px) 0;
  background: var(--alphaceo-color-bg, #f8fafc);
}

.ace-contest alphaceo-entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(14px, 2.5vw, 22px);
}

.ace-contest-card {
  background: var(--alphaceo-color-surface, #fff);
  border: 1px solid var(--alphaceo-color-border, #e5e7eb);
  border-radius: var(--alphaceo-radius-card, 14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ace-contest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.ace-contest-img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  background: var(--alphaceo-color-border, #f3f4f6);
}

.ace-contest-body {
  padding: clamp(14px, 2vw, 18px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.ace-contest-title {
  margin: 0;
  font-weight: 700;
  font-size: 15px;
  color: var(--alphaceo-color-fg, #111);
}

.ace-contest-desc {
  margin: 0;
  font-size: 13px;
  color: var(--alphaceo-color-fgMuted, #64748b);
  line-height: 1.5;
  flex: 1;
}

.ace-contest-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block-start: 10px;
  border-block-start: 1px solid var(--alphaceo-color-border, #f3f4f6);
}

.ace-vote-count {
  font-weight: 800;
  font-size: 15px;
  color: var(--alphaceo-color-primary, #111);
}

.ace-btn-vote {
  background: var(--alphaceo-color-primary, #111);
  color: var(--alphaceo-color-primaryFg, #fff);
  border: 0;
  border-radius: var(--alphaceo-radius-button, 7px);
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
  transition: opacity 0.15s;
}

.ace-btn-vote:hover {
  opacity: 0.85;
}

/* ========================================================================
   contest:leaderboard  (CONTEST_LEADERBOARD)
   ====================================================================== */
.ace-leaderboard {
  padding: clamp(24px, 4vw, 48px) 0;
}

.ace-leaderboard h3 {
  margin: 0 0 clamp(16px, 3vw, 24px);
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--alphaceo-color-fg, #111);
}

.ace-leaderboard alphaceo-list {
  display: flex;
  flex-direction: column;
}

.ace-rank-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(12px, 2vw, 16px) 0;
  border-block-end: 1px solid var(--alphaceo-color-border, #f1f5f9);
}

.ace-rank-row:last-child {
  border-block-end: none;
}

.ace-rank-num {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 900;
  min-width: 36px;
  color: var(--alphaceo-color-fgMuted, #9ca3af);
  text-align: center;
}

.ace-rank-num.top3 {
  color: var(--alphaceo-color-accent, #f59e0b);
}

.ace-rank-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--alphaceo-color-border, #f3f4f6);
  flex-shrink: 0;
}

.ace-rank-info {
  flex: 1;
  min-width: 0;
}

.ace-rank-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--alphaceo-color-fg, #111);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ace-rank-author {
  font-size: 12px;
  color: var(--alphaceo-color-fgMuted, #64748b);
}

.ace-rank-votes {
  font-weight: 800;
  font-size: 15px;
  color: var(--alphaceo-color-fg, #111);
  white-space: nowrap;
}

/* ========================================================================
   directory:listing-grid  (DIRECTORY_LISTING_GRID)
   ====================================================================== */
.ace-directory {
  padding: clamp(40px, 6vw, 80px) 0;
  background: var(--alphaceo-color-bg, #f8fafc);
}

.ace-directory alphaceo-entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(14px, 2.5vw, 20px);
}

.ace-dir-card {
  background: var(--alphaceo-color-surface, #fff);
  border: 1px solid var(--alphaceo-color-border, #e5e7eb);
  border-radius: var(--alphaceo-radius-card, 14px);
  padding: clamp(18px, 2.5vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ace-dir-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.ace-dir-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--alphaceo-color-bg, #f9fafb);
  border: 1px solid var(--alphaceo-color-border, #e5e7eb);
  padding: 6px;
  flex-shrink: 0;
}

.ace-dir-name {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 700;
  color: var(--alphaceo-color-fg, #111);
}

.ace-dir-tagline {
  margin: 0;
  font-size: 13px;
  color: var(--alphaceo-color-fgMuted, #64748b);
  line-height: 1.45;
}

.ace-dir-link {
  margin-block-start: auto;
  color: var(--alphaceo-color-primary, #111);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

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

/* ========================================================================
   job_board:job-list  (JOB_LISTING_LIST)
   ====================================================================== */
.ace-jobs {
  padding: clamp(40px, 6vw, 80px) 0;
  background: var(--alphaceo-color-bg, #f8fafc);
}

.ace-jobs alphaceo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ace-job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--alphaceo-color-surface, #fff);
  border: 1px solid var(--alphaceo-color-border, #e5e7eb);
  border-radius: var(--alphaceo-radius-card, 12px);
  padding: clamp(16px, 2.5vw, 22px) clamp(16px, 2.5vw, 24px);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ace-job-row:hover {
  border-color: var(--alphaceo-color-primary, #6366f1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.ace-job-main {
  flex: 1;
  min-width: 0;
}

.ace-job-title {
  margin: 0 0 4px;
  font-weight: 800;
  font-size: clamp(14px, 2vw, 16px);
  color: var(--alphaceo-color-fg, #111);
}

.ace-job-meta {
  font-size: 13px;
  color: var(--alphaceo-color-fgMuted, #64748b);
}

.ace-job-salary {
  font-size: 13px;
  font-weight: 600;
  color: var(--alphaceo-color-primary, #111);
  white-space: nowrap;
}

.ace-btn-apply {
  background: var(--alphaceo-color-primary, #111);
  color: var(--alphaceo-color-primaryFg, #fff);
  border: 0;
  border-radius: var(--alphaceo-radius-button, 8px);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  min-height: 42px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.ace-btn-apply:hover {
  opacity: 0.85;
}

@media (max-width: 520px) {
  .ace-job-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .ace-btn-apply {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
}

/* ========================================================================
   nonprofit:donate-form  (NONPROFIT_DONATE_FORM)
   ====================================================================== */
.ace-donate {
  padding: clamp(40px, 6vw, 80px) 0;
  background: var(--alphaceo-color-bg, #fff);
}

.ace-donate form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.ace-amount-btn {
  padding: 12px 6px;
  border: 1.5px solid var(--alphaceo-color-border, #e5e7eb);
  border-radius: var(--alphaceo-radius-button, 9px);
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  background: var(--alphaceo-color-surface, #fff);
  color: var(--alphaceo-color-fg, #111);
  min-height: 48px;
  transition: border-color 0.2s, background 0.2s;
}

.ace-amount-btn:hover,
.ace-amount-btn.selected {
  border-color: var(--alphaceo-color-primary, #6366f1);
  background: color-mix(in oklch, var(--alphaceo-color-primary, #6366f1) 8%, transparent);
}

.ace-btn-donate {
  background: var(--alphaceo-color-primary, #111);
  color: var(--alphaceo-color-primaryFg, #fff);
  border: 0;
  border-radius: var(--alphaceo-radius-button, 10px);
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  min-height: 54px;
  transition: opacity 0.15s;
}

.ace-btn-donate:hover {
  opacity: 0.88;
}

@media (max-width: 380px) {
  .ace-amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================================================
   nonprofit:campaign-grid  (NONPROFIT_CAMPAIGN_GRID)
   ====================================================================== */
.ace-campaigns {
  padding: clamp(40px, 6vw, 80px) 0;
  background: var(--alphaceo-color-bg, #f8fafc);
}

.ace-campaigns alphaceo-entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(14px, 2.5vw, 22px);
}

.ace-campaign-card {
  background: var(--alphaceo-color-surface, #fff);
  border: 1px solid var(--alphaceo-color-border, #e5e7eb);
  border-radius: var(--alphaceo-radius-card, 14px);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ace-campaign-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.ace-campaign-img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  background: var(--alphaceo-color-border, #f3f4f6);
}

.ace-campaign-body {
  padding: clamp(16px, 2vw, 22px);
}

.ace-campaign-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--alphaceo-color-fg, #111);
}

.ace-campaign-progress {
  width: 100%;
  height: 7px;
  border-radius: 100px;
  background: var(--alphaceo-color-border, #e5e7eb);
  overflow: hidden;
  margin: 10px 0 6px;
}

.ace-campaign-progress-bar {
  height: 100%;
  border-radius: 100px;
  background: var(--alphaceo-color-primary, #6366f1);
  transition: width 0.6s ease;
}

.ace-campaign-meta {
  font-size: 13px;
  color: var(--alphaceo-color-fgMuted, #64748b);
}

/* ========================================================================
   community:post-feed  (COMMUNITY_POST_FEED)
   ====================================================================== */
.ace-feed {
  padding: clamp(40px, 6vw, 80px) 0;
  background: var(--alphaceo-color-bg, #f8fafc);
}

.ace-feed alphaceo-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ace-post-card {
  background: var(--alphaceo-color-surface, #fff);
  border: 1px solid var(--alphaceo-color-border, #e5e7eb);
  border-radius: var(--alphaceo-radius-card, 14px);
  padding: clamp(16px, 2.5vw, 22px);
}

.ace-post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block-end: 12px;
}

.ace-post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--alphaceo-color-primary, #6366f1) 15%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--alphaceo-color-primary, #6366f1);
  flex-shrink: 0;
  overflow: hidden;
}

.ace-post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ace-post-author {
  font-weight: 700;
  font-size: 14px;
  color: var(--alphaceo-color-fg, #111);
}

.ace-post-time {
  font-size: 12px;
  color: var(--alphaceo-color-fgMuted, #94a3b8);
}

.ace-post-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--alphaceo-color-fg, #111);
  margin: 0 0 12px;
}

.ace-post-likes {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--alphaceo-color-fgMuted, #64748b);
}


/* ── blocks-content.css ────────────────────────────────────────────── */
/*
 * alphaCEO content-pack block stylesheet.
 *
 * Served alongside /p/static/ace-blocks.css (linked after it, so these
 * rules win on equal specificity). Covers the portfolio, podcast, and
 * courses sub-packs.
 *
 * Conventions:
 *  - All classes start with ace- (alphaCEO block).
 *  - No physical-direction properties: use margin-inline-*, padding-inline-*,
 *    inset-inline-*, border-inline-*, text-align:start/end.
 *  - Theme tokens (--alphaceo-color-*, --alphaceo-radius-*, --alphaceo-typography-*)
 *    with hard-coded fallbacks so pages render without a theme.
 */

/* ========================================================================
   Shared layout helpers (content packs)
   ====================================================================== */
.ace-content-section {
  padding: clamp(40px, 6vw, 80px) 0;
  background: var(--alphaceo-color-bg, #f8fafc);
  font-family: var(--alphaceo-typography-fontFamily, 'Inter', ui-sans-serif, system-ui, sans-serif);
}

.ace-content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.ace-content-wrap--narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
}

.ace-content-wrap--form {
  max-width: 440px;
  margin: 0 auto;
}

.ace-content-head {
  margin-bottom: clamp(24px, 4vw, 40px);
}

.ace-content-head__title {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--alphaceo-color-fg, #111);
}

.ace-content-head__sub {
  margin: 0;
  font-size: 15px;
  color: var(--alphaceo-color-fgMuted, #64748b);
}

/* ========================================================================
   Portfolio project grid (ace-portfolio)
   ====================================================================== */
.ace-portfolio {
  padding: clamp(40px, 6vw, 80px) 0;
  background: var(--alphaceo-color-bg, #f8fafc);
  font-family: var(--alphaceo-typography-fontFamily, 'Inter', ui-sans-serif, system-ui, sans-serif);
}

.ace-portfolio alphaceo-entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.ace-proj-card {
  background: var(--alphaceo-color-surface, #fff);
  border: 1px solid var(--alphaceo-color-border, #e5e7eb);
  border-radius: var(--alphaceo-radius-card, 14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ace-proj-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.11);
}

.ace-proj-card__img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  background: var(--alphaceo-color-border, #f3f4f6);
}

.ace-proj-card__body {
  padding: clamp(16px, 2vw, 22px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.ace-proj-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--alphaceo-color-fg, #111);
}

.ace-proj-card__summary {
  margin: 0;
  font-size: 13px;
  color: var(--alphaceo-color-fgMuted, #64748b);
  line-height: 1.55;
  flex: 1;
}

.ace-proj-card__link {
  margin-top: auto;
  padding-top: 12px;
  color: var(--alphaceo-color-primary, #111);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ace-proj-card__link:hover {
  text-decoration: underline;
}

/* ========================================================================
   Podcast episode list (ace-podcast)
   ====================================================================== */
.ace-podcast {
  padding: clamp(40px, 6vw, 80px) 0;
  background: var(--alphaceo-color-bg, #f8fafc);
  font-family: var(--alphaceo-typography-fontFamily, 'Inter', ui-sans-serif, system-ui, sans-serif);
}

.ace-podcast alphaceo-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ace-ep-card {
  background: var(--alphaceo-color-surface, #fff);
  border: 1px solid var(--alphaceo-color-border, #e5e7eb);
  border-radius: var(--alphaceo-radius-card, 14px);
  padding: clamp(14px, 2vw, 20px);
  display: flex;
  gap: clamp(12px, 2vw, 18px);
  align-items: flex-start;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ace-ep-card:hover {
  border-color: var(--alphaceo-color-primary, #6366f1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.ace-ep-card__thumb {
  width: clamp(60px, 10vw, 80px);
  height: clamp(60px, 10vw, 80px);
  border-radius: 10px;
  object-fit: cover;
  background: var(--alphaceo-color-border, #f3f4f6);
  flex-shrink: 0;
}

.ace-ep-card__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ace-ep-card__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--alphaceo-color-fg, #111);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ace-ep-card__meta {
  font-size: 12px;
  color: var(--alphaceo-color-fgMuted, #64748b);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ace-ep-card__chip {
  background: color-mix(in oklch, var(--alphaceo-color-primary, #6366f1) 10%, transparent);
  color: var(--alphaceo-color-primary, #6366f1);
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 11px;
}

.ace-ep-card__player {
  width: 100%;
  height: 36px;
  border-radius: 6px;
  margin-top: 4px;
}

.ace-ep-empty {
  text-align: center;
  padding: clamp(32px, 6vw, 64px);
  color: var(--alphaceo-color-fgMuted, #94a3b8);
}

/* ========================================================================
   Courses grid (ace-courses)
   ====================================================================== */
.ace-courses {
  padding: clamp(40px, 6vw, 80px) 0;
  background: var(--alphaceo-color-bg, #f8fafc);
  font-family: var(--alphaceo-typography-fontFamily, 'Inter', ui-sans-serif, system-ui, sans-serif);
}

.ace-courses alphaceo-entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.ace-course-card {
  background: var(--alphaceo-color-surface, #fff);
  border: 1px solid var(--alphaceo-color-border, #e5e7eb);
  border-radius: var(--alphaceo-radius-card, 14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ace-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

.ace-course-card__img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  background: var(--alphaceo-color-border, #f3f4f6);
}

.ace-course-card__body {
  padding: clamp(14px, 2vw, 20px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.ace-course-card__level {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: color-mix(in oklch, var(--alphaceo-color-accent, #f59e0b) 15%, transparent);
  color: color-mix(in oklch, var(--alphaceo-color-accent, #f59e0b) 80%, #000);
}

.ace-course-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--alphaceo-color-fg, #111);
}

.ace-course-card__desc {
  margin: 0;
  font-size: 13px;
  color: var(--alphaceo-color-fgMuted, #64748b);
  line-height: 1.5;
  flex: 1;
}

.ace-course-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--alphaceo-color-border, #f3f4f6);
}

.ace-course-card__lessons {
  font-size: 12px;
  color: var(--alphaceo-color-fgMuted, #64748b);
  font-weight: 600;
}

/* ========================================================================
   Lesson viewer (ace-lesson)
   ====================================================================== */
.ace-lesson {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 28px);
  font-family: var(--alphaceo-typography-fontFamily, 'Inter', ui-sans-serif, system-ui, sans-serif);
}

.ace-lesson__title {
  margin: 0 0 clamp(16px, 2.5vw, 24px);
  font-size: clamp(20px, 3.5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--alphaceo-color-fg, #111);
}

.ace-lesson__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--alphaceo-radius-card, 14px);
  background: #000;
  overflow: hidden;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.ace-lesson__video video {
  width: 100%;
  height: 100%;
  display: block;
}

.ace-lesson__body {
  line-height: 1.8;
  font-size: clamp(15px, 1.5vw, 16px);
  color: var(--alphaceo-color-fg, #111);
  white-space: pre-wrap;
}

/* ========================================================================
   Enrollment form (ace-enroll)
   ====================================================================== */
.ace-enroll {
  padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 28px);
  background: var(--alphaceo-color-bg, #fff);
  font-family: var(--alphaceo-typography-fontFamily, 'Inter', ui-sans-serif, system-ui, sans-serif);
}

.ace-enroll__title {
  margin: 0 0 6px;
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--alphaceo-color-fg, #111);
}

.ace-enroll__sub {
  color: var(--alphaceo-color-fgMuted, #64748b);
  font-size: 15px;
  margin: 0 0 clamp(20px, 3vw, 28px);
}

.ace-enroll__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ace-field {
  padding: 13px 16px;
  border: 1.5px solid var(--alphaceo-color-border, #e5e7eb);
  border-radius: var(--alphaceo-radius-button, 10px);
  font-size: 15px;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  background: var(--alphaceo-color-surface, #fff);
  color: var(--alphaceo-color-fg, #111);
  transition: border-color 0.2s;
}

.ace-field:focus {
  outline: none;
  border-color: var(--alphaceo-color-primary, #6366f1);
}

.ace-field::placeholder {
  color: var(--alphaceo-color-fgMuted, #9ca3af);
}

.ace-btn-enroll {
  background: var(--alphaceo-color-primary, #111);
  color: var(--alphaceo-color-primaryFg, #fff);
  border: 0;
  border-radius: var(--alphaceo-radius-button, 10px);
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  min-height: 50px;
  transition: opacity 0.15s;
}

.ace-btn-enroll:hover {
  opacity: 0.88;
}


/* ── blocks-departments.css ────────────────────────────────────────────── */
/*
 * blocks-departments.css — Department pack block stylesheet.
 *
 * Loaded alongside blocks.css on every page that uses a department pack.
 * All selectors are prefixed .ace-{dept}-* to avoid collisions.
 * Logical properties (margin-inline-*, padding-inline-*, inset-inline-*)
 * used throughout — RTL tenants flip automatically with no extra rules.
 * No physical left/right direction properties.
 */

/* =========================================================================
   Shared department shell
   ========================================================================= */

.ace-dept-shell {
  padding: clamp(32px, 5vw, 60px) 0;
  background: var(--alphaceo-color-surface-100, #f7f9fc);
  min-height: 80vh;
}

.ace-dept-shell--white {
  background: #fff;
}

.ace-dept-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.ace-dept-page-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--alphaceo-color-fg, #111);
  margin: 0 0 clamp(16px, 3vw, 24px);
}

/* =========================================================================
   Shared card
   ========================================================================= */

.ace-dept-card {
  background: var(--alphaceo-color-surface, #fff);
  border: 1px solid var(--alphaceo-color-border, #e5e7eb);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.ace-dept-card__body {
  padding: clamp(16px, 2vw, 22px);
}

.ace-dept-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ace-dept-card__row--start {
  align-items: flex-start;
}

.ace-dept-card__grow {
  flex: 1 1 0;
  min-width: 0;
}

.ace-dept-card__end {
  text-align: end;
  flex-shrink: 0;
}

.ace-dept-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--alphaceo-color-fg, #111);
  margin: 0 0 4px;
}

.ace-dept-card__sub {
  font-size: 13px;
  color: var(--alphaceo-color-fgMuted, #64748b);
  margin: 0;
}

.ace-dept-card__amount {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 800;
  color: var(--alphaceo-color-primary, #111);
}

/* =========================================================================
   Status / priority pill
   ========================================================================= */

.ace-dept-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--alphaceo-color-primary, #111);
  color: var(--alphaceo-color-primaryFg, #fff);
}

.ace-dept-pill--muted {
  background: var(--alphaceo-color-border, #e5e7eb);
  color: var(--alphaceo-color-fg, #374151);
}

/* =========================================================================
   KPI strip (shared — used in marketing + other dashboards)
   ========================================================================= */

.ace-dept-kpi-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.ace-dept-kpi-card {
  flex: 1 1 140px;
  background: var(--alphaceo-color-surface, #fff);
  border-radius: 12px;
  padding: clamp(12px, 2vw, 16px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ace-dept-kpi-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--alphaceo-color-fgMuted, #64748b);
  margin-bottom: 4px;
}

.ace-dept-kpi-value {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: var(--alphaceo-color-primary, #111);
}

/* =========================================================================
   Chart card
   ========================================================================= */

.ace-dept-chart-card {
  background: var(--alphaceo-color-surface, #fff);
  border-radius: 12px;
  padding: clamp(16px, 2.5vw, 24px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
}

.ace-dept-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.ace-dept-chart-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--alphaceo-color-fg, #111);
  margin: 0;
}

.ace-dept-chart-sub {
  font-size: 13px;
  color: var(--alphaceo-color-fgMuted, #64748b);
  margin: 0;
}

.ace-dept-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--alphaceo-color-fg, #111);
}

.ace-dept-legend__swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-inline-end: 5px;
}

/* =========================================================================
   Platform pills (ads)
   ========================================================================= */

.ace-mkt-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ace-mkt-plat-facebook  { background: rgba(24,119,242,.16); color: #1877F2; }
.ace-mkt-plat-instagram { background: linear-gradient(45deg,rgba(225,48,108,.18),rgba(247,159,57,.18)); color: #E1306C; }
.ace-mkt-plat-google    { background: rgba(66,133,244,.16); color: #4285F4; }
.ace-mkt-plat-youtube   { background: rgba(255,0,0,.14); color: #FF0000; }
.ace-mkt-plat-tiktok    { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.ace-mkt-plat-linkedin  { background: rgba(10,102,194,.16); color: #0A66C2; }
.ace-mkt-plat-whatsapp  { background: rgba(37,211,102,.14); color: #25D366; }

.ace-mkt-ctype-pill {
  display: inline-flex;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(99,102,241,.12);
  color: #6366F1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ace-mkt-dest-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(16,185,129,.12);
  color: #10B981;
  text-transform: uppercase;
}

.ace-mkt-dest-whatsapp { background: rgba(37,211,102,.14); color: #25D366; }
.ace-mkt-dest-messenger { background: rgba(0,132,255,.12); color: #0084FF; }

/* =========================================================================
   Campaign list card
   ========================================================================= */

.ace-mkt-campaign-card {
  background: var(--alphaceo-color-surface, #fff);
  border-radius: 12px;
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
}

.ace-mkt-campaign-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.ace-mkt-campaign-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  cursor: pointer;
  padding: clamp(12px, 2vw, 18px);
  border-block-end: 1px solid var(--alphaceo-color-border, #e5e7eb);
}

.ace-mkt-campaign-row:last-child {
  border-block-end: none;
}

/* =========================================================================
   Ads header bar
   ========================================================================= */

.ace-mkt-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.ace-mkt-dash-title {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  color: var(--alphaceo-color-fg, #111);
  margin: 0 0 4px;
}

.ace-mkt-dash-sub {
  font-size: 13px;
  color: var(--alphaceo-color-fgMuted, #64748b);
  margin: 0;
}

/* =========================================================================
   New campaign / action CTA button
   ========================================================================= */

.ace-mkt-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--alphaceo-color-primary, #111);
  color: var(--alphaceo-color-primaryFg, #fff);
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  text-decoration: none;
  cursor: pointer;
}

.ace-mkt-cta-btn:hover {
  opacity: 0.88;
}

/* =========================================================================
   Create-campaign form
   ========================================================================= */

.ace-mkt-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
}

.ace-mkt-form__field {
  padding: 10px 14px;
  border: 1px solid var(--alphaceo-color-border, #d1d5db);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--alphaceo-color-surface, #fff);
  color: var(--alphaceo-color-fg, #111);
  width: 100%;
  box-sizing: border-box;
}

.ace-mkt-form__row {
  display: flex;
  gap: 12px;
}

.ace-mkt-form__row .ace-mkt-form__field {
  flex: 1;
}

.ace-mkt-submit {
  display: inline-flex;
  align-items: center;
  background: var(--alphaceo-color-primary, #111);
  color: var(--alphaceo-color-primaryFg, #fff);
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  align-self: flex-start;
}

/* =========================================================================
   Finance
   ========================================================================= */

.ace-fin-invoice-row,
.ace-fin-expense-row,
.ace-fin-tax-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: clamp(12px, 2vw, 18px);
}

.ace-fin-pnl-bar {
  height: 6px;
  border-radius: 4px;
  background: var(--alphaceo-color-border, #e5e7eb);
  overflow: hidden;
  margin-top: 8px;
}

.ace-fin-pnl-bar__fill {
  height: 100%;
  background: var(--alphaceo-color-primary, #111);
  border-radius: 4px;
}

/* =========================================================================
   Sales
   ========================================================================= */

.ace-sales-deal-card__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ace-sales-forecast-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 640px) {
  .ace-sales-forecast-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.ace-sales-forecast-cell {
  text-align: center;
}

.ace-sales-forecast-value {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 800;
  color: var(--alphaceo-color-primary, #111);
}

.ace-sales-forecast-label {
  font-size: 12px;
  color: var(--alphaceo-color-fgMuted, #64748b);
}

/* =========================================================================
   Support
   ========================================================================= */

.ace-sup-ticket-badges {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: end;
  flex-shrink: 0;
}

.ace-sup-sla-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: center;
  margin-top: 12px;
}

.ace-sup-sla-value {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: var(--alphaceo-color-primary, #111);
}

.ace-sup-sla-label {
  font-size: 12px;
  color: var(--alphaceo-color-fgMuted, #64748b);
  margin-top: 2px;
}

/* =========================================================================
   R&D
   ========================================================================= */

.ace-rd-sprint-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
  margin-top: 12px;
}

.ace-rd-sprint-value {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 800;
  color: var(--alphaceo-color-primary, #111);
}

.ace-rd-sprint-label {
  font-size: 12px;
  color: var(--alphaceo-color-fgMuted, #64748b);
}

/* =========================================================================
   HR
   ========================================================================= */

.ace-hr-employee-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--alphaceo-color-border, #e9ecef);
  flex-shrink: 0;
  overflow: hidden;
  object-fit: cover;
}

.ace-hr-opening-meta {
  text-align: end;
}

/* =========================================================================
   Operations
   ========================================================================= */

.ace-ops-vendor-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ace-ops-kpi-value {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: var(--alphaceo-color-primary, #111);
}

.ace-ops-kpi-target {
  font-size: 12px;
  color: var(--alphaceo-color-fgMuted, #64748b);
}

/* =========================================================================
   Shared empty-state text
   ========================================================================= */

.ace-dept-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--alphaceo-color-fgMuted, #64748b);
  font-size: 14px;
}


/* ── blocks-events.css ────────────────────────────────────────────── */
/*
 * Events pack block stylesheet — .ace-{block}__* taxonomy.
 *
 * Served alongside blocks.css. All logical-direction properties
 * (margin/padding-inline-*, inset-inline-*, border-inline-*) so RTL
 * tenants flip automatically. No physical left/right.
 *
 * Theme tokens: var(--alphaceo-color-*), var(--alphaceo-font-*),
 * var(--alphaceo-radius-*). Every token has a fallback.
 */

/* ========================================================================
   Speaker grid (EVENTS_SPEAKER_GRID)
   ====================================================================== */
.ace-speakers {
  padding: clamp(32px, 5vw, 64px) 0;
  font-family: var(--alphaceo-typography-fontFamily, Inter, ui-sans-serif, system-ui, sans-serif);
}

.ace-speakers__wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
}

.ace-speakers alphaceo-entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: clamp(14px, 2.5vw, 20px);
}

.ace-spk-card {
  background: var(--alphaceo-color-surface, #fff);
  border: 1px solid var(--alphaceo-color-border, #e5e7eb);
  border-radius: var(--alphaceo-radius-card, 14px);
  padding: clamp(16px, 2.5vw, 22px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ace-spk-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.ace-spk-card__photo {
  width: clamp(64px, 10vw, 80px);
  height: clamp(64px, 10vw, 80px);
  border-radius: 50%;
  object-fit: cover;
  background: color-mix(in oklch, var(--alphaceo-color-primary, #6366f1) 12%, transparent);
}

.ace-spk-card__name {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--alphaceo-color-fg, #111);
}

.ace-spk-card__role {
  margin: 0;
  font-size: 12px;
  color: var(--alphaceo-color-fgMuted, #64748b);
  line-height: 1.4;
}

/* ========================================================================
   Session schedule (EVENTS_SESSION_SCHEDULE)
   ====================================================================== */
.ace-schedule {
  padding: clamp(24px, 4vw, 48px) 0;
  font-family: var(--alphaceo-typography-fontFamily, Inter, ui-sans-serif, system-ui, sans-serif);
}

.ace-schedule__wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
}

.ace-schedule__heading {
  margin: 0 0 clamp(16px, 3vw, 24px);
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--alphaceo-color-fg, #111);
}

.ace-schedule alphaceo-list {
  display: flex;
  flex-direction: column;
}

.ace-session-row {
  display: flex;
  gap: clamp(12px, 2vw, 20px);
  padding: clamp(12px, 2vw, 18px) 0;
  border-block-end: 1px solid var(--alphaceo-color-border, #f1f5f9);
}

.ace-session-row:last-child {
  border-block-end: none;
}

.ace-session-row__time {
  min-width: clamp(64px, 8vw, 84px);
  font-size: 12px;
  font-weight: 700;
  color: var(--alphaceo-color-fgMuted, #64748b);
  padding-block-start: 2px;
  flex-shrink: 0;
}

.ace-session-row__title {
  font-weight: 700;
  font-size: 14px;
  color: var(--alphaceo-color-fg, #111);
  margin-block-end: 3px;
}

.ace-session-row__loc {
  font-size: 12px;
  color: var(--alphaceo-color-fgMuted, #64748b);
}

/* ========================================================================
   Sponsor grid (EVENTS_SPONSOR_GRID)
   ====================================================================== */
.ace-sponsors {
  padding: clamp(24px, 4vw, 48px) 0;
  font-family: var(--alphaceo-typography-fontFamily, Inter, ui-sans-serif, system-ui, sans-serif);
}

.ace-sponsors__wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
}

.ace-sponsors__heading {
  margin: 0 0 clamp(14px, 2.5vw, 22px);
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 700;
  color: var(--alphaceo-color-fgMuted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ace-sponsors alphaceo-entity-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
  justify-content: center;
}

.ace-sponsor-item {
  opacity: 0.7;
  transition: opacity 0.2s;
}

.ace-sponsor-item:hover {
  opacity: 1;
}

.ace-sponsor-item__img {
  max-height: 44px;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

/* ========================================================================
   FAQ accordion (EVENTS_FAQ_LIST)
   ====================================================================== */
.ace-faq {
  padding: clamp(32px, 5vw, 64px) 0;
  font-family: var(--alphaceo-typography-fontFamily, Inter, ui-sans-serif, system-ui, sans-serif);
}

.ace-faq__wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
}

.ace-faq__heading {
  margin: 0 0 clamp(16px, 3vw, 24px);
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--alphaceo-color-fg, #111);
}

.ace-faq alphaceo-list {
  display: flex;
  flex-direction: column;
}

.ace-faq-item {
  border-block-end: 1px solid var(--alphaceo-color-border, #e5e7eb);
}

.ace-faq-item summary {
  padding: clamp(14px, 2vw, 18px) 0;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  color: var(--alphaceo-color-fg, #111);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.ace-faq-item summary::after {
  content: "＋";
  font-size: 18px;
  color: var(--alphaceo-color-primary, #6366f1);
  flex-shrink: 0;
}

.ace-faq-item[open] summary::after {
  content: "－";
}

.ace-faq-item__answer {
  padding: 0 0 clamp(12px, 2vw, 18px);
  color: var(--alphaceo-color-fgMuted, #64748b);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ========================================================================
   Registration form (EVENTS_REGISTRATION_FORM)
   ====================================================================== */
.ace-event-reg {
  padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 28px);
  background: var(--alphaceo-color-bg, #fff);
  font-family: var(--alphaceo-typography-fontFamily, Inter, ui-sans-serif, system-ui, sans-serif);
}

.ace-event-reg__wrap {
  max-width: 480px;
  margin: 0 auto;
}

.ace-event-reg__heading {
  margin: 0 0 6px;
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--alphaceo-color-fg, #111);
}

.ace-event-reg__sub {
  color: var(--alphaceo-color-fgMuted, #64748b);
  font-size: 15px;
  margin: 0 0 clamp(20px, 3vw, 28px);
}

.ace-event-reg form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ace-event-reg .ace-field {
  padding: 13px 16px;
  border: 1.5px solid var(--alphaceo-color-border, #e5e7eb);
  border-radius: var(--alphaceo-radius-button, 10px);
  font-size: 15px;
  font-family: inherit;
  inline-size: 100%;
  box-sizing: border-box;
  background: var(--alphaceo-color-surface, #fff);
  color: var(--alphaceo-color-fg, #111);
  transition: border-color 0.2s;
}

.ace-event-reg .ace-field:focus {
  outline: none;
  border-color: var(--alphaceo-color-primary, #6366f1);
}

.ace-event-reg .ace-field::placeholder {
  color: var(--alphaceo-color-fgMuted, #9ca3af);
}

.ace-btn-reg {
  background: var(--alphaceo-color-primary, #111);
  color: var(--alphaceo-color-primaryFg, #fff);
  border: 0;
  border-radius: var(--alphaceo-radius-button, 10px);
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  min-block-size: 50px;
  transition: opacity 0.15s;
}

.ace-btn-reg:hover {
  opacity: 0.88;
}

/* ========================================================================
   Venue record (EVENTS_VENUE_RECORD)
   ====================================================================== */
.ace-venue {
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 28px);
  font-family: var(--alphaceo-typography-fontFamily, Inter, ui-sans-serif, system-ui, sans-serif);
}

.ace-venue__wrap {
  max-width: 760px;
  margin: 0 auto;
}

.ace-venue__img {
  inline-size: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--alphaceo-radius-card, 14px);
  margin-block-end: clamp(16px, 3vw, 28px);
  display: block;
}

.ace-venue__name {
  margin: 0 0 8px;
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--alphaceo-color-fg, #111);
}

.ace-venue__addr {
  font-size: 14px;
  color: var(--alphaceo-color-fgMuted, #64748b);
  margin: 0 0 clamp(14px, 2.5vw, 22px);
}

.ace-venue__desc {
  line-height: 1.75;
  font-size: 15px;
  color: var(--alphaceo-color-fg, #111);
}

/* ========================================================================
   Ticket type list (EVENTS_TICKET_TYPE_LIST)
   ====================================================================== */
.ace-evt-tickets {
  padding: clamp(32px, 5vw, 64px) 0;
  font-family: var(--alphaceo-typography-fontFamily, Inter, ui-sans-serif, system-ui, sans-serif);
}

.ace-evt-tickets__wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
}

.ace-evt-tickets__heading {
  margin: 0 0 clamp(16px, 3vw, 24px);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--alphaceo-color-fg, #111);
}

.ace-evt-tickets alphaceo-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ace-tkt-card {
  background: var(--alphaceo-color-surface, #fff);
  border: 1.5px solid var(--alphaceo-color-border, #e5e7eb);
  border-radius: var(--alphaceo-radius-card, 12px);
  padding: clamp(16px, 2.5vw, 22px) clamp(16px, 2.5vw, 24px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  flex-wrap: wrap;
}

.ace-tkt-card:hover {
  border-color: var(--alphaceo-color-primary, #6366f1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.ace-tkt-card__name {
  margin: 0 0 4px;
  font-weight: 800;
  font-size: clamp(15px, 2vw, 17px);
  color: var(--alphaceo-color-fg, #111);
}

.ace-tkt-card__desc {
  font-size: 13px;
  color: var(--alphaceo-color-fgMuted, #64748b);
}

.ace-tkt-card__price {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  color: var(--alphaceo-color-fg, #111);
  white-space: nowrap;
}

.ace-btn-get {
  background: var(--alphaceo-color-primary, #111);
  color: var(--alphaceo-color-primaryFg, #fff);
  border: 0;
  border-radius: var(--alphaceo-radius-button, 8px);
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  min-block-size: 44px;
  white-space: nowrap;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.ace-btn-get:hover {
  opacity: 0.85;
}

@media (max-width: 520px) {
  .ace-tkt-card__price {
    font-size: 20px;
  }

  .ace-btn-get {
    inline-size: 100%;
  }
}


/* ── blocks-fitness.css ────────────────────────────────────────────── */
/*
 * Fitness pack block stylesheet — extends the global ace-blocks.css taxonomy.
 *
 * Naming: .ace-{block-name}__* per the ace-* convention.
 * All colour values reference --alphaceo-color-* tokens with fallbacks.
 * All spacing is logical (inline/block) — zero physical left/right.
 */

/* ========================================================================
   Fitness class grid (FITNESS_CLASS_GRID)
   ======================================================================== */
.ace-classes {
  padding: clamp(40px, 6vw, 80px) 0;
  background: var(--alphaceo-color-bg, #f8fafc);
}

.ace-classes__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.ace-classes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(14px, 2.5vw, 20px);
}

.ace-class-card {
  background: var(--alphaceo-color-surface, #fff);
  border: 1px solid var(--alphaceo-color-border, #e5e7eb);
  border-radius: var(--alphaceo-radius-card, 14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ace-class-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.ace-class-card__img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  background: var(--alphaceo-color-border, #f3f4f6);
}

.ace-class-card__body {
  padding: clamp(14px, 2vw, 18px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.ace-class-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--alphaceo-color-fg, #111);
}

.ace-class-card__meta {
  font-size: 12px;
  color: var(--alphaceo-color-fgMuted, #64748b);
}

.ace-class-card__schedule {
  font-size: 12px;
  color: var(--alphaceo-color-fgMuted, #64748b);
}

.ace-class-card__btn-book {
  background: var(--alphaceo-color-primary, #111);
  color: var(--alphaceo-color-primaryFg, #fff);
  border: 0;
  border-radius: var(--alphaceo-radius-button, 8px);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  min-height: 40px;
  text-decoration: none;
  display: block;
  text-align: center;
  margin-block-start: auto;
  transition: opacity 0.15s;
}

.ace-class-card__btn-book:hover {
  opacity: 0.85;
}

/* ========================================================================
   Trainer grid (TRAINER_GRID)
   ======================================================================== */
.ace-trainers {
  padding: clamp(40px, 6vw, 80px) 0;
  background: var(--alphaceo-color-bg, #f8fafc);
}

.ace-trainers__wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 28px);
}

.ace-trainers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: clamp(14px, 2.5vw, 20px);
}

.ace-trainer-card {
  background: var(--alphaceo-color-surface, #fff);
  border: 1px solid var(--alphaceo-color-border, #e5e7eb);
  border-radius: var(--alphaceo-radius-card, 14px);
  padding: clamp(16px, 2.5vw, 24px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ace-trainer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.ace-trainer-card__photo {
  width: clamp(72px, 10vw, 96px);
  height: clamp(72px, 10vw, 96px);
  border-radius: 50%;
  object-fit: cover;
  background: color-mix(in oklch, var(--alphaceo-color-primary, #6366f1) 12%, transparent);
}

.ace-trainer-card__name {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--alphaceo-color-fg, #111);
}

.ace-trainer-card__spec {
  font-size: 13px;
  color: var(--alphaceo-color-fgMuted, #64748b);
}

.ace-trainer-card__exp {
  font-size: 12px;
  color: var(--alphaceo-color-fgMuted, #94a3b8);
}


/* ── blocks-travel.css ────────────────────────────────────────────── */
/*
 * Travel pack block stylesheet.
 *
 * Extends /p/static/ace-blocks.css. Linked after blocks.css so these
 * rules win at equal specificity. All layout uses logical properties —
 * no physical left/right/top/bottom direction assumptions — so RTL
 * tenants get the correct flip for free.
 *
 * Naming: .ace-{block-name}__* following the global ace-* taxonomy.
 */

/* ========================================================================
   Tour grid (travel:tour-grid)
   ====================================================================== */
.ace-tours {
  padding: clamp(40px, 6vw, 80px) 0;
  background: var(--alphaceo-color-bg, #f8fafc);
}

.ace-tours .ace-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.ace-tours alphaceo-entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.ace-tour-card {
  background: var(--alphaceo-color-surface, #fff);
  border: 1px solid var(--alphaceo-color-border, #e5e7eb);
  border-radius: var(--alphaceo-radius-card, 14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ace-tour-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.11);
}

.ace-tour-img {
  aspect-ratio: 3 / 2;
  width: 100%;
  object-fit: cover;
  background: var(--alphaceo-color-border, #f3f4f6);
}

.ace-tour-body {
  padding: clamp(16px, 2vw, 22px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.ace-tour-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--alphaceo-color-fg, #111);
}

.ace-tour-meta {
  font-size: 13px;
  color: var(--alphaceo-color-fgMuted, #64748b);
}

.ace-tour-price {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  color: var(--alphaceo-color-primary, #111);
}

.ace-btn-tour {
  background: var(--alphaceo-color-primary, #111);
  color: var(--alphaceo-color-primaryFg, #fff);
  border: 0;
  border-radius: var(--alphaceo-radius-button, 8px);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  text-decoration: none;
  display: block;
  text-align: center;
  margin-block-start: auto;
  transition: opacity 0.15s;
}

.ace-btn-tour:hover {
  opacity: 0.85;
}

/* ========================================================================
   Booking form (travel:booking-form)
   ====================================================================== */
.ace-tour-book {
  padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 28px);
  background: var(--alphaceo-color-bg, #fff);
}

.ace-tour-book .ace-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.ace-tour-book h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--alphaceo-color-fg, #111);
}

.ace-tour-book .ace-sub {
  color: var(--alphaceo-color-fgMuted, #64748b);
  font-size: 15px;
  margin: 0 0 clamp(20px, 3vw, 28px);
}

.ace-tour-book form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ace-field {
  padding: 13px 16px;
  border: 1.5px solid var(--alphaceo-color-border, #e5e7eb);
  border-radius: var(--alphaceo-radius-button, 10px);
  font-size: 15px;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  background: var(--alphaceo-color-surface, #fff);
  color: var(--alphaceo-color-fg, #111);
  transition: border-color 0.2s;
}

.ace-field:focus {
  outline: none;
  border-color: var(--alphaceo-color-primary, #6366f1);
}

.ace-field::placeholder {
  color: var(--alphaceo-color-fgMuted, #9ca3af);
}

.ace-field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--alphaceo-color-fg, #111);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ace-btn-book {
  background: var(--alphaceo-color-primary, #111);
  color: var(--alphaceo-color-primaryFg, #fff);
  border: 0;
  border-radius: var(--alphaceo-radius-button, 10px);
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  min-height: 50px;
  transition: opacity 0.15s;
}

.ace-btn-book:hover {
  opacity: 0.88;
}
