/* The native tab controls remain intact; only their old media is replaced. */
.keymatic-context-root {
  background: #f5e3d4 !important;
  color: #221a12 !important;
  isolation: isolate;
}
.keymatic-context-root::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 80% 25%, #e86e2c1a, transparent 65%);
}
.keymatic-context-root[data-context^="instagram"] {
  background: linear-gradient(125deg, #fbe6d3, #f4e8ef 55%, #eee4f7) !important;
}
.keymatic-context-root[data-context="whatsapp-service"],
.keymatic-context-root[data-context="team-handoff"] {
  background: linear-gradient(125deg, #e6f0e9, #d9eee5 70%, #cae7d9) !important;
}
.keymatic-context-root > [class*="bg-grid-pattern"] {
  opacity: 0.2;
}
.keymatic-context-media {
  visibility: hidden !important;
  pointer-events: none !important;
}
.keymatic-context-caption {
  visibility: hidden !important;
}
.keymatic-context-host {
  position: relative !important;
}
.keymatic-context-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.4rem;
  gap: 1.2rem;
  overflow: hidden;
  color: #42382e;
}
.keymatic-context-player {
  position: relative;
  width: 100%;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
/* The scene is mounted hidden and only revealed once its motion track, fonts
   and images are ready, so nothing flashes on entry (no load race). */
.keymatic-context-player[hidden] {
  display: none !important;
}
.keymatic-context-player .cd-scene-content {
  transform-origin: center;
}
.keymatic-context-stage .keymatic-context-summary {
  width: min(100%, 48rem);
  margin: 0;
  text-align: center;
  font:
    500 clamp(14px, 1.2vw, 18px)/1.45 ContextSora,
    system-ui,
    sans-serif;
  color: #42382e;
}
.keymatic-context-stage .keymatic-context-note {
  margin: 0;
  flex: none;
  text-align: center;
  font:
    400 10px/1.5 ContextSora,
    system-ui,
    sans-serif;
  color: #6f6257;
}
@media (max-width: 1023px) {
  .keymatic-context-stage {
    padding: 1.8rem 1rem 1.4rem;
    gap: 0.8rem;
  }
  .keymatic-context-host {
    min-height: 65rem;
  }
}
@media (max-width: 480px) {
  .keymatic-context-host {
    min-height: 58rem;
  }
  .keymatic-context-stage .keymatic-context-summary {
    font-size: 13px;
  }
  .keymatic-context-stage .keymatic-context-note {
    font-size: 9px;
  }
}

@font-face {
  font-family: ContextSora;
  src: url("/demos/assets/context-sora.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
.cd-embedded,
.cd-embedded * {
  box-sizing: border-box;
}
/* The scene runs inline in the main document (no iframe), so its full-page
   reset must stay scoped to the player element. A document-wide html rule
   would clip the page scroll and stretch every section. */
.keymatic-context-player.cd-embedded {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
}
.cd-embedded {
  color: #221a12;
  font:
    14px/1.35 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.cd-embedded [hidden] {
  display: none !important;
}
.cd-embedded p,
.cd-embedded h1,
.cd-embedded h2 {
  margin: 0;
}
.cd-scene-fit {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cd-scene-content {
  position: relative;
  flex: none;
  width: 356px;
  height: 686px;
  transform-origin: center;
}
.cd-icon {
  width: 23px;
  height: 23px;
  flex: none;
}
.cd-phone {
  position: relative;
  width: 324px;
  height: 622px;
  margin: 0 auto;
  border: 7px solid #161616;
  border-radius: 43px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 22px 50px -22px #38241080,
    0 1px 0 1px #ffffff70 inset;
}
.cd-statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 34px;
  padding: 11px 19px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  line-height: 12px;
  z-index: 5;
  background: inherit;
}
.cd-statusbar > span {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 9px;
}
.cd-island {
  width: 78px;
  height: 20px;
  background: #080808;
  position: absolute;
  top: 6px;
  left: calc(50% - 39px);
  border-radius: 20px;
}
.cd-battery {
  display: inline-block;
  width: 18px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 2px;
  position: relative;
}
.cd-battery::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: currentColor;
  border-radius: 1px;
}
.cd-battery::after {
  content: "";
  position: absolute;
  right: -3px;
  height: 4px;
  top: 1px;
  width: 1px;
  background: currentColor;
}
.cd-home-indicator {
  position: absolute;
  z-index: 10;
  bottom: 7px;
  height: 4px;
  width: 105px;
  left: calc(50% - 52.5px);
  background: currentColor;
  border-radius: 5px;
  opacity: 0.8;
}
.cd-avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.cd-chat-header {
  height: 60px;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 0 11px;
  border-bottom: 1px solid #ffffff15;
}
.cd-chat-header > div:not(.cd-avatar) {
  flex: 1;
  min-width: 0;
}
.cd-chat-header b {
  font-size: 12px;
  display: block;
  white-space: nowrap;
}
.cd-chat-header small {
  font-size: 10px;
  color: #9c9c9c;
  display: block;
  padding-top: 2px;
}
.cd-chat-header > .cd-icon:first-child {
  width: 15px;
}
.cd-chat-header > .cd-icon {
  width: 20px;
}
.cd-composer {
  height: 51px;
  position: absolute;
  bottom: 16px;
  left: 8px;
  right: 8px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.cd-compose-field {
  flex: 1;
  border: 1px solid #ffffff30;
  border-radius: 22px;
  min-width: 0;
  height: 35px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  font-size: 12px;
  color: #a8a8a8;
}
.cd-composer > .cd-icon {
  width: 20px;
  height: 20px;
}
.cd-result {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  min-height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  font:
    600 12px/1.35 ContextSora,
    system-ui,
    sans-serif;
  text-align: center;
  color: #514033;
}
.cd-result .cd-icon {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: #e86e2c;
  color: white;
}
.cd-message {
  width: fit-content;
  max-width: 89%;
  position: relative;
  font-size: 12px;
  line-height: 1.4;
  padding: 10px 12px;
  border-radius: 17px;
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.cd-in {
  margin-right: auto;
}
.cd-out {
  margin-left: auto;
}
.cd-seen {
  font-size: 9px;
  color: #989898;
  text-align: right;
  padding: 6px 2px 0;
}
.cd-typing {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  height: 27px;
  position: absolute;
}
.cd-typing .cd-avatar {
  width: 24px;
  height: 24px;
}
.cd-dots {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 9px 12px;
  border-radius: 20px;
  background: #303030;
}
.cd-dots i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a3a3a3;
  animation: cd-typing 0.9s infinite alternate;
}
.cd-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.cd-dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes cd-typing {
  from {
    opacity: 0.4;
    transform: translateY(0);
  }
  to {
    opacity: 1;
    transform: translateY(-2px);
  }
}
.cd-embedded.is-paused *,
.cd-embedded.is-paused *::before,
.cd-embedded.is-paused *::after {
  animation-play-state: paused !important;
}
/* Native Instagram dark surfaces, not the marketing typography. */
.cd-phone.instagram {
  background: #080808;
  color: #fafafa;
}
.cd-phone.instagram .cd-statusbar {
  background: #080808;
}
.cd-ig-post {
  position: absolute;
  inset: 34px 0 0;
  background: #080808;
}
.cd-ig-header {
  height: 45px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border-bottom: 1px solid #242424;
}
.cd-ig-header small {
  display: block;
  font-size: 8px;
  text-transform: uppercase;
  color: #969696;
}
.cd-ig-header b {
  display: block;
  font-size: 12px;
}
.cd-post-person {
  height: 49px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}
.cd-post-person > div:not(.cd-avatar) {
  flex: 1;
}
.cd-post-person b {
  font-size: 10px;
}
.cd-post-person small {
  display: block;
  font-size: 9px;
  color: #aaa;
}
.cd-post-photo {
  height: 273px;
  position: relative;
  overflow: hidden;
}
.cd-post-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cd-post-photo > span {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #fffefa;
  color: #5e3720;
  padding: 7px 10px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}
.cd-post-actions {
  display: flex;
  gap: 13px;
  padding: 10px 12px;
}
.cd-post-actions > span {
  flex: 1;
}
.cd-post-actions .cd-icon {
  width: 20px;
  height: 20px;
}
.cd-post-copy {
  font-size: 10px;
  padding: 0 13px;
  line-height: 1.45;
}
.cd-post-copy b {
  margin-right: 3px;
}
.cd-comment-sheet {
  position: absolute;
  inset: 270px 0 0;
  background: #252525;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 30px #0006;
  padding: 8px 14px;
}
.cd-sheet-handle {
  width: 32px;
  height: 3px;
  border-radius: 4px;
  background: #666;
  margin: 0 auto 12px;
}
.cd-comment-sheet > b {
  display: block;
  text-align: center;
  font-size: 12px;
  margin-bottom: 14px;
}
.cd-comment-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.cd-comment-row > div {
  flex: 1;
}
.cd-comment-row b {
  font-size: 10px;
  display: block;
}
.cd-comment-row span {
  display: block;
  font-size: 12px;
  margin-top: 4px;
  min-height: 16px;
}
.cd-comment-row .cd-icon {
  width: 14px;
}
.cd-comment-compose {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  bottom: 25px;
  left: 12px;
  right: 12px;
  font-size: 10px;
  color: #999;
}
/* The captured page CSS gives every <header> z-index 1, which lifted the post
   header above the sliding Direct panel. The panel is the upper layer; status
   bar (5), home indicator (10) and touch (30) stay above it. */
.cd-ig-direct {
  position: absolute;
  inset: 34px 0 0;
  z-index: 2;
  background: #080808;
}
.cd-ig-conversation {
  position: absolute;
  top: 60px;
  bottom: 78px;
  left: 13px;
  right: 13px;
}
.cd-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 0 10px;
}
.cd-profile .cd-avatar {
  width: 48px;
  height: 48px;
}
.cd-profile b {
  font-size: 13px;
}
.cd-profile small {
  color: #969696;
  font-size: 9px;
}
.cd-context-label {
  text-align: center;
  color: #999;
  font-size: 8px;
  margin: 3px 0 9px;
}
.instagram .cd-out {
  background: #6434d0;
  max-width: 75%;
  border-bottom-right-radius: 5px;
  padding: 7px 13px;
}
.instagram .cd-in {
  background: #292929;
  border-bottom-left-radius: 5px;
  font-size: 11px;
}
.cd-ig-link {
  width: 235px;
  margin-top: 6px;
  background: #292929;
  border-radius: 12px;
  overflow: hidden;
}
.cd-ig-link > img {
  width: 235px;
  height: 91px;
  display: block;
  object-fit: cover;
  object-position: center 42%;
}
.cd-ig-link > div {
  padding: 8px 10px;
}
.cd-ig-link b {
  display: block;
  font-size: 11px;
}
.cd-ig-link small {
  display: block;
  font-size: 9px;
  color: #aaa;
  margin-top: 3px;
}
.cd-ig-link > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid #ffffff20;
  padding: 8px;
  font-size: 11px;
  color: #c5a7ff;
  font-weight: 600;
}
.cd-ig-link .cd-icon {
  width: 15px;
  height: 15px;
}
/* Customer-side WhatsApp: customer on the right, business on the left. */
.cd-phone.whatsapp {
  background: #f7f7f7;
  color: #122e25;
}
.whatsapp .cd-chat-header {
  position: absolute;
  top: 34px;
  left: 0;
  right: 0;
  background: #f6f6f6;
  color: #0a624e;
  border-bottom: 1px solid #ddd;
}
.whatsapp .cd-chat-header b {
  color: #18221e;
}
.whatsapp .cd-chat-header small {
  color: #6b7871;
  font-size: 9px;
}
.cd-wa-wallpaper {
  position: absolute;
  inset: 94px 0 70px;
  padding: 10px 12px;
  background-color: #ebe6dc;
  background-image: radial-gradient(#bcc2b633 0.8px, transparent 0.8px);
  background-size: 13px 13px;
}
.cd-chat-day {
  text-align: center;
  width: fit-content;
  margin: 0 auto 17px;
  font-size: 9px;
  padding: 4px 10px;
  color: #53615b;
  border-radius: 6px;
  background: #fff9;
}
.whatsapp .cd-message {
  padding: 9px 9px 16px;
  max-width: 88%;
  font-size: 11.5px;
  border-radius: 7px;
  box-shadow: 0 1px 1px #0001;
}
.whatsapp .cd-out {
  background: #d9fdd3;
  border-top-right-radius: 1px;
}
.whatsapp .cd-in {
  background: #fff;
  border-top-left-radius: 1px;
}
.whatsapp .cd-message small {
  font-size: 7px;
  color: #718078;
  display: block;
  position: absolute;
  right: 7px;
  bottom: 3px;
}
.cd-receipts {
  color: #37a6cd;
  font-size: 8px;
  margin-left: 4px;
  letter-spacing: -3px;
  padding-right: 2px;
}
.whatsapp .cd-composer {
  color: #09826b;
}
.whatsapp .cd-compose-field {
  border: 1px solid #ddd;
  background: white;
  color: #a0a4a1;
}
.whatsapp .cd-dots {
  background: #fff;
  box-shadow: 0 1px 2px #0001;
}
.whatsapp .cd-dots i {
  background: #73817b;
}
.cd-handoff-event {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
  width: fit-content;
  margin: 15px auto 10px;
  background: #fef9e9;
  color: #716044;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 9px;
  box-shadow: 0 1px 1px #0001;
}
.cd-handoff-event .cd-icon {
  width: 13px;
  height: 13px;
}
.cd-human::before {
  content: "Marina";
  display: block;
  color: #bc5a27;
  font-weight: 600;
  font-size: 10px;
  margin-bottom: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .cd-dots i {
    animation: none;
  }
}
.keymatic-context-root > .keymatic-context-column {
  background: transparent !important;
}
/* Motion follows the measured upper scenes at the same phone-relative scale. */
.cd-touch {
  position: absolute;
  left: 0;
  top: 0;
  width: 35px;
  height: 35px;
  margin: -17.5px 0 0 -17.5px;
  border: 1.1px solid #fff;
  border-radius: 50%;
  background: #ffffff4d;
  box-shadow: 0 1px 7px #172e2533;
  opacity: 0;
  z-index: 30;
  pointer-events: none;
  transform-origin: center;
}
.instagram .cd-touch {
  width: 51px;
  height: 51px;
  margin: -25.5px 0 0 -25.5px;
  border: 0.81px solid #eee;
  background: #ffffff59;
  box-shadow: none;
}
.finance .cd-touch {
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
}
.cd-touch i {
  position: absolute;
  inset: -1px;
  border: 1.1px solid white;
  border-radius: 50%;
  opacity: 0;
}
.cd-word {
  display: inline;
}
.cd-message {
  transform-origin: bottom left;
}
.cd-message.cd-out {
  transform-origin: bottom right;
}
.cd-ig-link {
  transform-origin: bottom left;
}
.cd-chat-stack {
  position: relative;
  min-height: 0;
  transform-origin: bottom;
}
.cd-wa-wallpaper,
.cd-ig-conversation {
  overflow: hidden;
}
.cd-post-person > [data-touch] {
  flex: none;
  display: flex;
}
.cd-post-actions > [data-touch] {
  flex: none;
  display: flex;
}
.cd-post-actions > span:not([data-touch]) {
  flex: 1;
}
.cd-comment-sheet {
  transform-origin: bottom;
}
.cd-comment-row {
  min-height: 44px;
}
.cd-comment-input {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: #fafafa;
}
.cd-comment-input:empty::before,
.cd-comment-input.is-sent::before {
  content: attr(data-placeholder);
  color: #999;
}
.cd-comment-input.is-sent {
  font-size: 0;
}
.cd-comment-input.is-sent::before {
  font-size: 12px;
}
.cd-comment-send {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #b18cff;
}
.cd-comment-send .cd-icon {
  width: 21px;
  height: 21px;
}
.cd-compose-send,
.cd-compose-mic {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.cd-compose-send {
  display: none;
}
.cd-composer.is-composing .cd-compose-send {
  display: flex;
}
.cd-composer.is-composing .cd-compose-mic {
  display: none;
}
.cd-composer .cd-icon {
  width: 20px;
  height: 20px;
}
.cd-composer.is-composing .cd-compose-field {
  overflow: hidden;
}
.cd-composer.is-composing [data-compose] {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #3c4540;
}
.instagram .cd-composer.is-composing [data-compose] {
  color: #fafafa;
}
.cd-wa-actions {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin: 9px -9px -2px;
  padding-top: 7px;
  border-top: 1px solid #142c2318;
  color: #07896b;
  font-size: 12px;
  font-weight: 600;
}
.cd-wa-actions > span {
  display: block;
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 3px 4px;
}
.whatsapp .cd-message {
  font-size: 14px;
  line-height: 1.36;
}
.whatsapp .cd-message small {
  font-size: 8px;
}
.cd-receipts[data-receipt="sent"],
.cd-receipts[data-receipt="delivered"] {
  color: #718078;
}
.cd-receipts[data-receipt="read"] {
  color: #37a6cd;
}
.instagram .cd-message,
.instagram .cd-in {
  font-size: 14px;
  line-height: 1.36;
}
.cd-ig-link {
  width: 244px;
}
.cd-ig-link > img {
  width: 244px;
  height: 100px;
}
.cd-ig-link b {
  font-size: 13px;
}
.cd-ig-link small {
  font-size: 10px;
}
.cd-ig-link > span {
  font-size: 12px;
}
@media (prefers-reduced-motion: reduce) {
  .cd-touch {
    display: none;
  }
}
.cd-phone-surface {
  position: relative;
  width: 100%;
  height: 100%;
}
.finance .cd-touch {
  border-color: #e86e2ccc;
  background: #e86e2c30;
  box-shadow: 0 1px 8px #221a1220;
}
.finance .cd-touch i {
  border-color: #e86e2caa;
}
@font-face {
  font-family: ContextRooftop;
  src: url("/assets/mccdn.me/martcdn/fonts/Rooftop-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
.cd-stage-footer {
  position: absolute;
  top: 630px;
  bottom: auto;
  left: 16px;
  right: 16px;
  min-height: 0;
  height: 56px;
  display: block;
  margin: 0;
  padding: 0 18.9px;
  background: #079b76;
  color: #fff;
  text-align: left;
  font:
    700 11.1px/15.1px ContextRooftop,
    sans-serif;
}
.cd-stage-footer > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10.8px;
  height: 51.8px;
}
.cd-stage-caption {
  min-width: 0;
}
.cd-stage-page {
  flex: none;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1;
}
.cd-stage-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4.3px;
  background: #ffffff40;
  overflow: hidden;
}
.cd-stage-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}
[data-context^="instagram-"] > .cd-stage-footer {
  background: #f70af4;
  font:
    700 11.88px/15.12px Arial,
    sans-serif;
}
[data-context^="instagram-"] > .cd-stage-footer .cd-stage-page {
  font:
    700 16.2px/1 Arial,
    sans-serif;
}
.cd-composer.is-composing .cd-compose-field {
  overflow: hidden;
}
.cd-composer.is-composing [data-compose] {
  flex: 0 0 auto;
  width: max-content;
  overflow: visible;
  text-overflow: clip;
}
/* Crossfade only the approved channel colors; content never fades with them. */
.keymatic-context-root[data-context] {
  background:
    radial-gradient(ellipse at 80% 25%, #e86e2c1a, transparent 65%), #f5e3d4 !important;
}
.keymatic-context-root::before,
.keymatic-context-root::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 240ms cubic-bezier(0.23, 1, 0.32, 1);
}
.keymatic-context-root::before {
  background: linear-gradient(125deg, #fbe6d3, #f4e8ef 55%, #eee4f7);
}
.keymatic-context-root::after {
  background: linear-gradient(125deg, #e6f0e9, #d9eee5 70%, #cae7d9);
}
.keymatic-context-root[data-context^="instagram-"]::before {
  opacity: 1;
}
.keymatic-context-root[data-context="whatsapp-service"]::after,
.keymatic-context-root[data-context="team-handoff"]::after {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .keymatic-context-root::before,
  .keymatic-context-root::after {
    transition: none;
  }
}

/* The menu is a full-width white strip, separate from the colored demo panel.
   Only the choice rail scrolls horizontally; the page and phone never do. */
@media (max-width: 767px) {
  .keymatic-context-root {
    padding-inline: 16px !important;
    overflow: clip;
    border-radius: 0;
  }
  .keymatic-context-menu { margin-inline: -16px; background: #fff; }
  .keymatic-context-menu > div {
    border-radius: 0 !important;
    padding: 0 0 20px !important;
  }
  .keymatic-context-menu h2 { padding: 0 16px; }
  .keymatic-context-tabs {
    width: 100%;
    margin: 24px 0 0 !important;
    padding: 0 16px 12px !important;
    gap: 6px;
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 16px;
    scrollbar-width: thin;
    scrollbar-color: #e86e2c #eee;
    box-sizing: border-box;
  }
  .keymatic-context-tabs > div {
    flex: 0 0 156px !important;
    min-height: 140px;
    margin: 0 !important;
    scroll-snap-align: start;
  }
  .keymatic-context-column { min-width: 0; width: 100%; }
  .keymatic-context-stage { padding: 24px 0 16px; }
  .keymatic-context-stage .keymatic-context-summary {
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
    padding-inline: 12px;
  }
}

/* Partner commissions: one portrait card on the same 324×622 footprint as the
   phones. The canvas is authored at 600 px and scaled down, so type sizes below
   are canvas units (×0.5367 on screen). */
.cd-phone.finance .cd-phone-surface {
  background: #f8f5f1;
  font-family: ContextSora, system-ui, sans-serif;
  color: #221a12;
}
.cd-fin-canvas {
  position: absolute;
  top: 28px;
  left: 0;
  width: 600px;
  height: 1126px;
  transform: scale(calc(310 / 600));
  transform-origin: 0 0;
}
.cd-fin-canvas > * {
  position: absolute;
}
.cd-fin-brand {
  left: 0;
  right: 0;
  top: 0;
  height: 88px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 24px;
  font-weight: 700;
  background: #fff;
  border-bottom: 2px solid #eadfd6;
}
.cd-fin-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #fff0e5;
  color: #d76827;
}
.cd-fin-mark .cd-icon {
  width: 28px;
  height: 28px;
}
.cd-fin-brand small {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 8px;
  border-radius: 30px;
  background: #f4efe9;
  color: #6f6257;
  font-size: 20px;
  font-weight: 600;
}
.cd-fin-brand small i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e86e2c, #f3a36d);
}
.cd-fin-label {
  top: 112px;
  left: 36px;
  font-size: 26px;
  color: #85818c;
}
.cd-fin-amount {
  left: 36px;
  top: 150px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  z-index: 2;
}
.cd-fin-amount > span {
  font-size: 34px;
}
.cd-fin-amount > strong {
  font-size: 68px;
  letter-spacing: -3px;
  line-height: 1.14;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cd-fin-gain {
  left: 37px;
  top: 256px;
  border: 1px solid #d8d4e2;
  border-radius: 26px;
  padding: 8px 16px;
  font-size: 26px;
  background: #faf9fc;
  z-index: 2;
}
.cd-fin-gain > span {
  color: #d76827;
}
.cd-fin-gain b {
  font-weight: 700;
}
.cd-fin-share {
  left: 36px;
  top: 348px;
  width: 528px;
  height: 196px;
}
.cd-fin-link,
.cd-fin-code {
  position: absolute;
  left: 0;
  width: 528px;
  border-radius: 22px;
}
.cd-fin-share small {
  font-size: 20px;
  color: #8a7d72;
}
.cd-fin-link {
  top: 0;
  height: 100px;
  padding: 14px 22px;
  border: 2px solid #eadfd6;
  background: #fffaf5;
}
.cd-fin-link > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cd-fin-link code {
  display: block;
  margin-top: 8px;
  font: 600 18px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -0.3px;
  white-space: nowrap;
  color: #221a12;
}
.cd-fin-copy {
  min-width: 128px;
  text-align: center;
  padding: 5px 16px;
  border: 2px solid #e86e2c;
  border-radius: 12px;
  background: #fff;
  color: #c9501b;
  font-size: 20px;
  font-weight: 700;
}
.cd-fin-copy.is-copied {
  background: #e86e2c;
  color: #fff;
}
.cd-fin-code {
  top: 114px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border: 3px dashed #e86e2c88;
  background: #fff3ea;
}
.cd-fin-code b {
  font-size: 36px;
  letter-spacing: 2px;
  color: #c9501b;
}
.cd-fin-chart {
  top: 596px;
  left: 36px;
  width: 528px;
  height: 450px;
}
.cd-fin-plot {
  width: 528px;
  height: 410px;
  display: block;
  overflow: visible;
}
.cd-fin-grid {
  fill: none;
  stroke: #f1ebe5;
  stroke-width: 1;
}
.cd-fin-area {
  fill: url(#cdFinFill);
}
.cd-fin-line,
.cd-fin-arrow {
  fill: none;
  stroke: #e86e2c;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cd-fin-reveal {
  clip-path: inset(0 99% 0 0);
}
.cd-fin-glow {
  fill: #e86e2c33;
  filter: url(#cdFinGlow);
}
.cd-fin-ring {
  fill: #fff;
  stroke: #e86e2c;
  stroke-width: 5;
}
.cd-fin-dot {
  fill: #fff;
}
.cd-fin-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  padding: 8px 16px;
  border-radius: 14px;
  background: #e86e2c;
  color: #fff;
  box-shadow: 0 7px 22px #e86e2c4d;
  font-size: 26px;
  white-space: nowrap;
}
.cd-fin-tooltip::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: #e86e2c;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 3px;
  z-index: -1;
}
.cd-fin-days {
  display: flex;
  justify-content: space-between;
  margin: 11px 4px 0;
  color: #8f899b;
  font-size: 21px;
}
.cd-fin-bottom {
  left: 40px;
  right: 40px;
  bottom: 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #898393;
  font-size: 22px;
  white-space: nowrap;
}
.cd-fin-bottom strong {
  color: #4c4263;
}
.cd-fin-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
}
.cd-fin-live i {
  width: 9px;
  height: 9px;
  background: #37a979;
  border-radius: 50%;
}
.cd-fin-sale {
  left: 40px;
  top: 556px;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #f0d9c8;
  border-radius: 20px;
  box-shadow: 0 8px 24px #e86e2c1f;
  display: flex;
  gap: 16px;
  align-items: center;
  z-index: 3;
  min-width: 300px;
}
.cd-fin-sale > span {
  display: grid;
  place-items: center;
  background: #fff0e5;
  color: #d76827;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
}
.cd-fin-sale b {
  display: block;
  font-size: 21px;
}
.cd-fin-sale small {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: #c9501b;
  margin-top: 4px;
}
.cd-fin-chip {
  left: 36px;
  z-index: 4;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 12px;
  padding: 8px 20px 8px 12px;
  border: 1px solid #e9e3ee;
  border-radius: 20px;
  background: #fffefbf2;
  box-shadow: 0 8px 24px #392d5210;
  opacity: 0;
  pointer-events: none;
}
.cd-fin-chip > span {
  grid-row: 1 / 3;
  align-self: center;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #edf7ef;
  color: #268458;
  font-size: 22px;
}
.cd-fin-chip b {
  font-size: 20px;
  font-weight: 600;
  color: #4a3f55;
}
.cd-fin-chip small {
  font-size: 20px;
  font-weight: 700;
  color: #327851;
}
.cd-fin-chip-1 {
  top: 676px;
}
.cd-fin-chip-2 {
  top: 756px;
}
.cd-fin-chip-3 {
  top: 836px;
}
[data-context="partner-dashboard"] > .cd-stage-footer {
  background: #e86e2c;
}

/* Six native cards share the desktop menu column (64–68rem tall) with the
   title and the CTA. The captured padding (lg:py-1.2rem, huge:py-1.6rem) made
   the list scroll and hid the first card at 1800px; 1rem keeps every card in
   view at every desktop width. Selected by structure so it holds from the
   server render, before the adapter adds .keymatic-context-tabs. The column
   layout starts at the captured lg breakpoint (1280px); below it the cards
   are a row and keep their padding. */
@media (min-width: 1280px) {
  .keymatic-templates div:has(> h3):has(> div > button) {
    padding-block: 1rem;
  }
}
/* A short "Novo" label after a tab title. The title is React text, so the
   adapter writes the label to data-badge (context-demos.js labelBadges).
   Inline, not inline-block: with no space before it there is no break
   opportunity, so the label wraps together with the last word. */
.keymatic-context-tabs h3[data-badge]::after {
  content: attr(data-badge);
  display: inline;
  white-space: nowrap;
  margin-left: 0.6rem;
  padding: 0.2rem 0.7rem;
  border-radius: 99rem;
  background: #e86e2c1f;
  color: #a4471b;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.6rem;
  letter-spacing: 0;
  vertical-align: 0.1rem;
}

/* instagram-live (context-layout.mjs instagramLive, context-live.js).
   The broadcast fills the 310×608 screen; the status bar floats over it and
   every overlay (header, pinned comment, stream, field) sits on a shade so
   white text stays readable on any frame of the video. */
.cd-phone.instagram .cd-statusbar-overlay {
  background: transparent;
  color: #fff;
  text-shadow: 0 1px 2px #0007;
}
/* Own stacking context: the overlays' z-index stays inside the live, so the
   Direct panel (a later sibling) always covers all of it. */
.cd-live {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #1a1210;
  color: #fff;
}
.cd-live-media,
.cd-live-media > img,
.cd-live-media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cd-live-media > img,
.cd-live-media > video {
  display: block;
  object-fit: cover;
  object-position: center 30%;
}
/* The poster <img> shows until the first decoded frame. */
.cd-live-video {
  opacity: 0;
  transition: opacity 240ms cubic-bezier(0.23, 1, 0.32, 1);
}
.cd-live-video.is-playing {
  opacity: 1;
}
.cd-live::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(#000000a6, #0000 24%),
    linear-gradient(#0000 46%, #000000c2 92%);
}
.cd-live-top,
.cd-live-chat,
.cd-live-compose {
  position: absolute;
  z-index: 2;
}
.cd-live-top {
  top: 40px;
  left: 11px;
  right: 10px;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cd-live-host {
  display: flex;
  flex: none;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(45deg, #feda75, #fa7e1e 30%, #d62976 60%, #962fbf 85%);
}
.cd-live-host .cd-avatar {
  width: 28px;
  height: 28px;
  border: 2px solid #120c0a;
}
.cd-live-top > b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  text-shadow: 0 1px 2px #0009;
}
.cd-live-badge,
.cd-live-viewers {
  flex: none;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 19px;
  padding: 0 6px;
  border-radius: 5px;
  font: 700 9.5px/1 Arial, sans-serif;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
/* Instagram's live gradient, at full saturation. */
.cd-live-badge {
  background: linear-gradient(90deg, #d300c5, #ff0069 52%, #ff7a00);
}
.cd-live-viewers {
  background: #0000008c;
}
.cd-live-viewers .cd-icon {
  width: 12px;
  height: 12px;
}
.cd-live-top > .cd-icon:last-child {
  width: 21px;
  height: 21px;
  margin-left: 2px;
  filter: drop-shadow(0 1px 2px #0008);
}
.cd-live-chat {
  left: 10px;
  right: 44px;
  bottom: 68px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cd-live-pinned {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px 9px 8px;
  border-radius: 13px;
  background: #140c0a8c;
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}
.cd-live-pinned .cd-avatar,
.cd-live-comment .cd-avatar {
  width: 24px;
  height: 24px;
}
.cd-live-pinned b,
.cd-live-comment b {
  display: block;
  font-size: 10px;
  line-height: 13px;
}
.cd-live-pinned small {
  font-weight: 400;
  color: #ffffffd9;
}
.cd-live-pinned span,
.cd-live-comment span {
  display: block;
  font-size: 11.5px;
  line-height: 15px;
}
/* Three rows tall; a fourth comment pushes the oldest through the top fade. */
.cd-live-feed {
  position: relative;
  height: 124px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#0000, #000 22px);
  mask-image: linear-gradient(#0000, #000 22px);
}
.cd-live-stream {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cd-live-comment {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  margin-top: 6px;
  padding: 3px 10px 3px 3px;
  border-radius: 17px;
  text-shadow: 0 1px 2px #0009;
}
.cd-live-comment.cd-live-own {
  background: #ffffff2e;
  text-shadow: none;
}
.cd-live-own span {
  font-weight: 700;
}
.cd-live-compose {
  left: 10px;
  right: 12px;
  bottom: 22px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cd-live-field {
  flex: 1;
  min-width: 0;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px 0 4px;
  border: 1px solid #ffffff8c;
  border-radius: 20px;
  background: #00000033;
}
.cd-live-field.is-focused {
  border-color: #fff;
  background: #00000059;
}
.cd-live-field .cd-avatar {
  width: 28px;
  height: 28px;
}
.cd-live-field .cd-comment-input {
  color: #fff;
}
.cd-live-field .cd-comment-input:empty::before,
.cd-live-field .cd-comment-input.is-sent::before {
  color: #ffffffd1;
}
.cd-live-post {
  display: flex;
  flex: none;
  opacity: 0.45;
}
.cd-live-field.has-text .cd-live-post {
  opacity: 1;
}
.cd-live-post .cd-icon {
  width: 19px;
  height: 19px;
}
.cd-live-compose > .cd-icon {
  width: 25px;
  height: 25px;
  filter: drop-shadow(0 1px 2px #0008);
}
/* The Direct panel slides over the live, status bar region included. */
.cd-live-phone .cd-ig-direct::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -34px;
  height: 34px;
  background: #080808;
}
.cd-live-phone .cd-ig-link > img {
  object-position: center 38%;
}
@media (prefers-reduced-motion: reduce) {
  .cd-live-video {
    display: none;
  }
}
