:root {
  color-scheme: dark;
  --bg: #111316; --surface: #181b1f; --surface2: #1f2328; --raise: #272c32; --hair: #262a30; --line: #343a42;
  --text: #e9ebee; --sub: #b0b6be; --dim: #8e959e; --faint: #5a616a;
  --cellbg: #21252b; --cellbeat: #2a2f36;
  --accent: #eaa543; --accentink: #1b1406; --accentsoft: #eaa5431a;
  --ok: #6cc28a; --mid: #d9b54a; --low: #e07a5a;
  --kick: #e8a33d; --snare: #e06c5a; --chat: #5fb7d9; --ohat: #6fa0e0; --perc: #9b8be6; --clap: #e07fa8; --cymbal: #7cc9c0; --lowperc: #b89272;
  --shadow: 0 12px 40px #000a, 0 0 0 1px #ffffff0a;
  --lift: inset 0 1px 0 #ffffff07;
  --r-ctl: 7px; --r: 10px; --r-panel: 12px; --cell: 20px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", sans-serif; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
code { font: 12px ui-monospace, Menlo, monospace; color: var(--sub); }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
svg.i { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.spacer { flex: 1; }

.btn { border: 1px solid var(--line); background: var(--surface2); box-shadow: var(--lift); border-radius: var(--r-ctl); padding: 6px 12px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: var(--text); }
.btn:hover:not(:disabled) { border-color: var(--dim); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accentink); font-weight: 600; }
.btn.primary:hover:not(:disabled) { border-color: var(--accent); filter: brightness(1.06); }
.btn:disabled { opacity: .45; cursor: default; }
.btn .sum { color: var(--dim); }
.btn .car { color: var(--dim); font-size: 10px; }
.mini { border: 1px solid var(--line); background: none; border-radius: 6px; padding: 1px 7px; font-size: 12px; color: var(--sub); white-space: nowrap; }
.mini:hover:not(:disabled) { color: var(--text); border-color: var(--dim); }
.mini:disabled { opacity: .45; cursor: default; }
.mini.accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.link { border: 0; background: none; padding: 0; color: var(--accent); }
.link:hover { text-decoration: underline; }
.seg { display: inline-flex; padding: 2px; background: var(--surface2); border-radius: 8px; gap: 2px; }
.seg button { border: 0; background: none; padding: 4px 10px; border-radius: 6px; color: var(--sub); white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--raise); color: var(--text); box-shadow: 0 1px 2px #0003, var(--lift); }
select, input[type=text], input[type=number] { background: var(--surface2); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 5px 8px; }
input[type=range] { accent-color: var(--accent); }
.check, .switch { display: inline-flex; gap: 8px; align-items: flex-start; color: var(--sub); cursor: pointer; }
.switch { align-items: center; }
.check input, .switch input { accent-color: var(--accent); margin: 2px 0 0; }
.switch.dis { color: var(--dim); cursor: default; }
.switch.override { color: var(--accent); }
.notes { color: var(--dim); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.chip { font-size: 11px; padding: 1px 7px; border-radius: 10px; border: 1px solid var(--line); color: var(--sub); background: none; white-space: nowrap; }
.chip.override { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.chip.hint, .chip.alt { cursor: pointer; }
.chip.hint { border-style: dashed; }
.chip.hint:hover, .chip.alt:hover { color: var(--accent); border-color: var(--accent); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.busy { color: var(--accent); }
.err { color: var(--low); }

header { height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 18px; background: var(--surface); border-bottom: 1px solid var(--hair); position: sticky; top: 0; z-index: 20; }
.logo { font-weight: 650; font-size: 15px; letter-spacing: .01em; display: flex; align-items: center; gap: 8px; margin: 0 4px 0 0; white-space: nowrap; }
.logo b { color: var(--accent); font-weight: inherit; }
.mark { display: grid; grid-template-columns: repeat(4, 4px); gap: 2px; }
.mark i { width: 4px; height: 4px; border-radius: 1px; background: var(--raise); }
.mark i.on { background: var(--accent); }
.tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface2); border-radius: 8px; }
.tabs button { border: 0; background: none; padding: 4px 11px; border-radius: 6px; color: var(--sub); white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.on { background: var(--raise); color: var(--text); box-shadow: 0 1px 2px #0003, var(--lift); }
.popwrap { position: relative; }
.pop { position: absolute; top: calc(100% + 8px); right: 0; width: 390px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow); padding: 14px 16px 14px; z-index: 30; }
.pop h4 { margin: 2px 0 8px; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.pop .row { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 4px 10px; align-items: center; margin: 8px 0; }
.pop .row > label, .pop .row > .lbl { color: var(--sub); }
.pop .row select { width: 100%; }
.pop .hint { color: var(--dim); font-size: 11.5px; grid-column: 2; }
.pop .sect { border-top: 1px solid var(--hair); margin-top: 12px; padding-top: 10px; }
.pop .outrow { display: flex; gap: 8px; margin-bottom: 6px; }
.pop .outrow input { flex: 1; min-width: 0; }

.layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 52px); }
aside { padding: 14px 12px; border-right: 1px solid var(--hair); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.drop { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 12px 10px; color: var(--dim); text-align: center; font-size: 12.5px; }
.drop b { color: var(--text); font-weight: 600; }
.drop.over { border-color: var(--accent); color: var(--text); background: var(--accentsoft); }
.batchlink { margin-top: 6px; font-size: 11.5px; color: var(--dim); }
.list { display: flex; flex-direction: column; gap: 2px; }
.itemw { position: relative; }
.item { display: block; padding: 8px 10px; border-radius: 8px; border: 0; background: none; text-align: left; width: 100%; color: var(--text); }
.item:hover { background: var(--surface2); }
.item.sel { background: var(--surface); box-shadow: 0 0 0 1px var(--hair), 0 1px 3px #0002, var(--lift); }
.item .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .m { color: var(--dim); font-size: 11.5px; display: flex; gap: 6px; align-items: center; margin-top: 2px; min-height: 16px; }
.item .st { margin-left: auto; font-size: 11px; white-space: nowrap; }
.item .st.saved { color: var(--ok); } .item .st.edited { color: var(--accent); }
.item.has-drag .n { padding-right: 50px; }
.item .flagm { color: var(--low); font-size: 11px; margin-top: 2px; }
.item.skip { cursor: default; }
.item.skip .n { color: var(--sub); }
.itemw a.drag { position: absolute; right: 8px; top: 8px; font-size: 11px; color: var(--sub); text-decoration: none; border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; cursor: grab; }
.itemw a.drag:hover { color: var(--text); border-color: var(--dim); }
aside .note { color: var(--dim); font-size: 11.5px; width: auto; white-space: normal; padding: 0 !important; }
main { padding: 18px 22px 40px; min-width: 0; }
.empty { color: var(--dim); text-align: center; margin-top: 18vh; padding: 0 20px; }
.empty b { display: block; color: var(--text); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
footer.staticonly { color: var(--dim); font-size: 11.5px; padding: 10px 22px 16px; border-top: 1px solid var(--hair); }
footer.staticonly a { color: var(--sub); }

.titlebar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.titlebar h2 { font-size: 17px; margin: 0; font-weight: 620; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.titlebar .meta { color: var(--dim); }
.title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.title h2 { font-size: 17px; margin: 0; font-weight: 620; }
.title .sub { color: var(--dim); }
.status { color: var(--accent); font-size: 12px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.status.ok { color: var(--ok); }
.status:empty { display: none; }
.btn.dragh { cursor: grab; user-select: none; -webkit-user-select: none; }
.btn.dragh:active { cursor: grabbing; }

.params { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.card { background: var(--surface); border-radius: var(--r); padding: 10px 12px 9px; box-shadow: 0 0 0 1px var(--hair), var(--lift); min-width: 0; }
.card.unsure { box-shadow: 0 0 0 1px color-mix(in srgb, var(--mid) 55%, transparent), var(--lift); }
.card .k { font-size: 11.5px; color: var(--sub); display: flex; align-items: center; gap: 6px; }
.card .k .src.ov { color: var(--accent); }
.card .k .src { margin-left: auto; font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.card .v { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 4px; flex-wrap: wrap; }
.card .v input[type=number] { width: 72px; font-size: 18px; font-weight: 620; padding: 1px 6px; background: transparent; border-color: transparent; font-variant-numeric: tabular-nums; }
.card .v input[type=number]:hover, .card .v input[type=number]:focus { border-color: var(--line); background: var(--surface2); }
.card .v input.short { width: 50px; }
.card .v select { font-size: 14px; font-weight: 600; max-width: 100%; }
.card .v .u { color: var(--dim); }
.card .v .big { font-size: 18px; font-weight: 620; padding: 1px 6px; }
.card .v b.big { font-size: 15px; }
.card .act { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.card .why { color: var(--dim); font-size: 11.5px; margin-top: 5px; }
.card .alts { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; margin-top: 5px; }
.card .alts .u { color: var(--dim); font-size: 11px; }
.card .drift { color: var(--low); font-size: 11.5px; margin-top: 3px; }
.card .chiprow { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 4px; }
.oct { margin-left: auto; display: inline-flex; gap: 3px; }

.panel { background: var(--surface); border-radius: var(--r-panel); box-shadow: 0 0 0 1px var(--hair), var(--lift); min-width: 0; }
.transport { display: flex; align-items: center; gap: 10px 16px; padding: 10px 14px; border-bottom: 1px solid var(--hair); flex-wrap: wrap; }
.play { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accentink); display: grid; place-items: center; box-shadow: 0 2px 10px #eaa54333; flex: none; }
.play svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.vol { display: flex; align-items: center; gap: 7px; color: var(--sub); }
.vol input[type=range] { width: 84px; }
.tgrp { display: flex; align-items: center; gap: 7px; color: var(--sub); }
.count { color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gridbox { padding: 10px 12px 6px; overflow-x: auto; }
table.grid { border-collapse: separate; border-spacing: 0 3px; }
.grid td { padding: 0; vertical-align: middle; }
.lname { width: 140px; min-width: 140px; padding-right: 10px !important; }
.lname .nm { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.lname .sw { width: 3px; height: 16px; border-radius: 2px; flex: none; }
.lname select { font-size: 12.5px; padding: 1px 4px; border: 1px solid transparent; background: transparent; margin-left: -5px; max-width: 130px; }
.lname select:hover { border-color: var(--line); background: var(--surface2); }
.lname .from, .lname .tm { font-size: 11px; color: var(--dim); margin-left: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lname .tm .push { color: #8fbde9; } .lname .tm .drag { color: #e9ae90; }
.cells { display: flex; gap: 2px; }
.cells .bar { width: 8px; flex: none; }
.c { width: var(--cell); height: 26px; border-radius: 4px; background: var(--cellbg); position: relative; flex: none; }
.c.beat { background: var(--cellbeat); }
.c.on { outline: 1px solid #ffffff26; outline-offset: -1px; }
.c .f { position: absolute; inset: 0; border-radius: 4px; }
.c .g { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; }
.c .mt { position: absolute; top: 3px; bottom: 3px; width: 2px; margin-left: -1px; background: #fff; border-radius: 1px; opacity: .85; }
.c.play::after { content: ""; position: absolute; inset: -2px; border: 1.5px solid var(--text); border-radius: 5px; }
.steps td { color: var(--dim); font-size: 10.5px; text-align: center; }
.steps td.thr, .steps td.note { text-align: left; }
.thr { width: 166px; min-width: 166px; padding-left: 10px !important; }
.strip { position: relative; width: 156px; height: 22px; border-radius: 6px; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--hair); cursor: ew-resize; touch-action: none; }
.strip:focus-visible { outline-offset: 3px; }
.strip .dimz { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px 0 0 6px; background: color-mix(in srgb, var(--bg) 55%, transparent); pointer-events: none; }
.strip .d { position: absolute; top: 8px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; pointer-events: none; }
.strip .t { position: absolute; top: -3px; bottom: -3px; width: 10px; margin-left: -5px; border-radius: 3px; background: var(--text); box-shadow: 0 1px 3px #0005; pointer-events: none; }
.strip .kn { position: absolute; bottom: -2px; margin-left: -4px; border: 4px solid transparent; border-bottom-color: var(--accent); pointer-events: none; }
.note { width: 52px; padding-left: 8px !important; color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 12px; }
.ms { padding-left: 6px !important; white-space: nowrap; }
.ms button { width: 22px; height: 20px; border-radius: 5px; border: 1px solid var(--line); background: none; color: var(--sub); font-size: 11px; padding: 0; }
.ms button:hover { color: var(--text); border-color: var(--dim); }
.ms button.on { background: var(--accent); color: var(--accentink); border-color: var(--accent); }
tr.muted td.cellsc, tr.muted td.thr { opacity: .4; }
.rolesline td { padding: 4px 0 2px !important; }
.rolesline .rl { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 12px; flex-wrap: wrap; }
.rolesline .chipline { display: inline-flex; gap: 6px; }
.rolesline .ch { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 10px; background: var(--surface2); color: var(--sub); }
.sep td { height: 6px; }
.sep .rule { border-top: 1px dashed var(--line); }

.shape { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding: 14px 16px 12px; border-top: 1px solid var(--hair); }
.knob { min-width: 0; }
.knob .top { display: flex; align-items: baseline; gap: 8px; }
.knob .top label { font-weight: 600; }
.knob .top .say { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.knob .top .val { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.knob .rng { position: relative; }
.knob input[type=range] { width: 100%; margin: 6px 0 2px; display: block; }
.knob .tick { position: absolute; bottom: -3px; width: 1px; height: 5px; background: var(--faint); pointer-events: none; }
.knob .say { color: var(--dim); font-size: 11.5px; }
.knob > .say { margin-top: 3px; }
.more { border-top: 1px solid var(--hair); padding: 8px 16px; }
.more .tog { border: 0; background: none; color: var(--sub); padding: 2px 0; }
.more .tog:hover { color: var(--text); }
.more .adv { display: none; gap: 10px 14px; align-items: center; flex-wrap: wrap; padding: 6px 0 4px; color: var(--sub); }
.more.open .adv { display: flex; }
.more .adv input[type=number] { width: 66px; }
.legend { display: none; color: var(--dim); font-size: 11.5px; gap: 6px 16px; padding: 4px 0 2px; flex-wrap: wrap; }
.more.open .legend { display: flex; }
.legend span { display: inline-flex; align-items: center; }
.lg { width: 14px; height: 12px; border-radius: 3px; display: inline-block; margin-right: 5px; position: relative; }
.lg.tickl { background: var(--cellbg); }
.lg.tickl span { position: absolute; left: 6px; top: 2px; bottom: 2px; width: 2px; background: #fff; }
.lg.heard { background: var(--cellbg); }
.lg.heard span { position: absolute; left: 4px; top: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--kick); opacity: .6; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--raise); color: var(--text); border-radius: var(--r); padding: 9px 14px; box-shadow: var(--shadow); display: none; align-items: center; gap: 10px; z-index: 40; max-width: min(640px, calc(100vw - 32px)); }
.toast.show { display: flex; }
.toast .ok { color: var(--ok); }
.toast .bad { color: var(--low); }

.batch h2 { font-size: 17px; margin: 0 0 4px; font-weight: 620; }
.batch .sub { color: var(--sub); margin-bottom: 12px; }
.batch .set { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--hair), var(--lift); border-radius: var(--r-panel); padding: 12px 14px; margin-bottom: 12px; max-width: 880px; }
.batch .set > label { color: var(--sub); }
.batch .switch.inl { margin-left: 8px; }
.batch .hint, .batch .dim { color: var(--dim); font-size: 11.5px; }
.batch .repwrap { overflow-x: auto; max-width: 1100px; }
.batch table.rep { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.batch .rep th { text-align: left; color: var(--sub); font-weight: 500; font-size: 11.5px; border-bottom: 1px solid var(--line); padding: 4px 8px; }
.batch .rep td { padding: 5px 8px; border-bottom: 1px solid var(--hair); }
.batch .rep tr.flag td { background: #e07a5a0d; }
.batch .rep .fl { color: var(--low); font-size: 11.5px; }
.batch .rep .okk { color: var(--ok); font-size: 11.5px; }
.batch .tot { display: flex; gap: 18px; align-items: center; margin: 10px 0 12px; color: var(--sub); flex-wrap: wrap; }
.batch .tot b { color: var(--text); }
.batch .tot .low, .batch .tot .low b { color: var(--low); }
.batch .files { color: var(--dim); font-size: 12px; margin-top: 12px; max-width: 1100px; }
.batch code { color: var(--text); }

body:not(.mode-song) .songonly { display: none !important; }
body.mode-song .loopsonly { display: none !important; }
body:not(.static) .staticonly { display: none !important; }
body.static .songonly, body.static #modes, body.static .localonly { display: none !important; }
body.view-batch #saveall { display: none !important; }

.stages { font-size: 11.5px; color: var(--dim); margin-top: 4px; display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; }
.stages .ok { color: var(--ok); }
.stages .wait { color: var(--dim); }
.stages.big { font-size: 13px; max-width: 360px; margin-top: 10px; gap: 4px 16px; }
.songwait { max-width: 520px; padding: 14px; }
.params.song { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.songstrip { background: var(--surface); box-shadow: 0 0 0 1px var(--hair), var(--lift); border-radius: var(--r-panel); padding: 8px 12px 6px; margin-bottom: 12px; }
.songstrip .k { color: var(--sub); font-size: 11.5px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.songstrip .lgtext { color: var(--dim); }
canvas#strip { width: 100%; height: 92px; display: block; margin-top: 6px; cursor: pointer; }
.clips { display: flex; flex-direction: column; gap: 6px; }
.lenhead { color: var(--sub); font-size: 12px; font-weight: 600; margin: 12px 0 2px; display: flex; gap: 10px; }
.lenhead .lc { color: var(--dim); font-weight: 400; }
.clip { display: grid; grid-template-columns: 34px 170px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; background: var(--surface); box-shadow: 0 0 0 1px var(--hair), var(--lift); border-radius: var(--r); padding: 7px 10px; }
.clip.kept { box-shadow: 0 0 0 1px #6cc28a88, inset 3px 0 0 var(--ok); }
.clip.dropped .mg { opacity: .4; }
.clip.dropped .where, .clip.dropped .where b, .clip.dropped .badge { color: var(--dim); }
.clip.playing { box-shadow: 0 0 0 1px var(--accent); }
.clip .play { width: 30px; height: 30px; font-size: 12px; }
.clip .where b { font-weight: 600; }
.clip .where .t { color: var(--dim); font-size: 11.5px; }
.badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; }
.badge { font-size: 10.5px; padding: 1px 6px; border-radius: 10px; border: 1px solid var(--line); color: var(--sub); white-space: nowrap; background: none; }
.badge.groove { color: var(--text); }
.badge.alone { color: var(--ok); border-color: #6cc28a66; }
.badge.fill { color: var(--mid); border-color: #d9b54a66; }
.badge.warn { color: var(--low); border-color: #e07a5a66; }
.badge.btnb { cursor: pointer; border-style: dashed; }
.mg { display: grid; gap: 1px; background: var(--bg); padding: 2px; border-radius: 4px; width: max-content; max-width: 100%; overflow: hidden; }
.mg i { width: 7px; height: 7px; background: var(--cellbg); border-radius: 1px; }
.mg i.bl { margin-left: 2px; }
.hear { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.hear .seg button { padding: 2px 8px; font-size: 12px; }
.clip .meta { color: var(--dim); font-size: 11.5px; text-align: right; }
.clip .meta .link { color: var(--sub); font-size: 11.5px; }
.clip .meta .link:hover { color: var(--accent); }
.kd { display: flex; gap: 4px; }
.kd button { width: 30px; height: 26px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface2); color: var(--sub); }
.kd button.k.on { background: var(--ok); color: #0d1a12; border-color: var(--ok); }
.kd button.d.on { background: var(--low); color: #1a0d08; border-color: var(--low); }
.exportbar { position: sticky; bottom: 0; margin-top: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); border-radius: var(--r-panel); padding: 9px 12px; display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap; }
.exportbar .sumline { color: var(--sub); min-width: 0; }
.exportbar details { flex-basis: 100%; color: var(--dim); font-size: 11.5px; }
.exportbar summary { cursor: pointer; color: var(--sub); width: max-content; }
.exportbar .files { font-family: ui-monospace, Menlo, monospace; white-space: pre; max-height: 90px; overflow: auto; margin-top: 4px; }
.exportbar .done { flex-basis: 100%; color: var(--ok); font-size: 12px; }
.scorebar { display: inline-block; width: 44px; height: 5px; background: var(--line); border-radius: 3px; vertical-align: middle; overflow: hidden; }
.scorebar i { display: block; height: 100%; background: var(--accent); }

@media (max-width: 1180px) {
  .params, .params.song { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .knob .top .say { display: none; }
}
@media (max-width: 1060px) {
  .layout { grid-template-columns: 220px minmax(0, 1fr); }
  main { padding: 16px 16px 36px; }
}
