/* /privacy's own look (play/privacy.js plays it). Prefix pv-. The toys come from the play kit (play/play.css), the
   legal cards, Mika's take and the tie from play/legal.css; tokens, type, buttons, header and footer from /site.css.
   Three trust toys, no board, no points: the mic light, the chat memory, the hands-off dock. Then the full policy,
   every word of it, in soft cards: what is here is only the pieces privacy's text has and terms' doesn't (clause
   rows, the does/doesn't pair, the two tables, a list).

   Without script (and under reduced motion) every toy shows how it ends: the clean line typed and the take deleted,
   the reply written and 3 lines kept on the phone, the password box skipped. With script, those end states ([data-end])
   stay hidden until privacy.js has reset them (the kit's .ready), so nothing flashes on a slow phone. */

/* ---------- the beats: one or two plain lines under each toy, each with a dot in Mika's colour ---------- */
.pv-caps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; justify-items: center; text-align: center; }
.pv-caps li { max-width: 30em; font-size: 16px; line-height: 1.45; color: var(--ink-2); text-wrap: balance; }
.pv-caps li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 10px 0 0; border-radius: 50%; background: var(--mika); vertical-align: .08em; }

/* the clean line, lit, as the page's HTML holds it (script swaps in the kit's lit words) */
html:not(.pl-js) .pv-clean { color: var(--mika); }
html[data-mika="cloud"]:not(.pl-js) .pv-clean { padding: 1px 6px; margin: 0 -6px; border-radius: 7px; background: var(--mika); color: #0a0a0a; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
html:not(.pl-js) .pv .pl-tag .pl-mk:empty { display: none; }   /* no script, no Mika drawn: no gap before its name */
/* what you said, as heard: grey, filler and all */
.pv-voice .pl-field .pl-fw { color: var(--ink-3); }
/* let go early: the rest of the line was never heard, so it fades on the button */
.pv-voice .pl-say .w.pv-cut { color: rgba(10, 10, 10, .28); }

/* ---------- 01: the mic light, and the take's trip ---------- */
.pv-mic { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--surface-3); font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; transition: background .2s, color .2s; }
.pv-mic i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pv-mic b { font-weight: 500; }
.pv-mic .on, .pv-mic.on .off { display: none; }
.pv-mic.on .on { display: inline; }
.pv-mic.on { background: color-mix(in srgb, var(--mika) 20%, var(--surface-3)); color: var(--mika); }
.pv-mic.on i { animation: pv-rec 1.1s ease-in-out infinite; }
@keyframes pv-rec { 50% { opacity: .35; } }

.pv-trip { display: grid; grid-template-columns: auto minmax(24px, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--pl-r); background: var(--surface-2); }
.pv-at { display: grid; justify-items: center; gap: 7px; }
.pv-where { font: 400 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
/* the take: empty until you talk, cream while it records, then a dashed ghost: deleted.
   02's chat lines (.pv-lines) are the same little slab: cream while they're sent to write the reply */
.pv-take, .pv-lines { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border-radius: 12px; background: var(--surface-3); color: var(--ink-3); font: 500 12px/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; transition: background .25s, color .25s; }
.pv-take.rec, .pv-take.has, .pv-lines.on { background: var(--cream); color: var(--cream-ink); }
.pv-tbars { display: flex; align-items: center; gap: 2px; height: 16px; }
.pv-tbars i { width: 3px; height: 16px; border-radius: 2px; background: currentColor; transform: scaleY(.22); transition: transform .3s var(--ease-spring); }
.pv-take.has .pv-tbars i:nth-child(1), .pv-take.gone .pv-tbars i:nth-child(1) { transform: scaleY(.5); }
.pv-take.has .pv-tbars i:nth-child(2), .pv-take.gone .pv-tbars i:nth-child(2) { transform: scaleY(.95); }
.pv-take.has .pv-tbars i:nth-child(3), .pv-take.gone .pv-tbars i:nth-child(3) { transform: scaleY(.7); }
.pv-take.has .pv-tbars i:nth-child(4), .pv-take.gone .pv-tbars i:nth-child(4) { transform: scaleY(.4); }
.pv-take.rec .pv-tbars i { animation: pv-bar .42s ease-in-out infinite alternate; }
.pv-take.rec .pv-tbars i:nth-child(2) { animation-delay: -.12s; }
.pv-take.rec .pv-tbars i:nth-child(3) { animation-delay: -.27s; }
.pv-take.rec .pv-tbars i:nth-child(4) { animation-delay: -.05s; }
@keyframes pv-bar { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
.pv-del { position: absolute; inset: 0; display: grid; place-items: center; font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); opacity: 0; }
.pv-take.gone { background: transparent; color: var(--ink-3); outline: 1.5px dashed #4a4d52; outline-offset: -1.5px; }
.pv-take.gone .pv-tbars, .pv-take.gone .pv-tlen { visibility: hidden; }
.pv-take.gone .pv-del { opacity: 1; }
/* the stream: dots marching from your phone to speech-to-text while you talk */
.pv-stream { height: 4px; background: radial-gradient(circle, #45484d 1.5px, transparent 2px) 0 50% / 10px 4px repeat-x; }
.pv-trip.on .pv-stream { background-image: radial-gradient(circle, var(--cream) 1.6px, transparent 2.1px); animation: pv-flow .5s linear infinite; }
@keyframes pv-flow { to { background-position: 10px 50%; } }
.pv-stt { height: 28px; padding: 0 10px; border-radius: 999px; background: var(--surface-3); font: 500 10px/28px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; transition: color .2s; }
.pv-trip.on .pv-stt { color: var(--ink); }

/* ---------- 02: the chat, its trip, the memory and the switch ---------- */
/* the switch is off: nothing is read or sent, so the trip goes quiet */
.pv-ctrip { transition: opacity .3s var(--pl-soft); }
.pv-chat.off .pv-ctrip { opacity: .42; }
.pv-chat .pl-them { transform-origin: 0 100%; transition: background .3s, transform .45s var(--ease-spring); }
.pv-chat .pl-them.read { background: color-mix(in srgb, var(--mika) 24%, var(--surface-3)); transform: scale(1.035); }
.pv-chat .pl-top { flex-wrap: wrap; }
.pv-chat .pl-time { white-space: nowrap; }
.pv-mem { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pv-slot { display: grid; align-content: space-between; gap: 10px; min-height: 86px; padding: 12px 14px 13px; border-radius: 16px; background: var(--surface-2); transition: background .45s var(--pl-soft); }
.pv-slot-k { display: flex; align-items: flex-start; gap: 6px; font: 400 10.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pv-slot-k svg { flex: none; width: 12px; height: 12px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: color .3s; }
.pv-count { display: block; font-size: 20px; font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pv-server .pv-count { color: var(--ink-2); }
.pv-count.cleared { font: 500 11.5px/1.75 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.pv-phone.has, html:not(.pl-js) .pv-phone { background: color-mix(in srgb, var(--mika) 11%, var(--surface-2)); }
.pv-phone.has .pv-slot-k svg, html:not(.pl-js) .pv-phone .pv-slot-k svg { color: var(--mika); }
/* the switch: the app's own row, Reads the chat (on Home or under You) */
.pv-sw { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--pl-r); background: var(--surface-2); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pv-sw-t { flex: 1; min-width: 0; display: grid; gap: 5px; }
.pv-sw-name { font-size: 16px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.pv-sw-line { font: 400 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pv-sw-line.off { font: 400 14px/1.4 var(--font); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
/* Mika says something, beside its name */
.pv-q { margin-left: auto; }

/* ---------- 03: hands off: the password box, the message, and Mika in its dock ---------- */
.pv-pass .pl-field { letter-spacing: .16em; color: var(--ink-2); }
.pv-pass { transition: background .3s var(--pl-soft); }
.pv-pass.near { background: color-mix(in srgb, var(--mika) 9%, var(--surface-2)); }
.pv-lock { position: absolute; right: 12px; bottom: 12px; width: 32px; height: 32px; display: grid; place-items: center; color: var(--ink-3); }
.pv-lock svg, .pv-send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* Send is yours: a real button, cream when there's something to send, never in Mika's colour */
button.pv-send { padding: 0; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button.pv-send:active { scale: .92; }
button.pv-send[aria-disabled="true"]:active { scale: 1; }
button.pv-send:focus-visible, .pv-knob:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(255, 255, 255, .55); }
.pv-msg:not(:has(.pl-field.has)) .pv-send, button.pv-send[aria-disabled="true"] { cursor: default; }
.pv-msg.flinch .pv-send { animation: pv-flinch .4s var(--pl-soft); }
@keyframes pv-flinch { 40% { scale: .86; } }
.pv-sent { display: flex; flex-direction: column; }
.pv-sent:empty { display: none; }
/* the dock: Mika sits on the left; drag it up onto the boxes */
.pv-dock { position: relative; height: 66px; margin-top: 6px; border-radius: 20px; background: var(--surface-2); }
.pv-knob { position: absolute; z-index: 5; left: 6px; top: 6px; width: 54px; height: 54px; padding: 0; border: 0; border-radius: 16px; background: none; cursor: grab; touch-action: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
.pv-knob.held { cursor: grabbing; }
.pv-knob-mk { display: block; width: 54px; height: 54px; pointer-events: none; }
.pv-dock-l { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 70px 0 64px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-2); text-align: center; pointer-events: none; transition: opacity .2s; }
.pv-dock.dragging .pv-dock-l, .pv-dock.saying .pv-dock-l { opacity: 0; }
.pv-dock-q { position: absolute; left: 70px; top: 50%; margin-top: -17px; white-space: nowrap; pointer-events: none; }
.pv-drag { position: absolute; right: 12px; top: 50%; translate: 0 -50%; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface-3); display: grid; place-items: center; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); pointer-events: none; transition: opacity .2s; }
.pv-dock:not(.tried) .pv-drag { animation: pl-nudge 2.6s var(--pl-soft) 1.2s infinite; }
.pv-dock.dragging .pv-drag { opacity: 0; }
html:not(.pl-js) .pv-dock { display: none; }   /* no script, no Mika to drag: the skipped box says it */

/* ---------- the end ---------- */
html:not(.pl-js) .pl-end-mika:empty { display: none; }
.pv-also { max-width: 34em; margin: 14px auto 0; font-size: 15px; line-height: 1.55; color: var(--ink-3); text-wrap: balance; }
.pv-also a { color: var(--ink-2); text-underline-offset: 3px; }
.pv-also a:hover { color: var(--ink); }
.pv-end .pl-jump { margin-top: 40px; }

/* ---------- the full policy: privacy's own pieces, in the legal cards' look ---------- */
.lg-full { scroll-margin-top: 90px; }
.lg-card > h2 + .lg-take { margin-top: 18px; }
/* clauses: the name on the left, the words on the right; spaced apart, no lines; stacked on a phone */
.pv .lg-card .clause { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 6px 28px; }
.pv .lg-card .clause + .clause, .pv .lg-card p + .clause { margin-top: 28px; }
.pv .lg-card .clause > h3 { margin: 0; font-size: 16px; line-height: 28px; font-weight: 500; color: var(--ink); }
.pv .lg-card ul { margin: 0; padding-left: 1.2em; color: var(--ink-2); }
.pv .lg-card li { font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 68ch; }
.pv .lg-card li + li { margin-top: 8px; }
.pv .lg-card ul + p { margin-top: 12px; }
.pv .lg-card li strong { color: var(--ink); font-weight: 500; }
.pv .lg-card li a { color: var(--ink); text-underline-offset: 3px; }
/* does / doesn't: two soft slabs, the first in Mika's tint */
.pv .lg-card .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.pv .lg-card .pair > div { padding: 18px 20px 20px; border-radius: var(--r-inner); background: var(--surface-2); }
.pv .lg-card .pair > div:first-child { background: color-mix(in srgb, var(--mika) 11%, var(--surface-2)); }
.pv .lg-card .pair h3 { margin: 0 0 6px; font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.pv .lg-card .pair p { font-size: 16px; line-height: 1.6; }
/* §05's choices: the shared soft clause slabs (legal.css), two by two */
.pv .lg-clauses { margin-top: 4px; }
/* the tables stay tables; each row is a soft slab */
.pv .lg-card .tbl-wrap { overflow: visible; margin-top: 16px; }
.pv .lg-card .tbl { border-collapse: separate; border-spacing: 0 8px; margin: -8px 0; font-size: 16px; }
.pv .lg-card .tbl th { padding: 8px 16px 0; border: 0; }
.pv .lg-card .tbl th:first-child { width: 38%; }
.pv .lg-card .tbl td { padding: 14px 16px 15px; border: 0; background: var(--surface-2); color: var(--ink-2); line-height: 1.55; }
.pv .lg-card .tbl td:first-child { border-radius: 14px 0 0 14px; color: var(--ink); font-weight: 500; }
.pv .lg-card .tbl td:last-child { border-radius: 0 14px 14px 0; }
.pv .lg-card .tbl-wrap + p { margin-top: 16px; }

@media (max-width: 640px) {
  .pv .lg-card .clause { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pv .lg-card .pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .pv-trip { gap: 10px; padding: 12px; }
  .pv-mic { padding: 0 9px; }
  .pv-mem { gap: 8px; }
  .pv-slot { padding: 11px 12px 12px; }
  .pv-slot-k { font-size: 10px; }
  .pv-count { font-size: 18px; }
  .pv-sw { padding: 13px 14px; gap: 12px; }
  .pv-dock-l { font-size: 16px; padding-right: 64px; }
  .pv-caps li { font-size: 15px; }
  .pv .lg-card li { font-size: 16.5px; }
  /* a phone: each table row stacks into one slab, the name over the words (roles keep it a table to a screen reader) */
  .pv .lg-card .tbl, .pv .lg-card .tbl tbody, .pv .lg-card .tbl tr, .pv .lg-card .tbl td { display: block; }
  .pv .lg-card .tbl { margin: 0; }
  .pv .lg-card .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pv .lg-card .tbl tr { padding: 14px 16px 15px; border-radius: 14px; background: var(--surface-2); }
  .pv .lg-card .tbl tr + tr { margin-top: 8px; }
  .pv .lg-card .tbl td, .pv .lg-card .tbl td:first-child, .pv .lg-card .tbl td:last-child { padding: 0; border-radius: 0; background: none; }
  .pv .lg-card .tbl td:first-child { margin-bottom: 4px; }
}
@media (max-width: 370px) {
  .pv-trip { grid-template-columns: auto minmax(16px, 1fr) auto; gap: 8px; padding: 12px 10px; }
  .pv-take, .pv-lines { padding: 0 9px; gap: 6px; }
  .pv-stt { padding: 0 8px; font-size: 9px; letter-spacing: .04em; }
  .pv-mic { gap: 5px; letter-spacing: .06em; }
  .pv-dock-l { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .pv-mic.on i, .pv-take.rec .pv-tbars i, .pv-trip.on .pv-stream, .pv-drag, .pv-msg.flinch .pv-send { animation: none !important; }
  .pv-ctrip { transition: none; }
  .pv-take.rec .pv-tbars i { transform: scaleY(.7); }
  .pv-chat .pl-them.read { transform: none; }
}

/* The privacy toys, second pass: Mika is the thing you hold, one object per promise, the outcome is the answer.
   Prefix p2-. Sits on play.css, legal.css and privacy.css (03 keeps its pv- pieces). */
.p2-sub { margin-top: 14px; font-size: clamp(18px, 1.8vw, 22px); color: var(--ink-2); }
.p2 .pl-copy h2 { font-size: clamp(30px, 4.2vw, 44px); }

/* the box Mika types into */
.p2-box { min-height: 84px; }
.p2-box .pl-field { margin-top: 0; min-height: 50px; }
.p2-voice .pl-field { margin-right: 64px; }
.p2 .pl-field .pl-fw { color: var(--ink-3); }
.p2-mic { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--surface-3); font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); transition: background .12s, color .12s, scale .4s var(--ease-spring); }
.p2-mic i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.p2-voice.live .p2-mic { background: var(--mika); color: #0a0a0a; scale: 1.1; }

/* the pad: Mika on the left, and where what it hears goes, only while it goes */
.p2-pad { position: relative; display: grid; grid-template-columns: 84px minmax(20px, 1fr) auto; align-items: center; gap: 12px; min-height: 96px; padding: 6px 16px 6px 6px; border-radius: 24px; background: var(--surface-2); transition: background .25s var(--pl-soft); }
.p2-pad.live { background: color-mix(in srgb, var(--mika) 12%, var(--surface-2)); }
.p2-mika { position: relative; z-index: 2; width: 84px; height: 84px; padding: 0; border: 0; border-radius: 28px; background: none; cursor: pointer; touch-action: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; transition: scale .35s var(--ease-spring); }
.p2-mika:active, .p2-mika.down { scale: .9; }
.p2-mika:focus-visible, .p2-switch:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(255, 255, 255, .55); }
.p2-mk { display: block; width: 84px; height: 84px; pointer-events: none; }
.p2-stream { height: 6px; opacity: .0; background: radial-gradient(circle, var(--mika) 2.2px, transparent 2.7px) 0 50% / 14px 6px repeat-x; transition: opacity .1s; }
.p2-pad.live .p2-stream { opacity: 1; animation: p2-flow .38s linear infinite; }
@keyframes p2-flow { to { background-position: 14px 50%; } }
.p2-to { height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface-3); font: 500 10.5px/30px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; opacity: .0; scale: .9; transition: opacity .12s, scale .35s var(--ease-spring), color .12s; }
.p2-pad.live .p2-to { opacity: 1; scale: 1; color: var(--ink); }
.p2-hint { position: absolute; left: 102px; top: 50%; translate: 0 -50%; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--cream); color: var(--cream-ink); display: grid; place-items: center; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; pointer-events: none; transition: opacity .2s; animation: pl-nudge 2.6s var(--pl-soft) 1.2s infinite; }
.p2-pad.tried .p2-hint { opacity: 0; animation: none; }
.p2-pad .p2-q { position: absolute; left: 102px; right: 12px; width: fit-content; top: 50%; translate: 0 -50%; pointer-events: none; font-size: 16px; text-wrap: balance; }
.p2-pad.live .p2-q { opacity: 0; }
.p2-shake { animation: p2-no .4s var(--pl-soft); }
@keyframes p2-no { 20% { translate: -7px 0; } 50% { translate: 6px 0; } 80% { translate: -3px 0; } }

/* 02: the phone: Nia's chat, veiled until Mika reads it */
.p2-phone { display: grid; gap: 10px; padding: 14px; border-radius: 26px; background: var(--surface-2); }
.p2-phone .p2-box { background: var(--surface-3); min-height: 62px; }
.p2-phone .p2-box .pl-field { min-height: 30px; }
.p2-phone .pl-send { background: var(--surface-2); }
.p2-bar { display: flex; align-items: center; gap: 9px; min-height: 32px; font-size: 15px; color: var(--ink); }
.p2-bar b { font-weight: 500; }
.p2-thread { --off: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 4px 0 6px; }
.p2-thread .pl-them { transform-origin: 0 100%; transition: background .3s, transform .45s var(--ease-spring); }
.p2-thread s { text-decoration: none; display: inline-block; filter: blur(5px); opacity: calc(.55 * (1 - var(--off))); transition: filter .35s var(--pl-soft), opacity .25s; }
.p2-thread .pl-them.read { background: color-mix(in srgb, var(--mika) 26%, var(--surface-3)); transform: scale(1.03); }
.p2-thread .pl-them.read s { filter: blur(0); opacity: 1; }
/* what Mika kept: three little lines, on your phone */
.p2-pocket { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px 0 9px; border-radius: 999px; background: var(--surface-3); color: var(--ink-3); opacity: 0; scale: .8; transition: opacity .2s, scale .45s var(--ease-spring), background .3s, color .3s; }
.p2-pocket.has { opacity: 1; scale: 1; background: color-mix(in srgb, var(--mika) 22%, var(--surface-3)); color: var(--ink); }
.p2-pocket svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.p2-pocket em { font: 500 10px/1 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.p2-kept { display: grid; gap: 2.5px; width: 14px; }
.p2-kept i { height: 2.5px; border-radius: 2px; background: currentColor; transform-origin: 0 50%; transform: scaleX(0); transition: transform .4s var(--ease-spring); }
.p2-kept i:nth-child(2) { width: 70%; }
.p2-kept i.on { transform: none; }
.p2-pocket.poof { animation: p2-poof .32s ease-in forwards; }
@keyframes p2-poof { to { scale: 1.5; opacity: 0; filter: blur(5px); } }
/* the switch: drag it or tap it; the chat goes dark as it goes */
.p2-sw { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px; border-radius: 20px; background: var(--surface-2); }
.p2-sw-name { flex: 1; font-size: 17px; font-weight: 500; color: var(--ink); }
.p2-switch { --p: 1; position: relative; flex: none; width: 64px; height: 38px; padding: 0; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--mika) calc(var(--p) * 100%), var(--surface-3)); cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent; }
.p2-switch i { position: absolute; top: 4px; left: calc(4px + 26px * var(--p)); width: 30px; height: 30px; border-radius: 50%; background: #fff; transition: scale .3s var(--ease-spring), width .2s; }
.p2-switch.held i { scale: 1.12; }
.p2-chat.off .p2-pad { opacity: .6; }

/* 03: Mika's dock goes bare: Mika, and one nudge */
.p2 .pv-dock { background: none; height: 84px; margin-top: 0; }
.p2 .pv-knob, .p2 .pv-knob-mk { width: 72px; height: 72px; }
.p2 .pv-dock-q { left: 88px; font-size: 16px; }
.p2 .pv-drag { right: auto; left: 88px; height: 28px; padding: 0 12px; background: var(--cream); color: var(--cream-ink); font-size: 11px; }
.p2 .pv-dock.tried .pv-drag { opacity: 0; animation: none; }
.p2 .pv-msg .pl-field { margin-top: 0; }
.p2 .pv-msg { min-height: 62px; display: grid; align-items: center; }

@media (max-width: 560px) {
  .p2-pad { grid-template-columns: 72px minmax(14px, 1fr) auto; gap: 8px; min-height: 84px; padding-right: 12px; }
  .p2-mika, .p2-mk { width: 72px; height: 72px; }
  .p2-hint, .p2-pad .p2-q { left: 88px; }
  .p2-pad .p2-q { right: 10px; font-size: 15px; }
  .p2-to { padding: 0 9px; font-size: 9.5px; letter-spacing: .05em; }
  .p2-phone { padding: 12px; }
  .p2-pocket em { letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) {
  .p2-pad.live .p2-stream, .p2-hint, .p2-shake, .p2-pocket.poof { animation: none !important; }
  .p2-thread s { transition: none; }
}

/* without script the toys show how they end: the chat read, three lines kept on your phone, no Mika to press */
html:not(.pl-js) .p2-thread s { filter: none; opacity: 1; }
html:not(.pl-js) .p2-pocket { opacity: 1; scale: 1; }
html:not(.pl-js) .p2-kept i { transform: none; }
html:not(.pl-js) .p2-pad, html:not(.pl-js) .p2-sw { display: none; }

/* Mika sits on the right, under a right thumb */
.p2-pad { grid-template-columns: auto minmax(20px, 1fr) 84px; padding: 6px 6px 6px 16px; }
.p2-mika { order: 3; }
.p2-stream { order: 2; }
.p2-to { order: 1; }
.p2-pad.live .p2-stream { animation-direction: reverse; }
.p2-hint { left: auto; right: 102px; }
.p2-pad .p2-q { left: 12px; right: 102px; margin-left: auto; transform-origin: right bottom; }
.p2 .pv-knob { left: auto; right: 6px; }
.p2 .pv-dock-q { left: auto; right: 88px; }
.p2 .pv-drag { left: auto; right: 88px; }
@media (max-width: 560px) {
  .p2-pad { grid-template-columns: auto minmax(14px, 1fr) 72px; padding: 6px 6px 6px 12px; }
  .p2-hint { left: auto; right: 88px; }
  .p2-pad .p2-q { left: 10px; right: 88px; }
}
