/* Studio multipiste (page « recstudio ») — interface d'un vrai studio, sobre : pistes à gauche, timeline à droite */
body[data-page="recstudio"] .page[data-page="recstudio"] { display: flex; }
.rs-card { width: 100%; } .page[data-page="recstudio"] > .rs-card { max-width: none; }   /* une timeline a besoin de toute la largeur */
.rs { display: flex; flex-direction: column; gap: 10px; min-width: 0; width: 100%; align-self: stretch; }
.rs-list .rs-items { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.rs-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.04); }
.rs-item b { display: block; } .rs-item span { font-size: 12px; color: #9aa6b8; }
.rs-busy { margin-top: 8px; color: #f6dd9c; }
.rs button { width: auto; }
.rs-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.rs-name { font-size: 14px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-transport, .rs-tools, .rs-zoom { display: inline-flex; align-items: center; gap: 4px; }
.rs-transport button, .rs-tools button, .rs-zoom button { padding: 6px 11px; border-radius: 8px; font-size: 13px; }
.rs-tools button:disabled { opacity: .35; }
.rs-play { min-width: 44px; background: #f3c24f !important; color: #1a1205 !important; border-color: #f3c24f !important; font-weight: 800; }
.rs-time { font: 600 15px/1 ui-monospace, "SF Mono", Menlo, monospace; padding: 6px 10px; border-radius: 8px; background: #0b0f15; color: #e8edf5; min-width: 108px; text-align: center; }
.rs-save { font-size: 12px; color: #9aa6b8; margin-left: auto; }
.rs-note { font-size: 12px; color: #f6dd9c; } .rs-note[hidden] { display: none; }
.rs-body { width: 100%; box-sizing: border-box; display: flex; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; overflow: hidden; background: #0d1219; }
.rs-heads { flex: 0 0 210px; border-right: 1px solid rgba(255,255,255,.08); background: #111823; }
.rs-hruler { height: 24px; border-bottom: 1px solid rgba(255,255,255,.06); }
.rs-hmark { height: 22px; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #8f9bb0; padding: 4px 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.rs-th { height: 76px; box-sizing: border-box; padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; justify-content: center; gap: 4px; border-left: 3px solid var(--c); }
.rs-tn { display: flex; align-items: center; gap: 6px; } .rs-tn b { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-tn button { padding: 2px 7px; font-size: 11px; font-weight: 800; border-radius: 6px; }
.rs-m.on { background: #e5484d; color: #fff; border-color: #e5484d; } .rs-s.on { background: #f3c24f; color: #1a1205; border-color: #f3c24f; }
.rs-tc { display: flex; flex-direction: column; gap: 2px; } .rs-tc label { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #8f9bb0; }
.rs-tc label span { width: 24px; } .rs-tc input[type=range] { flex: 1; min-width: 0; }
.rs-hmaster { display: flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 11px; color: #8f9bb0; } .rs-hmaster input { flex: 1; min-width: 0; }
.rs-lanes { flex: 1 1 0; width: 0; min-width: 0; position: relative; overflow: hidden; }   /* largeur = place restante, jamais celle des canevas (300 px par défaut) */
.rs-lanes canvas { display: block; }
.rs-ruler { cursor: pointer; border-bottom: 1px solid rgba(255,255,255,.06); background: #111823; }
.rs-marks { border-bottom: 1px solid rgba(255,255,255,.06); background: #0f151e; }
.rs-headline { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: #ff4d4f; pointer-events: none; box-shadow: 0 0 6px rgba(255,77,79,.6); }
.rs-headtop { position: absolute; top: 0; left: 0; width: 12px; height: 12px; margin-left: -6px; background: #ff4d4f; clip-path: polygon(0 0, 100% 0, 50% 100%); pointer-events: none; }
.rs-headline[hidden], .rs-headtop[hidden] { display: none; }
.rs-scroll { width: 100%; }
.rs-hint { font-size: 11px; }
.rec-next { display: flex; gap: 6px; margin-top: 6px; }
body.simple .rs-hmark { display: none; } body.simple .rs-marks { display: none; }
@media (max-width: 760px) { .rs-heads { flex-basis: 140px; } .rs-save { margin-left: 0; } }
.rs-tn button { flex: 0 0 auto; width: auto !important; min-width: 0; }
.rs-transport button, .rs-tools button, .rs-zoom button { white-space: nowrap; width: auto !important; }
.rs-tc label input[type=range] { width: auto; }
/* ---------- Phase B : vues, mixeur, export ---------- */
.rs-views { display: inline-flex; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; overflow: hidden; }
.rs-views button { border: 0 !important; border-radius: 0 !important; padding: 6px 12px; background: transparent; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; width: auto !important; }
.rs-views button.sel { background: #f3c24f; color: #1a1205; }
.rs-out { display: inline-flex; gap: 4px; } .rs-out button { padding: 6px 11px; border-radius: 8px; font-size: 13px; width: auto !important; white-space: nowrap; }
.rs-exportb { background: #f3c24f !important; color: #1a1205 !important; border-color: #f3c24f !important; font-weight: 800; }
.rs-selband { position: absolute; top: 0; bottom: 0; left: 0; background: rgba(243,194,79,.14); border-left: 1px solid #f3c24f; border-right: 1px solid #f3c24f; pointer-events: none; }
.rs-selband[hidden] { display: none; }
.rs-mix[hidden], .rs-body[hidden], .rs-scroll[hidden], .rs-hint[hidden], .rs-modal[hidden] { display: none !important; }
.rs-mix { display: flex; flex-direction: column; gap: 10px; }
.rsm-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rsm-ab { padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; width: auto !important; }
.rsm-ab.on { background: #3b2a12; border-color: #f3c24f; color: #f6dd9c; }
.rsm-strips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.rsm-strip { flex: 0 0 132px; display: flex; flex-direction: column; gap: 6px; padding: 10px 8px; border-radius: 12px; background: #111823; border: 1px solid rgba(255,255,255,.07); border-top: 3px solid var(--c, #8b96a8); box-sizing: border-box; }
.rsm-strip.sel { border-color: #f3c24f; box-shadow: 0 0 0 1px #f3c24f inset; }
.rsm-master { flex-basis: 170px; background: #141c28; --c: #f3c24f; }
.rsm-name { display: flex; align-items: center; gap: 6px; font-size: 12px; } .rsm-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rsm-name i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: 0 0 8px; }
.rsm-strip select { width: 100%; font-size: 11px; padding: 4px; }
.rsm-row { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #8f9bb0; } .rsm-row span { flex: 0 0 auto; min-width: 34px; } .rsm-row input[type=range] { flex: 1; min-width: 0; width: auto; } .rsm-row b { color: #e8edf5; font-size: 10px; min-width: 36px; text-align: right; font-variant-numeric: tabular-nums; }
.rsm-row select { flex: 1; min-width: 0; }
.rsm-fxb { text-align: left; padding: 5px 7px; font-size: 11px; font-weight: 800; border-radius: 7px; width: 100% !important; overflow: hidden; } .rsm-fxb small { display: block; font-weight: 500; color: #8f9bb0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rsm-fxb.on { border-color: #f3c24f; color: #f6dd9c; }
.rsm-mf { display: flex; gap: 8px; height: 190px; align-items: stretch; justify-content: center; }
.rsm-meter { position: relative; width: 12px; border-radius: 3px; background: #0a0e14; overflow: hidden; } .rsm-st { width: 18px; }
.rsm-meter .lv { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: #27c76f; transition: height .05s linear; }
.rsm-meter .lv.y { background: linear-gradient(to top, #27c76f 70%, #f3c24f); } .rsm-meter .lv.r { background: linear-gradient(to top, #27c76f 60%, #f3c24f 85%, #ff4d4f); }
.rsm-meter .pk { position: absolute; left: 0; right: 0; height: 2px; background: #e8edf5; bottom: 0; }
.rsm-fader { writing-mode: vertical-lr; direction: rtl; width: 26px !important; height: 100%; accent-color: #f3c24f; }
.rsm-read { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-variant-numeric: tabular-nums; }
.rsm-clip { font-size: 9px; font-weight: 800; padding: 1px 4px; border-radius: 3px; color: #3a4452; border: 1px solid #2a3240; cursor: pointer; } .rsm-clip.on { background: #ff4d4f; color: #fff; border-color: #ff4d4f; }
.rsm-clip.big { font-size: 11px; padding: 2px 7px; }
.rsm-peak { font-size: 10px; color: #8f9bb0; } .rsm-peak b { color: #e8edf5; }
.rsm-ms { display: flex; gap: 4px; } .rsm-ms button { flex: 1; padding: 4px 0; font-weight: 800; font-size: 12px; border-radius: 7px; width: auto !important; }
.rsm-ms button.on.m { background: #e5484d; color: #fff; border-color: #e5484d; } .rsm-ms button.on.s { background: #f3c24f; color: #1a1205; border-color: #f3c24f; }
.rsm-reset { font-size: 10px; padding: 4px; border-radius: 7px; width: 100% !important; }
.rsm-route { font-size: 10px; color: #6b7686; text-align: center; }
.rsm-loud { display: flex; flex-direction: column; gap: 2px; font-size: 10px; color: #8f9bb0; } .rsm-loud b { color: #e8edf5; float: right; font-variant-numeric: tabular-nums; } .rsm-lreset { padding: 2px; font-size: 11px; width: auto !important; align-self: flex-end; }
.rsm-fx { border: 1px solid rgba(243,194,79,.35); border-radius: 12px; padding: 10px 12px; background: #0f151e; }
.rsm-fxh { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; } .rsm-fxh b { font-size: 13px; } .rsm-fxh button { margin-left: auto; width: auto !important; padding: 3px 9px; }
.rsm-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.rsm-mod { border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 8px; opacity: .65; } .rsm-mod.on { opacity: 1; border-color: rgba(243,194,79,.5); }
.rsm-modh { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-bottom: 6px; } .rsm-modb { display: flex; flex-direction: column; gap: 4px; }
body.simple .rsm-fx { display: none; }
.rs-modal { position: fixed; inset: 0; z-index: 80; background: rgba(5,8,12,.62); display: flex; align-items: center; justify-content: center; padding: 16px; }
.rse-card { width: min(560px, 100%); max-height: 90vh; overflow: auto; background: #111823; border: 1px solid rgba(243,194,79,.4); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.rse-h { display: flex; align-items: center; } .rse-h b { letter-spacing: .12em; font-size: 13px; color: #f3c24f; } .rse-x { margin-left: auto; width: auto !important; padding: 3px 9px; }
.rse-sec { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); }
.rse-sec label { display: flex; align-items: center; gap: 8px; font-size: 13px; } .rse-sec small { color: #8f9bb0; } .rse-sec label.dis { opacity: .45; }
.rse-t { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9aa6b8; }
.rse-wd select { margin-left: auto; }
.rse-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .rse-foot .help { flex: 1 1 200px; font-size: 11px; } .rse-foot button { width: auto !important; }
.rse-go { background: #f3c24f !important; color: #1a1205 !important; border-color: #f3c24f !important; font-weight: 800; }
.rse-bar { height: 10px; border-radius: 6px; background: #0a0e14; overflow: hidden; } .rse-bar i { display: block; height: 100%; background: linear-gradient(90deg, #c9a64a, #f3c24f); transition: width .3s; }
.rse-pct { color: #e8edf5; font-size: 16px; margin-left: 6px; } .rse-tm { font-size: 12px; color: #9aa6b8; }
.rse-files { margin: 0; padding-left: 18px; font-size: 12px; }
.rsm-strip { width: 132px; min-width: 132px; max-width: 132px; } .rsm-master { width: 170px; min-width: 170px; max-width: 170px; }
.rsm-strip select { min-width: 0; max-width: 100%; }
.rsm-fxb, .rsm-reset, .rsm-ms, .rsm-row, .rsm-read, .rsm-name { flex: 0 0 auto; }
.rse-x, .rsm-fxh button { flex: 0 0 auto !important; width: auto !important; min-width: 0; }
/* le moniteur Programme flottant prend moins de place sur la page Multipiste */
body[data-page="recstudio"] #pgmCard { width: 190px !important; bottom: 56px !important; opacity: .92; }
.rs-mix { width: 100%; align-self: stretch; } .rsm-strips { justify-content: flex-start; } .rsm-bar { justify-content: flex-start; } .rsm-ab { flex: 0 0 auto; }
.rsm-fader { -webkit-appearance: none; appearance: none; background: transparent; height: 190px !important; margin: 0; cursor: ns-resize; }
.rsm-fader::-webkit-slider-runnable-track { width: 6px; border-radius: 3px; background: #2a3240; }
.rsm-fader::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 14px; border-radius: 4px; background: linear-gradient(#f6dd9c, #c9a64a); border: 1px solid #1a1205; box-shadow: 0 2px 6px rgba(0,0,0,.5); margin-left: -10px; }
