#abm-member-editor .abm-webcam {
  box-sizing: border-box;
  width: min(42rem, calc(100vw - 2rem));
  max-height: 90dvh;
  overflow: auto;
  margin: auto;
  padding: 0;
  color: #000c30;
  background: white;
  border: 0;
  border-radius: .875rem;
  box-shadow: 0 1.5rem 5rem #0006;
}
.abm-webcam::backdrop { background: rgb(0 12 48 / 75%); }
#abm-member-editor .abm-webcam header {
  display: flex; align-items: center; gap: 1.25rem; padding: 1.2rem 1.5rem;
  background: #000c30; color: white;
}
#abm-member-editor .abm-webcam header img { width: 4rem; height: auto; }
#abm-member-editor .abm-webcam h2 { font: inherit; font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 650; margin: 0; color: inherit; }
.abm-webcam .webcam-frame, .abm-video-frame { position: relative; background: #081126; }
.abm-webcam .webcam-frame video {
  display: block; width: 100%; aspect-ratio: 16/9; max-height: 50dvh; object-fit: contain;
}
.abm-webcam output { position: absolute; top: .75rem; left: .75rem; padding: .25rem .6rem; background: #000c30; color: white; border-radius: .25rem; font-variant-numeric: tabular-nums; }
.abm-webcam .webcam-countdown {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 1.65em; height: 1.65em; border-radius: 50%;
  background: rgb(0 12 48 / 80%); color: white; font-size: clamp(2rem, 7vw, 4rem); font-weight: 650;
  pointer-events: none;
}
.abm-webcam .webcam-tools { padding: 1rem 1.5rem 1.5rem; }
.abm-webcam .webcam-tools p { margin: 0 0 1rem; }
.abm-webcam .webcam-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
#abm-member-editor .abm-webcam button { min-height: 44px; padding: .5rem 1rem; border: 1px solid #0064e0; border-radius: 2rem; color: #fff; background: #0064e0; cursor: pointer; }
#abm-member-editor .abm-webcam [data-cancel], #abm-member-editor .abm-webcam [data-start]:has(~ [data-use]:not([hidden])) { background: white; color: #000c30; }
.abm-webcam [hidden], .abm-video-player [hidden] { display: none !important; }
.abm-video-player { position: relative; background: #081126; }
#abm-member-profile .abm-video-frame video { display: block; width: 100%; height: auto; object-fit: contain; }
#abm-member-profile .abm-video-watermark {
  position: absolute; top: clamp(8px, 2%, 18px); right: clamp(8px, 2%, 18px);
  width: clamp(63px, 15%, 126px); height: auto; opacity: .66; pointer-events: none;
}
.abm-video-player [data-video-fullscreen] { display: block; margin-left: auto; background: #081126; color: white; border: 0; padding: .5rem .85rem; cursor: pointer; }
.abm-video-player:fullscreen .abm-video-frame { position: absolute; inset: 0; }
#abm-member-profile .abm-video-player:fullscreen video { height: 100%; max-height: none; object-fit: cover; }
.abm-video-player:fullscreen [data-video-fullscreen] {
  position: absolute; top: .75rem; left: .75rem; margin: 0;
  border-radius: .4rem; background: rgb(8 17 38 / 80%);
}
.member-video-choices {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; max-width: 36rem;
}
#abm-member-editor .member-video-choices > button {
  min-height: 44px; padding: .65rem 1rem; border: 2px solid #0057c6; border-radius: 24px;
  background: #0057c6; color: white; font: inherit; font-weight: 600; cursor: pointer;
}
#abm-member-editor .member-video-choices > button:disabled {
  background: #e1e6ee; border-color: #ccd3de; color: #566174; cursor: default;
}
@media (max-width: 600px) { .member-video-choices { grid-template-columns: 1fr; } }
