/* beatsync.css — studio BeatSync aux couleurs de Kreatueur (charte des modules Outils, tools-kit).
   Les jetons reprennent assets/css/theme.css du site : sombre par défaut, clair avec html.light. */
:root {
  --tk-bg: #0e0e10; --tk-card: #18181b; --tk-card2: #1f1f23; --tk-input: #0e0e10;
  --tk-bd: #26262c; --tk-bd2: #333; --tk-fg: #efeff1; --tk-fg2: #adadb8; --tk-fg3: #71717a; --tk-fg4: #52525b;
  --tk-ac: #9147ff; --tk-ac-soft: rgba(145,71,255,.15); --tk-ac-line: rgba(145,71,255,.45);
  --tk-ok: #38d98a; --tk-ok-soft: rgba(56,217,138,.12); --tk-dg: #f45252; --tk-dg-soft: rgba(244,82,82,.15);
  --tk-warn-soft: rgba(245,185,66,.07); --tk-warn-line: rgba(245,185,66,.35);
  --gold-fg: #5a3d00;
  color-scheme: dark;
}
html.light {
  --tk-bg: #f3f4f6; --tk-card: #ffffff; --tk-card2: #f3f4f6; --tk-input: #f3f4f6;
  --tk-bd: #e5e7eb; --tk-bd2: #d1d5db; --tk-fg: #111827; --tk-fg2: #4b5563; --tk-fg3: #6b7280; --tk-fg4: #9ca3af;
  --tk-ac: #7c3aed; --tk-ac-soft: rgba(124,58,237,.08); --tk-ac-line: rgba(124,58,237,.4);
  --tk-ok: #059669; --tk-ok-soft: rgba(5,150,105,.1); --tk-dg: #dc2626; --tk-dg-soft: rgba(220,38,38,.08);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--tk-bg); color: var(--tk-fg); font: 14px/1.45 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }
[hidden] { display: none !important; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--tk-ac); outline-offset: 2px; }
.tk-i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; display: block; }
.tk-mut { font-size: .78rem; color: var(--tk-fg3); margin: 0; }
.tk-hint { font-size: .74rem; color: var(--tk-fg3); margin: .5rem 0 0; }

/* ── Mise en page : étapes à gauche, aperçu à droite ── */
.bs { padding: 2px 2px 24px; }
.bs-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.bs-left, .bs-right { min-width: 0; }
.bs-right { position: sticky; top: 0; display: flex; flex-direction: column; gap: .6rem; }
@media (max-width: 900px) { .bs-cols { grid-template-columns: minmax(0, 1fr); } .bs-right { position: static; } }

/* ── Boutons ── */
.tk-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border-radius: 9px; padding: .55rem 1rem; font-weight: 650; font-size: .84rem; cursor: pointer; border: 1px solid transparent; background: none; color: var(--tk-fg2); white-space: nowrap; line-height: 1.2; }
.tk-btn.pri { background: var(--tk-ac); color: #fff; }
.tk-btn.pri:hover { filter: brightness(1.1); }
.tk-btn.ghost { border-color: var(--tk-bd); background: var(--tk-card); }
.tk-btn.ghost:hover { border-color: var(--tk-bd2); color: var(--tk-fg); }
.tk-btn.sm { padding: .38rem .7rem; font-size: .76rem; }
.tk-btn:disabled { opacity: .5; cursor: default; }
.tk-btn.active { background: var(--tk-ac-soft); border-color: var(--tk-ac-line); color: var(--tk-fg); }

/* ── Carte ── */
.tk-card { border: 1px solid var(--tk-bd); border-radius: 13px; background: var(--tk-card); padding: 1rem 1.05rem; display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.tk-ch { display: flex; align-items: center; gap: .6rem; }
.tk-ch h3 { margin: 0; font-size: 1rem; }
.tk-ch .tk-mut { margin-left: auto; }

/* ── Étapes (accordéon, une ouverte à la fois) ── */
.tk-step { background: var(--tk-card); border: 1px solid var(--tk-bd); border-radius: 12px; margin-bottom: .6rem; overflow: hidden; }
.tk-step.open { border-color: var(--tk-ac); }
.tk-shead { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.1rem; cursor: pointer; width: 100%; background: none; border: none; text-align: left; color: var(--tk-fg); font-size: 14px; }
.tk-num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; background: var(--tk-card2); color: var(--tk-fg3); border: 1px solid var(--tk-bd); flex-shrink: 0; }
.tk-step.open .tk-num { background: var(--tk-ac); color: #fff; border-color: var(--tk-ac); }
.tk-st { font-weight: 650; font-size: .9rem; }
.tk-sv { margin-left: auto; font-size: .78rem; color: var(--tk-fg2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.tk-sv.on::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--tk-ok); margin-right: .45rem; vertical-align: .08em; }
.tk-chev { transition: transform .2s; color: var(--tk-fg3); }
.tk-step.open .tk-chev { transform: rotate(180deg); }
.tk-sbody { padding: 0 1.1rem 1.1rem; }
.tk-step:not(.open) .tk-sbody { display: none; }

/* ── Lignes de réglage ── */
.tk-opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .55rem 1.2rem; padding: .8rem 0; }
.tk-opt + .tk-opt { border-top: 1px solid var(--tk-bd); }
.tk-opt.col { grid-template-columns: minmax(0, 1fr); }
.tk-ot { font-size: .86rem; font-weight: 600; color: var(--tk-fg); }
.tk-od { font-size: .74rem; color: var(--tk-fg3); margin: .1rem 0 0; }
@media (max-width: 640px) { .tk-opt { grid-template-columns: minmax(0, 1fr); } }
.bs-ctl { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.bs-ctl.end { justify-content: flex-end; }
.bs-val { font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--tk-fg2); min-width: 48px; text-align: center; }
.bs-lab { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; color: var(--tk-fg3); }

/* ── Champs ── */
.tk-inp { width: 100%; height: 38px; background: var(--tk-input); border: 1px solid var(--tk-bd); border-radius: 10px; color: var(--tk-fg); padding: 0 .8rem; outline: none; font-size: .86rem; font-family: inherit; min-width: 0; }
textarea.tk-inp { height: auto; padding: .55rem .8rem; resize: vertical; line-height: 1.45; margin-top: .55rem; }
.tk-inp:focus, .tk-sel:focus { border-color: var(--tk-ac); box-shadow: 0 0 0 3px var(--tk-ac-soft); }
.tk-inp.bs-num { width: 76px; height: 32px; text-align: center; font-variant-numeric: tabular-nums; }
.tk-selw { position: relative; display: inline-block; min-width: 0; }
.tk-selw .tk-chv { position: absolute; right: .65rem; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--tk-fg3); pointer-events: none; }
.tk-sel { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: var(--tk-input); border: 1px solid var(--tk-bd); border-radius: 9px; padding: 0 2rem 0 .75rem; color: var(--tk-fg); font-size: .82rem; font-weight: 550; font-family: inherit; cursor: pointer; }
.tk-sel option { background: var(--tk-card); color: var(--tk-fg); }
.bs-font { width: 200px; max-width: 100%; }
.bs-range { width: 200px; max-width: 100%; accent-color: var(--tk-ac); }

/* ── Interrupteur ── */
.tk-tg { position: relative; width: 42px; height: 24px; flex-shrink: 0; display: inline-block; cursor: pointer; }
.tk-tg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.tk-tg .tr { position: absolute; inset: 0; border-radius: 12px; background: var(--tk-bd2); transition: .2s; }
.tk-tg .kn { position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--tk-fg3); transition: .2s cubic-bezier(.3,1.3,.5,1); }
.tk-tg input:checked ~ .tr { background: var(--tk-ok); }
.tk-tg input:checked ~ .kn { transform: translateX(18px); background: #fff; }
.tk-tg input:focus-visible ~ .tr { outline: 2px solid var(--tk-ac); outline-offset: 2px; }

/* ── Segments et pastilles ── */
.tk-seg { display: inline-flex; gap: 3px; padding: 3px; background: var(--tk-card); border: 1px solid var(--tk-bd); border-radius: 10px; flex-wrap: wrap; }
.tk-seg button { border: none; background: transparent; color: var(--tk-fg3); font-size: .8rem; font-weight: 700; padding: .42rem .8rem; border-radius: 7px; cursor: pointer; }
.tk-seg button.on { background: var(--tk-ac-soft); color: var(--tk-fg); }
.tk-seg.dimmed { opacity: .45; pointer-events: none; }
.tk-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.tk-chip { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--tk-bd); background: var(--tk-card2); color: var(--tk-fg2); border-radius: 999px; padding: .3rem .75rem; font-size: .78rem; font-weight: 650; cursor: pointer; }
.tk-chip[aria-pressed="true"] { background: var(--tk-ac-soft); border-color: var(--tk-ac-line); color: var(--tk-fg); }
.tk-chip[aria-pressed="true"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tk-ac); }
.tk-chip.more { border-style: dashed; }

/* ── Réglages repliés ── */
.bs-more { margin-top: .6rem; border-top: 1px solid var(--tk-bd); }
.bs-more > summary { list-style: none; cursor: pointer; padding: .75rem 0 .2rem; font-size: .8rem; font-weight: 650; color: var(--tk-fg2); display: flex; align-items: center; gap: .4rem; }
.bs-more > summary::-webkit-details-marker { display: none; }
.bs-more > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin: 0 .2rem 0 .1rem; }
.bs-more[open] > summary::before { transform: rotate(45deg); }
.bs-more > summary:hover { color: var(--tk-fg); }

/* ── Dépôt de fichiers ── */
.bs-drop { display: flex; flex-direction: column; align-items: center; gap: .25rem; text-align: center; padding: 1.4rem 1rem; border: 1.5px dashed var(--tk-bd2); border-radius: 12px; background: var(--tk-input); cursor: pointer; transition: border-color .15s, background .15s; }
.bs-drop:hover, .bs-drop.drag { border-color: var(--tk-ac); background: var(--tk-ac-soft); }
.bs-drop b { font-size: .9rem; color: var(--tk-fg); }
.bs-drop span { font-size: .76rem; color: var(--tk-fg3); }
.bs-drop .bs-drop-i { width: 22px; height: 22px; color: var(--tk-ac); margin-bottom: .2rem; }
.bs-drop.sm { padding: 1rem; margin-top: .3rem; }

/* ── Son chargé ── */
.bs-file { display: flex; align-items: center; gap: .7rem; padding: .2rem 0 .3rem; min-width: 0; }
.bs-bpm { font-size: .78rem; color: var(--tk-fg3); white-space: nowrap; }
.bs-bpm b { font-size: 1.35rem; font-weight: 800; color: var(--tk-fg); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.bs-fname { flex: 1; min-width: 0; font-size: .78rem; color: var(--tk-fg2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Forme d'onde + sélection ── */
.wave-wrap { margin: .4rem 11px 0; position: relative; height: 56px; user-select: none; touch-action: none; cursor: crosshair; }
.wave-wrap.in-sel { cursor: grab; }
/* Ligne de lecture (suit la position dans l'extrait) */
.wave-ph { position: absolute; top: -4px; bottom: -4px; left: 0; width: 2px; margin-left: -1px; background: var(--tk-fg); border-radius: 1px; pointer-events: none; z-index: 3; will-change: transform; }
.wave-ph::before { content: ""; position: absolute; top: -3px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--tk-fg); }
.wave-wrap.moving { cursor: grabbing; }
#waveform { width: 100%; height: 56px; display: block; background: var(--tk-input); border-radius: 7px; }
.sel-overlay { position: absolute; top: 0; height: 100%; background: var(--tk-ac-soft); box-shadow: inset 2px 0 0 var(--tk-ac), inset -2px 0 0 var(--tk-ac); pointer-events: none; left: 0; width: 100%; border-radius: 7px; }
.sel-handle { position: absolute; top: -4px; width: 22px; height: calc(100% + 8px); margin-left: -11px; cursor: ew-resize; z-index: 4; touch-action: none; }
.sel-handle::before { content: ''; position: absolute; left: 10px; top: 4px; width: 3px; height: calc(100% - 8px); background: var(--tk-ac); border-radius: 2px; }
.sel-handle::after { content: ''; position: absolute; left: 5px; top: 50%; transform: translateY(-50%); width: 13px; height: 26px; background: var(--tk-ac); border-radius: 5px; box-shadow: inset 4px 0 0 -2px rgba(255,255,255,.7), inset -4px 0 0 -2px rgba(255,255,255,.7); }
.sel-handle:hover::after, .sel-handle.dragging::after { filter: brightness(1.25); }
.sel-time { position: absolute; top: -22px; transform: translateX(-50%); background: var(--tk-ac); color: #fff; font: 700 10px/1 -apple-system, 'Segoe UI', sans-serif; padding: 4px 6px; border-radius: 4px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .1s; z-index: 5; }
.sel-time.show { opacity: 1; }
.bs-wave-foot { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .55rem; font-size: .76rem; color: var(--tk-fg3); }
.bs-wave-foot .bs-acts { margin-left: auto; display: flex; gap: .4rem; }

/* ── Clips et palette ── */
.clip-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .6rem; }
.clip-strip:empty { display: none; }
.clip-thumb { position: relative; width: 58px; height: 58px; border-radius: 8px; overflow: hidden; border: 1px solid var(--tk-bd); background: #000; cursor: grab; }
.clip-thumb video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.clip-thumb .x { position: absolute; top: 3px; right: 3px; background: rgba(0,0,0,.72); color: #fff; border: none; border-radius: 5px; width: 18px; height: 18px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.clip-thumb .x svg { width: 11px; height: 11px; }
.flash-only { margin-top: .3rem; }

/* ── Source des clips : mes fichiers / galerie gratuite ── */
.bs-src { margin: .2rem 0 .55rem; }
.bs-gal { display: flex; flex-direction: column; gap: .55rem; }
.bs-gal-search { display: flex; gap: .45rem; }
.bs-gal-search .tk-inp { flex: 1; }
.bs-gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; max-height: 440px; overflow-y: auto; }
.bs-gal-grid:empty { display: none; }
.bs-gal-tile { position: relative; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; border: 1px solid var(--tk-bd); background: var(--tk-input); cursor: pointer; padding: 0; }
.bs-gal-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.bs-gal-tile:hover img { transform: scale(1.05); }
.bs-gal-tile:hover { border-color: var(--tk-ac); }
.bs-gal-tile .dur, .bs-gal-tile .vert { position: absolute; bottom: 4px; font-size: .64rem; font-weight: 700; color: #fff; background: rgba(0,0,0,.68); padding: 1px 5px; border-radius: 4px; }
.bs-gal-tile .dur { right: 4px; }
.bs-gal-tile .vert { left: 4px; }
.bs-gal-tile .st { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; font-size: .74rem; font-weight: 700; }
.bs-gal-tile.added { border-color: var(--tk-ok); }
.bs-gal-msg { grid-column: 1 / -1; font-size: .8rem; color: var(--tk-fg3); padding: .6rem .2rem; }
.bs-gal-foot { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.bs-gal-foot .tk-mut { margin-left: auto; }
.bs-gal-count { font-size: .78rem; font-weight: 650; color: var(--tk-fg2); }
.bs-gal-count:empty { display: none; }
.bs-gal-foot a { color: var(--tk-ac); }
.palette-row { display: flex; gap: 6px; flex-wrap: wrap; margin: .2rem 0 .6rem; }
.swatch { width: 32px; height: 32px; padding: 0; border: 1px solid var(--tk-bd); border-radius: 8px; background: none; cursor: pointer; }

/* ── Paroles ── */
.bs-lyr { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.bs-lyr .bs-lang { margin-left: auto; width: 140px; }
.bs-cost { font-size: .74rem; color: var(--tk-fg3); }
.bs-lyr-note { margin-top: .45rem; min-height: 0; }
.tk-opt.bs-linked { border-top: none; padding-top: 0; }

/* ── Timecodes des paroles ── */
.bs-tc { margin-top: .6rem; border: 1px solid var(--tk-bd); border-radius: 10px; background: var(--tk-input); padding: .6rem .65rem; }
.bs-tc-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.bs-tc-title { font-size: .82rem; font-weight: 650; color: var(--tk-fg); }
.bs-tc-title small { font-weight: 500; color: var(--tk-fg3); margin-left: .3rem; }
.bs-tc-acts { margin-left: auto; display: flex; gap: .35rem; flex-wrap: wrap; }
.bs-tc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow-y: auto; }
.bs-tc-row { display: grid; grid-template-columns: 28px 74px minmax(0, 1fr) 150px 28px; gap: 5px; align-items: center; padding: 2px; border-radius: 8px; }
.bs-tc-row .tc-stylew { width: 100%; }
.bs-tc-row .tc-style { height: 30px; font-size: .76rem; padding-left: .55rem; background: var(--tk-card); color: var(--tk-fg3); }
.bs-tc-row .tc-style.own { color: var(--tk-fg); border-color: var(--tk-ac-line); background: var(--tk-ac-soft); }
.bs-tc-row .tc-style:disabled { opacity: .5; cursor: default; }
@media (max-width: 640px) { .bs-tc-row { grid-template-columns: 28px 70px minmax(0, 1fr) 28px; } .bs-tc-row .tc-stylew { grid-column: 2 / 4; } }
.bs-sublab small { font-weight: 500; color: var(--tk-fg3); margin-left: .35rem; }
.bs-tc-row.on { background: var(--tk-ac-soft); }
.bs-tc-row .tk-inp { height: 30px; font-size: .8rem; padding: 0 .55rem; background: var(--tk-card); }
.bs-tc-row .tc-time { text-align: center; font-variant-numeric: tabular-nums; padding: 0 .3rem; }
.bs-tc-row .tk-inp.bad { border-color: var(--tk-dg); }
.bs-tc-ib { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--tk-bd); background: var(--tk-card); color: var(--tk-fg3); display: grid; place-items: center; cursor: pointer; padding: 0; }
.bs-tc-ib:hover { color: var(--tk-fg); border-color: var(--tk-ac); }
.bs-tc-ib.del:hover { color: var(--tk-dg); border-color: var(--tk-dg); }
.bs-tc-ib svg { width: 12px; height: 12px; }
.bs-tc-empty { font-size: .78rem; color: var(--tk-fg3); padding: .4rem .2rem; list-style: none; }
.bs-lyr-note:empty { display: none; }
.bs-sublab { font-size: .8rem; font-weight: 650; color: var(--tk-fg2); margin: .9rem 0 .45rem; }

/* ── Aperçu ── */
.bs-pv { align-items: stretch; }
.phone { position: relative; align-self: center; height: min(60vh, 560px); aspect-ratio: 9 / 16; max-width: 100%; background: #000; border: 1px solid var(--tk-bd); border-radius: 16px; overflow: hidden; }
.phone.f-1-1 { aspect-ratio: 1 / 1; height: auto; width: min(100%, 420px); }
.phone.f-16-9 { aspect-ratio: 16 / 9; height: auto; width: 100%; }
.preview { width: 100%; height: 100%; display: block; }
.bs-transport { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.bs-transport .tk-i { width: 14px; height: 14px; }
.bs-transport .playing { background: var(--tk-ac-soft); border-color: var(--tk-ac-line); color: var(--tk-fg); }
.bs-clock { font-size: .78rem; color: var(--tk-fg3); font-variant-numeric: tabular-nums; min-width: 92px; }
.bs-hint { text-align: center; }
.bs-export { width: 100%; padding: .8rem 1rem; font-size: .92rem; }
.bs-price { text-align: center; margin-top: -.3rem; }
.bs-note { font-size: .78rem; color: var(--tk-fg2); margin: 0; text-align: center; }
.bs-note:empty { display: none; }

/* ── Pastilles Premium / Wallet (même dorure que le hub Outils) ── */
.bs-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: .7rem; font-weight: 800; color: var(--gold-fg); background: linear-gradient(135deg, #ffe08a, #f5b942); border: 1px solid rgba(180,120,0,.35); white-space: nowrap; vertical-align: .05em; }
.bs-pill svg { width: 10px; height: 10px; }

/* ── Plan par plan (timeline) ── */
.bs-tl-step .tk-sbody { padding-top: .1rem; }
.edit-tl-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tl-btn { font-size: .74rem; font-weight: 650; padding: .35rem .65rem; border-radius: 8px; border: 1px solid var(--tk-bd); background: var(--tk-card2); color: var(--tk-fg2); cursor: pointer; }
.tl-btn:hover:not(:disabled) { border-color: var(--tk-ac); color: var(--tk-fg); }
.tl-btn.danger:hover:not(:disabled) { border-color: var(--tk-dg); background: var(--tk-dg-soft); }
.tl-btn:disabled { opacity: .45; cursor: default; }
.tl-word-edit { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tl-word-tag { font-size: .74rem; font-weight: 700; color: var(--tk-ac); }
.tl-word-input { font-size: .8rem; font-weight: 600; padding: .35rem .6rem; border-radius: 8px; border: 1px solid var(--tk-ac); background: var(--tk-input); color: var(--tk-fg); min-width: 140px; outline: none; }
#edit-timeline { display: block; width: 100%; border-radius: 8px; background: #0b0b11; }

/* ── Fenêtre de confirmation ── */
.bs-modal { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 16px; }
.bs-modal-box { width: min(420px, 100%); background: var(--tk-card); border: 1px solid var(--tk-bd2); border-radius: 14px; padding: 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .7rem; }
.bs-modal-box h3 { margin: 0; font-size: 1.05rem; }
.bs-confirm-price { font-size: .86rem; color: var(--tk-fg2); padding: .65rem .75rem; border-radius: 10px; background: var(--tk-input); border: 1px solid var(--tk-bd); display: flex; flex-direction: column; gap: .35rem; }
.bs-confirm-price b { color: var(--tk-fg); }
.bs-confirm-price .low { color: var(--tk-dg); font-weight: 650; }
.bs-modal-acts { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .2rem; }

/* ── Toast ── */
.tk-toast { position: fixed; right: 16px; bottom: 16px; z-index: 70; background: var(--tk-card); border: 1px solid var(--tk-bd2); border-left: 3px solid var(--tk-ok); color: var(--tk-fg); padding: .65rem .95rem; border-radius: 9px; font-size: .84rem; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; max-width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.tk-toast.error { border-left-color: var(--tk-dg); }
.tk-toast.show { opacity: 1; transform: none; }
