/* The 3D replay on test reports (agency-replay.js). The .r3-* rules come from the desktop line's experience UI (app.css), scoped to .rp-host. */
.r3-gl { position: absolute; inset: 0; z-index: 0; }
.r3-gl canvas, .r3-overlay canvas { display: block; }
.r3-css { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.rp-host .r3-screen { display: block; width: 100%; height: 100%; max-width: none; max-height: none; border-radius: 0; box-shadow: none; object-fit: fill; pointer-events: none; user-select: none; background: #fff; }
.r3-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

/* Task 04: the page pans inside the screen; the keyboard Blanks draws. */
.rp-host .r3-pan { position: absolute; inset: 0; transition: transform 200ms cubic-bezier(.2, .8, .2, 1); }
.r3-kb { position: absolute; left: 0; right: 0; bottom: 0; height: 268px; background: #d1d4da; transform: translateY(100%); transition: transform 200ms cubic-bezier(.2, .8, .2, 1); font-family: -apple-system, "Segoe UI", system-ui, sans-serif; }
.r3-kb.open { transform: translateY(0); }
.r3-kb-note { position: absolute; left: 0; right: 0; top: 0; height: 12px; font-size: 8.5px; line-height: 12px; text-align: center; color: #6b6f78; letter-spacing: .02em; }
.r3-key { position: absolute; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: #fff; color: #111; font-size: 18px; box-shadow: 0 1px 0 #8a8d93; transition: background 80ms, transform 80ms; }
.r3-key.mod, .r3-key.return { background: #abb0ba; font-size: 14px; }
.r3-key.return { font-size: 14px; }
.r3-key.down { background: #b6bbc4; transform: translateY(1px); }
.r3-kb[data-secret="true"] .r3-key.char { background: var(--fx-canvas); }
.r3-press { position: absolute; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 0, 0, .10) 0%, rgba(0, 0, 0, .05) 45%, rgba(0, 0, 0, 0) 70%); opacity: 0; transform: scale(.7); transition: opacity 140ms ease-out, transform 160ms ease-out; pointer-events: none; }
.r3-press.on { opacity: 1; transform: scale(1); transition: opacity 30ms linear, transform 90ms ease-out; }
.r3-pop { position: absolute; transform: translate(-50%, -112%); min-width: 40px; height: 52px; padding: 0 6px; border-radius: 9px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); font-size: 28px; display: flex; align-items: center; justify-content: center; color: #111; pointer-events: none; }
.controls { opacity: .55; transition: opacity 200ms; }

/* the stage card */
.rp { padding: 0 !important; overflow: hidden; }
.rp-frame { position: relative; height: min(68vh, 620px); background: radial-gradient(ellipse at 50% 35%, var(--fx-window) 0%, var(--fx-canvas) 70%); }
.rp-host { position: absolute; inset: 0; overflow: hidden; }
.rp-wait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--fx-ink-3); font-size: 13px; }
.rp-caption { margin: 0; padding: 12px 18px 0; font-size: 14px; min-height: 22px; }
.rp-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px 14px; flex-wrap: wrap; }
.rp-chips { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.rp-chip { min-width: 28px; height: 28px; border-radius: 999px; border: 0; background: var(--raised, #f2f1ee); box-shadow: inset 0 0 0 1px var(--line, rgba(0,0,0,.08)); font: inherit; font-size: 12px; cursor: pointer; }
.rp-chip.on { background: #111; color: #fff; box-shadow: none; }
.rp-tabs { display: flex; gap: 6px; padding: 12px 14px 0; flex-wrap: wrap; }
.rp-tab { display: inline-flex; gap: 8px; align-items: center; border: 0; border-radius: 999px; padding: 7px 12px; background: var(--raised, #f2f1ee); font: inherit; font-size: 13px; cursor: pointer; }
.rp-tab.on { background: #111; color: #fff; }
.rp-tab .tag { font-size: 12px; }
/* the 2D replay */
.rp-flat { position: absolute; inset: 0; display: grid; place-items: center; }
.rp-phone { position: relative; height: 92%; aspect-ratio: 390 / 844; border-radius: 34px; padding: 10px; background: #1b1b1d; box-shadow: var(--fx-shadow-float); }
.rp-shot { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 26px; background: #fff; display: block; }
.rp-dot { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(198, 92, 47, .28); box-shadow: 0 0 0 2px rgba(198, 92, 47, .55); opacity: 0; transform: scale(.6); transition: opacity 160ms, transform 220ms, left 500ms cubic-bezier(.2,.8,.2,1), top 500ms cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.rp-dot.on { opacity: 1; transform: scale(1); }
@media (max-width: 759px) { .rp-frame { height: 62vh; } }

/* #/watch/:id — full-screen replay with titles */
body.watching { overflow: hidden; }
.watch { position: fixed; inset: 0; z-index: 1000; background: radial-gradient(ellipse at 50% 40%, var(--fx-window) 0%, var(--fx-canvas) 75%); }
.w-host { position: absolute; inset: 0; overflow: hidden; }
.w-title { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: grid; justify-items: center; gap: 10px; padding: 34px 20px; background: rgba(250, 248, 247, .86); backdrop-filter: blur(10px); opacity: 0; transition: opacity 400ms; pointer-events: none; z-index: 5; text-align: center; }
.w-title.on { opacity: 1; }
.w-title b { font-family: var(--fx-sans); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.1; overflow-wrap: anywhere; text-wrap: balance; text-align: center; max-width: 100%; color: var(--fx-ink); }
.w-title span { font-size: clamp(15px, 1.6vw, 20px); color: var(--fx-ink-3); }
.w-caption { position: absolute; left: 50%; bottom: 36px; transform: translate(-50%, 10px); max-width: min(760px, 90vw); padding: 12px 20px; border-radius: 999px; background: rgba(17, 17, 17, .86); color: #fff; font-size: clamp(14px, 1.5vw, 19px); opacity: 0; transition: opacity 250ms, transform 250ms; z-index: 4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-caption.on { opacity: 1; transform: translate(-50%, 0); }
.w-brand { position: absolute; left: 28px; top: 22px; font-family: var(--fx-sans); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--fx-ink); z-index: 4; }
.watch .r3-gl, .watch .r3-css, .watch .r3-overlay { position: absolute; inset: 0; }

/* ── test report (2026-11-20): the replay leads; each journey = final screen + checks, then a filmstrip ── */
.test-report { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap, 12px); }
.test-report > * { margin: 0 !important; }
.rp-frame { height: min(62vh, 560px); }
.test-intro .card-head { align-items: flex-start; margin-bottom: 8px; }
.test-summary { font-size: 15px; line-height: 1.55; max-width: 80ch; margin-top: 8px; }
.test-intro .link.small { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; }
.test-intro .link .ico { width: 14px; height: 14px; }
.test-journey .card-head { align-items: flex-start; }
.test-journey .card-head p { margin-top: 2px; max-width: 80ch; }
.tj-why { margin: -4px 0 14px; }
.tj-why p { margin-top: 6px; max-width: 80ch; }

.tj-end { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; }
.tj-final { margin: 0; display: grid; gap: 6px; justify-items: center; }
.test-pic { position: relative; display: grid; place-items: center; overflow: hidden; width: 104px; aspect-ratio: 390 / 844; border-radius: 12px; background: var(--raised, #f6f3f1); box-shadow: 0 0 0 1px var(--line, rgba(0,0,0,.08)); }
.test-pic.wide { width: 168px; aspect-ratio: 16 / 10; }
.test-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.test-pic.none small { font-size: 12px; text-align: center; padding: 0 8px; }
.test-pic.final { width: 168px; border-radius: 18px; box-shadow: 0 0 0 5px #111, 0 18px 34px -18px rgba(0, 0, 0, 0.45); }
.test-pic.final.wide { width: 300px; border-radius: 10px; box-shadow: var(--fx-shadow-card); }
.tj-checks h3 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.tj-checks h3 small { font-weight: 500; }
.check-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.check-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; }
.check-list li div { display: grid; gap: 1px; min-width: 0; }
.check-list li b { font-weight: 500; font-size: 14px; overflow-wrap: anywhere; }
.check-list li small { overflow-wrap: anywhere; }
.check-list .ck { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.check-list .ck .ico { width: 16px; height: 16px; }
.check-list li.ok .ck { background: var(--cobalt, var(--fx-cobalt)); color: #fff; }
.check-list li.no .ck { background: #0d0d0f; color: #fff; }
.check-list li.unsure .ck { box-shadow: inset 0 0 0 1.5px var(--ink, #0a0a0a); color: var(--ink, #0a0a0a); }

.filmstrip-wrap { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line, rgba(0,0,0,.08)); }
.fs-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.fs-head h3 { font-size: 15px; font-weight: 600; }
.filmstrip { list-style: none; margin: 0; padding: 2px 2px 10px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.fs-step { flex: 0 0 120px; display: grid; gap: 6px; align-content: start; scroll-snap-align: start; }
.fs-step:has(.test-pic.wide) { flex-basis: 184px; }
body.agency-body button.fs-shot { position: relative; height: auto; padding: 0; display: block; border-radius: 12px; background: transparent; box-shadow: none; justify-self: start; }
.fs-shot:hover .test-pic { box-shadow: 0 0 0 2px var(--cobalt, var(--fx-cobalt)); }
.fs-step .test-pic { width: 112px; }
.fs-step .test-pic.wide { width: 176px; }
.fs-n { position: absolute; left: 6px; top: 6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #0d0d0f; color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.fs-step.bad .fs-n { background: #fff; color: #0d0d0f; box-shadow: inset 0 0 0 1.5px #0d0d0f; }
.fs-cap { font-size: 12px; line-height: 1.35; color: var(--ink, #0a0a0a); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fs-met { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-3, #6e737c); }
.fs-met.ok { color: var(--cobalt-text, var(--fx-cobalt-deep)); }
.fs-met .ico { width: 12px; height: 12px; }
.fs-step small.bad { font-size: 12px; }
@media (max-width: 759px) {
  .tj-end { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .tj-checks { justify-self: stretch; }
  .test-pic.final { width: 150px; }
  .test-pic.final.wide { width: 100%; }
  .fs-step { flex-basis: 104px; }
  .fs-step .test-pic { width: 100px; }
}

.tj-checks { min-width: 0; }
@media (max-width: 759px) { .rp-chip { min-width: 40px; height: 40px; } }
