/* demo/phone.css: every rule of OVD.Phone, scoped under .ovd-phone. The video is its own world: the business's brand
   colours (set inline as --b-*), white paper and dark ink, the same in light and dark page themes. Sizes are cqi of the
   phone (container-type: inline-size), as the real player is (origami_video_player.scss:18-23): 1 cqi = 3.6 px at 360 px.
   Ported from proto/v4-paper-play.html (player, slip, ribbon, prints, end card), interactive-origami-video.html (sheet),
   v5-plan-the-visit.html (planner, files) and v1-spoken-links.html (marks). No :root, html or body rules. */

.ovd-phone {
  --b-primary: #7c3215; --b-primary-2: #9a4320; --b-accent: #f4b33d; --b-ink-accent: #2a1505; --b-dark: #4a1b09;
  --ovd-ink: #15151b; --ovd-paper: #ffffff; --ovd-paper-warm: #fbfaf7; --ovd-paper-back: #e4ded4;
  --ovd-crease: rgba(52, 36, 22, 0.13); --ovd-focus: #1668a8; --ovd-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ovd-display: 'Barlow Condensed', 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --ovd-print: 'Old Standard TT', Georgia, 'Times New Roman', serif;
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; max-width: 100%;
  container-type: inline-size; overflow: hidden; background: #000; color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; font-size: 16px; line-height: normal;
  text-align: left; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none; outline: none; isolation: isolate;
}
.ovd-phone *, .ovd-phone *::before, .ovd-phone *::after { box-sizing: border-box; }
.ovd-phone [hidden] { display: none !important; }
.ovd-phone p, .ovd-phone h2, .ovd-phone h3, .ovd-phone figure { margin: 0; }
.ovd-phone button { font-family: inherit; -webkit-appearance: none; appearance: none; }
.ovd-phone:focus-visible { box-shadow: inset 0 0 0 3px var(--ovd-focus); }
.ovd-phone .ovd-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.ovd-phone .ovd-ic { width: 1em; height: 1em; display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ovd-stage { position: absolute; inset: 0; overflow: hidden; cursor: pointer; perspective: 1100px; }

/* Press feedback (T1.8) with V4's springs */
.ovd-phone .ovd-press { transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 220ms ease; }
.ovd-phone .ovd-press:active { transform: scale(0.94); filter: brightness(0.92); transition-duration: 60ms; transition-timing-function: ease-out; }
.ovd-phone .ovd-pulse { animation: ovd-pulse 360ms cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes ovd-pulse { 0% { transform: scale(1); } 40% { transform: scale(1.07); } 100% { transform: scale(1); } }
@keyframes ovd-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ════════════════════════════════════════════════════════════
   The picture: shots, kinetic words, captions, identity row
   ════════════════════════════════════════════════════════════ */
.ovd-picture {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #000; transform-origin: 50% 0;
  transition: transform 340ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 340ms ease, border-radius 340ms ease;
}
.ovd-phone.is-held .ovd-picture { transform: rotateX(9deg) scale(0.93); filter: brightness(0.48) saturate(0.85); border-radius: 3cqi; }
.ovd-shot { position: absolute; inset: 0; opacity: 0; will-change: transform, opacity; transform-origin: 50% 55%; }
.ovd-shot svg, .ovd-shot img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ovd-backdrop { position: absolute; inset: 0; z-index: 2; background: var(--b-primary); opacity: 0; pointer-events: none; }
.ovd-scrim { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 58%; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.55) 34%, rgba(0,0,0,0.18) 70%, rgba(0,0,0,0) 100%); }
.ovd-kinetic { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.ovd-kl { position: absolute; left: 7%; right: 7%; display: flex; align-items: center; justify-content: center; text-align: center; opacity: 0; }
.ovd-kl.ovd-band-upper { top: 24%; height: 18%; }
.ovd-kl.ovd-band-middle { top: 42%; height: 20%; }
.ovd-kl-inner { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 1.4cqi 1.6cqi; max-width: 100%; }
.ovd-kw { position: relative; display: inline-block; font-family: var(--ovd-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.02; color: #fff; transform-origin: 50% 70%; opacity: 0; will-change: transform, opacity; }
.ovd-kl.ovd-size-l .ovd-kw { font-size: 11.6cqi; }
.ovd-kl.ovd-size-m .ovd-kw { font-size: 9.4cqi; }
.ovd-kw-ink { display: inline-block; padding: 0.05em 0.2em 0.02em; border-radius: 3px; position: relative; }
.ovd-fill-primary .ovd-kw-ink { background: var(--b-primary); color: #fff; }
.ovd-fill-scrim .ovd-kw-ink { background: rgba(0, 0, 0, 0.62); color: #fff; }
.ovd-kw-mark { position: absolute; z-index: 0; inset: 0.04em -0.04em; background: var(--b-accent); border-radius: 3px; transform: scaleX(0); transform-origin: 0 50%; }
.ovd-kw.is-emphasis .ovd-kw-ink { background: transparent; color: var(--b-ink-accent); }
.ovd-kw.is-emphasis .ovd-kw-text { position: relative; z-index: 1; }
.ovd-kl.is-badge .ovd-kw { font-size: 10.6cqi; }
.ovd-kl.is-badge .ovd-kw-ink { padding: 0.12em 0.32em 0.06em; border-radius: 6px; background: var(--b-accent); color: var(--b-ink-accent); box-shadow: 0 2px 8px rgba(0,0,0,0.3); transform: rotate(-4deg); }

.ovd-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 0 4.1cqi 6.6cqi; text-align: center; pointer-events: none; }
.ovd-caption { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 13.5cqi; margin: 0 0 3.1cqi !important; gap: 0.9cqi; }
.ovd-line { display: inline-block; max-width: 100%; padding: 0.14em 0.45em; border-radius: 0.3em; background: rgba(0, 0, 0, 0.55); color: #fff;
  font-size: max(12.5px, 3.85cqi); font-weight: 600; line-height: 1.32; letter-spacing: -0.008em; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55); }
.ovd-cw { border-radius: 3px; padding: 0 0.08em; margin: 0 -0.08em; }
.ovd-cw.is-boxed { background: var(--b-accent); color: var(--b-ink-accent); text-shadow: none; }
.ovd-identity { display: inline-flex; align-items: center; gap: 2.3cqi; max-width: 100%; min-height: 11.3cqi; position: relative; }
.ovd-idmark { display: grid; flex: none; place-items: center; width: 10.3cqi; height: 10.3cqi; border-radius: 2.5cqi;
  background: linear-gradient(150deg, var(--b-primary-2), var(--b-dark)); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.28), 0 2px 10px rgba(0,0,0,0.35);
  font-size: 4.1cqi; font-weight: 700; color: var(--b-accent); }
.ovd-name { min-width: 0; overflow: hidden; font-size: max(12.5px, 3.85cqi); font-weight: 700; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
/* The name button: transparent, over the identity row, at least 44 px tall (V0 T1.3). */
.ovd-name-btn { position: absolute; left: -2cqi; right: -6.4cqi; top: 50%; height: max(44px, 13.7cqi); transform: translateY(-50%); border: 0; border-radius: 3cqi; background: transparent; cursor: pointer; pointer-events: auto; padding: 0; margin: 0; }
.ovd-name-btn::after { content: ''; position: absolute; right: 2cqi; top: 50%; width: 1.7cqi; height: 1.7cqi; border-right: 2px solid rgba(255,255,255,0.85); border-bottom: 2px solid rgba(255,255,255,0.85); transform: translateY(-50%) rotate(-45deg); }
.ovd-name-btn:focus-visible { outline: 2px solid #fff; box-shadow: 0 0 0 4px rgba(0,0,0,0.5); }

/* ════════════════════════════════════════════════════════════
   Today's chrome: the sound pill, the pause button, the play button
   ════════════════════════════════════════════════════════════ */
.ovd-sound { position: absolute; top: 3.1cqi; right: 3.1cqi; z-index: 11; display: flex; align-items: center; gap: 1.4cqi; min-width: 44px; min-height: 44px; margin: 0; padding: 0 3.3cqi;
  border: 0; border-radius: 999px; background: rgba(21, 21, 27, 0.62); box-shadow: 0 1px 6px rgba(0,0,0,0.25); color: #fff; font-size: max(12px, 3.33cqi); font-weight: 700; line-height: 1; cursor: pointer; }
.ovd-sound.is-silent { background: #fff; color: var(--ovd-ink); }
.ovd-sound:not(.is-silent) { justify-content: center; padding: 0; width: 44px; }
.ovd-sound .ovd-ic { width: max(18px, 5.1cqi); height: max(18px, 5.1cqi); }
.ovd-toggle { position: absolute; top: 3.1cqi; left: 3.1cqi; z-index: 7; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: rgba(21,21,27,0.62); box-shadow: 0 1px 6px rgba(0,0,0,0.25); color: #fff; cursor: pointer; }
.ovd-toggle svg { width: 20px; height: 20px; display: block; fill: currentColor; }
.ovd-play { position: absolute; top: 50%; left: 50%; z-index: 6; display: grid; place-items: center; width: 18cqi; height: 18cqi; min-width: 56px; min-height: 56px; margin: 0; padding: 0; border: 0;
  border-radius: 50%; background: rgba(255,255,255,0.92); box-shadow: 0 4px 18px rgba(0,0,0,0.35); color: var(--ovd-ink); cursor: pointer; transform: translate(-50%, -50%); }
.ovd-play svg { width: 48%; height: 48%; margin-left: 6%; fill: currentColor; }
.ovd-sound:focus-visible, .ovd-toggle:focus-visible, .ovd-play:focus-visible, .ovd-replay:focus-visible, .ovd-pill:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px rgba(0,0,0,0.45); }
/* The 124 px unit frame (demo simplification, C.6): a 16 px muted icon and a centred paused icon. */
.ovd-u-mute, .ovd-u-paused { display: none; }
.ovd-phone.is-small .ovd-u-mute { position: absolute; top: 4px; right: 4px; z-index: 7; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: rgba(21,21,27,0.62); color: #fff; pointer-events: none; }
.ovd-phone.is-small .ovd-u-mute .ovd-ic { width: 10px; height: 10px; }
.ovd-phone.is-small .ovd-u-paused { position: absolute; top: 50%; left: 50%; z-index: 7; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(255,255,255,0.92); color: var(--ovd-ink); display: grid; place-items: center; pointer-events: none; }
.ovd-phone.is-small .ovd-u-paused svg { width: 14px; height: 14px; margin-left: 2px; fill: currentColor; }
.ovd-phone.is-small .ovd-u-mute[hidden], .ovd-phone.is-small .ovd-u-paused[hidden] { display: none !important; }

/* At rest the controls and the layer hide (.is-end-card), as today's player does (origami_video_player.scss:243-248). */
.ovd-phone.is-end-card .ovd-body, .ovd-phone.is-end-card .ovd-sound, .ovd-phone.is-end-card .ovd-toggle, .ovd-phone.is-end-card .ovd-play,
.ovd-phone.is-end-card .ovd-slip, .ovd-phone.is-end-card .ovd-ribbon, .ovd-phone.is-end-card .ovd-pill, .ovd-phone.is-end-card .ovd-marks,
.ovd-phone.is-end-card .ovd-kinetic { display: none; }
.ovd-phone.is-end-card:not(.ovd-bare) .ovd-shot { filter: blur(10px); opacity: 0.5 !important; }
.ovd-phone.is-end-card:not(.ovd-bare) .ovd-backdrop { opacity: 0.86; animation: ovd-wipe 420ms cubic-bezier(0.65, 0, 0.35, 1) both; }
/* chrome: false (the Origami unit's cover frame): the unit draws the controls, captions and end tiles itself, and its end
   screen dims the last frame, so the phone's own chrome, caption block and end card are not drawn. */
.ovd-phone.ovd-bare .ovd-sound, .ovd-phone.ovd-bare .ovd-toggle, .ovd-phone.ovd-bare .ovd-play, .ovd-phone.ovd-bare .ovd-u-mute,
.ovd-phone.ovd-bare .ovd-u-paused, .ovd-phone.ovd-bare .ovd-body, .ovd-phone.ovd-bare .ovd-end, .ovd-phone.ovd-bare .ovd-toast { display: none !important; }
@keyframes ovd-wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }

/* ════════════════════════════════════════════════════════════
   The slip (the tab, drawn as V4's slip): right dock under the sound pill, 12 px from the edge
   ════════════════════════════════════════════════════════════ */
.ovd-slip { --peel: 28px; position: absolute; top: max(17.8cqi, calc(3.1cqi + 50px)); right: 12px; z-index: 11; width: 27.8cqi; min-width: 88px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.38)); }
.ovd-slip.is-printed { width: 56cqi; }
.ovd-slip.is-printed.is-wide { width: 66cqi; }
/* Folded, the slip is as wide as its label plus the curl, so "Offer", "More" and "Kept" never run under the flap. */
.ovd-slip:not(.is-printed) { width: max-content; min-width: max(88px, 27.8cqi); max-width: 46cqi; }
.ovd-slip:not(.is-printed) .ovd-slip-paper { padding-right: calc(var(--peel) + 1.4cqi); }
.ovd-slip-paper { position: relative; min-height: max(44px, 12.2cqi); display: flex; align-items: center; padding: 2.1cqi 4.4cqi 2.3cqi 3.2cqi;
  background: linear-gradient(180deg, #ffffff 0%, #f7f5f1 100%); color: var(--ovd-ink); border-radius: 2px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--peel)), calc(100% - var(--peel)) 100%, 0 100%); }
.ovd-slip-out { display: flex; align-items: center; gap: 2cqi; min-width: 0; font-size: max(13px, 3.75cqi); font-weight: 700; line-height: 1; }
.ovd-slip-out .ovd-ic { width: max(18px, 5.3cqi); height: max(18px, 5.3cqi); color: var(--b-primary); }
.ovd-slip.is-printed .ovd-slip-out { display: grid; gap: 0.6cqi; align-items: start; padding-right: 2cqi; }
/* The last printed line keeps clear of the folded corner (28 px at rest) in narrow frames. */
.ovd-slip.is-printed .ovd-slip-out > span:last-child { padding-right: max(0px, calc(30px - 6.4cqi)); }
.ovd-sl-l1 { font-size: max(11px, 3.3cqi); font-weight: 800; line-height: 1.2; }
.ovd-sl-l2 { font-size: max(10.5px, 3.05cqi); font-weight: 500; line-height: 1.25; color: rgba(21, 21, 27, 0.78); }
.ovd-slip-tag { position: absolute; z-index: 2; top: -9px; left: 8px; display: inline-flex; align-items: center; height: 15px; padding: 0 5px; border-radius: 3px; background: var(--b-primary); color: #fff;
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); pointer-events: none; }
/* The stitched edge: the pocket holds something. */
.ovd-slip.is-kept .ovd-slip-paper::after { content: ''; position: absolute; left: 4px; right: calc(var(--peel) + 2px); bottom: 3px; border-bottom: 1.5px dashed rgba(21, 21, 27, 0.38); }
.ovd-slip-flap { position: absolute; right: 0; bottom: 0; width: var(--peel); height: var(--peel); pointer-events: none;
  background: linear-gradient(to bottom right, #ece6db 0%, #d3cabd 50%, transparent 50%); filter: drop-shadow(-1px -1px 1px rgba(0, 0, 0, 0.16));
  transform-origin: 50% 50%; transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 220ms ease; }
@media (hover: hover) { .ovd-slip:hover .ovd-slip-flap { transform: perspective(140px) rotate3d(1, -1, 0, 14deg); filter: drop-shadow(-3px -3px 3px rgba(0, 0, 0, 0.32)); } }
.ovd-slip:has(.ovd-slip-btn:focus-visible) .ovd-slip-flap { transform: perspective(140px) rotate3d(1, -1, 0, 14deg); filter: drop-shadow(-3px -3px 3px rgba(0, 0, 0, 0.32)); }
.ovd-slip.is-dragging .ovd-slip-flap { transition: none; filter: drop-shadow(-4px -4px 5px rgba(0, 0, 0, 0.35)); }
.ovd-slip-btn { position: absolute; inset: 0; z-index: 1; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 2px; -webkit-touch-callout: none; }
.ovd-slip-btn:focus-visible { outline: 2px solid var(--ovd-focus); outline-offset: 2px; }
/* The corner's drag area: 44 × 44, drawn inward so it stays 24 px from the screen edge (§2.1). */
.ovd-slip-corner { position: absolute; right: 12px; bottom: 0; z-index: 2; width: 44px; height: 44px; touch-action: none; cursor: grab; -webkit-touch-callout: none; }
.ovd-slip.is-dragging .ovd-slip-corner { cursor: grabbing; }

/* The ribbon: left dock, only under the reader's own pause (D54). 44 × 60 with a swallowtail foot. */
.ovd-ribbon { position: absolute; left: 3.1cqi; top: max(17.8cqi, calc(3.1cqi + 50px)); z-index: 7; width: 44px; height: 60px; margin: 0; padding: 0; border: 0; background: none; cursor: grab;
  touch-action: none; color: var(--ovd-ink); filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.35)); -webkit-touch-callout: none; }
.ovd-surface-embed .ovd-ribbon { touch-action: pan-y; cursor: pointer; }
.ovd-rb-paper { position: absolute; left: 0; top: 0; width: 100%; height: calc(60px + var(--pull, 0px)); display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding-top: 10px; background: linear-gradient(180deg, #fbfaf7 0%, #efe9df 100%); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 11px), 0 100%);
  font-size: max(10px, 2.8cqi); font-weight: 800; letter-spacing: 0.01em; line-height: 1.05; text-align: center; }
.ovd-rb-paper::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--b-primary); }
.ovd-rb-label { display: block; padding: 0 2px; }
.ovd-rb-paper .ovd-ic { width: 16px; height: 16px; color: var(--b-primary); }
.ovd-ribbon.is-springing .ovd-rb-paper { transition: height 220ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.ovd-ribbon:focus-visible { outline: none; }
.ovd-ribbon:focus-visible .ovd-rb-paper { box-shadow: inset 0 0 0 2px var(--ovd-focus); }

/* "Hear it again" in the pause band (x 100–260, y 420–464 at 360 × 640). */
.ovd-pill { position: absolute; left: 50%; top: 65.6%; z-index: 6; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 1.6cqi; min-height: 44px; margin: 0; padding: 0 4cqi;
  border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: var(--ovd-ink); font-size: max(13px, 3.6cqi); font-weight: 700; cursor: pointer; white-space: nowrap; box-shadow: 0 3px 12px rgba(0,0,0,0.3); }
.ovd-pill .ovd-ic { width: 18px; height: 18px; color: var(--b-primary); }
.ovd-pill.ovd-press:active { transform: translateX(-50%) scale(0.94); }

/* ════════════════════════════════════════════════════════════
   Caption marks (V1, narrowed): underlines and hit boxes over the said words. No motion, in any mode.
   ════════════════════════════════════════════════════════════ */
.ovd-marks { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.ovd-mk-ul { position: absolute; height: 2px; border-radius: 1px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.55); pointer-events: none; }
.ovd-mk-ul.is-kept { background: var(--b-accent); }
.ovd-mk-hit { position: absolute; margin: 0; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; pointer-events: auto;
  -webkit-touch-callout: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ovd-mark-label { position: absolute; z-index: 8; transform: translate(-50%, -100%); padding: 5px 9px; border-radius: 6px; background: rgba(15,15,18,0.9); color: #fff;
  font-size: max(12px, 3.3cqi); font-weight: 600; white-space: nowrap; pointer-events: none; box-shadow: 0 4px 12px rgba(0,0,0,0.35); }

/* ════════════════════════════════════════════════════════════
   The scrim and the sheet: crisp white paper, creased folds (V0 T1.3)
   ════════════════════════════════════════════════════════════ */
.ovd-dim { position: absolute; inset: 0; z-index: 9; background: rgba(0, 0, 0, 0.22); border: 0; padding: 0; margin: 0; cursor: pointer; opacity: 0; transition: opacity 260ms ease; }
.ovd-dim.is-on { opacity: 1; }
.ovd-dim:focus-visible { outline: none; }
.ovd-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; max-height: 78%; display: flex; flex-direction: column;
  background: var(--ovd-paper); color: var(--ovd-ink); border-radius: 4.4cqi 4.4cqi 0 0; cursor: default; font-size: max(13px, 3.6cqi);
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.45), 0 -1px 0 rgba(255, 255, 255, 0.6) inset;
  transform: translateY(104%); transition: transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1); user-select: none; }
.ovd-sheet.is-open { transform: translateY(0); }
.ovd-sheet.is-dragging { transition: none; }
.ovd-sheet::before { content: ''; position: absolute; right: 0; top: 0; width: 7cqi; height: 7cqi; border-top-right-radius: 4.4cqi;
  background: linear-gradient(225deg, rgba(42,42,42,0) 50%, var(--ovd-paper-back) 50%, #d3cabd 100%); box-shadow: -1px 1px 3px rgba(0,0,0,0.12); pointer-events: none; }
.ovd-sheet-head { position: relative; display: flex; align-items: center; gap: 2.5cqi; min-height: 48px; padding: 1.6cqi 7.4cqi 1.6cqi 4.4cqi; border-bottom: 1px solid var(--ovd-crease); flex: none;
  touch-action: none; cursor: grab; }
.ovd-sheet-head::after { content: ''; position: absolute; left: 50%; top: 4px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: rgba(21, 21, 27, 0.16); }
.ovd-sheet-head .ovd-idmark { width: 9cqi; height: 9cqi; min-width: 30px; min-height: 30px; font-size: max(12px, 3.6cqi); box-shadow: none; }
.ovd-sheet-title { flex: 1; min-width: 0; margin: 0; font-size: max(15px, 4.3cqi); font-weight: 800; line-height: 1.15; outline: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ovd-sheet-title small { display: block; font-size: max(11.5px, 3.1cqi); font-weight: 500; color: rgba(21,21,27,0.58); margin-top: 1px; }
.ovd-phone .ovd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 1.8cqi; min-height: 44px; min-width: 44px; padding: 0 4cqi; margin: 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--ovd-ink); font: inherit; font-size: max(13.5px, 3.75cqi); font-weight: 700; line-height: 1.1; cursor: pointer; text-decoration: none;
  box-shadow: inset 0 0 0 1.5px rgba(21, 21, 27, 0.16); }
.ovd-phone .ovd-btn .ovd-ic { width: 18px; height: 18px; }
.ovd-phone .ovd-btn.is-filled { background: var(--b-primary); color: #fff; box-shadow: 0 2px 0 var(--b-dark), 0 3px 8px rgba(0, 0, 0, 0.22); }
.ovd-phone .ovd-btn.is-plain { box-shadow: none; padding: 0 2.6cqi; }
.ovd-phone .ovd-btn[aria-pressed="true"] { background: #fff3d6; box-shadow: inset 0 0 0 1.5px var(--b-accent), inset 0 -2px 0 var(--b-accent); }
.ovd-phone .ovd-btn:focus-visible, .ovd-fold-head:focus-visible, .ovd-leaf-tile:focus-visible, .ovd-linkish:focus-visible, .ovd-pocket-open:focus-visible,
.ovd-chip:focus-visible, .ovd-time:focus-visible, .ovd-keep-fact:focus-visible { outline: 2px solid var(--ovd-focus); outline-offset: 2px; }
.ovd-phone [tabindex="-1"]:focus { outline: none; }

/* The pocket strip under the head (only when the pocket holds something). */
.ovd-pocket-strip { display: flex; align-items: center; gap: 2cqi; min-height: 44px; padding: 0 3cqi 0 4.4cqi; border-bottom: 1px dashed rgba(21,21,27,0.28); background: #fffaf0; flex: none; }
.ovd-pocket-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 1.8cqi; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ovd-ink); font: inherit;
  font-size: max(12.5px, 3.45cqi); font-weight: 700; text-align: left; cursor: pointer; }
.ovd-pocket-open span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ovd-pocket-open .ovd-ic { width: 17px; height: 17px; color: var(--b-primary); }
.ovd-pocket-strip .ovd-btn { min-height: 44px; padding: 0 3cqi; font-size: max(12.5px, 3.4cqi); }

.ovd-folds { position: relative; overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; }
.ovd-fold { border-bottom: 1px solid var(--ovd-crease); box-shadow: 0 1px 0 #fff; position: relative; }
.ovd-fold:last-child { border-bottom: 0; }
.ovd-fold-pocket { border-bottom-style: dashed; }
.ovd-fold-pocket:not(.is-open) { border-bottom: 0; box-shadow: none; }
.ovd-fold-head { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 2.6cqi; width: 100%; min-height: 48px; margin: 0; padding: 0 4.4cqi; border: 0;
  background: transparent; color: var(--ovd-ink); font: inherit; text-align: left; cursor: pointer; }
.ovd-fh-ic { width: 20px !important; height: 20px !important; color: var(--b-primary); }
.ovd-fh-name { font-size: max(14px, 3.9cqi); font-weight: 800; }
.ovd-fh-sum { font-size: max(12.5px, 3.45cqi); color: rgba(21,21,27,0.6); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ovd-fh-chev { width: 16px !important; height: 16px !important; color: rgba(21,21,27,0.5); transition: transform 260ms ease; }
.ovd-fold.is-open .ovd-fh-chev { transform: rotate(90deg); }
.ovd-fold.is-open .ovd-fh-sum { visibility: hidden; }
.ovd-fold-body { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 300ms cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 300ms; perspective: 700px; }
.ovd-fold.is-open .ovd-fold-body { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 300ms cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s; }
.ovd-fold-inner { min-height: 0; overflow: hidden; transform-origin: 50% 0; transform: rotateX(-82deg); opacity: 0.2;
  transition: transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 240ms ease;
  background: linear-gradient(to bottom, rgba(70, 48, 26, 0.08), rgba(70, 48, 26, 0) 16px), var(--ovd-paper-warm); }
.ovd-fold.is-open .ovd-fold-inner { transform: none; opacity: 1; }
.ovd-fold-pad { padding: 3.4cqi 4.4cqi 4.4cqi; display: grid; gap: 2.6cqi; font-size: max(13px, 3.6cqi); line-height: 1.4; min-width: 0; }
.ovd-offer-big { font-size: max(19px, 5.6cqi); font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; }
.ovd-offer-sub { font-size: max(14.5px, 4cqi); font-weight: 600; color: rgba(21,21,27,0.8); }
.ovd-fine { color: rgba(21,21,27,0.64); font-size: max(12px, 3.3cqi); line-height: 1.4; }
.ovd-as-text { font-weight: 600; user-select: text; -webkit-user-select: text; cursor: text; overflow-wrap: anywhere; }
.ovd-btn-row { display: flex; gap: 2.2cqi; flex-wrap: wrap; }
.ovd-btn-row .ovd-btn { flex: 1 1 auto; }
.ovd-btn-row.ovd-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ovd-btn-row.ovd-three .ovd-btn { padding: 0 1.6cqi; }
.ovd-linkish { display: inline-flex; align-items: center; gap: 1.6cqi; min-height: 44px; padding: 0; border: 0; background: none; color: var(--b-primary); font: inherit; font-weight: 700;
  cursor: pointer; justify-self: start; text-decoration: underline; text-underline-offset: 3px; }
.ovd-linkish .ovd-ic { width: 17px; height: 17px; }
.ovd-socials { display: flex; gap: 2cqi; }
.ovd-socials .ovd-btn { width: 44px; padding: 0; flex: none; }
.ovd-send-wide { width: 100%; }
.ovd-h4 { font-size: max(11px, 3cqi); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(21, 21, 27, 0.56); }
.ovd-pocket-item { display: grid; gap: 1.4cqi; padding: 2.4cqi 3cqi; border-radius: 2.4cqi; background: #fff; box-shadow: inset 0 0 0 1px rgba(60, 42, 24, 0.12); }
.ovd-pocket-item .ovd-btn { min-height: 44px; }

/* Said-fact rows (V1): the fact, "Said at 0:14" and its Keep toggle. */
.ovd-fact { display: flex; align-items: center; flex-wrap: wrap; gap: 1.6cqi 2.4cqi; padding: 1.6cqi 2.4cqi; margin: 0 -2.4cqi; border-radius: 2.4cqi; }
.ovd-fact .ovd-as-text { flex: 1 1 auto; min-width: 0; }
.ovd-fact.is-hot { background: #fff3d6; box-shadow: inset 3px 0 0 var(--b-accent); }
.ovd-fact-said { font-size: max(11.5px, 3.1cqi); font-weight: 700; color: rgba(21,21,27,0.6); white-space: nowrap; }
.ovd-keep-fact { display: inline-flex; align-items: center; gap: 1.2cqi; min-height: 44px; min-width: 44px; padding: 0 3cqi; border: 0; border-radius: 999px; background: #fff; color: var(--ovd-ink);
  font: inherit; font-size: max(12px, 3.3cqi); font-weight: 700; cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(21, 21, 27, 0.16); }
.ovd-keep-fact .ovd-ic { width: 15px; height: 15px; color: var(--b-primary); }
.ovd-keep-fact[aria-pressed="true"] { background: #fff3d6; box-shadow: inset 0 0 0 1.5px var(--b-accent); }
.ovd-heard { display: flex; align-items: center; justify-content: space-between; gap: 2cqi; padding: 1.4cqi 1.4cqi 1.4cqi 3cqi; border-radius: 999px; background: #fff3d6;
  font-size: max(12px, 3.3cqi); font-weight: 700; }
.ovd-heard .ovd-btn { min-height: 44px; background: #fff; padding: 0 3.2cqi; }

/* The planner in the Visit fold (V5) */
.ovd-plan { display: grid; gap: 2.8cqi; min-width: 0; grid-auto-rows: max-content; }
.ovd-plan-title { margin: 0; font-size: max(17px, 4.9cqi); font-weight: 800; line-height: 1.15; }
.ovd-plan-area { display: grid; gap: 0.6cqi; }
.ovd-plan-q { font-weight: 700; color: rgba(21, 21, 27, 0.7); }
.ovd-plan-days { display: flex; gap: 1.6cqi; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: -0.6cqi -4.4cqi 0; padding: 0.6cqi 4.4cqi 1cqi; min-height: 54px; }
.ovd-plan-days::-webkit-scrollbar { display: none; }
.ovd-chip { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 48px; height: 48px; padding: 0 3cqi;
  border: 0; border-radius: 3cqi; background: #fff; color: var(--ovd-ink); font: inherit; font-size: max(13px, 3.6cqi); font-weight: 800; line-height: 1; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px rgba(21, 21, 27, 0.15); }
.ovd-chip small { font-size: max(10.5px, 2.9cqi); font-weight: 600; opacity: 0.66; }
.ovd-chip[aria-checked="true"] { background: var(--b-primary); color: #fff; box-shadow: 0 2px 0 var(--b-dark); }
.ovd-plan-day { display: grid; gap: 0.8cqi; }
.ovd-plan-hours { font-size: max(15.5px, 4.4cqi); font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ovd-plan-sub { font-weight: 600; color: rgba(21, 21, 27, 0.78); }
.ovd-plan-offer, .ovd-plan-event { display: grid; gap: 0.8cqi; padding: 2.6cqi 3cqi; border-radius: 2.6cqi; background: #fff; box-shadow: inset 0 0 0 1px rgba(60, 42, 24, 0.12); }
.ovd-plan-line { font-weight: 700; }
.ovd-plan-event .ovd-plan-grid { margin-top: 1cqi; }
.ovd-plan-group { display: grid; gap: 1.8cqi; }
.ovd-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8cqi; }
.ovd-plan-grid .ovd-btn, .ovd-plan-wide { justify-content: flex-start; min-height: 44px; padding: 0 2.8cqi; font-size: max(12.5px, 3.45cqi); line-height: 1.15; text-align: left; border-radius: 3cqi; }
.ovd-plan-grid .ovd-btn .ovd-ic { width: 17px; height: 17px; }
.ovd-plan-grid .ovd-btn .ovd-ic:last-child:not(:first-child) { width: 14px; height: 14px; margin-left: auto; }
.ovd-plan-wide { width: 100%; }
.ovd-plan-times { display: flex; flex-wrap: wrap; gap: 1.6cqi; }
.ovd-time { min-height: 44px; padding: 0 3.4cqi; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--b-accent) 28%, #fff); color: var(--ovd-ink); font: inherit;
  font-size: max(13px, 3.6cqi); font-weight: 700; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--b-accent); }

/* ════════════════════════════════════════════════════════════
   Panels inside the phone: Send (the share sheet, simulated), files as text, Messages
   ════════════════════════════════════════════════════════════ */
.ovd-panel { position: absolute; left: 3cqi; right: 3cqi; bottom: 3cqi; z-index: 15; max-height: calc(100% - 15cqi); display: flex; flex-direction: column; gap: 2.4cqi; padding: 3.6cqi 4cqi 4cqi;
  border-radius: 4cqi; background: var(--ovd-paper); color: var(--ovd-ink); box-shadow: 0 20px 50px rgba(0,0,0,0.55); cursor: default; font-size: max(13px, 3.6cqi);
  opacity: 0; transform: translateY(8%); transition: opacity 220ms ease, transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.ovd-panel.is-open { opacity: 1; transform: none; }
.ovd-panel-file, .ovd-panel-gcal { top: 12cqi; }
.ovd-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 2cqi; flex: none; }
.ovd-panel-head h3 { margin: 0; font-size: max(15px, 4.2cqi); font-weight: 800; outline: none; line-height: 1.2; }
.ovd-panel-body { display: flex; flex-direction: column; gap: 2.4cqi; min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.ovd-share-preview { border-radius: 2.4cqi; background: #f3f1ec; padding: 3cqi; font-size: max(12.5px, 3.45cqi); line-height: 1.45; font-weight: 500; }
.ovd-share-link { color: var(--b-primary); word-break: break-all; font-weight: 700; }
.ovd-share-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqi; }
.ovd-share-actions .ovd-btn { flex-direction: column; gap: 1cqi; min-height: 60px; border-radius: 3cqi; padding: 0 1cqi; font-size: max(12px, 3.3cqi); }
.ovd-panel-status { min-height: 1.2em; font-size: max(12.5px, 3.45cqi); font-weight: 800; color: #1d6b3a; }
.ovd-file-name { font: 600 max(11.5px, 3.1cqi)/1.3 var(--ovd-mono); color: rgba(21,21,27,0.7); overflow-wrap: anywhere; }
.ovd-file-text { flex: 1; min-height: 60px; overflow: auto; margin: 0; padding: 3cqi; border-radius: 2.4cqi; background: #f3f1ec; color: #1d1d22;
  font: 500 max(10.5px, 2.85cqi)/1.45 var(--ovd-mono); white-space: pre-wrap; word-break: break-all; user-select: text; -webkit-user-select: text; cursor: text; }
.ovd-file-plain { font-family: inherit; font-size: max(12px, 3.3cqi); }
.ovd-msg { display: grid; gap: 2cqi; padding: 3cqi; border-radius: 3cqi; background: #f2f2f7; }
.ovd-msg-to { font-size: max(12px, 3.3cqi); color: rgba(21,21,27,0.6); padding-bottom: 1.6cqi; border-bottom: 1px solid rgba(21,21,27,0.12); }
.ovd-msg-to span { font-weight: 700; color: var(--ovd-ink); }
.ovd-msg-bubble { justify-self: end; max-width: 92%; padding: 2.4cqi 3.2cqi; border-radius: 4cqi 4cqi 1cqi 4cqi; background: #fff; color: var(--ovd-ink); font-size: max(12.5px, 3.45cqi); line-height: 1.4;
  box-shadow: inset 0 0 0 1.5px rgba(21,21,27,0.14); font-weight: 500; }

/* ════════════════════════════════════════════════════════════
   The print stack (T1.5 as V4's prints)
   ════════════════════════════════════════════════════════════ */
.ovd-prints { position: absolute; inset: 0; z-index: 13; display: flex; flex-direction: column; background: #0b0806; cursor: default; opacity: 0; transition: opacity 220ms ease; touch-action: pan-y; }
.ovd-prints.is-open { opacity: 1; }
.ovd-viewer-blur { position: absolute; inset: -10%; filter: blur(18px) brightness(0.42) saturate(1.1); }
.ovd-viewer-blur svg, .ovd-viewer-blur img { width: 100%; height: 100%; display: block; }
.ovd-viewer-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2cqi; padding: 3cqi 3cqi 0; }
.ovd-viewer-back { display: inline-flex; align-items: center; gap: 1.4cqi; min-height: 44px; padding: 0 3.6cqi 0 2.6cqi; border: 0; border-radius: 999px; background: rgba(255,255,255,0.94);
  color: var(--ovd-ink); font: inherit; font-size: max(13px, 3.6cqi); font-weight: 700; cursor: pointer; }
.ovd-viewer-back .ovd-ic { width: 18px; height: 18px; }
.ovd-viewer-back:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ovd-viewer-cap { position: relative; margin: 2cqi 0 0 !important; padding: 0 4cqi; text-align: center; font-size: max(12.5px, 3.45cqi); font-weight: 600; color: rgba(255,255,255,0.88); outline: none; }
.ovd-prints-stack { position: relative; flex: 1; min-height: 0; }
.ovd-print { position: absolute; left: 50%; top: 50%; width: 76%; margin: 0; padding: 2.2cqi 2.2cqi 7cqi; background: #fbfaf7; border-radius: 1px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55); transform-origin: 50% 80%; touch-action: pan-y; }
.ovd-print svg { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; background: #1a1a1a; }
/* A real photo is portrait (2:3), shown whole: the print is narrower and taller so the photo keeps its shape. */
.ovd-print:has(img.ovd-pic) { width: 58%; }
.ovd-print img.ovd-pic { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; background: #1a1a1a; }
.ovd-print figcaption { position: absolute; left: 3cqi; right: 3cqi; bottom: 1.6cqi; font-size: max(11px, 3cqi); color: rgba(21, 21, 27, 0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ovd-print.is-top { cursor: grab; }
.ovd-print.is-top:active { cursor: grabbing; }
.ovd-viewer-nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2cqi; padding: 0 3cqi; }
.ovd-round { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.16); color: #fff; cursor: pointer; padding: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22); }
.ovd-round .ovd-ic { width: 20px; height: 20px; }
.ovd-round:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ovd-dots { display: flex; gap: 1.8cqi; }
.ovd-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.35); transition: background 200ms ease, transform 200ms ease; }
.ovd-dots i.is-on { background: #fff; transform: scale(1.25); }
.ovd-viewer-foot { position: relative; padding: 3cqi 4cqi 5cqi; display: grid; }
.ovd-viewer-foot .ovd-btn { background: var(--b-accent); color: var(--b-ink-accent); box-shadow: 0 2px 0 rgba(0,0,0,0.28); }
.ovd-viewer-foot .ovd-btn:focus-visible { outline-color: #fff; }

/* The counter card (T2.5): plain white, large type, fills the player. */
.ovd-counter { position: absolute; inset: 0; z-index: 14; display: flex; flex-direction: column; justify-content: center; gap: 4cqi; padding: 8cqi 7cqi; background: #fff; color: #111;
  cursor: default; opacity: 0; transition: opacity 220ms ease; user-select: text; -webkit-user-select: text; }
.ovd-counter.is-open { opacity: 1; }
.ovd-counter-name { margin: 0; font-size: max(15px, 4.4cqi); font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: #444; outline: none; }
.ovd-counter-l1 { font-size: 28px; font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; }
.ovd-counter-l2 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.ovd-counter-seen { font-size: 15px; color: #444; border-top: 2px solid #111; padding-top: 3cqi; }
.ovd-phone .ovd-counter-done { align-self: stretch; background: #111; color: #fff; box-shadow: none; min-height: 52px; font-size: 16px; }
.ovd-surface-widget .ovd-counter-l1 { font-size: 9cqi; } .ovd-surface-widget .ovd-counter-l2 { font-size: 6cqi; }

/* ════════════════════════════════════════════════════════════
   The end card, its leaf, the pocket row, the bottom row (T1.7 with V4's paper)
   ════════════════════════════════════════════════════════════ */
.ovd-end { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.6cqi; padding: 4cqi 0; cursor: default; transform-origin: 50% 45%; }
.ovd-end-stack { position: relative; width: min(calc(100% - 10cqi), 90cqi); perspective: 900px; display: flex; flex-direction: column; flex-shrink: 0; }
.ovd-end-card { position: relative; overflow: hidden; padding: 0 5.1cqi 4.2cqi; border-radius: 4.5cqi; background: #fff; color: var(--ovd-ink); text-align: center;
  box-shadow: 0 18px 50px rgba(0,0,0,0.5); animation: ovd-fade-in 0.4s ease-out both; transform-origin: 50% 50%; touch-action: pan-y; }
.ovd-end-card.is-turnable { cursor: grab; }
.ovd-phone.has-leaf .ovd-end-card { border-radius: 4.5cqi 4.5cqi 0 0; }
.ovd-end-hero { height: 28cqi; margin: 0 -5.1cqi; background: #e9e6e1; overflow: hidden; }
.ovd-phone.has-pocket-row .ovd-end-hero { height: 22cqi; }
.ovd-end-hero svg, .ovd-end-hero img { width: 100%; height: 100%; display: block; }
.ovd-end-identity { display: flex; flex-direction: column; align-items: center; gap: 1.2cqi; margin: -7.2cqi auto 1cqi; position: relative; }
.ovd-end-logo { display: grid; place-items: center; width: 14.4cqi; height: 14.4cqi; border-radius: 3.5cqi; background: linear-gradient(150deg, var(--b-primary-2), var(--b-dark));
  box-shadow: 0 0 0 3px #fff, 0 4px 14px rgba(0,0,0,0.22); color: var(--b-accent); font-size: 5.6cqi; font-weight: 700; animation: ovd-logo 480ms cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both; }
@keyframes ovd-logo { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ovd-end-name { font-size: 4.36cqi; font-weight: 700; line-height: 1.2; }
.ovd-end-kicker { margin-top: 0.4cqi !important; color: rgba(21,21,27,0.58); font-size: max(11px, 3.1cqi); font-weight: 600; }
.ovd-end-headline { margin-top: 2cqi !important; font-size: 5.2cqi; font-weight: 800; line-height: 1.15; }
.ovd-end-subline { margin-top: 1cqi !important; color: rgba(21,21,27,0.72); font-size: max(12px, 3.6cqi); font-weight: 500; line-height: 1.3; }
.ovd-end-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 2cqi; margin-top: 2.8cqi; }
.ovd-end-ctas .ovd-btn { padding: 0 4.4cqi; font-size: max(13px, 3.6cqi); min-height: 44px; }
.ovd-card-front[hidden], .ovd-card-print[hidden] { display: none !important; }
.ovd-leaf { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2cqi; padding: 3cqi 3cqi 3.2cqi; border-radius: 0 0 4.5cqi 4.5cqi;
  background: linear-gradient(to bottom, rgba(60, 42, 24, 0.13), rgba(60, 42, 24, 0) 5cqi), var(--ovd-paper-warm); box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  transform-origin: 50% 0; transform: rotateX(-90deg); opacity: 0; }
.ovd-leaf::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(60, 42, 24, 0.22); }
.ovd-leaf.is-unfolding { animation: ovd-leaf 320ms cubic-bezier(0.25, 0.8, 0.3, 1) 420ms both; }
.ovd-leaf.is-open { transform: none; opacity: 1; }
@keyframes ovd-leaf { 0% { transform: rotateX(-90deg); opacity: 1; } 100% { transform: rotateX(0); opacity: 1; } }
.ovd-leaf.is-n3 .ovd-leaf-tile:last-child { grid-column: span 2; }
.ovd-leaf-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 1.6cqi; align-items: center; min-height: 48px; padding: 1.4cqi 2cqi; min-width: 0;
  border: 0; border-radius: 2.6cqi; background: #fff; color: var(--ovd-ink); text-align: left; cursor: pointer; font: inherit;
  box-shadow: 0 1px 0 rgba(60,42,24,0.12), 0 0 0 1px rgba(60,42,24,0.08); }
.ovd-leaf-tile .ovd-ic { grid-row: span 2; width: 20px; height: 20px; color: var(--b-primary); }
.ovd-leaf-tile b { font-size: max(13px, 3.6cqi); line-height: 1.15; }
.ovd-leaf-tile span { font-size: max(10.5px, 2.9cqi); color: rgba(21,21,27,0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ovd-leaf-tile.is-kept { background: #fff8e8; box-shadow: 0 1px 0 rgba(60,42,24,0.12), 0 0 0 1px rgba(60,42,24,0.08), inset 0 -2px 0 var(--b-accent); }
.ovd-pocket-row { display: flex; align-items: center; gap: 2cqi; width: min(calc(100% - 10cqi), 90cqi); min-height: 52px; padding: 0 1.4cqi 0 3.4cqi; border-radius: 3cqi;
  background: rgba(255, 250, 240, 0.97); color: var(--ovd-ink); box-shadow: inset 0 0 0 1.5px rgba(21,21,27,0.28); border: 0; outline: 1.5px dashed rgba(21,21,27,0.35); outline-offset: -5px;
  animation: ovd-fade-in 0.4s ease-out 0.3s both; }
.ovd-pocket-row .ovd-btn { min-height: 44px; padding: 0 3cqi; font-size: max(12.5px, 3.4cqi); background: #fff; }
.ovd-end-row { display: flex; gap: 2cqi; align-items: center; justify-content: center; flex-wrap: wrap; animation: ovd-fade-in 0.4s ease-out 0.2s both; }
.ovd-replay { display: inline-flex; align-items: center; gap: 1.6cqi; min-height: 44px; margin: 0; padding: 0 4cqi; border: 0; border-radius: 999px; background: rgba(0,0,0,0.45); color: #fff;
  font: inherit; font-size: max(13px, 3.6cqi); font-weight: 700; cursor: pointer; }
.ovd-replay .ovd-ic { width: max(18px, 5cqi); height: max(18px, 5cqi); }

/* See it in print: the card's other side (T2.1 as V4's turn). */
.ovd-card-print { padding: 4cqi 0 0; display: grid; gap: 2.6cqi; }
.ovd-newsprint { position: relative; padding: 3.4cqi; border: 2px solid #1b1814; outline: 1px solid #1b1814; outline-offset: 2px; margin: 1cqi;
  background-color: #efede6; background-image: radial-gradient(rgba(27,24,20,0.12) 0.6px, transparent 0.7px); background-size: 4px 4px;
  color: #1b1814; font-family: var(--ovd-print); text-align: center; display: grid; gap: 1.4cqi; }
.ovd-np-name { font-size: max(14px, 4.6cqi); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; }
.ovd-np-rule { height: 0; border-top: 1px solid #1b1814; border-bottom: 1px solid #1b1814; padding-top: 2px; }
.ovd-np-art { height: 13cqi; display: grid; place-items: center; }
.ovd-np-art svg { height: 100%; width: auto; }
.ovd-np-big { font-size: max(22px, 8cqi); font-weight: 700; line-height: 0.95; letter-spacing: 0.01em; }
.ovd-np-sub { font-size: max(13px, 3.8cqi); font-style: italic; }
.ovd-np-small { font-size: max(10.5px, 3cqi); letter-spacing: 0.04em; text-transform: uppercase; }
.ovd-print-cap { font-size: max(11.5px, 3.1cqi); color: rgba(21,21,27,0.6); text-align: center; outline: none; }
.ovd-print-btns { display: flex; gap: 2cqi; justify-content: center; flex-wrap: wrap; }

/* The unit's frame at rest (surface 'widget'): hero, mark, name, headline and Watch again only (ui=unit). */
.ovd-end-unit { gap: 5cqi; background: color-mix(in srgb, var(--b-primary) 86%, transparent); animation: ovd-fade-in 0.4s ease both; }
.ovd-u-end-card { width: 86%; padding: 0 0 7cqi; border-radius: 6cqi; overflow: hidden; background: #fff; color: var(--ovd-ink); text-align: center; box-shadow: 0 8px 20px rgba(0,0,0,0.4); }
.ovd-u-end-card .ovd-end-hero { height: 38cqi; margin: 0; }
.ovd-u-end-card .ovd-end-logo { width: 18cqi; height: 18cqi; font-size: 8cqi; border-radius: 4.5cqi; margin: -9cqi auto 2cqi; box-shadow: 0 0 0 2px #fff; }
.ovd-u-end-name { font-size: 7.4cqi; font-weight: 700; line-height: 1.15; padding: 0 5cqi; }
.ovd-u-end-head { margin-top: 2.5cqi !important; font-size: 7.8cqi; font-weight: 800; line-height: 1.12; padding: 0 5cqi; }
.ovd-u-end-replay { display: inline-flex; align-items: center; gap: 3cqi; min-height: max(24px, 12cqi); padding: 0 5cqi; border: 0; border-radius: 999px; background: rgba(0,0,0,0.45); color: #fff;
  font-size: max(10.5px, 4.4cqi); font-weight: 700; cursor: pointer; }
.ovd-u-end-replay .ovd-ic { width: 1.2em; height: 1.2em; }
.ovd-surface-widget:not(.is-small) .ovd-u-end-replay { min-height: 44px; }

/* The toast: what an outward action would do. */
.ovd-toast { position: absolute; left: 50%; bottom: 4cqi; z-index: 20; width: max-content; max-width: calc(100% - 8cqi); padding: 2.4cqi 3.6cqi; border-radius: 2.8cqi;
  background: rgba(15, 15, 18, 0.92); color: #fff; font-size: max(12.5px, 3.45cqi); font-weight: 600; line-height: 1.35; text-align: center;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: opacity 200ms ease, transform 240ms ease; box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.ovd-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ovd-phone.is-small .ovd-toast { font-size: 9px; padding: 4px 6px; bottom: 6px; }

/* ════════════════════════════════════════════════════════════
   Reduced motion (§5.4): every peel, crease, tilt, tent, deal, turn and fold becomes a short fade.
   phone.js sets .ovd-rm from OVD.util.motion() (the page's data-ovd-motion, else prefers-reduced-motion).
   ════════════════════════════════════════════════════════════ */
.ovd-phone.ovd-rm .ovd-press, .ovd-phone.ovd-rm .ovd-press:active { transform: none !important; transition: filter 120ms ease; }
.ovd-phone.ovd-rm .ovd-pill.ovd-press, .ovd-phone.ovd-rm .ovd-pill.ovd-press:active { transform: translateX(-50%) !important; }
.ovd-phone.ovd-rm .ovd-pulse, .ovd-phone.ovd-rm .ovd-end-logo, .ovd-phone.ovd-rm.is-end-card .ovd-backdrop { animation: none; }
.ovd-phone.ovd-rm.is-held .ovd-picture { transform: none; border-radius: 0; }
.ovd-phone.ovd-rm .ovd-picture { transition: filter 150ms ease; }
.ovd-phone.ovd-rm .ovd-fold-inner { transform: none; transition: opacity 150ms ease; }
.ovd-phone.ovd-rm .ovd-fold-body, .ovd-phone.ovd-rm .ovd-fold.is-open .ovd-fold-body { transition: none; }
.ovd-phone.ovd-rm .ovd-fh-chev { transition: none; }
.ovd-phone.ovd-rm .ovd-sheet { transition: opacity 150ms ease; transform: none; opacity: 0; }
.ovd-phone.ovd-rm .ovd-sheet.is-open { opacity: 1; }
.ovd-phone.ovd-rm .ovd-panel { transform: none; transition: opacity 140ms ease; }
.ovd-phone.ovd-rm .ovd-leaf { transform: none; }
.ovd-phone.ovd-rm .ovd-leaf.is-unfolding { animation: ovd-fade-in 150ms ease 200ms both; }
.ovd-phone.ovd-rm .ovd-slip-flap { transition: filter 150ms ease; transform: none !important; }
.ovd-phone.ovd-rm .ovd-ribbon.is-springing .ovd-rb-paper { transition: none; }
.ovd-phone.ovd-rm .ovd-prints, .ovd-phone.ovd-rm .ovd-counter { transition: opacity 140ms ease; }
.ovd-phone.ovd-rm .ovd-dots i { transition: none; }
.ovd-phone.ovd-rm .ovd-toast { transition: opacity 150ms ease; transform: translate(-50%, 0); }
.ovd-phone.ovd-rm .ovd-end-card, .ovd-phone.ovd-rm .ovd-end-row, .ovd-phone.ovd-rm .ovd-pocket-row { animation-duration: 150ms; }

/* The 320 px embed and narrower phones keep 44 px targets; a 300 px or smaller frame tightens the type a little. */
@container (max-width: 300px) {
  .ovd-btn-row.ovd-three { grid-template-columns: 1fr 1fr; }
  .ovd-btn-row.ovd-three .ovd-btn:first-child { grid-column: span 2; }
}

/* Photos (data.js pictureSVG): never let the page's own img rules resize them. */
img.ovd-pic { max-width: none; user-select: none; -webkit-user-drag: none; }
