/* ==========================================================================
   Motion Sync "VIP experience" (2026-10-07), the styles for ms-vip.js:
   saved looks, the save tick, several looks per recording, the audio choice,
   the one-time "bagitahu bila siap" sheet, results of several looks, the
   home-screen hint. Mobile first (375 px), touch targets 44 px.
   Tokens come from motion-sync-v2.css (--v2-ink, --v2-accent).
   ========================================================================== */

/* ---------- saved looks (step "Muka") ---------- */
.msv-looks { margin: 4px 0 14px; padding: 12px; background: #fff; border: 2px solid var(--v2-ink, #062413); border-radius: 14px; box-shadow: 3px 3px 0 var(--v2-ink, #062413); }
.msv-looks[hidden], .msv-save[hidden], .msv-extra[hidden], .msv-results[hidden], .msv-a2hs[hidden] { display: none !important; }
.msv-looks-h { font-size: 15px; color: var(--v2-ink, #062413); display: flex; gap: 6px; align-items: baseline; }
.msv-looks-n { font-size: 12px; font-weight: 700; color: var(--v2-ink-soft, #475569); }
.msv-looks-sub { margin: 2px 0 10px; font-size: 12.5px; line-height: 1.4; color: var(--v2-ink-soft, #475569); }
.msv-looks-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.msv-tile { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.msv-pick { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 2px solid #cbd5e1; border-radius: 12px; overflow: hidden; background: #e7ede4; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.msv-pick img { display: block; width: 100%; height: 100%; object-fit: cover; }
.msv-tile.is-sel .msv-pick { border-color: var(--v2-accent, #ff6b00); box-shadow: 0 0 0 2px var(--v2-accent, #ff6b00); }
.msv-badge { position: absolute; top: 6px; left: 6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--v2-accent, #ff6b00); color: #fff; font-size: 13px; font-weight: 800; line-height: 24px; text-align: center; }
.msv-del { font-family: inherit; min-height: 44px; padding: 0 6px; background: transparent; border: 0; border-radius: 10px; font-size: 12.5px; font-weight: 700; color: #b91c1c; text-decoration: underline; cursor: pointer; }

/* ---------- the save tick ---------- */
.msv-save { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin: 12px 0 4px; background: #fff; border: 2px solid var(--v2-ink, #062413); border-radius: 14px; box-shadow: 3px 3px 0 var(--v2-ink, #062413); cursor: pointer; user-select: none; }
.msv-save input[type=checkbox] { width: 22px; height: 22px; flex-shrink: 0; margin: 1px 0 0; accent-color: var(--v2-accent, #ff6b00); cursor: pointer; }
.msv-save-text { display: flex; flex-direction: column; gap: 2px; }
.msv-save-text strong { font-size: 14px; font-weight: 800; color: var(--v2-ink, #062413); }
.msv-save-sub { font-size: 12px; line-height: 1.4; font-weight: 500; color: var(--v2-ink-soft, #475569); }
.msv-save.is-busy { opacity: .6; pointer-events: none; }

/* ---------- several looks for one recording ---------- */
.msv-extra { margin: 12px 0 4px; padding: 12px; background: #fff7ed; border: 2px dashed var(--v2-accent, #ff6b00); border-radius: 14px; }
.msv-extra-h { font-size: 14px; font-weight: 800; color: var(--v2-ink, #062413); }
.msv-extra-h span { font-weight: 600; color: var(--v2-ink-soft, #475569); }
.msv-extra-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 6px; align-items: stretch; }
.msv-xt { position: relative; width: 84px; display: flex; flex-direction: column; gap: 4px; }
.msv-xt img { display: block; width: 84px; height: 84px; object-fit: cover; border-radius: 12px; border: 2px solid var(--v2-ink, #062413); background: #e7ede4; }
.msv-xt span { font-size: 12px; font-weight: 700; text-align: center; color: var(--v2-ink, #062413); }
.msv-xt .msv-xrm { position: absolute; top: -8px; right: -8px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; background: var(--v2-ink, #062413); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.msv-xt .msv-xrm::after { content: ""; position: absolute; inset: -6px; } /* 44 px hit area around the 32 px disc */
.msv-xsave { font-family: inherit; min-height: 44px; padding: 0 2px; background: transparent; border: 0; font-size: 12px; font-weight: 700; color: var(--v2-ink, #062413); text-decoration: underline; cursor: pointer; }
.msv-xsaved { font-size: 12px; font-style: normal; font-weight: 700; text-align: center; color: #15803d; }
body.msv-sheet-open { overflow: hidden; }
.msv-add { font-family: inherit; min-height: 84px; min-width: 84px; padding: 0 12px; border: 2px dashed var(--v2-ink, #062413); border-radius: 12px; background: #fff; font-size: 13px; font-weight: 800; color: var(--v2-ink, #062413); cursor: pointer; }
.msv-add[disabled] { opacity: .6; cursor: progress; }
.msv-extra-sub { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--v2-ink-soft, #475569); }

/* ---------- audio choice ---------- */
.msv-audio { margin: 12px 0 4px; padding: 12px 14px; background: #fff; border: 2px solid var(--v2-ink, #062413); border-radius: 14px; box-shadow: 3px 3px 0 var(--v2-ink, #062413); min-width: 0; }
.msv-audio-h { padding: 0 4px; font-size: 14px; font-weight: 800; color: var(--v2-ink, #062413); }
.msv-seg { display: flex; gap: 8px; margin-top: 6px; }
.msv-seg-opt { font-family: inherit; flex: 1 1 0; min-height: 44px; padding: 8px 10px; border: 2px solid #cbd5e1; border-radius: 12px; background: #fff; font-size: 14px; font-weight: 700; color: var(--v2-ink, #062413); cursor: pointer; line-height: 1.2; }
.msv-seg-opt.is-on { border-color: var(--v2-accent, #ff6b00); background: #fff7ed; box-shadow: 0 0 0 2px var(--v2-accent, #ff6b00) inset; }
.msv-audio-sub { margin: 8px 0 0; font-size: 12px; line-height: 1.4; color: var(--v2-ink-soft, #475569); }

/* ---------- "bagitahu bila siap" sheet (first Generate only) ---------- */
.msv-sheet { position: fixed; inset: 0; z-index: 9600; display: flex; align-items: flex-end; justify-content: center; background: rgba(6, 36, 19, 0.82); padding: 0; }
.msv-sheet-card { width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); background: #fefce8; border-radius: 18px 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.msv-sheet-card h2 { margin: 0; font-size: 18px; font-weight: 800; color: #062413; }
.msv-sheet-card p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #333; }
.msv-sheet-btn { font-family: inherit; min-height: 48px; padding: 8px 14px; border: 2px solid #062413; border-radius: 12px; background: #fff; font-size: 15px; font-weight: 800; color: #062413; cursor: pointer; text-align: left; }
.msv-sheet-btn small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: #475569; }
.msv-sheet-btn.is-primary { background: var(--v2-accent, #ff6b00); border-color: var(--v2-accent, #ff6b00); color: #fff; }
.msv-sheet-btn.is-primary small { color: #fff; opacity: .92; }
.msv-sheet-skip { background: transparent; border: 0; box-shadow: none; text-align: center; font-weight: 700; text-decoration: underline; }
.msv-sheet-note { padding: 10px 12px; border-radius: 10px; background: #e7ede4; font-size: 12.5px; line-height: 1.45; color: #062413; }
@media (min-width: 600px) { .msv-sheet { align-items: center; } .msv-sheet-card { border-radius: 18px; } }

/* ---------- results of several looks ---------- */
.msv-results { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.msv-res { font-family: inherit; flex: 1 1 0; min-width: 96px; min-height: 44px; padding: 8px 10px; border: 2px solid var(--v2-ink, #062413); border-radius: 12px; background: #fff; font-size: 13px; font-weight: 800; color: var(--v2-ink, #062413); cursor: pointer; line-height: 1.25; }
.msv-res small { display: block; font-size: 11.5px; font-weight: 600; color: var(--v2-ink-soft, #475569); }
.msv-res.is-on { background: var(--v2-accent, #ff6b00); border-color: var(--v2-accent, #ff6b00); color: #fff; }
.msv-res.is-on small { color: #fff; }
.msv-res[disabled] { cursor: default; background: #f1f5f9; border-color: #cbd5e1; color: #64748b; }

/* ---------- home-screen hint ---------- */
.msv-a2hs { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 12px 14px; background: #062413; color: #fff; border-radius: 14px; }
.msv-a2hs-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.45; }
.msv-a2hs-body strong { font-size: 14px; }
.msv-a2hs-ok { font-family: inherit; flex-shrink: 0; min-height: 44px; padding: 0 14px; border: 0; border-radius: 22px; background: var(--v2-accent, #ff6b00); color: #fff; font-weight: 800; font-size: 14px; cursor: pointer; }

@media (prefers-reduced-motion: reduce) { .msv-pick, .msv-seg-opt { transition: none; } }
