body[data-entry-view^="conv-"] #entry-root{max-width:680px;padding-bottom:2rem}
.conv-screen{display:grid;gap:.9rem}
.conv-screen :is(p,h2,ol,figure){margin:0}
.conv-screen :is(button,label,a,span,h2){overflow-wrap:anywhere}
.conv-screen button{min-height:44px;white-space:normal}
.conv-screen h2{font-family:Anton,'Arial Narrow',sans-serif;font-weight:400;font-size:clamp(1.4rem,5vw,2.15rem)}
.conv-screen .entry-primary{width:100%}
.conv-screen ol{padding-inline-start:1.45rem}
.conv-screen li+li{margin-top:.45rem}
.conv-kicker{color:var(--mint,#a8ebcd);font-size:.82rem;text-transform:uppercase;letter-spacing:.08em}
.conv-plate{max-height:190px;display:grid;place-items:center;background:#eae2d2;border-radius:12px;overflow:hidden}
.conv-plate img{height:160px;width:100%;object-fit:contain}
.conv-coaches,.conv-skills{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,100px),1fr));gap:.5rem}
.conv-coaches li,.conv-skills li,.conv-card{border:1px solid #525951;border-radius:.8rem;padding:.75rem;list-style:none;margin:0}
.conv-coaches,.conv-skills{padding:0}
.conv-coaches [aria-pressed="true"],.conv-skills [aria-current="step"]{border-color:var(--mint,#a8ebcd)}
.conv-coaches :is(button,small),.conv-skills small{display:block}
.conv-screen .conv-price{font-size:clamp(1.75rem,6vw,2.75rem);font-weight:800}
.conv-screen form{display:grid;gap:.7rem}
.conv-screen input[type="email"],.conv-screen input:not([type]){box-sizing:border-box;max-width:100%;min-width:0}
.conv-screen .conv-actions{display:grid;gap:.45rem}
.conv-stage{
 --conv-camera-cap:46vh;
 position:relative;width:min(100%,calc(var(--conv-camera-cap) * var(--conv-camera-ratio,1.7778)));
 margin-inline:auto;background:#171b18;border-radius:.8rem;overflow:hidden;
}
.conv-stage video{width:100%;height:auto;display:block}
.conv-stage output{position:absolute;top:.4rem;right:.65rem;font-size:2.5rem;font-weight:800;pointer-events:none;color:#b4f2d2;text-shadow:0 1px 4px #111}
.conv-layer-controls{display:flex;flex-wrap:wrap;gap:.45rem}
.conv-layer-controls [aria-pressed="true"]{border-color:var(--mint,#a8ebcd)}
.conv-qr img{display:block;width:100px;height:100px;margin:.4rem auto}
.conv-file{position:absolute;width:1px;height:1px;padding:0;opacity:0}
.conv-back{justify-self:start;min-width:44px}
.conv-return{margin-top:1rem}
@media(max-width:420px){
 .conv-screen{gap:.65rem}
 .conv-plate img{height:122px}
 .conv-coaches{grid-template-columns:repeat(3,minmax(0,1fr))}
 .conv-coaches li{padding:.35rem}
 .conv-coaches button{padding:.25rem}
 .conv-skills{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.conv-observation,
.conv-screen [data-calibration] {
 color: #ffc46c;
 background: #272017;
 padding: .5rem .75rem;
}
.conv-observation[data-tracking=unavailable] strong { visibility: hidden; }

.conv-progress{display:flex;flex-wrap:wrap;gap:.4rem;list-style:none;padding:0;margin:0 0 1rem}
.conv-progress li{padding:.35rem .6rem;border-radius:.45rem;background:#242a25;color:#e8e9db;font-size:.82rem}
.conv-progress [aria-current=step]{background:#a5f3cf;color:#171b18;font-weight:700}
.conv-progress [data-status=skip]{opacity:.65}
.conv-stage output[data-paused=true]{color:#ffc46c}
[data-analysis-preview]{display:block;width:100%;max-height:32svh;object-fit:contain;background:#171b18}
.conv-demo-still{display:block;max-width:100%;max-height:50svh;object-fit:contain}
[data-manual-clock]{display:block;font-size:2rem;font-variant-numeric:tabular-nums}
.conv-angle-reference{color:#ffc46c}
.conv-angle-value{font-size:1.5rem;font-weight:600}

#entry-root .nq-floor-layers{display:flex;flex-wrap:wrap;gap:.4rem .8rem;margin:0;padding:.5rem .65rem}
#entry-root .nq-floor-layers label,#entry-root .conv-optin{display:flex;align-items:center;gap:.45rem}
#entry-root :is(.nq-floor-layers,.conv-optin) input[type="checkbox"]{
 appearance:auto;flex:none;width:1rem;height:1rem;min-width:0;min-height:0;margin:0;padding:0;accent-color:#a5f3cf
}

.conv-proportions { display:block; width:clamp(64px, 21vw, 96px); height:auto; color:var(--nq-accent, #1d725a); }

.entry-brand img{display:block;object-fit:contain}
.conv-demo{min-width:0}
.conv-demo figcaption{font-size:.8rem}
.conv-demo [data-value^="listen-exercise|"]{font-size:.82rem;min-height:32px}
.conv-demo :is(.nq-video-frame,.conv-plate,.route-figure,img){max-height:28svh}
.conv-demo video{object-fit:contain}
.conv-demo .nq-video-player{max-width:100%}
.conv-gym-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}
.conv-gym-options label{display:flex;gap:.35rem;align-items:center}
#entry-root .conv-gym-options input{appearance:auto;width:1rem;height:1rem;min-height:0;min-width:0;flex:none;margin:0;padding:0;accent-color:#a5f3cf}
.conv-stage canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.conv-counter{position:absolute;top:.45rem;right:.55rem;display:grid;justify-items:end;padding:.3rem .6rem;border-radius:.4rem;background:#111c;color:#efede6}
.conv-stage .conv-counter output{position:static;line-height:1.05}
.conv-counter small{font-size:.8rem}
.is-recording > :is(h2,ol){display:none}
@media(min-width:900px){
 .conv-demo .nq-video-frame{max-height:36svh}
}
#entry-root .conv-qr a{display:grid;justify-content:center;width:auto;padding:.25rem;margin-top:.35rem}
#entry-root .conv-qr img{width:78px;height:78px;margin:0}
#entry-root .conv-demo .nq-video-player{--nq-video-max:26svh;width:min(100%, 360px);margin-inline:auto}
#entry-root .conv-demo .nq-video-frame{max-height:26svh}
#entry-root .conv-demo>video{max-height:26svh;width:100%}
#entry-root .conv-demo .nq-video-controls{justify-content:center}
#entry-root .conv-progress{margin:0;padding:0}
#entry-root .conv-progress li{margin:0}
#entry-root .conv-demo :is(.route-figure,.route-fig-sequence){overflow:hidden}
#entry-root .conv-demo .route-fig-panel{max-height:17svh}
body[data-entry-view=conv-camera] .conv-screen>ol:nth-of-type(2){display:none}
@media(min-width:900px){
 .conv-proof-layout:has(.conv-qr){display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:1rem;align-items:start}
}
body[data-entry-view=conv-proof-result] .conv-demo .nq-video-frame{max-height:21svh}
#entry-root .conv-demo [data-value^="listen-exercise|"]{display:inline-flex;width:auto;min-height:28px;margin:0;padding:.15rem .15rem;border:0;background:none;text-decoration:underline}
body[data-entry-view=conv-manual] #entry-root .conv-demo .nq-video-frame{max-height:18svh}
body[data-entry-view=conv-manual] #entry-root form{margin-block:.25rem;gap:.45rem}
body[data-entry-view=conv-manual] [data-manual-clock]{font-size:1.5rem}
@media(min-width:900px){
 .conv-proof-layout:has(.conv-qr){grid-template-areas:"demo guide" "demo qr";grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}
 .conv-proof-layout .conv-demo{grid-area:demo}
 .conv-proof-layout .conv-demo-guide{grid-area:guide}
 .conv-proof-layout .conv-qr{grid-area:qr}
}

/* Keep each conversion card at its intrinsic video ratio under its own height cap. */
#entry-root .conv-demo-compact{--conv-media-cap:min(300px,36svh)}
:is([data-proof-stage],.conv-analysis-media){--conv-media-cap:70vh;min-width:0}
#entry-root :is(.conv-demo-compact,[data-proof-stage],.conv-analysis-media)
 .nq-video-player:not(:fullscreen,.nq-video-expanded > *){
 width:min(100%,calc(var(--conv-media-cap) * var(--nq-video-ratio,1.7778)));
 margin-inline:auto;
}
#entry-root :is(.conv-demo-compact,[data-proof-stage],.conv-analysis-media)
 .nq-video-player:not(:fullscreen,.nq-video-expanded > *) > .nq-video-frame{width:100%;max-height:none}
#entry-root .conv-demo-compact .nq-video-player:not(:fullscreen){position:relative}
#entry-root .conv-demo-compact .nq-video-player:not(:fullscreen) .nq-video-controls{
 position:absolute;inset:0;padding:0;pointer-events:none;
}
#entry-root .conv-demo-compact .nq-video-player:not(:fullscreen) .nq-video-controls :is(input,[data-player=slow]){display:none}
#entry-root .conv-demo-compact .nq-video-player:not(:fullscreen) .nq-video-controls button{
 position:absolute;width:44px;height:44px;padding:0;pointer-events:auto;background:#171b18cc;color:#faf9f5;
}
#entry-root .conv-demo-compact .nq-video-player:not(:fullscreen) [data-player=play]{
 top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;
}
#entry-root .conv-demo-compact .nq-video-player:not(:fullscreen) [data-player=fullscreen]{top:6px;right:6px}
#entry-root .conv-demo-compact .nq-video-player:fullscreen{--nq-video-max:calc(100dvh - 60px);width:100%}
#entry-root .conv-demo-compact .nq-video-player:fullscreen>.nq-video-frame{max-height:none}
.conv-demo-compact figcaption{margin-top:.25rem;text-align:center}

.conv-text-actions{display:flex;flex-wrap:wrap;align-items:center;column-gap:.45em}
#entry-root .conv-text-actions .conv-text-control{
 min-height:30px;width:auto;padding:0;border:0;border-radius:0;background:none;
 color:inherit;font:inherit;font-size:.82rem;text-decoration:underline;white-space:normal;
}
.conv-text-actions > :not(:last-child)::after{
 content:'·';display:inline-block;margin-inline-start:.45em;text-decoration:none;
}

#entry-root .conv-media-layers{display:flex;flex-wrap:nowrap;gap:.4rem;align-items:center;border:0;min-width:0;padding:0;margin:0}
#entry-root .conv-media-layers legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#entry-root .conv-media-layers :is(button,label){
 position:relative;width:auto;min-height:32px;border:1px solid #525951;border-radius:999px;
 padding:.25rem .65rem;background:#242a25;color:#efede6;font-size:.82rem;white-space:nowrap;
}
#entry-root .conv-media-layers :is([aria-pressed=true],label:has(input:checked)){border-color:var(--mint,#a8ebcd);color:var(--mint,#a8ebcd)}
#entry-root .conv-media-layers :is(:disabled,label:has(input:disabled)){opacity:.65;cursor:default}
#entry-root .conv-media-layers label:has(input:focus-visible){outline:2px solid currentColor;outline-offset:2px}
#entry-root .conv-media-layers input[type=checkbox]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}

.conv-stage { aspect-ratio: var(--nq-camera-ratio, 1.7778); width: min(100%, calc(var(--conv-camera-cap) * var(--nq-camera-ratio, 1.7778))); }
.conv-stage video { height: 100%; object-fit: contain; }
.nq-gift-minutes { margin-block: 1rem; display: flex; flex-wrap: wrap; gap: .6rem; border: 1px solid var(--line); border-radius: .6rem; }
.nq-gift-minutes label { min-height: 44px; display: inline-flex; align-items: center; padding: .35rem .65rem; gap: .45rem; }
.nq-gift-minutes input { width: auto; }
.nq-gift-minutes p { flex-basis: 100%; margin: 0; }

body[data-entry-view=conv-camera] #entry-root { max-width: min(96vw, 90rem); }
body[data-entry-view=conv-camera] .conv-stage { --conv-camera-cap: 65svh; }

/* These rules apply only within the conversion onboarding. */
body[data-entry-view^="conv-"] #entry-root .conv-screen > h2[tabindex="-1"]:focus {
  outline: none;
}

body[data-entry-view="conv-setup"] #entry-root .conv-coaches li {
  padding: 0;
  border: 0;
}

body[data-entry-view="conv-setup"] #entry-root .conv-coaches button {
  display: grid;
  align-content: center;
  gap: .25rem;
  width: 100%;
  height: 100%;
  min-height: 4.5rem;
  padding: .4rem;
  border: 2px solid #556258;
  text-align: center;
}

body[data-entry-view="conv-setup"] #entry-root .conv-coaches button[aria-pressed="true"] {
  border-color: var(--mint, #a5f3cf);
  background: #263c30;
  box-shadow: inset 0 -3px var(--mint, #a5f3cf);
  color: var(--mint, #a5f3cf);
}

#entry-root .conv-progress li {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  padding: .1rem 0;
  background: none;
  color: inherit;
  cursor: default;
}

#entry-root .conv-progress li::before {
  content: '';
  width: .38rem;
  height: .38rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

#entry-root .conv-progress [aria-current="step"] {
  color: var(--mint, #a5f3cf);
}

#entry-root .conv-progress [aria-current="step"]::before {
  background: currentColor;
}

#entry-root .conv-progress-note {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}

#entry-root .conv-welcome-media img {
  display: block;
  width: min(100%, 11rem);
  height: auto;
  aspect-ratio: 54 / 47;
  object-fit: cover;
  margin-inline: auto;
  border-radius: .65rem;
}

#entry-root .conv-proof-video .nq-video-player:not(:fullscreen, .nq-video-expanded > *) {
  width: min(100%, 26rem);
}

#entry-root .conv-proof-video .nq-video-player:not(:fullscreen, .nq-video-expanded > *) > .nq-video-frame {
  /* Reserve the demo height before video metadata is available. */
  width: 100%;
  aspect-ratio: 7 / 4 !important;
  overflow: hidden;
  border-radius: .65rem;
}

#entry-root .conv-proof-video .nq-video-player:not(:fullscreen, .nq-video-expanded > *) > .nq-video-controls {
  inset: 0 0 auto;
  aspect-ratio: 7 / 4;
}

#entry-root .conv-proof-video.conv-demo-compact .nq-video-player:not(:fullscreen, .nq-video-expanded > *) [data-player=play] {
  inset: auto auto 6px 6px;
  transform: none;
}

#entry-root .conv-screen[data-proof-exercise] .conv-proof-layout {
  display: grid;
  align-items: center;
  gap: .7rem;
}

#entry-root .conv-screen[data-proof-exercise] .conv-proof-layout > * {
  grid-area: auto;
  min-width: 0;
}

#entry-root .conv-proof-layout [data-proof-cue] {
  margin-block-start: .35rem;
}

#entry-root [data-proof-exercise] :is(.nq-coach-mode, .nq-coach-lesson) {
  margin-block: 0;
}

@media (min-width: 768px) {
  #entry-root .conv-screen[data-proof-exercise] .conv-proof-layout:has(> [data-proof-media]) {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
}

@media (max-width: 767px) {
  #entry-root [data-proof-exercise] .conv-demo-compact {
    --conv-media-cap: min(200px, 25svh);
  }

  #entry-root .conv-proof-video .nq-video-player:not(:fullscreen, .nq-video-expanded > *) {
    width: min(100%, 20rem);
  }
}

.conv-screen .nq-live-media { padding-inline:0; }
.conv-screen .nq-live-camera { height:65svh; }
.conv-screen .nq-live-media [hidden],.conv-screen .nq-camera-switch[hidden] { display:none; }
.conv-screen .nq-conversion-hud {
 position:absolute; inset:0 0 auto; padding:8px 12px 24px; margin:0; text-align:center;
 background:linear-gradient(#101410eb,#101410a3 65%,transparent);
}
.conv-screen .nq-live-camera:has(.nq-live-reference:not([hidden])) .nq-conversion-hud { padding-inline-end:calc(min(36%,160px) + 12px); }
.conv-screen .nq-live-camera .nq-live-reference { z-index:2; }
.conv-screen .nq-live-camera .conv-counter { z-index:1; inset:6px auto auto 6px; }
.conv-screen .nq-conversion-hud { padding-inline-start:min(25%,7rem); }

.conv-screen .nq-conversion-hud [data-coach-reason] { margin:0; font-size:.85rem; }
.conv-screen .nq-camera-switch { margin-block:6px; }
[data-proof-stage] > video[hidden] { display:none; }
