/* Editor v2 layer: the simplified edit panel (cards), a calmer media list and top bar. Loaded after editor.css. */
.ed-body { grid-template-columns: 248px minmax(0, 1fr) 340px; }
.shape-btn { font-weight: 650; }
.btn.primary { box-shadow: 0 0 0 0 rgba(108, 140, 255, .6); }

/* ---------- edit panel ---------- */
.insp2 { display: flex; flex-direction: column; min-height: 0; background: var(--bg-2); }
.insp2-head { flex: none; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 10px; border-bottom: 1px solid var(--line); }
.insp2-head b { font-size: 15px; }
.insp2-list { flex: 1; min-height: 0; overflow: auto; padding: 8px 10px 20px; display: flex; flex-direction: column; gap: 6px; }
.insp2-card { flex: none; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.insp2-card.open { border-color: var(--line-2); background: var(--panel-2); }
.insp2-card-h { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: none; border: 0; cursor: pointer; text-align: left; color: var(--text); font-weight: 600; min-height: 44px; }
.insp2-card-h:hover { background: rgba(255, 255, 255, .03); }
.insp2-card-h .c-title { flex: 1; }
.insp2-card-h .c-sub { font-weight: 400; font-size: 12px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insp2-card-h .c-chev { transition: transform .15s; opacity: .6; width: 16px; height: 16px; }
.insp2-card-h.open .c-chev { transform: rotate(180deg); }
.insp2-card-h.open { color: var(--accent-2); }
.insp2-body { padding: 4px 12px 14px; border-top: 1px solid var(--line); }
.insp2-body .insp-clipname { display: none; }           /* the card title already says it */
.insp2-body .insp-sec h4 { font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--muted); margin-bottom: 6px; }
.mu-card .mu-song { display: flex; gap: 10px; align-items: center; padding: 10px 0; }
.mu-card .mu-song b { display: block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-card .insp-btnrow { margin: 6px 0; }
.small { font-size: 12px; }

/* ---------- media list ---------- */
.bi-actions { display: flex !important; }                 /* the add button is always visible, not hidden until hover */
.bi-actions .icon-btn:last-child { background: var(--accent-d); }
.bin-item { cursor: pointer; }

/* ---------- small screens: panels become drawers ---------- */
@media (max-width: 1100px) { .ed-body { grid-template-columns: 200px minmax(0, 1fr) 300px; } }
@media (max-width: 900px) {
  .ed-body { grid-template-columns: minmax(0, 1fr); }
  .bin, .inspector { display: none; }
  .ed-body.bin-open .bin { display: flex; position: absolute; left: 0; top: 52px; bottom: 0; width: min(88vw, 320px); z-index: 30; box-shadow: var(--shadow); }
  .bin-toggle { display: inline-flex; }
  .ed-body.insp-open .inspector { display: flex; position: absolute; right: 0; top: 52px; bottom: 0; width: min(92vw, 360px); z-index: 30; box-shadow: var(--shadow); }
}
.insp-toggle { display: none; }
@media (max-width: 900px) { .insp-toggle { display: inline-flex; } }

/* ---------- auto edit panel ---------- */
.ae-song { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; max-width: 100%; }
.ae-song span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ae-more { margin: 10px 0 0; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--panel); }
.ae-more > summary { cursor: pointer; padding: 12px 2px; font-weight: 600; color: var(--muted); list-style: none; min-height: 44px; display: flex; align-items: center; }
.ae-more > summary::-webkit-details-marker { display: none; }
.ae-more[open] > summary { color: var(--text); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.ae-block .chips { flex-wrap: wrap; }
