:root {
  --bg: #07090e;
  --panel: #0e121b;
  --line: #1d2433;
  --txt: #d8dee9;
  --muted: #7d889c;
  --accent: #7fe3c4;
  --hot: #f0a37f;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--txt); font: 13px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
button, input, select { font: inherit; color: inherit; }
button { background: #18202e; border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; cursor: pointer; }
button:hover { border-color: var(--accent); color: var(--accent); }
button:disabled { opacity: .4; cursor: default; }
button.on { background: #13312b; color: var(--accent); border-color: var(--accent); }
#topbar { height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--panel); }
.brand { font-weight: 700; letter-spacing: .3px; }
.brand span { font-weight: 400; color: var(--muted); margin-left: 8px; }
.transport { display: flex; gap: 8px; align-items: center; }
.status, .voices { color: var(--muted); font-size: 12px; }
#app { height: calc(100% - 46px); display: grid; grid-template-columns: 320px 1fr 360px; }
aside, section { background: var(--panel); min-width: 0; }
#browse { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
#ensemble { border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; border: 0; border-radius: 0; background: transparent; padding: 9px; }
.tabs button.on { border-bottom: 2px solid var(--accent); }
#search { margin: 8px; padding: 7px 9px; background: #0a0e16; border: 1px solid var(--line); border-radius: 6px; }
.scroll { overflow-y: auto; flex: 1; padding: 4px 8px 20px; }
#stage { position: relative; min-width: 0; }
#c { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#hud { position: absolute; left: 12px; bottom: 12px; color: var(--muted); font-size: 11px; pointer-events: none; }
.panel { position: absolute; right: 12px; top: 12px; width: 300px; max-height: calc(100% - 90px); overflow: auto; background: rgba(10,14,22,.94); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.hidden { display: none; }
.item { padding: 5px 7px; border-radius: 5px; cursor: pointer; display: flex; justify-content: space-between; gap: 6px; }
.item:hover { background: #161e2c; }
.item.sel { background: #13312b; color: var(--accent); }
.item small { color: var(--muted); }
.grp { color: var(--accent); font-weight: 600; padding: 8px 6px 3px; position: sticky; top: -4px; background: var(--panel); }
.child { padding-left: 14px; }
.ens-head { display: flex; gap: 8px; align-items: center; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.ens-head span { color: var(--muted); flex: 1; }
.bird { border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin: 8px 0; background: #0a0e16; }
.bird.sel { border-color: var(--accent); }
.bird .row { display: flex; gap: 6px; align-items: center; margin-bottom: 5px; }
.bird .row .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bird .row button { padding: 3px 7px; }
.slider { display: grid; grid-template-columns: 62px 1fr 40px; align-items: center; gap: 6px; margin: 3px 0; }
.slider label { color: var(--muted); font-size: 11px; }
.slider output { text-align: right; color: var(--muted); font-size: 11px; }
select { background: #0a0e16; border: 1px solid var(--line); border-radius: 5px; padding: 3px 5px; width: 100%; }
.k { color: var(--accent); }
.hint { color: var(--muted); font-size: 11px; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: #1b2331; border-radius: 4px; }
