/* Soundly – Studio (Timeline). Andere Module bringen eigene CSS-Dateien mit (ui.loadCss('css/<modul>.css')). */
.studio { display: flex; height: 100%; }
.tlwrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tltools { height: 48px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.tltools .sep { width: 1px; height: 20px; background: var(--line2); margin: 0 6px; }
.hintline { color: var(--dim); font-size: 12px; margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl { flex: 1; overflow: auto; position: relative; }
.tlin { position: relative; min-width: 100%; padding-bottom: 30px; }
.tr { display: flex; position: relative; border-bottom: 1px solid var(--line); }
.th { width: 256px; flex: none; position: sticky; left: 0; z-index: 6; background: var(--bg2); border-right: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 8px 0 12px; height: 76px; }
.ticon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.ticon svg { width: 18px; height: 18px; }
.tinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tinfo b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: text; }
.tinfo input { width: 100%; }
.tbtn { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line2); background: none; color: var(--muted); font-size: 11px; font-weight: 800; cursor: pointer; padding: 0; }
.tbtn:hover { color: #fff; }
.tbtn.on.m { background: var(--warn); color: #1b1300; border-color: transparent; }
.tbtn.on.s { background: var(--good); color: #062014; border-color: transparent; }
.lane { position: relative; flex: 1; height: 76px; background-image: linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); }
.lane.drop { background-color: rgba(124,77,255,.1); box-shadow: inset 0 0 0 1px rgba(124,77,255,.5); }
.tr.ruler { position: sticky; top: 0; z-index: 8; background: var(--bg2); border-bottom: 1px solid var(--line2); }
.tr.ruler .th { height: 32px; background: var(--bg2); font-size: 12px; }
.tr.ruler .lane { height: 32px; background: none; cursor: pointer; }
.rt { position: absolute; top: 0; bottom: 0; border-left: 1px solid rgba(255,255,255,.18); padding: 3px 0 0 5px; font-size: 11.5px; color: var(--muted); font-weight: 600; pointer-events: none; }
.rt.minor { top: 20px; border-left-color: rgba(255,255,255,.08); }
.loopbar { position: absolute; bottom: 2px; height: 9px; border-radius: 5px; background: rgba(255,255,255,.12); cursor: grab; }
.loopbar.on { background: rgba(124,77,255,.75); box-shadow: 0 0 12px rgba(124,77,255,.6); }
.loopbar i { position: absolute; top: -3px; bottom: -3px; width: 8px; cursor: ew-resize; }
.loopbar .lh { left: -3px; } .loopbar .rh { right: -3px; }
.clip { position: absolute; top: 6px; bottom: 6px; border-radius: 9px; overflow: hidden; cursor: grab; background: linear-gradient(180deg, color-mix(in srgb, var(--cc) 92%, #fff 8%), color-mix(in srgb, var(--cc) 70%, #000 30%)); box-shadow: 0 2px 8px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.12); }
.clip:active { cursor: grabbing; }
.clip.sel { box-shadow: 0 0 0 2px #fff, 0 6px 18px rgba(0,0,0,.5); z-index: 3; }
.clip .cn { position: absolute; left: 8px; top: 4px; right: 8px; font-size: 11.5px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,.6); pointer-events: none; z-index: 1; }
.clip canvas { position: absolute; left: 0; right: 0; top: 20px; bottom: 4px; width: 100%; height: calc(100% - 24px); pointer-events: none; }
.clip .rz { position: absolute; top: 0; bottom: 0; width: 9px; cursor: ew-resize; z-index: 2; }
.clip .rz.l { left: 0; } .clip .rz.r { right: 0; }
.clip:hover .rz, .clip.sel .rz { background: rgba(255,255,255,.22); }
.ph { position: absolute; top: 0; bottom: 0; width: 0; z-index: 7; pointer-events: none; }
.ph::before { content: ''; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.6); }
.ph::after { content: ''; position: absolute; top: 0; left: -7px; width: 14px; height: 14px; border-radius: 3px 3px 7px 7px; background: #fff; }
.addtrack { position: sticky; left: 0; padding: 10px 12px; }
.stside { width: 330px; flex: none; border-left: 1px solid var(--line); background: var(--bg2); overflow: hidden; display: flex; flex-direction: column; }
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choose button { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: 14px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); cursor: pointer; text-align: left; }
.choose button:hover { border-color: var(--accent); background: var(--accentSoft); }
.choose button svg { color: var(--accent2); }
.choose span { color: var(--muted); font-size: 12px; }
.ctxm { width: 230px; }
.ddl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 6px 4px 4px; }
.colors { display: flex; gap: 6px; padding: 2px 4px 8px; }
.colors button { width: 20px !important; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2) !important; padding: 0 !important; }
@media (max-width: 1250px) { .stside { width: 270px; } }
@media (max-width: 1050px) { .stside { display: none; } .hintline { display: none; } }
