/* Actual recordings are 1600×1000 desktop and 640×1380 mobile.
   The previous 16:9/cover treatment cropped their navigation and bottom rows. */
html:root[data-color-theme="second"] body.home-page .cl4-platform .platform-media,
html:root[data-color-theme="second"] body.subpage.campaign-page main .platform-media {
  width: 100%;
  max-width: 1040px;
  min-width: 0;
  margin-inline: auto;
  padding: 8px;
  overflow: visible;
  border: 1px solid #ffffffed;
  border-radius: 22px;
  background: linear-gradient(135deg,#fffffff0,#ffffffc9);
  box-shadow: 0 20px 55px #173b3c16,0 4px 12px #173b3c08,inset 0 1px 0 #fff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
html:root[data-color-theme="second"] body.home-page .cl4-platform #manager-demo,
html:root[data-color-theme="second"] body.subpage.campaign-page main #manager-demo {
  display: block;
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: none;
  aspect-ratio: 1600 / 1000;
  object-fit: contain;
  object-position: center;
  border: 1px solid #173b3c12;
  border-radius: 12px;
  background: #fff8f4;
  transform: none;
}
html:root[data-color-theme="second"] body :is(.cl4-platform,.platform-section) .demo-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 43px;
  padding: 7px 13px 11px;
  margin: 0;
  background: none;
}
html:root[data-color-theme="second"] body :is(.cl4-platform,.platform-section) .demo-indicator {
  padding: 5px 10px;
  border: 1px solid #ffffffc9;
  border-radius: 999px;
  background: var(--palette-tint);
  color: var(--palette-deep);
  line-height: 1.3;
}
html:root[data-color-theme="second"] body :is(.cl4-platform,.platform-section) .demo-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  padding: 10px 12px 3px;
  margin: 0;
  border: 0;
}
html:root[data-color-theme="second"] body :is(.cl4-platform,.platform-section) .demo-caption p {
  margin: 0;
}
html:root[data-color-theme="second"] body :is(.cl4-platform,.platform-section) .demo-caption button {
  min-height: 40px;
  padding: 7px 12px;
  margin: 0;
  border: 1px solid var(--palette-line);
  border-radius: 999px;
  color: var(--palette-deep);
  background: #ffffffc9;
  box-shadow: inset 0 1px 0 #fff;
  white-space: normal;
}
html:root[data-color-theme="second"] body :is(.cl4-platform,.platform-section) .demo-caption button:hover {
  background: var(--palette-tint);
}
html:root[data-color-theme="second"] body :is(.cl4-platform,.platform-section) :is(video,button):focus-visible {
  outline: 3px solid var(--palette-main);
  outline-offset: 4px;
}
/* The white-label page uses the same untouched recording in its own section. */
html:root[data-color-theme="second"] #cl-concept .dashboard-visual.dashboard-demo {
  width: 100%;
  max-width: 1040px;
  margin: 28px auto 0;
  padding: 0;
  transform: none;
}
html:root[data-color-theme="second"] #cl-concept .dashboard-demo .dashboard-screen {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 8px;
  overflow: visible;
  border: 1px solid #ffffffed;
  border-radius: 22px;
  background: linear-gradient(135deg,#fffffff0,#ffffffc9);
  box-shadow: 0 20px 55px #173b3c16,0 4px 12px #173b3c08,inset 0 1px 0 #fff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
html:root[data-color-theme="second"] #cl-concept .dashboard-demo-video {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-width: 100%;
  max-height: none;
  aspect-ratio: 1600 / 1000;
  object-fit: contain;
  object-position: center;
  border: 1px solid #173b3c12;
  border-radius: 12px;
  background: #fff8f4;
  transform: none;
}
html:root[data-color-theme="second"] #cl-concept .dashboard-demo figcaption {
  position: static;
  width: auto;
  height: auto;
  margin: 12px 0 0;
  padding: 0 8px;
  clip-path: none;
  overflow: visible;
  white-space: normal;
  text-align: center;
}
html:root[data-color-theme="second"] #cl-concept .dashboard-demo-video:focus-visible {
  outline: 3px solid var(--palette-main);
  outline-offset: 4px;
}
@media (max-width: 700px) {
  html:root[data-color-theme="second"] body.home-page .cl4-platform .platform-media,
  html:root[data-color-theme="second"] body.subpage.campaign-page main .platform-media {
    max-width: 360px;
    padding: 6px;
    border-radius: 18px;
  }
  html:root[data-color-theme="second"] body.home-page .cl4-platform #manager-demo,
  html:root[data-color-theme="second"] body.subpage.campaign-page main #manager-demo {
    aspect-ratio: 640 / 1380;
    max-height: none;
    border-radius: 11px;
  }
  html:root[data-color-theme="second"] body :is(.cl4-platform,.platform-section) .demo-title {
    padding-inline: 9px;
  }
  html:root[data-color-theme="second"] body :is(.cl4-platform,.platform-section) .demo-caption {
    padding-inline: 9px;
    justify-content: center;
    text-align: center;
  }
}
/* Matches the white-label script's existing mobile breakpoint. */
@media (max-width: 600px) {
  html:root[data-color-theme="second"] #cl-concept .dashboard-visual.dashboard-demo {
    max-width: 360px;
  }
  html:root[data-color-theme="second"] #cl-concept .dashboard-demo .dashboard-screen {
    padding: 6px;
    border-radius: 18px;
  }
  html:root[data-color-theme="second"] #cl-concept .dashboard-demo-video {
    aspect-ratio: 640 / 1380;
    border-radius: 11px;
  }
}
