/* Keep the device announcement in the existing feature's quiet visual style. */
html body.emdr-refined #devices .emdr-duo-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  margin-top: 24px;
  padding-block: 10px;
  padding-inline: 22px 10px;
  border-radius: 999px;
  background: #e8e8ed;
  --site-link: #1d1d1f;
  color: var(--site-link) !important;
  min-height: 56px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none !important;
  transition: background-color 150ms ease-out;
}
html body.emdr-refined #devices .emdr-duo-link span { font-weight: inherit; }
html body.emdr-refined #devices .emdr-duo-link:hover { background: #dedee4; }
html body.emdr-refined #devices .emdr-duo-link svg {
  order: 1;
  width: 36px;
  height: 36px;
  padding: 10px;
  box-sizing: border-box;
  flex: 0 0 36px;
  border-radius: 50%;
  background: #0071e3;
  fill: #fff;
}

html body.emdr-refined .emdr-duo-link:focus-visible, .emdr-duo-dialog button:focus-visible, .emdr-duo-dialog a:focus-visible {
  outline: 3px solid #0071e3;
  outline-offset: 4px;
}
html.emdr-video-open { overflow: hidden; }
.emdr-duo-dialog {
  --site-link: #0066cc;
  width: min(900px, calc(100% - 32px), calc(100dvh - 160px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  color: #1d1d1f;
  background: #fff;
  box-shadow: 0 24px 80px rgb(0 0 0 / 25%);
}
.emdr-duo-dialog::backdrop { background: rgb(0 0 0 / 70%); }
.emdr-duo-dialog[open] { animation: emdr-video-appear 160ms ease-out; }
.emdr-duo-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
}
.emdr-duo-dialog h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.emdr-duo-dialog button {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: #eeeef0;
  color: #1d1d1f;
  cursor: pointer;
}
.emdr-duo-dialog button:hover { background: #dedee2; }
.emdr-duo-dialog button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.emdr-duo-dialog video {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 160px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fdfdfd;
}
@keyframes emdr-video-appear { from { opacity: .5; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .emdr-duo-dialog[open] { animation: none; }
  html body.emdr-refined #devices .emdr-duo-link { transition: none; }
}
/* The video surface stays light, including when the surrounding page is dark. */
html body.emdr-refined .emdr-duo-dialog h2 { color: #1d1d1f !important; font-weight: 600; }
