/* Démo interactive : maquette de Resolve + reproduction du plugin (styles repris de css/app.css du plugin). */
.rs {
    --rs-bg: #1a1a1d; --rs-panel: #202024; --rs-dark: #111113; --rs-line: #2c2c31;
    --pbg: #1c1c1f; --ppanel: #232327; --pcard: #2a2a2f; --pcard-h: #303036; --pfield: #18181b; --pline: #36363c; --pline-s: #2e2e33;
    --ptext: #e0e0e2; --ptext-2: #a3a3aa; --ptext-3: #6f6f77;
    position: relative; border-radius: 14px; overflow: hidden; background: var(--rs-bg);
    border: 1px solid #000; box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
    font: 13px/1.4 var(--ui); color: var(--ptext); user-select: none;
}
.rs :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.rs input, .rs [contenteditable] { font: inherit; color: inherit; user-select: text; }
.rs .ic { width: 16px; height: 16px; flex: none; display: block; }

/* --- barre de titre --- */
.rs-top { height: 34px; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: var(--rs-dark); border-bottom: 1px solid #000; font-size: 12px; color: #9a9aa2; }
.rs-top b { color: #d8d8dc; font-weight: 600; }
.rs-top .sp { flex: 1; }
.rs-top .win { display: flex; gap: 14px; color: #6d6d75; }
.rs-top .win i { width: 10px; height: 10px; border: 1.4px solid currentColor; border-radius: 2px; }
.rs-top .win i:first-child { border-width: 0 0 1.4px; border-radius: 0; height: 6px; }

/* --- zone principale --- */
.rs-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; height: 600px; }
.rs-left { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; min-width: 0; border-right: 1px solid #000; }
.rs-viewer { position: relative; background: #0b0b0c; display: grid; place-items: center; overflow: hidden; min-height: 0; }
.stage { position: relative; height: 92%; aspect-ratio: 16 / 9; max-width: 94%; overflow: hidden; background: #0d0a0a; }
.stage .curtain { position: absolute; inset: 0; background:
    linear-gradient(90deg, #4a0f12 0 9%, transparent 9% 91%, #4a0f12 91%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.25) 0 6px, transparent 6px 14px); }
.stage .light { position: absolute; inset: 0; background: radial-gradient(42% 70% at var(--lx, 50%) 18%, rgba(255, 214, 150, var(--li, .55)), transparent 70%); mix-blend-mode: screen; transition: background .4s; }
.stage .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(#2a1c14, #120c09); }
.stage .actor { position: absolute; bottom: 18%; width: 6%; height: 34%; border-radius: 40% 40% 8% 8%; background: #0a0707; transition: left .4s, height .4s; }
.stage .actor::before { content: ""; position: absolute; left: 22%; top: -26%; width: 56%; aspect-ratio: 1; border-radius: 50%; background: #0a0707; }
.stage .hud { position: absolute; left: 8px; top: 6px; font-size: 11px; color: rgba(255,255,255,.75); text-shadow: 0 1px 2px #000; }
.stage .hud-tc { left: auto; right: 8px; font-family: var(--mono); }
.stage.zoom { transform-origin: var(--lx, 50%) 60%; }
.stage.zoom .floor, .stage.zoom .curtain { transform: scale(1.35); }

.rs-tools { display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: var(--rs-panel); border-top: 1px solid #000; border-bottom: 1px solid #000; }
.rs-tc { font-family: var(--mono); font-size: 15px; color: #e8e8ea; letter-spacing: .02em; min-width: 112px; }
.rs-tlname { color: #8d8d95; font-size: 12px; }
.rs-tools .sp { flex: 1; }
.rs-tbtn { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 5px; background: #2b2b30; border: 1px solid #38383e !important; color: #d6d6da; font-size: 12px; }
.rs-tbtn:hover { background: #333339; }
.rs-tbtn kbd { font-family: var(--mono); font-size: 10.5px; color: #8e8e96; border: 1px solid #45454c; border-radius: 3px; padding: 0 4px; }
.rs-tbtn.mk .ic { color: #4c9be8; }

.rs-tl { background: #1b1b1e; padding-bottom: 6px; position: relative; }
.rs-ruler { position: relative; height: 30px; margin-left: 46px; margin-right: 8px; border-bottom: 1px solid #2c2c31; cursor: pointer; }
.rs-ruler .tick { position: absolute; bottom: 0; width: 1px; height: 7px; background: #4a4a51; }
.rs-ruler .tick b { position: absolute; bottom: 9px; left: 3px; font: 10px var(--mono); color: #6c6c74; font-weight: 400; white-space: nowrap; }
.rs-tracks { position: relative; margin-right: 8px; }
.rs-track { display: flex; align-items: stretch; height: 30px; border-bottom: 1px solid #111; }
.rs-track .tn { width: 46px; flex: none; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #c9c9cd; background: #232327; border-right: 1px solid #111; }
.rs-track .lane { position: relative; flex: 1; }
.clip { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; background: #3c6a94; border: 1px solid #5b8bb7; overflow: hidden; font-size: 9.5px; color: #e9f1f8; padding: 2px 5px; white-space: nowrap; text-overflow: ellipsis; }
.clip.b { background: #436d8e; }
.clip.c { background: #4c6b84; }
.clip.au { background: #2f6247; border-color: #4b8e69; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px 3px); background-size: 3px 60%; background-repeat: repeat-x; background-position: 0 70%; }
.rs-playhead { position: absolute; top: 0; bottom: -6px; width: 0; border-left: 1.5px solid #e8553f; pointer-events: none; z-index: 4; }
.rs-playhead::before { content: ""; position: absolute; top: 0; left: -6.5px; border: 6px solid transparent; border-top: 8px solid #e8553f; }
.rs-marker { position: absolute; bottom: 2px; width: 12px; height: 14px; margin-left: -6px; z-index: 5; cursor: pointer; }
.rs-marker::before { content: ""; position: absolute; inset: 0; background: var(--c); clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); }
.rs-marker:hover::before, .rs-marker.hl::before { filter: brightness(1.25); }
.rs-marker .tip { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #000; color: #fff; font-size: 11px; padding: 3px 7px; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.rs-marker:hover .tip, .rs-marker.hl .tip { opacity: 1; }
.rs-marker.pop { animation: mkpop .6s var(--ease); }
@keyframes mkpop { 0% { transform: translateY(-14px); opacity: 0; } 60% { transform: translateY(2px); opacity: 1; } 100% { transform: none; } }

.rs-pages { display: flex; justify-content: center; gap: 4px; padding: 6px 8px; background: var(--rs-dark); border-top: 1px solid #000; overflow-x: auto; scrollbar-width: none; }
.rs-pages::-webkit-scrollbar { display: none; }
.rs-page { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 74px; padding: 4px 8px; border-radius: 6px; color: #7c7c84 !important; font-size: 11px !important; }
.rs-page svg { width: 18px; height: 18px; }
.rs-page:hover { color: #c8c8cc !important; background: #1c1c20 !important; }
.rs-page.on { color: #fff !important; }
.rs-page.on svg { color: var(--c); }
.rs-page.on::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--c); }

/* --- le plugin --- */
.tdp { position: relative; display: flex; flex-direction: column; min-height: 0; background: var(--pbg); overflow: hidden; }
.tdp.hide { visibility: hidden; }
.tdp-top { height: 44px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 6px 0 10px; background: var(--ppanel); border-bottom: 1px solid #111; }
.tdp-top .logo { width: 18px; height: 18px; flex: none; }
.proj-btn { display: flex; align-items: center; gap: 7px; min-width: 0; flex: 1; padding: 5px 8px; border-radius: 6px; text-align: left; }
.proj-btn:hover { background: #2d2d32; }
.proj-btn .dot { width: 7px; height: 7px; border-radius: 50%; background: #5fbf6e; flex: none; box-shadow: 0 0 0 3px rgba(95,191,110,.15); }
.proj-btn .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.proj-btn .ic { width: 14px; height: 14px; color: var(--ptext-2); transition: transform .2s var(--ease); }
.proj-btn.open .ic { transform: rotate(180deg); }
.ibtn { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; color: var(--ptext-2); flex: none; }
.ibtn:hover { background: #2d2d32; color: var(--ptext); }
.ibtn.pin { color: #e8553f; }
.ibtn .ic { width: 15px; height: 15px; }

.tabs { flex: none; display: flex; gap: 4px; padding: 8px 10px; overflow-x: auto; overflow-y: hidden; background: var(--ppanel); border-bottom: 1px solid var(--pline-s); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 13px; color: var(--ptext-2); font-size: 12px; font-weight: 500; border: 1px solid transparent !important; transition: background .15s, color .15s; }
.tab:hover { color: var(--ptext); background: #2e2e33 !important; }
.tab .cnt { font-size: 10px; min-width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 8px; background: #3a3a40; color: var(--ptext-2); padding: 0 4px; }
.tab.active { color: #fff; background: #36363c !important; border-color: #46464d !important; }
.tab .sw { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.tab.rpage::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #e8553f; margin-left: 1px; }

.pbanner { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 12px; background: rgba(227, 176, 74, .1); color: #e8c47a; border-bottom: 1px solid rgba(227, 176, 74, .2); }
.pbanner span { flex: 1; min-width: 0; }
.pbanner button { color: #fff; text-decoration: underline; text-underline-offset: 2px; font-size: 12px; flex: none; }

.views { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.pview { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--pbg); transition: transform .26s var(--ease), opacity .26s var(--ease); }
.pview.detail { transform: translateX(100%); opacity: 0; pointer-events: none; }
.tdp[data-view="detail"] .pview.list { transform: translateX(-24%); opacity: 0; pointer-events: none; }
.tdp[data-view="detail"] .pview.detail { transform: none; opacity: 1; pointer-events: auto; }
.tdp[data-view="detail"] .tabs { display: none; }
.scroller { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px 10px 4px; scrollbar-width: thin; scrollbar-color: #3b3b42 transparent; }
.plist { display: flex; flex-direction: column; gap: 6px; }

.card { display: flex; align-items: flex-start; gap: 10px; padding: 9px 8px 9px 10px; background: var(--pcard); border: 1px solid var(--pline-s); border-radius: 6px; transition: background .15s, border-color .15s; position: relative; }
.card:hover { background: var(--pcard-h); border-color: #3c3c43; }
.card.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { border-color: #e8553f; box-shadow: 0 0 0 2px rgba(232,85,63,.25); } 100% { } }
.chk { width: 18px; height: 18px; margin-top: 1px; flex: none; border-radius: 5px; border: 1.5px solid #5d5d66 !important; display: grid; place-items: center; color: transparent; transition: background .15s, border-color .15s; }
.chk:hover { border-color: #e8553f !important; }
.chk .ic { width: 12px; height: 12px; stroke-width: 3; }
.done > .chk, .chk.on { background: #e8553f; border-color: #e8553f !important; color: #fff; }
.cbody { flex: 1; min-width: 0; cursor: pointer; }
.ctitle { line-height: 1.35; overflow-wrap: anywhere; }
.cbody:hover .ctitle { color: #fff; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.badge { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.mini { display: inline-flex; align-items: center; gap: 3px; color: var(--ptext-3); font-size: 11px; }
.mini .ic { width: 12px; height: 12px; }
.mini.mkd { color: #4c9be8; }
.exp { width: 16px; height: 16px; display: grid; place-items: center; color: var(--ptext-3); margin-left: -2px; }
.exp .ic { width: 12px; height: 12px; transition: transform .2s; }
.exp.open .ic { transform: rotate(90deg); }
.pie { width: 12px; height: 12px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 360deg), #45454c 0); }
.card.done { background: #232327; border-color: transparent; }
.card.done .ctitle { color: var(--ptext-3); text-decoration: line-through; text-decoration-color: #5a5a62; }
.card.done .badge { filter: saturate(.2); opacity: .6; }
.group.open > .card { border-color: color-mix(in srgb, var(--c) 45%, transparent); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.subs { border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-top: 0; border-radius: 0 0 6px 6px; padding: 6px 6px 6px 18px; display: flex; flex-direction: column; gap: 5px; background: #202024; position: relative; }
.subs::before { content: ""; position: absolute; left: 9px; top: 0; bottom: 14px; width: 2px; border-radius: 2px; background: color-mix(in srgb, var(--c) 55%, transparent); }
.card.sub { padding: 6px 6px 6px 8px; gap: 8px; background: #26262b; }
.card.sub .chk { width: 16px; height: 16px; }
.card.sub .ctitle { font-size: 12.5px; }
.sub-add { display: flex; gap: 5px; }
.sub-add input { flex: 1; min-width: 0; height: 28px; padding: 0 9px; border-radius: 6px; background: var(--pfield); border: 1px solid var(--pline); outline: none; font-size: 12px; }
.sub-add input:focus { border-color: #e8553f; }
.sub-add button { width: 28px; height: 28px; border-radius: 6px; background: #e8553f; color: #fff; display: grid; place-items: center; }
.sep { display: flex; align-items: center; gap: 8px; margin: 12px 2px 4px; color: var(--ptext-3); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.sep::after { content: ""; flex: 1; height: 1px; background: var(--pline-s); order: 1; }
.sep button { order: 2; display: inline-flex; gap: 4px; align-items: center; text-transform: none; letter-spacing: 0; color: var(--ptext-2); padding: 3px 8px; border-radius: 5px; border: 1px solid var(--pline) !important; font-size: 11px; }
.empty { text-align: center; color: var(--ptext-3); padding: 40px 20px 20px; }
.empty b { display: block; color: var(--ptext-2); margin-bottom: 4px; }

.quickadd { flex: none; display: flex; gap: 6px; padding: 10px; background: var(--ppanel); border-top: 1px solid var(--pline-s); }
.quickadd input { flex: 1; min-width: 0; height: 32px; padding: 0 10px; border-radius: 6px; background: var(--pfield); border: 1px solid var(--pline); outline: none; }
.quickadd input:focus { border-color: #e8553f; }
.quickadd input::placeholder, .sub-add input::placeholder { color: var(--ptext-3); }
.addb { width: 32px; height: 32px; border-radius: 6px; background: #e8553f !important; color: #fff; display: grid; place-items: center; }
.addb:hover { background: #f26a55 !important; }
.addb .ic { width: 18px; height: 18px; stroke-width: 2.2; }

/* détail */
.d-top { flex: none; display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 6px; background: var(--ppanel); border-bottom: 1px solid var(--pline-s); }
.back { display: flex; align-items: center; gap: 2px; padding: 4px 8px 4px 4px; border-radius: 6px; color: var(--ptext-2); font-size: 12px; }
.back:hover { background: #2e2e33 !important; color: var(--ptext); }
.d-top .grow { flex: 1; }
.page-sel { appearance: none; height: 24px; padding: 0 22px 0 9px; border-radius: 4px; border: 0; outline: none; font: 600 11px var(--ui); cursor: pointer; color: var(--c);
    background: color-mix(in srgb, var(--c) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 6px center / 10px; }
.page-sel option { background: #2a2a2f; color: var(--ptext); }
.d-top .chk { width: 22px; height: 22px; margin: 0 2px; }
.d-body { flex: 1; overflow-y: auto; padding: 12px 14px 16px; scrollbar-width: thin; scrollbar-color: #3b3b42 transparent; }
.d-title { width: calc(100% + 12px); margin: 0 -6px; padding: 4px 6px; border-radius: 6px; border: 1px solid transparent; background: transparent; outline: none; font-size: 17px !important; font-weight: 600; }
.d-title:hover { background: #222226; }
.d-title:focus { background: var(--pfield); border-color: var(--pline); }
.d-title.done { text-decoration: line-through; color: var(--ptext-2); }
.d-sub { font-size: 11px; color: var(--ptext-3); margin: 2px 0 12px; }
.sec { border-top: 1px solid var(--pline-s); padding: 10px 0 12px; }
.sec-h { display: flex; align-items: center; gap: 7px; min-height: 26px; font-weight: 600; }
.sec-h .ic { color: var(--ptext-2); }
.sec-h .n { color: var(--ptext-3); font-weight: 400; font-size: 12px; }
.sec-h .sp { flex: 1; }
.lbtn { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 5px; border: 1px solid var(--pline) !important; color: var(--ptext-2); font-size: 11.5px; }
.lbtn:hover { color: var(--ptext); border-color: #4a4a52 !important; background: #2a2a2f !important; }
.lbtn .ic { width: 13px; height: 13px; }
.notes { margin-top: 6px; min-height: 64px; padding: 9px 11px; border-radius: 6px; background: var(--pfield); border: 1px solid var(--pline); outline: none; font-size: 12.5px; line-height: 1.5; }
.notes:focus { border-color: #4a4a52; }
.notes h4 { margin: 0 0 4px; font-size: 13px; }
.notes ul { margin: 2px 0 4px; padding-left: 18px; }
.notes mark { background: rgba(247, 183, 46, .35); color: #fff; padding: 0 2px; border-radius: 2px; }
.hint { font-size: 11.5px; color: var(--ptext-3); margin-top: 4px; }
.tl-row { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; margin-top: 5px; border-radius: 5px; background: #26262b; cursor: pointer; font-size: 12px; }
.tl-row:hover { background: #2e2e34; }
.tl-row .ic { width: 13px; height: 13px; color: #e5675f; }
.tl-row .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.tl-row .tc { font-family: var(--mono); font-size: 11.5px; color: var(--ptext-2); }
.tl-row .mk { width: 16px; height: 16px; border-radius: 3px; display: grid; place-items: center; background: rgba(76, 155, 232, .16); color: #4c9be8; }
.tl-row .mk .ic { width: 11px; height: 11px; color: inherit; }
.wide-btn { width: 100%; height: 32px; margin-top: 8px; border-radius: 6px; background: #2a2a2f !important; border: 1px solid var(--pline) !important; display: flex; align-items: center; justify-content: center; gap: 7px; font-weight: 600; font-size: 12.5px; }
.wide-btn:hover { background: #313137 !important; }
.wide-btn .ic { width: 14px; height: 14px; color: #e8553f; }
.wide-btn.mkb .ic { color: #4c9be8; }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.thumb { position: relative; width: 112px; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; border: 1px solid #000; }
.thumb .stage { height: 100%; max-width: none; width: 100%; }
.thumb .ring { position: absolute; width: 26%; aspect-ratio: 1; border: 2px solid #f7b72e; border-radius: 50%; left: var(--rx); top: 30%; }
.thumb .ttc { position: absolute; left: 3px; bottom: 2px; font: 9px var(--mono); color: #fff; background: rgba(0,0,0,.6); padding: 0 3px; border-radius: 2px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding: 10px; border-radius: 6px; background: #26262b; }
.swatches p { width: 100%; font-size: 11.5px; color: var(--ptext-2); }
.sw-c { width: 22px; height: 22px; border-radius: 50%; background: var(--c) !important; border: 2px solid transparent !important; }
.sw-c:hover { border-color: #fff !important; }

/* menu projets / vue d'ensemble */
.pmenu { position: absolute; left: 8px; right: 8px; top: 46px; z-index: 20; background: #26262b; border: 1px solid #3a3a41; border-radius: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.55); padding: 6px; }
.pmenu .h { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ptext-3); padding: 8px 8px 4px; }
.pm-item { width: 100%; display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 5px; text-align: left; }
.pm-item:hover { background: #303036 !important; }
.pm-item .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-item .tag { font-size: 10px; color: #5fbf6e; border: 1px solid rgba(95,191,110,.4); padding: 0 5px; border-radius: 4px; }
.pm-item .c { font-size: 11px; color: var(--ptext-3); }
.pm-item.cur { background: rgba(232, 85, 63, .12); }
.sheet { position: absolute; inset: 0; z-index: 30; background: var(--pbg); display: flex; flex-direction: column; }
.sheet-h { display: flex; align-items: center; gap: 8px; padding: 12px; border-bottom: 1px solid var(--pline-s); font-weight: 600; }
.sheet-h .sp { flex: 1; }
.ov { padding: 10px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.ov .sub { color: var(--ptext-3); font-size: 11.5px; padding: 0 2px 4px; }
.ov-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; background: var(--pcard); text-align: left; width: 100%; }
.ov-row:hover { background: var(--pcard-h) !important; }
.ov-row.cur { background: rgba(232, 85, 63, .12); }
.ov-row b { display: block; font-weight: 600; }
.ov-row small { color: var(--ptext-3); font-size: 11px; }
.ov-row small.open { color: #5fbf6e; }
.ring { flex: none; }

/* toasts, mode compact, ajout rapide */
.ptoast { position: absolute; left: 10px; right: 10px; bottom: 60px; z-index: 40; background: #2f2f35; border: 1px solid #45454c; border-radius: 7px; padding: 9px 12px; font-size: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.5); transform: translateY(8px); opacity: 0; transition: .25s var(--ease); pointer-events: none; }
.ptoast.on { transform: none; opacity: 1; }
.mini-badge { position: absolute; z-index: 60; right: 14px; top: 46px; display: none; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 12px; background: rgba(24, 24, 27, .94); border: 1px solid #3a3a41; box-shadow: 0 12px 30px rgba(0,0,0,.55); cursor: grab; }
.mini-badge.on { display: flex; }
.mini-badge img { width: 28px; height: 28px; }
.qa { position: absolute; z-index: 70; left: 50%; top: 70px; transform: translateX(-50%); width: min(400px, calc(100% - 24px)); background: #1f1f23; border: 1px solid #3c3c43; border-radius: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.6); padding: 10px 12px 9px; display: none; }
.qa.on { display: block; }
.qa .row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ptext-2); margin-bottom: 7px; }
.qa .row .tc { font-family: var(--mono); }
.qa input { width: 100%; height: 34px; padding: 0 10px; border-radius: 6px; background: var(--pfield); border: 1px solid #e8553f; outline: none; }
.qa .keys { display: flex; justify-content: space-between; font-size: 11px; color: var(--ptext-3); margin-top: 6px; }

/* --- étroit --- */
@media (max-width: 960px) {
    .rs-main { grid-template-columns: minmax(0, 1fr); height: auto; }
    .rs-left { grid-template-rows: 210px auto auto; border-right: 0; border-bottom: 1px solid #000; }
    .tdp { height: 520px; }
    .rs-top .proj { display: none; }
}
@media (max-width: 560px) {
    .rs-left { grid-template-rows: 160px auto auto; }
    .rs-tlname { display: none; }
    .rs-tbtn span { display: none; }
    .rs-page { min-width: 52px; padding: 4px 4px; }
    .rs-page span { font-size: 10px; }
}

.rs.compact .rs-main { grid-template-columns: minmax(0, 1fr); }
.rs.compact .tdp { display: none; }
.rs.compact .rs-left { border-right: 0; }
@media (max-width: 960px) { .rs.compact .rs-left { border-bottom: 0; } }
