/* support: manual-kit — the look shared by the tutorial presets. Tokens only (piece.css semantic vars over the
   resolver's --brand-color-*), shade + elevation instead of borders, no glow, no gradient, no blur.
   © Dudoxx UG / Acceleate Consulting - Walid Boudabbous <walid@acceleate.com> */

/* ---- screen frame: one real capture inside a quiet browser shell ---------------------------------------- */
.mk-frame { position: relative; flex: 0 0 auto; border-radius: 1.1cqw; background: var(--card); box-shadow: var(--lift); overflow: hidden; }
/* v6 laptop (owner 2026-10-29): dark bezel lid in 3D + porcelain base deck; replaces the macOS window chrome.
   Owner override for this device only: one faint glass reflection gradient on the lid. No borders: shade + shadow. */
.mk-frame.mk-laptop { overflow: visible; background: none; box-shadow: none; border-radius: 0; perspective: 75cqw; perspective-origin: 50% 35%; }
.mk-device { position: relative; transform-style: preserve-3d; }
.mk-lid { position: relative; padding: 0.8cqw 0.8cqw 1.3cqw; border-radius: 1.3cqw 1.3cqw 0.45cqw 0.45cqw;
  transform-origin: 50% 100%; transform: rotateX(3deg);
  /* v6.1 (owner 2026-10-31, iPhone: blank screen + flicker on every chapter): FLAT, never preserve-3d. In a 3D
     context iOS Safari depth-sorts the co-planar view / glass / camera dot (z-fight flicker) and keeps the capture
     as an untiled 3D layer that it drops when GPU memory runs short (blank screen). Flat = one plane, one layer. */
  transform-style: flat;
  background: color-mix(in oklch, var(--brand-color-dark-bg, #0b1020) 88%, black);
  box-shadow: 0 0 0 0.12cqw color-mix(in oklch, var(--brand-color-dark-fg, #f3f5fa) 14%, transparent) inset,
    0 0.4cqw 0.8cqw color-mix(in oklch, var(--brand-color-fg, #121a2b) 18%, transparent),
    0 2.2cqw 4.4cqw color-mix(in oklch, var(--brand-color-fg, #121a2b) 22%, transparent); }
.mk-lid > .mk-view { border-radius: 0.35cqw; }
.mk-cam { position: absolute; left: 50%; top: 0.28cqw; width: 0.3cqw; aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  background: color-mix(in oklch, var(--brand-color-dark-fg, #f3f5fa) 22%, var(--brand-color-dark-bg, #0b1020));
  box-shadow: 0 0 0 0.08cqw color-mix(in oklch, var(--accent) 35%, transparent); }
.mk-glass { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: linear-gradient(118deg, color-mix(in oklch, white 9%, transparent) 0%, color-mix(in oklch, white 3%, transparent) 34%, transparent 35%); }
.mk-base { position: relative; display: block; height: 1.2cqw; margin: -0.05cqw -4.5% 0; border-radius: 0.2cqw 0.2cqw 1.6cqw 1.6cqw / 0.2cqw 0.2cqw 1cqw 1cqw;
  background: linear-gradient(180deg, var(--brand-color-bg, #f9fafd) 0%, color-mix(in oklch, var(--brand-color-bg, #f9fafd) 82%, var(--brand-color-fg, #121a2b)) 100%);
  box-shadow: 0 0.6cqw 1.4cqw color-mix(in oklch, var(--brand-color-fg, #121a2b) 22%, transparent),
    0 1.8cqw 3.6cqw -0.6cqw color-mix(in oklch, var(--brand-color-fg, #121a2b) 26%, transparent); }
.mk-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 14%; height: 0.45cqw; translate: -50% 0; border-radius: 0 0 0.6cqw 0.6cqw;
  background: color-mix(in oklch, var(--brand-color-bg, #f9fafd) 70%, var(--brand-color-fg, #121a2b)); }
.mk-view { position: relative; overflow: hidden; background: var(--recess); }
/* v6.1: no will-change here — a forced layer under the 3D lid is the iOS blank-screen case (see .mk-lid) */
.mk-pan { position: absolute; inset: 0; transform-origin: 0 0; }
.mk-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; user-select: none; }
.mk-layer { position: absolute; inset: 0; }

/* ---- hotspot ring + numbered pin (image-% placed) --------------------------------------------------------- */
.mk-spot { position: absolute; border-radius: 0.6cqw; opacity: 0; pointer-events: none;
  box-shadow: 0 0 0 0.22cqw var(--accent), 0 0 0 0.8cqw color-mix(in oklch, var(--accent) 18%, transparent); transition: none; }
.mk-spot.is-past { box-shadow: 0 0 0 0.16cqw color-mix(in oklch, var(--accent) 55%, transparent); }
.mk-pin { position: absolute; display: grid; place-items: center; width: 2.4cqw; aspect-ratio: 1; translate: -95% -95%; /* outside the ring's corner: never covers the control it names */ border-radius: 50%;
  background: var(--accent); color: var(--brand-color-primary-foreground); box-shadow: var(--lift);
  font-family: var(--face-head); font-weight: 700; font-size: var(--fs-label); line-height: 1; opacity: 0; }

/* ---- note list (ui-tour callouts, step-rail steps) -------------------------------------------------------- */
.mk-notes { display: grid; gap: 0.9cqw; margin: 1.6cqw 0 0; padding: 0; list-style: none; counter-reset: mk; }
.mk-note { position: relative; display: grid; grid-template-columns: 2.4cqw 1fr; gap: 0.2cqw 1cqw; align-items: start;
  padding: 0.8cqw 1cqw; border-radius: 0.8cqw; background: transparent; color: var(--muted); }
.mk-note > .mk-num { grid-row: span 2; display: grid; place-items: center; width: 2.4cqw; aspect-ratio: 1; border-radius: 50%;
  background: var(--recess); color: var(--ink); font-family: var(--face-head); font-weight: 700; font-size: var(--fs-label); }
.mk-note > b { font-family: var(--face-head); font-size: var(--fs-label); font-weight: 650; color: var(--ink); line-height: 1.2; }
.mk-note > span { font-size: var(--fs-label); line-height: 1.3; }
.mk-notes.is-dense { gap: 0.4cqw; }
.mk-notes.is-dense .mk-note { padding-block: 0.5cqw; }
.mk-notes.is-dense .mk-note > span { display: none; }
.mk-notes.is-dense .mk-note.is-on > span { display: block; }
.mk-note.is-on { background: color-mix(in oklch, var(--accent) 10%, var(--card)); box-shadow: var(--lift); color: var(--ink); }
.mk-note.is-on > .mk-num, .mk-note.is-done > .mk-num { background: var(--accent); color: var(--brand-color-primary-foreground); }

/* ---- label chip riding a cursor stop ---------------------------------------------------------------------- */
.mk-chip { position: absolute; translate: 0.9cqw -130%; padding: 0.35cqw 0.9cqw; border-radius: 0.6cqw; white-space: nowrap;
  background: var(--ink); color: var(--card); font-family: var(--face-head); font-size: var(--fs-label); font-weight: 600; opacity: 0; }
.mk-chip.is-left { translate: calc(-100% - 0.9cqw) -130%; }
.mk-anchor { position: absolute; width: 0; height: 0; }
.mk-type { position: absolute; translate: 0 -50%; padding: 0.25cqw 0.6cqw; border-radius: 0.4cqw; background: var(--card);
  box-shadow: 0 0 0 0.18cqw var(--accent); color: var(--ink); font-size: var(--fs-label); white-space: nowrap; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .mk-spot, .mk-pin, .mk-chip { opacity: 1; }
}

/* v5.1 virtual cursor + click ripple (inside the capture layer; counter-scaled against the follow-zoom) */
.mk-cursor { position: absolute; width: 1.9cqw; aspect-ratio: 1; transform-origin: 0 0; opacity: 0; z-index: 6; pointer-events: none; }
.mk-cursor svg { width: 100%; height: 100%; display: block; }
.mk-cursor path { fill: var(--ink); stroke: var(--card); stroke-width: 1.6; stroke-linejoin: round; }
.mk-click { position: absolute; width: 3.4cqw; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; z-index: 5; pointer-events: none;
  box-shadow: 0 0 0 0.25cqw var(--accent); opacity: var(--k, 0); transform: scale(calc(var(--z, 1) * (1.6 - var(--k, 0) * 0.9))); }
