/* Atelier Studio — barre d'outils de la sélection, couleurs, remplacement d'image, piste « Objets ». */
.edit-bar{position:fixed;z-index:1400;display:flex;align-items:center;gap:2px;padding:4px;background:#1d1a3f;border:1px solid #4b4473;border-radius:12px;box-shadow:0 8px 24px rgba(10,8,30,.45);animation:eb-in .16s ease-out}
.edit-bar[hidden]{display:none}
@keyframes eb-in{from{opacity:0;transform:translateY(4px) scale(.97)}to{opacity:1;transform:none}}
.edit-bar button{display:flex;align-items:center;gap:6px;height:32px;min-width:32px;padding:0 8px;background:transparent;border:0;border-radius:8px;color:#f4eee2;font-size:12px;cursor:pointer;justify-content:center}
.edit-bar button:hover{background:#3a3470}
.edit-bar button:active{transform:scale(.94)}
.edit-bar svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.edit-bar svg .f{fill:currentColor;fill-opacity:.25}
.edit-bar .eb-text{padding:0 10px 0 8px;font-weight:600}
.edit-bar .eb-text:first-child{background:#ffc53d;color:#1d1a3f}
.edit-bar .eb-text:first-child:hover{background:#ffd56b}
.edit-bar .eb-swatch i{width:18px;height:18px;border-radius:50%;box-shadow:inset 0 0 0 2px rgba(255,255,255,.85),0 0 0 1px #4b4473}
.edit-bar .eb-danger:hover{background:#ff6b5b;color:#1d1a3f}
.edit-bar .eb-rule{width:1px;height:20px;background:#4b4473;margin:0 3px}
.edit-pop{position:fixed;z-index:1450;width:236px;padding:10px 10px 12px;background:#1d1a3f;border:1px solid #4b4473;border-radius:12px;box-shadow:0 10px 30px rgba(10,8,30,.5);color:#f4eee2}
.edit-pop h4{margin:2px 2px 7px;font-size:11px;font-weight:600;letter-spacing:.02em;color:#c9c2e8}
.edit-pop h4:not(:first-child){margin-top:10px}
.ep-row{display:grid;grid-template-columns:repeat(8,1fr);gap:6px}
.ep-row button,.ep-custom{width:22px;height:22px;border-radius:50%;border:0;padding:0;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(29,26,63,.25),0 0 0 1px #4b4473;transition:transform .12s}
.ep-row button:hover,.ep-custom:hover{transform:scale(1.18)}
.ep-row button.on{box-shadow:0 0 0 2px #1d1a3f,0 0 0 4px #ffc53d}
.ep-custom{position:relative;display:grid;place-items:center;background:conic-gradient(#ff6b5b,#ffc53d,#63c465,#19b3a3,#3d5afe,#a98fff,#ff6b5b);color:#fff;font-weight:800;font-size:14px;overflow:hidden}
.ep-custom span{text-shadow:0 1px 2px #1d1a3f}
.ep-custom input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.edit-replace{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px;padding:9px 10px;background:#ffc53d;color:#1d1a3f;border-radius:10px}
.edit-replace span{display:flex;flex-direction:column;gap:2px;min-width:0}
.edit-replace b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.edit-replace small{font-size:11px;opacity:.8}
.edit-replace button{background:#1d1a3f;color:#fffdf9;border:0;border-radius:99px;padding:5px 12px;font-size:11px;cursor:pointer}
#context-menu [data-edit][hidden]{display:none}
/* piste « Objets » de la timeline */
.object-lane{display:flex;gap:5px;align-items:center;height:30px;min-height:30px;padding:0 9px;overflow-x:auto;overflow-y:hidden;border-top:1px solid #3a4350;background:#262b35;scrollbar-width:thin;scrollbar-color:#687383 #2d323b}
.object-lane:empty{display:none}
.lane-clip{position:relative;flex:0 0 auto;display:flex;align-items:center;gap:6px;height:22px;max-width:170px;padding:0 9px 0 4px;background:#353d4b;border:1px solid #4a5667;border-radius:6px;color:#e3e8f0;font-size:10px;cursor:pointer;overflow:hidden}
.lane-clip.native{background:#2f3542;border-style:dashed}
.lane-clip:hover{border-color:#b39bf6}
.lane-clip.active{background:#493d67;border:1px solid #b39bf6;color:#fff}
.lane-clip span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lane-kind{font-style:normal;display:grid;place-items:center;width:15px;height:15px;border-radius:4px;background:#4a5667;font-size:9px;color:#fff}
.lane-clip.active .lane-kind{background:#b39bf6;color:#1d1a3f}
.lane-time{position:absolute;left:4px;right:4px;bottom:2px;height:2px;border-radius:2px;background:rgba(255,255,255,.06)}
.lane-time b{position:absolute;top:0;bottom:0;border-radius:2px;background:#6d7790}
.lane-time.fx b{background:#ffc53d}
.lane-empty{font-size:10px;color:#8e98a8;white-space:nowrap}
@media(max-height:790px){.object-lane{height:26px;min-height:26px}.lane-clip{height:19px}}
.track-labels{justify-content:flex-start}
.track-labels>span{display:flex;align-items:center;height:30px;flex:0 0 auto}
.track-labels>span:first-child{flex:1;height:auto}
@media(max-height:790px){.track-labels>span{height:26px}}
