/* Explainer video player (explainers.js): one sheet on <body>, outside the seller panel's @scope.
   Phones: bottom sheet. ≥768px: centred modal, like every other sheet. Pinned above the sell flow
   (z 900), the account layer (1000) and the account/confirm sheets (2000/2001). Ease-out only. */
.tmxp-ov { position: fixed; inset: 0; z-index: 2100; background: rgba(11, 15, 20, .45); opacity: 0; pointer-events: none; transition: opacity .25s ease-out; }
.tmxp-ov.tmxp-on { opacity: 1; pointer-events: auto; }
.tmxp-ov.tmxp-dark { background: rgba(0, 0, 0, .6); }
.tmxp-ov[hidden], .tmxp-sheet[hidden] { display: none; }
.tmxp-sheet {
  --tmxp-bg: #FFFFFF; --tmxp-card: #F4F5F7; --tmxp-line: #E3E5E9; --tmxp-text: #0B0F14; --tmxp-orange: #FF5400;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2101; margin: 0 auto; max-width: 420px; max-height: 96dvh; overflow: auto;
  box-sizing: border-box; background: var(--tmxp-bg); color: var(--tmxp-text); border-radius: 22px 22px 0 0; border-top: 1px solid var(--tmxp-line);
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom, 0px)); font-family: "Manrope", system-ui, sans-serif; text-align: start;
  transform: translateY(105%); transition: transform .32s cubic-bezier(.2, .7, .2, 1); touch-action: none; overscroll-behavior: contain;
}
.tmxp-sheet *, .tmxp-sheet *::before, .tmxp-sheet *::after { box-sizing: border-box; }
.tmxp-sheet.tmxp-on { transform: translateY(0); box-shadow: 0 -10px 40px rgba(0, 0, 0, .22); }
.tmxp-sheet.tmxp-drag { transition: none; }
.tmxp-sheet.tmxp-dark { --tmxp-bg: #0B0F14; --tmxp-card: #161B22; --tmxp-line: #2A3038; --tmxp-text: #F4F5F6; }
.tmxp-grab { width: 40px; height: 5px; border-radius: 9px; background: var(--tmxp-line); margin: 0 auto 12px; }
.tmxp-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.tmxp-title { font: 800 17px/1.3 "Sora", "Manrope", sans-serif; }
.tmxp-x { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--tmxp-card); border: 1px solid var(--tmxp-line); color: var(--tmxp-text); display: grid; place-items: center; padding: 0; cursor: pointer; }
.tmxp-vw { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 3 / 4; height: min(60vh, calc((100vw - 32px) * 4 / 3), 517px); max-width: 100%; margin: 0 auto; }
.tmxp-wide .tmxp-vw { aspect-ratio: 16 / 9; height: auto; width: 100%; }
.tmxp-video { width: 100%; height: 100%; display: block; object-fit: cover; background: #000; }
.tmxp-mu { position: absolute; top: 10px; inset-inline-end: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; background: rgba(11, 15, 20, .7); color: #fff; display: grid; place-items: center; cursor: pointer; }
.tmxp-mu .tmxp-off, .tmxp-mu.tmxp-muted .tmxp-on { display: none; }
.tmxp-mu.tmxp-muted .tmxp-off { display: inline-flex; }
.tmxp-mu .tmxp-on, .tmxp-mu .tmxp-off { line-height: 0; }
.tmxp-pb { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .18); pointer-events: none; }
.tmxp-pb b { position: absolute; inset: 0; background: var(--tmxp-orange); transform-origin: left center; transform: scaleX(0); }
html[dir="rtl"] .tmxp-pb b { transform-origin: right center; }
.tmxp-rp { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .45); border: 0; padding: 0; cursor: pointer; color: #fff; }
.tmxp-rp[hidden] { display: none; }
.tmxp-rp span { width: 56px; height: 56px; border-radius: 50%; background: var(--tmxp-orange); display: grid; place-items: center; }
.tmxp-ok { display: block; width: 100%; margin-top: 18px; background: var(--tmxp-orange); color: #fff; border: 0; border-radius: 14px; padding: 15px; min-height: 52px; font: 800 16px "Manrope", sans-serif; cursor: pointer; }
.tmxp-ok:active, .tmxp-x:active { transform: scale(.985); }
html.tmxp-lock, html.tmxp-lock body { overflow: hidden; }

/* Desktop: a centred modal (all corners rounded, no grab handle), fading in from slightly below. */
@media (min-width: 768px) {
  .tmxp-sheet { left: 50%; right: auto; top: 50%; bottom: auto; width: min(460px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px); border: 1px solid var(--tmxp-line); border-radius: 20px; padding: 18px 20px 20px; opacity: 0; visibility: hidden; transform: translate(-50%, -50%) translateY(14px); transition: transform .22s cubic-bezier(.2, .8, .2, 1), opacity .2s ease-out, visibility 0s linear .22s; touch-action: auto; }
  .tmxp-sheet.tmxp-on { opacity: 1; visibility: visible; transform: translate(-50%, -50%); transition-delay: 0s; box-shadow: 0 24px 80px rgba(0, 0, 0, .28); }
  .tmxp-sheet.tmxp-wide { width: min(640px, calc(100vw - 48px)); }
  .tmxp-grab { display: none; }
  .tmxp-vw { height: min(64vh, 560px); }
  .tmxp-wide .tmxp-vw { height: auto; }
}
@media (prefers-reduced-motion: reduce) { .tmxp-ov, .tmxp-sheet { transition: none; } }

/* « Comment ça marche ? » row (tmExplainers.row): 80×45 poster + two lines. Light on Mes stickers, dark on the live screen. */
.tmxp-vr { --tmxp-card: #F4F5F7; --tmxp-line: #E3E5E9; --tmxp-muted: #5E6672; --tmxp-text: #0B0F14;
  display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 10px; border: 1px solid var(--tmxp-line); border-radius: 14px;
  background: var(--tmxp-card); color: var(--tmxp-text); text-align: start; font: inherit; font-family: "Manrope", system-ui, sans-serif; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .15s ease-out; }
.tmxp-vr:active { transform: scale(.985); }
.tmxp-vr:focus-visible { outline: 3px solid #FF5400; outline-offset: 2px; }
.tmxp-vr.tmxp-vr-dark { --tmxp-card: #161B22; --tmxp-line: #2A3038; --tmxp-muted: #A7ABB1; --tmxp-text: #F4F5F6; }
.tmxp-vr-th { position: relative; flex: none; width: 80px; height: 45px; border-radius: 10px; overflow: hidden; background: #000; }
.tmxp-vr-th img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; }
.tmxp-vr-th > span { position: absolute; inset: 0; display: grid; place-items: center; }
.tmxp-vr-th b { width: 24px; height: 24px; border-radius: 50%; background: #FF5400; color: #fff; display: grid; place-items: center; }
.tmxp-vr-tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tmxp-vr-t { font-weight: 800; font-size: 15px; line-height: 1.3; }
.tmxp-vr-s { color: var(--tmxp-muted); font-size: 12px; font-weight: 600; line-height: 1.35; }

/* Sheets opened from the « Ta voiture est en ligne » screen (sell-flow.js): get the sticker, order it.
   Built on the generic body sheet (.sheet.acc-confirm-sheet: z 2001, centred modal ≥768px), dark palette. */
body .sheet.tml-sheet { --tml-bg: #0B0F14; --tml-card: #161B22; --tml-line: #2A3038; --tml-muted: #A7ABB1; --tml-text: #F4F5F6; --tml-lime: #40FF00; --tml-orange: #FF5400;
  background: var(--tml-bg); color: var(--tml-text); border-top: 1px solid var(--tml-line); font-family: "Manrope", system-ui, sans-serif; max-height: 96dvh; }
body .sheet.tml-sheet .grab { background: var(--tml-line); }
body .sheet-ov.tml-ov { background: rgba(0, 0, 0, .6); }
@media (min-width: 768px) { body .sheet.tml-sheet { border: 1px solid var(--tml-line); width: min(460px, calc(100vw - 48px)); } }
.tml-sheet * { box-sizing: border-box; }
.tml-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 12px; }
.tml-title { margin: 0; font: 800 17px/1.3 "Sora", "Manrope", sans-serif; color: var(--tml-text); }
.tml-x { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--tml-card); border: 1px solid var(--tml-line); color: var(--tml-text); display: grid; place-items: center; padding: 0; cursor: pointer; }
.tml-pv { display: flex; gap: 12px; align-items: center; }
.tml-pv-art { flex: none; width: 120px; border-radius: 8px; overflow: hidden; line-height: 0; }
.tml-pv-art svg, .tml-pv-art .tono-sticker { width: 100%; height: auto; display: block; }
.tml-p { color: var(--tml-muted); font-size: 15px; font-weight: 600; line-height: 1.45; }
.tml-opt { display: flex; align-items: center; gap: 12px; width: 100%; margin: 10px 0 0; padding: 14px; background: var(--tml-card); border: 1px solid var(--tml-line); border-radius: 14px; color: var(--tml-text); text-align: start; font: inherit; cursor: pointer; transition: transform .15s ease-out, opacity .15s ease-out; }
.tml-opt:first-of-type { margin-top: 16px; }
.tml-opt:active { transform: scale(.985); }
.tml-opt[aria-busy="true"] { opacity: .6; pointer-events: none; }
.tml-opt-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 84, 0, .14); color: var(--tml-orange); display: grid; place-items: center; }
.tml-opt-tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tml-opt-t { font-weight: 800; font-size: 15px; }
.tml-opt-s { color: var(--tml-muted); font-size: 12px; font-weight: 600; }
.tml-stp { display: flex; gap: 6px; margin: 0 0 14px; }
.tml-stp i { flex: 1; height: 4px; border-radius: 9px; background: var(--tml-line); transition: background .2s ease-out; }
.tml-stp i.tml-on { background: var(--tml-orange); }
.tml-form label { display: block; color: var(--tml-muted); font-size: 12px; font-weight: 700; margin: 10px 0 6px; }
.tml-form input, .tml-form select { width: 100%; margin: 0; background: var(--tml-card); border: 1px solid var(--tml-line); border-radius: 12px; padding: 13px 12px; color: var(--tml-text); font: 700 16px "Manrope", system-ui, sans-serif; touch-action: auto; -webkit-appearance: none; appearance: none; }
.tml-form input::placeholder { color: var(--tml-muted); opacity: .8; font-weight: 600; }
.tml-form input:focus, .tml-form select:focus { outline: none; border-color: var(--tml-orange); }
.tml-form input[aria-invalid="true"], .tml-form select[aria-invalid="true"] { border-color: #FF6B4A; }
.tml-form input[dir="ltr"] { text-align: left; }
.tml-selw { position: relative; }
.tml-selw select { padding-inline-end: 40px; color-scheme: dark; }
.tml-selw ph-icon { position: absolute; top: 50%; inset-inline-end: 12px; transform: translateY(-50%); color: var(--tml-muted); pointer-events: none; }
.tml-err { margin: 12px 0 0; color: #FF8A6B; font-size: 14px; font-weight: 700; line-height: 1.4; }
.tml-err[hidden] { display: none; }
.tml-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--tml-line); margin-top: 16px; font-weight: 700; }
.tml-amt { display: inline-flex; align-items: baseline; gap: 8px; }
.tml-row s { color: var(--tml-muted); font-weight: 600; }
.tml-row b { color: var(--tml-lime); font-weight: 800; }
.tml-row.tml-paid b { color: var(--tml-text); }
.tml-ok { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 18px; background: var(--tml-orange); color: #fff; border: 0; border-radius: 14px; padding: 15px; font: 800 16px "Manrope", system-ui, sans-serif; cursor: pointer; }
.tml-ok:active:not([disabled]) { transform: scale(.985); }
.tml-ok[disabled] { opacity: .65; cursor: default; }
.tml-ok.tml-busy { color: transparent; position: relative; }
.tml-ok.tml-busy::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: tml-spin .8s linear infinite; }
@keyframes tml-spin { to { transform: rotate(360deg); } }
.tml-done { text-align: center; padding: 12px 0 4px; }
.tml-ck { width: 52px; height: 52px; border-radius: 50%; background: var(--tml-lime); color: #0B0F14; display: grid; place-items: center; margin: 0 auto 14px; }
.tml-done h2 { margin: 0; font: 800 21px/1.25 "Sora", "Manrope", sans-serif; color: var(--tml-text); }
.tml-done p { margin: 6px 0 0; color: var(--tml-muted); font-weight: 600; font-size: 14px; line-height: 1.45; }
.tml-step[hidden] { display: none; }
.tml-step-in { animation: tml-in .22s ease-out both; }
@keyframes tml-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tmxp-vr, .tml-opt { transition: none; } .tml-step-in { animation: none; } }
