/* Approved first-session handoff and promo-first membership preview. */
html.ke-rebrand-mode.ke-first-session-dashboard #ke-opening-home-prompt,
html.ke-rebrand-mode.ke-first-session-dashboard #ke-dashboard-checkin,
html.ke-rebrand-mode.ke-first-session-dashboard #ke-dashboard-breathe,
html.ke-rebrand-mode.ke-first-session-dashboard .ke-first-session-guide {
  display: none !important;
}

html.ke-rebrand-mode .ke-first-session-guide {
  color: #fffaf2;
  margin: 0 auto 8px;
  max-width: 600px;
  padding: 4px 10px 0;
  text-align: center;
}

html.ke-rebrand-mode .ke-first-session-guide > span,
html.ke-rebrand-mode .ke-membership-promo-kicker {
  color: #e6c77f;
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

html.ke-rebrand-mode .ke-first-session-guide h2 {
  color: #fffaf2;
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 600;
  line-height: 1.02;
  margin: 8px 0 6px;
  text-wrap: balance;
}

html.ke-rebrand-mode .ke-first-session-guide p {
  color: rgba(255, 250, 242, .68);
  font: 500 clamp(15px, 3.7vw, 19px)/1.28 'Cormorant Garamond', serif;
  margin: 0 auto;
  max-width: 42ch;
  text-wrap: balance;
}

html.ke-rebrand-mode .ke-first-session-guide button,
html.ke-rebrand-mode .ke-membership-skip-offer,
html.ke-rebrand-mode .ke-membership-return-offer {
  background: transparent;
  border: 0;
  color: #e6c77f;
  cursor: pointer;
  font: 800 10px 'DM Sans', sans-serif;
  letter-spacing: .08em;
  margin-top: 11px;
  min-height: 44px;
  padding: 8px 16px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

html.ke-rebrand-mode.ke-first-session-dashboard .ke-dashboard-tool-grid {
  --kd-circle-size: 36%;
  --kd-circle-height: 23.5%;
  aspect-ratio: 390 / 610;
  margin-top: 0;
}

html.ke-rebrand-mode.ke-first-session-dashboard #scr-dashboard #ke-dashboard-live-constellation[data-ke-shape="hex-core-circle-actions"] #ke-dashboard-journal-new { left: 19% !important; top: 28% !important; }
html.ke-rebrand-mode.ke-first-session-dashboard #scr-dashboard #ke-dashboard-live-constellation[data-ke-shape="hex-core-circle-actions"] #ke-dashboard-intention { left: 81% !important; top: 28% !important; }
html.ke-rebrand-mode.ke-first-session-dashboard #scr-dashboard #ke-dashboard-live-constellation[data-ke-shape="hex-core-circle-actions"] #ke-dashboard-community-button { left: 19% !important; top: 72% !important; }
html.ke-rebrand-mode.ke-first-session-dashboard #scr-dashboard #ke-dashboard-live-constellation[data-ke-shape="hex-core-circle-actions"] #ke-dashboard-call-karamo { left: 81% !important; top: 72% !important; }

html.ke-rebrand-mode.ke-first-session-dashboard .ke-dashboard-connector--north,
html.ke-rebrand-mode.ke-first-session-dashboard .ke-dashboard-connector--south { display: none; }
html.ke-rebrand-mode.ke-first-session-dashboard .ke-dashboard-connector--north-east { height: 36%; transform: rotate(-135deg); }
html.ke-rebrand-mode.ke-first-session-dashboard .ke-dashboard-connector--south-east { height: 36%; transform: rotate(-45deg); }
html.ke-rebrand-mode.ke-first-session-dashboard .ke-dashboard-connector--south-west { height: 36%; transform: rotate(45deg); }
html.ke-rebrand-mode.ke-first-session-dashboard .ke-dashboard-connector--north-west { height: 36%; transform: rotate(135deg); }

html.ke-rebrand-mode.ke-first-session-dashboard .ke-dashboard-tool-title {
  font-size: clamp(14px, 4.1vw, 21px);
  line-height: .96;
  max-width: 11ch;
}

html.ke-rebrand-mode.ke-first-session-dashboard #ke-dashboard-call-karamo .ke-dashboard-tool-title {
  color: #f4ffff !important;
  font-size: clamp(13px, 3.7vw, 19px);
}

html.ke-rebrand-mode.ke-first-session-dashboard .ke-dashboard-task-count,
html.ke-rebrand-mode.ke-first-session-dashboard .ke-dashboard-spark-pending { display: none !important; }

/* First-session actions use one quiet, consistent medallion treatment. The
   regular dashboard's animated orbit rim and corner embers stay out of this
   focused handoff so every destination reads as an equal choice. */
html.ke-rebrand-mode.ke-first-session-dashboard #scr-dashboard #ke-dashboard-live-constellation[data-ke-shape="hex-core-circle-actions"] .ke-dashboard-circle-action {
  aspect-ratio: 1 !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 3px 0 rgba(105,72,24,.78)) drop-shadow(0 12px 22px rgba(0,0,0,.3)) drop-shadow(0 0 12px rgba(215,181,109,.24));
  height: auto !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  width: 34% !important;
}

html.ke-rebrand-mode.ke-first-session-dashboard #scr-dashboard #ke-dashboard-live-constellation[data-ke-shape="hex-core-circle-actions"] .ke-dashboard-circle-action::after,
html.ke-rebrand-mode.ke-first-session-dashboard .ke-first-session-attention {
  display: none !important;
}

html.ke-rebrand-mode.ke-first-session-dashboard #scr-dashboard #ke-dashboard-live-constellation .ke-dashboard-connector {
  opacity: .42 !important;
}

html.ke-rebrand-mode .ke-first-session-attention {
  filter: drop-shadow(0 0 7px rgba(255, 206, 91, .9));
  height: 18px;
  position: absolute;
  right: 13%;
  top: 12%;
  width: 14px;
  z-index: 7;
}

html.ke-rebrand-mode .ke-first-session-attention::before,
html.ke-rebrand-mode .ke-first-session-attention::after,
html.ke-rebrand-mode .ke-first-session-attention i {
  background: linear-gradient(180deg, #fff8cb 0%, #efc75d 46%, #a94a2e 100%);
  border-radius: 70% 30% 68% 32%;
  bottom: 0;
  content: '';
  left: 50%;
  position: absolute;
  transform: translateX(-50%) rotate(45deg);
}

html.ke-rebrand-mode .ke-first-session-attention i { animation: keFirstSessionEmber 1.35s ease-in-out infinite; height: 15px; width: 11px; }
html.ke-rebrand-mode .ke-first-session-attention::before { animation: keFirstSessionEmber 1.35s .16s ease-in-out infinite; height: 10px; opacity: .7; width: 7px; }
html.ke-rebrand-mode .ke-first-session-attention::after { animation: keFirstSessionEmber 1.35s .28s ease-in-out infinite; height: 6px; opacity: .55; width: 4px; }

@keyframes keFirstSessionEmber {
  0%, 100% { filter: brightness(.86); opacity: .56; transform: translateX(-50%) rotate(45deg) scale(.84); }
  50% { filter: brightness(1.35); opacity: 1; transform: translateX(-50%) rotate(45deg) scale(1.12); }
}

html.ke-rebrand-mode .ke-membership-promo,
html.ke-rebrand-mode .ke-membership-monthly {
  color: #fffaf2;
  margin: 0 auto;
  max-width: 820px;
  padding: 0 12px 24px;
  text-align: center;
}

html.ke-rebrand-mode .ke-membership-promo .ke-opening-offer-flame,
html.ke-rebrand-mode .ke-membership-monthly .ke-opening-offer-flame {
  height: 100px;
  margin-bottom: 4px;
  width: 78px;
}

html.ke-rebrand-mode #ke-opening-flow .ke-membership-promo-hex {
  margin: 0 auto 22px;
}

html.ke-rebrand-mode #ke-opening-flow .ke-membership-promo-hex .ke-opening-bloom-hex-inner {
  gap: 7px;
  padding: 16% 13% 14%;
}

html.ke-rebrand-mode #ke-opening-flow .ke-membership-promo-hex .ke-opening-offer-flame {
  height: 78px;
  margin: 0;
  width: 60px;
}

html.ke-rebrand-mode #ke-opening-flow .ke-membership-promo-hex h1 {
  font-size: clamp(28px,7vw,38px);
  line-height: .98;
  margin: 0;
  text-align: center;
  text-wrap: balance;
}

html.ke-rebrand-mode .ke-membership-promo h1,
html.ke-rebrand-mode .ke-membership-monthly h1 {
  color: #fffaf2;
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1;
  margin: 8px 0;
}

html.ke-rebrand-mode .ke-membership-promo-lead {
  color: #e7ca84 !important;
  font: 500 clamp(17px, 3.7vw, 21px)/1.28 'Cormorant Garamond', serif !important;
  margin: 0 auto 18px;
  max-width: 50ch;
}

html.ke-rebrand-mode .ke-membership-promo-grid,
html.ke-rebrand-mode .ke-membership-monthly-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto 16px;
  max-width: 780px;
}

html.ke-rebrand-mode .ke-membership-offer-card,
html.ke-rebrand-mode .ke-membership-monthly-card {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(220, 184, 100, .42);
  border-radius: 24px;
  color: #fffaf2;
  cursor: pointer;
  min-height: 250px;
  padding: 20px;
  position: relative;
  text-align: left;
}

html.ke-rebrand-mode .ke-membership-offer-card[aria-pressed='true'],
html.ke-rebrand-mode .ke-membership-monthly-card[aria-pressed='true'] {
  background: linear-gradient(145deg, rgba(109, 41, 66, .9), rgba(49, 19, 33, .96));
  border: 2px solid #efd28a;
  box-shadow: 0 0 0 5px rgba(229, 194, 111, .09), 0 20px 44px rgba(0, 0, 0, .34);
}

html.ke-rebrand-mode .ke-membership-offer-card.is-featured[aria-pressed='true'] {
  background: linear-gradient(145deg, rgba(21, 81, 88, .96), rgba(7, 44, 50, .98));
}

html.ke-rebrand-mode .ke-membership-offer-badge {
  color: #f0cf80;
  display: block;
  font: 900 8px 'DM Sans', sans-serif;
  letter-spacing: .11em;
  min-height: 18px;
}

html.ke-rebrand-mode .ke-membership-offer-card > strong,
html.ke-rebrand-mode .ke-membership-monthly-card > span {
  display: block;
  font: 600 clamp(23px, 4.8vw, 31px) 'Playfair Display', serif;
  margin: 4px 0 9px;
}

html.ke-rebrand-mode .ke-membership-price-change { align-items: baseline; display: flex; flex-wrap: wrap; gap: 5px 10px; }
html.ke-rebrand-mode .ke-membership-price-change del { animation: kePromoStrike 720ms .25s both; color: rgba(255, 250, 242, .46); font: 700 16px 'DM Sans', sans-serif; text-decoration-color: #f1cc77; text-decoration-thickness: 2px; }
html.ke-rebrand-mode .ke-membership-price-change b { animation: kePromoPrice 720ms .52s both; color: #f4d58c; font: 800 clamp(27px, 5.7vw, 38px) 'DM Sans', sans-serif; }
html.ke-rebrand-mode .ke-membership-price-change small { color: rgba(255, 250, 242, .56); font: 700 9px 'DM Sans', sans-serif; }

html.ke-rebrand-mode .ke-membership-value,
html.ke-rebrand-mode .ke-membership-savings { display: block; }
html.ke-rebrand-mode .ke-membership-value { color: #fff4c3; font: 600 13px 'DM Sans', sans-serif; margin-top: 9px; }
html.ke-rebrand-mode .ke-membership-value em { font-style: normal; font-weight: 900; }
html.ke-rebrand-mode .ke-membership-savings { color: #bfe3de; font: 800 9px/1.35 'DM Sans', sans-serif; margin-top: 6px; }
html.ke-rebrand-mode .ke-membership-card-description { color: rgba(255, 250, 242, .64); display: block; font: 600 10px/1.45 'DM Sans', sans-serif; margin: 11px 0 0; }

html.ke-rebrand-mode .ke-membership-staging-safe,
html.ke-rebrand-mode .ke-membership-monthly-reminder {
  color: rgba(255, 250, 242, .62) !important;
  font: 700 9px/1.5 'DM Sans', sans-serif !important;
  margin: 8px auto 12px;
  max-width: 650px;
}

html.ke-rebrand-mode .ke-membership-staging-safe strong { color: #bfe3de; }
html.ke-rebrand-mode .ke-membership-monthly-reminder strong { color: #f1ce7c; }
html.ke-rebrand-mode .ke-membership-promo-continue { display: block; margin: 0 auto; min-width: min(100%, 330px); }
html.ke-rebrand-mode .ke-membership-cancel-copy { color: rgba(255, 250, 242, .48); display: block; font: 700 8px 'DM Sans', sans-serif; }

html.ke-rebrand-mode .ke-membership-monthly-card { min-height: 180px; }
html.ke-rebrand-mode .ke-membership-monthly-card > strong { color: #f4d58c; display: block; font: 800 clamp(29px, 6vw, 42px) 'DM Sans', sans-serif; }
html.ke-rebrand-mode .ke-membership-monthly-card > small { color: rgba(255, 250, 242, .58); font: 700 9px 'DM Sans', sans-serif; }

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

@keyframes kePromoPrice {
  from { filter: brightness(1.7); opacity: 0; transform: scale(.86); }
  to { filter: brightness(1); opacity: 1; transform: scale(1); }
}

@media (max-width: 620px) {
  html.ke-rebrand-mode .ke-first-session-guide { padding-top: 0; }
  html.ke-rebrand-mode.ke-first-session-dashboard .ke-dashboard-main { padding-top: 8px; }
  html.ke-rebrand-mode .ke-membership-promo-grid,
  html.ke-rebrand-mode .ke-membership-monthly-grid { grid-template-columns: 1fr; }
  html.ke-rebrand-mode .ke-membership-offer-card { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html.ke-rebrand-mode .ke-first-session-attention::before,
  html.ke-rebrand-mode .ke-first-session-attention::after,
  html.ke-rebrand-mode .ke-first-session-attention i,
  html.ke-rebrand-mode .ke-membership-price-change del,
  html.ke-rebrand-mode .ke-membership-price-change b { animation: none !important; }
}

/* The first-session dashboard keeps the same regular point-top Flame core
   and removes the retired rectangular constellation backplate. */
html.ke-rebrand-mode.ke-first-session-dashboard .ke-dashboard-tool-grid {
  background: transparent !important;
}

html.ke-rebrand-mode.ke-first-session-dashboard #ke-dashboard-live-constellation[data-ke-shape="hex-core-circle-actions"] {
  --kd-core-size: 49.3%;
  --kd-core-height: 36.4%;
}

html.ke-rebrand-mode.ke-first-session-dashboard #ke-dashboard-live-flame-core,
html.ke-rebrand-mode.ke-first-session-dashboard #ke-dashboard-live-flame-core::before,
html.ke-rebrand-mode.ke-first-session-dashboard #ke-dashboard-live-flame-core::after {
  clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%) !important;
}

html.ke-rebrand-mode.ke-first-session-dashboard #ke-dashboard-live-flame-core {
  aspect-ratio: .8660254 !important;
  height: auto !important;
}

html.ke-rebrand-mode .ke-membership-promo .ke-opening-offer-flame,
html.ke-rebrand-mode .ke-membership-monthly .ke-opening-offer-flame {
  height: 148px;
  width: 112px;
}

html.ke-rebrand-mode .ke-membership-offer-card,
html.ke-rebrand-mode .ke-membership-monthly-card {
  align-content: center;
  aspect-ratio: 1;
  background: radial-gradient(circle at 35% 22%,rgba(255,255,255,.1),transparent 25%),linear-gradient(145deg,#713047,#35111f) !important;
  border: 3px solid #e7c675;
  border-radius: 50%;
  box-sizing: border-box;
  display: grid;
  justify-self: center;
  max-width: 370px;
  min-height: 0;
  padding: clamp(48px,8vw,72px);
  text-align: center;
  width: 100%;
}

html.ke-rebrand-mode .ke-membership-offer-card {
  justify-items: center;
}

html.ke-rebrand-mode .ke-membership-offer-card > :is(span,strong) {
  width: 100%;
}

html.ke-rebrand-mode .ke-membership-offer-card .ke-membership-price-change {
  justify-content: center;
}

html.ke-rebrand-mode .ke-membership-offer-card .ke-membership-card-description {
  margin-inline: auto;
  max-width: 27ch;
}

html.ke-rebrand-mode .ke-membership-offer-card.is-featured,
html.ke-rebrand-mode .ke-membership-monthly-card:last-child {
  background: radial-gradient(circle at 35% 22%,rgba(255,255,255,.1),transparent 25%),linear-gradient(145deg,#155866,#082b33) !important;
}

html.ke-rebrand-mode .ke-membership-savings,
html.ke-rebrand-mode .ke-membership-monthly-reminder {
  color: #fff0b6 !important;
  font-size: clamp(14px,3.5vw,20px) !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  text-shadow: 0 0 16px rgba(215,181,109,.34);
}

html.ke-rebrand-mode #ke-opening-flow .ke-membership-continue-hex {
  align-items: center;
  aspect-ratio: .8660254;
  background: conic-gradient(from 30deg,#ffe9a0 0 16.666%,#c28c35 16.666% 33.333%,#79501a 33.333% 50%,#9f7127 50% 66.666%,#f0ce78 66.666% 83.333%,#fff0ad 83.333% 100%);
  border: 0;
  clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
  color: #fffaf2;
  cursor: pointer;
  display: flex;
  filter: drop-shadow(0 5px 0 rgba(99,64,18,.78)) drop-shadow(0 16px 28px rgba(0,0,0,.42));
  font: 800 clamp(11px,2.8vw,14px)/1.25 'DM Sans',sans-serif;
  isolation: isolate;
  justify-content: center;
  min-height: 0;
  min-width: 0;
  padding: 30px 28px;
  position: relative;
  text-align: center;
  width: min(210px,58vw);
}

html.ke-rebrand-mode #ke-opening-flow .ke-membership-continue-hex::before {
  background: radial-gradient(circle at 36% 23%,rgba(255,255,255,.1),transparent 27%),linear-gradient(155deg,#29424d 0%,#10242d 58%,#08161b 100%);
  clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
  content: '';
  inset: 4px;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

html.ke-rebrand-mode #ke-opening-flow .ke-membership-continue-hex > span {
  max-width: 15ch;
  position: relative;
  text-wrap: balance;
  z-index: 1;
}

html.ke-rebrand-mode #ke-opening-flow .ke-membership-continue-hex:is(:hover,:focus-visible) {
  filter: drop-shadow(0 5px 0 rgba(99,64,18,.78)) drop-shadow(0 16px 28px rgba(0,0,0,.42)) brightness(1.12);
  outline: 0;
}

@media (max-width: 620px) {
  html.ke-rebrand-mode .ke-membership-offer-card,
  html.ke-rebrand-mode .ke-membership-monthly-card {
    padding: 54px 46px;
    width: min(100%,350px);
  }
}
