/* SPDX-License-Identifier: GPL-3.0-only
   WT-2 editor, "Afterglow". The instrument sits under the That Sounds Hot site header. */
:root {
  --bg: #111215;
  --s1: #18191D;
  --s2: #202227;
  --s3: #2A2C33;
  --line: #2F323A;
  --tx: #ECEDEF;
  --tx2: #A3A7B0;
  --tx3: #7C818C;
  --hot: #FF6A3D;
  --lfo: #38C8FF;
  --env: #FFC23B;
  --mac: #B07CFF;
  --seq: #3EE07A;
  --vel: #FF5FA2;
  --ok: #3EE07A;
  --bad: #FF5A5F;
  --a: #38C8FF;
  --acc: #111215;
  --yel: #FFC23B;
  --card2: #2A2C33;
  --dim: #7C818C;
  --fg: #ECEDEF;
  --cream: #FAF7EE;
  --ink: #1F1F1F;
  --coral: #E85C4A;
  --cur: #C8432F;
}
* { box-sizing: border-box; }
html, body.ag { margin: 0; height: 100%; background: var(--bg); color: var(--tx); }
body.ag { font-family: Inter, system-ui, sans-serif; font-size: 13px; overflow: hidden; display: flex; flex-direction: column; }
button, input, select { font: inherit; color: inherit; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="hidden"]):not([type="color"]),
textarea,
select {
  background: #202227;
  color: #FF6A3D;
  caret-color: #FF6A3D;
  border: 1px solid #2F323A;
  border-radius: 6px;
  color-scheme: dark;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="hidden"]):not([type="color"]),
textarea { height: 36px; padding: 0 10px; }
input::placeholder, textarea::placeholder { color: #7C818C; opacity: 1; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):focus,
textarea:focus, select:focus { outline: none; border-color: #FF6A3D; box-shadow: 0 0 0 1px #FF6A3D; }
input:-webkit-autofill {
  -webkit-text-fill-color: #FF6A3D;
  caret-color: #FF6A3D;
  box-shadow: 0 0 0 1000px #202227 inset;
}
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled, .dis { cursor: default; opacity: 0.45; }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 2px; }
.shell { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.site { height: 48px; flex: none; background: var(--cream); color: var(--ink); display: flex; align-items: center; gap: 20px; padding: 0 20px; font-family: Manrope, Inter, sans-serif; border-bottom: 2px solid #000; z-index: 20; }
.site .brand { font-weight: 800; font-size: 15px; letter-spacing: 0.6px; text-transform: uppercase; }
.site .bsub { font-size: 13px; color: #6B6B6B; font-weight: 600; border-left: 1px solid #D9D3C3; padding-left: 12px; font-family: Inter, sans-serif; }
.site .need { font-size: 12px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; white-space: nowrap; color: #fff; background: var(--coral, #E8543F); border-radius: 999px; padding: 5px 12px; font-family: Inter, sans-serif; }
.site nav { display: flex; align-items: center; gap: 18px; }
@media (max-width: 640px) { .site { gap: 8px; padding: 0 10px; } .site .brand { font-size: 12px; white-space: nowrap; } .site .bsub { display: none; } .site .need { font-size: 10px; padding: 4px 8px; } }
.site a { font-size: 14px; font-weight: 600; color: #2A2A2A; text-decoration: none; height: 32px; display: flex; align-items: center; }
.site a.cur { color: var(--cur); box-shadow: inset 0 -2px 0 var(--coral); }
.site .ext { color: #8A8478; font-size: 12px; margin-left: 3px; }
.site .menu { display: none; height: 32px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: 8px; font-weight: 700; gap: 8px; align-items: center; }

.top { height: 64px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--s1); border-bottom: 1px solid var(--line); position: relative; z-index: 15; }
.sw { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border-radius: 8px; background: var(--s2); }
.sw:hover { box-shadow: inset 0 0 0 1.5px var(--line); }
.logo { font-family: "Inter Tight", Inter, sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.5px; color: var(--tx); }
.logo b { color: var(--hot); font-weight: 800; }
.patch { display: flex; align-items: center; gap: 6px; background: var(--s2); border-radius: 8px; height: 40px; padding: 0 8px; min-width: 240px; max-width: 340px; }
.patch .nm { flex: 1; min-width: 0; }
.top .patch .nm > .n { font-family: Inter, system-ui, sans-serif; font-weight: 700; font-size: 15px; line-height: 18px; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.patch .c { color: var(--tx3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib { width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; color: var(--tx2); font-size: 14px; flex: none; }
.ib:hover { background: var(--s3); color: var(--tx); }
.ib.on { color: var(--env); }
.tabs { display: flex; gap: 2px; }
.tabs button { height: 40px; padding: 0 14px; font-weight: 600; color: var(--tx2); border-radius: 8px; font-size: 14px; }
.tabs button.on { color: var(--tx); background: var(--s2); }
.seg { display: flex; background: var(--s2); border-radius: 8px; padding: 3px; gap: 2px; }
.seg button, .seg span.opt { height: 30px; padding: 0 10px; display: grid; place-items: center; border-radius: 6px; color: var(--tx2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.seg button.on, .seg span.opt.on { background: var(--s3); color: var(--tx); box-shadow: inset 0 0 0 1.5px var(--hot); }
.dev { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--tx2); background: var(--s2); height: 40px; padding: 0 12px; border-radius: 8px; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--seq); box-shadow: 0 0 8px var(--seq); flex: none; }
.dot.off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--tx3); }

.banner { height: 44px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--s1); border-bottom: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--env); }
.banner .msg { font-size: 13px; font-weight: 500; }
.banner a { color: var(--env); font-size: 13px; font-weight: 600; }
.banner .grow { flex: 1; }
.banner.hide { display: none; }

.stage { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.page { flex: 1; min-height: 0; display: none; flex-direction: column; gap: 8px; padding: 8px; overflow: auto; }
.page.on { display: flex; }
.row { display: flex; gap: 8px; min-width: 0; }
.row.grow { flex: 1; min-height: 0; }
.pnl { background: var(--s1); border-radius: 10px; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.h { font-family: "Inter Tight", Inter, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--tx); display: flex; align-items: center; gap: 8px; }
.h i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; flex: none; }
.sub { color: var(--tx3); font-weight: 500; letter-spacing: 0; text-transform: none; font-family: Inter, sans-serif; font-size: 12px; }
.lbl { font-size: 12px; color: var(--tx2); font-weight: 500; }
.val { font-size: 12px; color: var(--tx); font-variant-numeric: tabular-nums; font-weight: 600; }
.chip { height: 24px; padding: 0 8px; border-radius: 6px; background: var(--s2); font-size: 12px; color: var(--tx2); display: inline-flex; align-items: center; font-weight: 600; gap: 4px; white-space: nowrap; }
button.chip { cursor: pointer; }
.chip.on { color: var(--tx); box-shadow: inset 0 0 0 1.5px var(--hot); }
.chip.ghost { box-shadow: inset 0 0 0 1.5px var(--tx3); background: transparent; }
.grow { flex: 1; }
.krow { display: flex; gap: 4px; justify-content: space-between; align-items: flex-start; }
.k { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 64px; flex: none; border-radius: 8px; user-select: none; touch-action: none; }
.k.sz40 { width: 56px; } .k.sz44 { width: 58px; } .k.sz56 { width: 72px; } .k.sz36 { width: 48px; }
.k .lbl { text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k.drop-ok { box-shadow: inset 0 0 0 1.5px var(--drag, var(--hot)); border-radius: 8px; }
.k.soon, .dis, button:disabled { cursor: not-allowed; }
.k.soon { opacity: 0.45; }
.k svg { display: block; }
.well { background: var(--bg); border-radius: 8px; position: relative; overflow: hidden; min-height: 0; }
.well canvas { width: 100%; height: 100%; display: block; }
.well .ov { position: absolute; inset: 0; border-radius: 8px; border: 2px dashed var(--hot); background: rgba(17, 18, 21, 0.82); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 8px; z-index: 2; }
.well.drag .ov { display: flex; }
.well .ov b { font-size: 16px; }
.framechip { position: absolute; left: 8px; top: 8px; z-index: 1; }
.viewtog { position: absolute; right: 8px; bottom: 8px; z-index: 1; padding: 2px; }
.viewtog button { height: 24px; padding: 0 8px; }

.ld { display: flex; align-items: center; gap: 2px; height: 32px; background: var(--s2); border-radius: 6px; padding: 0 4px; font-size: 12px; font-weight: 600; color: var(--tx); min-width: 0; flex: 1; }
.ld .nm { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; text-align: left; }
.ld .a { width: 24px; height: 24px; display: grid; place-items: center; color: var(--tx2); border-radius: 4px; flex: none; }
.ld .a:hover { background: var(--s3); color: var(--tx); }

.side { width: 236px; flex: none; display: flex; flex-direction: column; gap: 8px; }
.osc { flex: 1; min-width: 0; }
.osc .well { height: 140px; }
.mid .pnl { flex: 1; }
.filter { flex: 1.3; }
.fmpd { flex: 0.7; min-width: 220px; }
.out { flex: 0.9; min-width: 280px; }
.envlfo .pnl { flex: 1; min-width: 0; }
.envlfo .well { height: 64px; }
.more { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.pnl.open .more { display: flex; }
.tpick { display: flex; flex-direction: column; gap: 2px; min-width: 92px; }
.tpick select { height: 28px; max-width: 120px; }
.foot { height: auto; min-height: 96px; flex: none; background: var(--s1); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: flex-end; padding: 8px 12px 10px; gap: 12px 16px; }
.macs { display: flex; gap: 12px; align-items: center; flex: none; }
.mac .lbl, .mac .val { white-space: nowrap; }
.mac { display: flex; align-items: center; gap: 8px; }
.mac-col { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mac-plus { width: 16px; height: 16px; padding: 0; border-radius: 3px; background: #B07CFF; color: #18191D; font-size: 14px; font-weight: 700; line-height: 16px; cursor: grab; display: grid; place-items: center; }
.mac-plus:active { cursor: grabbing; }
.mac .meta { color: var(--tx3); font-size: 12px; }
.keys { display: flex; gap: 3px; height: 78px; align-items: flex-end; flex: 1 1 420px; min-width: 320px; }
.keys .wk, .keys .bk { border-radius: 4px; position: relative; touch-action: none; }
.keys .wk { flex: 1 1 0; width: auto; min-width: 18px; max-width: 52px; height: 78px; background: #d8dade; }
.keys .bk { width: 18px; height: 48px; background: #3a3d45; margin: 0 -10px; z-index: 1; align-self: flex-start; flex: none; }
.keys .down.wk { box-shadow: inset 0 -8px 0 var(--hot); }
.keys .down.bk { background: var(--hot); }
.lfo-modes { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 12px; align-items: flex-end; }
.lfo-mode { display: flex; flex-direction: column; gap: 4px; }
.lfo-mode .seg button { padding: 0 8px; }

.pop { position: absolute; background: var(--s2); border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 16px 48px rgba(0, 0, 0, 0.6); padding: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 30; }
.pop.hide { display: none; }
.pop .wtrow { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px; border-radius: 6px; background: transparent; text-align: left; width: 100%; }
.pop .wtrow.on { background: var(--s3); box-shadow: inset 0 0 0 1.5px var(--hot); }
.pop .wtrow canvas { width: 72px; height: 32px; background: var(--bg); border-radius: 4px; }
.scrim { position: fixed; inset: 0; z-index: 25; background: transparent; }
.scrim.hide { display: none; }

.mxwrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.mxhead, .mxrow { display: grid; grid-template-columns: 36px 200px 28px minmax(180px, 1.1fr) minmax(220px, 1.4fr) 72px 90px 36px; align-items: center; gap: 8px; padding: 0 12px; }
.mxhead { height: 28px; color: var(--tx3); font-size: 12px; }
.mxrow { height: 56px; border-top: 1px solid var(--line); }
.mxrow select { border-radius: 6px; height: 36px; padding: 0 8px; }
.setup select, .lib select { height: 36px; }
.chipsel { position: relative; display: flex; align-items: center; min-width: 0; background: #202227; border: 1px solid #2F323A; border-radius: 8px; height: 40px; }
.chipsel select { appearance: none; background: transparent; border: 0; height: 38px; width: 100%; font-size: 13px; font-weight: 600; color: #ECEDEF; padding: 0 22px 0 10px; }
.chipsel i { position: absolute; right: 8px; pointer-events: none; color: #A3A7B0; font-style: normal; font-size: 12px; }
.mxadd { display: flex; align-items: center; gap: 12px; height: 56px; width: 100%; padding: 0 12px; border-top: 1px solid var(--line); color: #7C818C; font-size: 13px; font-weight: 600; text-align: left; }
.via { color: #7C818C; cursor: not-allowed; font-size: 12px; font-weight: 500; }
.bislide { height: 32px; display: flex; align-items: center; position: relative; }
.bislide i.track { position: absolute; left: 0; right: 0; height: 8px; background: var(--s3); border-radius: 4px; }
.bislide i.tick { position: absolute; left: 50%; width: 2px; height: 16px; background: var(--tx3); transform: translateX(-1px); }
.bislide i.fill { position: absolute; height: 8px; border-radius: 4px; }
.bislide input { position: relative; width: 100%; opacity: 0; height: 32px; cursor: ew-resize; }
.srcrow { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: 8px; background: var(--s2); }
.srcrow .grip { cursor: grab; color: var(--tx3); }
.srcrow i.pip { width: 10px; height: 10px; border-radius: 50%; display: block; flex: none; padding: 0; background: var(--c, var(--tx3)); }

.lfo-edit { flex: 1; min-height: 0; }
.lfo-edit .well { flex: 1; min-height: 180px; }
.shapes { width: 220px; flex: none; min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; display: flex; flex-direction: column; }
.shape-list { overflow: visible; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; }
.shape { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px; border-radius: 8px; background: var(--s2); text-align: left; width: 100%; min-width: 0; flex: none; cursor: pointer; }
.shape.on { box-shadow: inset 0 0 0 1.5px var(--lfo); }
.shape canvas { width: 100%; max-width: 100%; min-width: 0; height: 56px; display: block; background: var(--bg); border-radius: 6px; flex: none; }
.shape-name { font-size: 13px; font-weight: 600; line-height: 16px; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shape .chip { height: 24px; align-self: flex-start; max-width: 100%; }

.steps { display: flex; gap: 4px; justify-content: space-between; }
.step { display: flex; flex-direction: column; gap: 6px; align-items: center; flex: 1; min-width: 0; }
.step .bar { height: 140px; width: 100%; max-width: 44px; background: var(--s2); border-radius: 6px; position: relative; cursor: ns-resize; }
.step.on .bar { box-shadow: inset 0 0 0 1.5px var(--hot); }
.step .bar u { position: absolute; bottom: 0; left: 0; right: 0; background: var(--seq); border-radius: 6px; display: block; text-decoration: none; }
.step .gate { width: 100%; max-width: 44px; height: 28px; border-radius: 6px; background: var(--s2); }
.step.lit .gate { background: var(--seq); }
.step .note { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: #ECEDEF; }
.pats { display: flex; gap: 4px; flex-wrap: wrap; }
.pats button { width: 36px; height: 32px; }

.fxgrid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; gap: 8px; align-content: stretch; }
.fxcard { width: auto; min-width: 0; height: 100%; }
.fxgrip { color: #7C818C; font-size: 16px; cursor: grab; flex: none; }
.fxcard.soon { opacity: 0.45; box-shadow: inset 0 0 0 1.5px dashed var(--line); border: 1.5px dashed var(--line); }
.fxcard .kgrid { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; gap: 8px 0; }
.chain { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.page-lib .lbl, .page-lib .sub { font-size: 13px; }
.page-lib .chip { padding: 0 7px; }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 8px; }
.empty p { margin: 0; color: var(--tx2); font-size: 13px; }
.libtop { flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; }
.libbody { flex: 1; min-height: 0; }
.folder { width: 380px; flex: none; }
.slots { width: 480px; flex: none; }
.files { overflow: auto; min-height: 0; flex: 1; }
.frow, .srow { display: grid; align-items: center; gap: 8px; height: 36px; padding: 0 8px; border-radius: 6px; width: 100%; text-align: left; background: transparent; }
.frow { grid-template-columns: 22px 1fr 72px 64px 18px; }
.frow.on, .srow.on { background: var(--s3); }
.srow { grid-template-columns: 42px 1fr 88px 116px; height: 30px; }
.badge { height: 22px; padding: 0 8px; border-radius: 5px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; }
.btn { height: 32px; padding: 0 12px; border-radius: 6px; background: var(--s2); font-size: 13px; font-weight: 600; color: var(--tx2); }
.btn.on { color: var(--tx); box-shadow: inset 0 0 0 1.5px var(--hot); }
.btn.sm { height: 24px; padding: 0 9px; font-size: 13px; box-shadow: inset 0 0 0 1.5px var(--line); background: transparent; color: var(--tx); border-radius: 5px; }
.btn.danger { box-shadow: inset 0 0 0 1.5px var(--bad); color: var(--bad); background: transparent; }
.pool { display: flex; gap: 8px; overflow: auto; }
.pcard { width: 168px; flex: none; background: var(--s2); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.pcard.on { box-shadow: inset 0 0 0 1.5px var(--hot); }
.pcard canvas { width: 100%; height: 48px; background: var(--bg); border-radius: 6px; }
.dropwell { width: 120px; flex: none; border: 1.5px dashed var(--tx3); border-radius: 8px; display: grid; place-items: center; text-align: center; color: var(--tx2); font-size: 12px; }
.scalekeys { display: flex; gap: 4px; }
.scalekeys button { flex: 1; height: 52px; border-radius: 6px; background: var(--s2); color: var(--tx3); font-size: 12px; font-weight: 600; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; }
.scalekeys button { color: #7C818C; }
.scalekeys button.in { background: var(--s2); color: #ECEDEF; box-shadow: inset 0 0 0 1.5px #B07CFF; }
.scalekeys.off button { color: #7C818C; box-shadow: none; }
.detail { display: none; }
.search { height: 36px; display: flex; align-items: center; gap: 6px; background: #202227; border: 1px solid #2F323A; border-radius: 6px; padding: 0 10px; color: #7C818C; }
.search:focus-within { border-color: #FF6A3D; box-shadow: 0 0 0 1px #FF6A3D; }
.search input { flex: 1; background: transparent; border: 0; box-shadow: none; outline: none; color: #FF6A3D; height: 100%; padding: 0; }
.search input:focus { border: 0; box-shadow: none; }

select { background: #202227; color: #FF6A3D; border: 1px solid #2F323A; border-radius: 6px; height: 32px; padding: 0 8px; }
option { background: #202227; color: #ECEDEF; }
.modal input:not([type="checkbox"]):not([type="radio"]), .modal select { width: 100%; }
.toast { position: fixed; left: 50%; top: 120px; transform: translateX(-50%); background: var(--s3); color: var(--tx); border-radius: 8px; padding: 8px 14px; z-index: 70; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); max-width: 70vw; pointer-events: none; }
.toast.err { box-shadow: inset 3px 0 0 var(--bad), 0 8px 24px rgba(0, 0, 0, 0.4); }
.toast[hidden] { display: none; }
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 40; display: grid; place-items: center; }
.modal.hide { display: none; }
.modal .pop { position: relative; width: 420px; padding: 20px; }
.boot { flex: 1; display: grid; place-items: center; }
.boot button { height: 44px; padding: 0 18px; border-radius: 8px; background: var(--hot); color: #1a0d08; font-weight: 700; }

.setup { width: 360px; }
.setup .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.barline { height: 8px; border-radius: 4px; background: var(--s3); overflow: hidden; }
.barline i { display: block; height: 100%; background: var(--hot); }

body.tab .site nav { display: none; position: absolute; top: 48px; right: 8px; flex-direction: column; align-items: stretch; background: var(--cream); padding: 8px; border-radius: 8px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25); }
body.tab .site nav.open { display: flex; }
body.tab .site .menu { display: flex; }
body.tab .tabs button { padding: 0 12px; height: 36px; font-size: 13px; }
.voice-drop { display: none; position: relative; align-items: center; height: 36px; border-radius: 8px; background: var(--s2); box-shadow: inset 0 0 0 1.5px #FF6A3D; }
.voice-drop select { appearance: none; -webkit-appearance: none; background: transparent; background-image: none; border: 0; height: 36px; margin: 0; font-size: 13px; font-weight: 600; color: var(--tx); padding: 0 26px 0 12px; cursor: pointer; }
.voice-drop i { position: absolute; right: 10px; top: 0; height: 36px; display: flex; align-items: center; pointer-events: none; color: var(--tx2); font-style: normal; font-size: 11px; }
body.tab .patch { min-width: 160px; }
body.tab .voice-seg { display: none; }
body.tab .voice-drop { display: flex; }
body.tab .side { display: none; }
body.tab .osc .well { height: 88px; }
body.tab .fmpd, body.tab .out { display: none; }
body.tab .envlfo { display: none; }
body.tab .detail { display: flex; flex: 1; min-height: 0; }
body.tab .k { width: 72px; }
body.tab .folder, body.tab .slots { width: auto; flex: 1; }
body.tab .libbody { flex-direction: column; overflow: auto; }
.hide { display: none !important; }

@media (max-width: 1300px) {
  .site { position: relative; }
  .site nav { display: none; position: absolute; top: 46px; right: 8px; flex-direction: column; align-items: stretch; background: var(--cream); padding: 8px 12px; border-radius: 8px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25); }
  .site nav.open { display: flex; }
  .site .menu { display: flex; }
  .voice-seg { display: none; }
  .voice-drop { display: flex; }
  .side { display: none; }
  .osc .well { height: 88px; }
  .fmpd, .out { display: none; }
  .envlfo { display: none; }
  .detail { display: flex; flex: 1; min-height: 0; }
  .lfo-modes { gap: 8px; }
  .lfo-mode .seg button { padding: 0 6px; }
  .folder, .slots { width: auto !important; }
  .libbody { flex-direction: column; overflow: auto; }
  .fxgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
}

/* Clipper card */
.clipcv { display: block; cursor: pointer; }
.clipchip { height: 44px; min-width: 140px; padding: 0 12px; border-radius: 12px; background: #1C1E23; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.clipchip.open { box-shadow: inset 0 0 0 1.5px var(--hot); }
.clipmenu { position: absolute; bottom: 48px; left: 0; z-index: 20; width: 280px; background: #1C1E23; border-radius: 12px; padding: 4px; box-shadow: 0 8px 24px #0009; }
.clipmenu.hide { display: none; }
.clipopt { display: grid; grid-template-columns: 1fr 18px; grid-template-rows: auto auto; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; }
.clipopt:hover { background: #262930; }
.clipopt b { font-size: 15px; color: var(--tx); } .clipopt span { grid-row: 2; font-size: 12px; color: var(--tx2); }
.clipopt i { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; color: var(--hot); visibility: hidden; }
.clipopt.on b { color: var(--hot); } .clipopt.on i { visibility: visible; }
/* Trig conditions */
.condpnl { gap: 8px; }
.passes { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; }
.passes span { height: 20px; display: grid; place-items: center; border-radius: 4px; background: var(--s2); color: var(--tx3, #7C818C); font-size: 11px; font-weight: 600; }
.passes span.hit { background: #FFC23B; color: #0E0F12; }
.tcchip { min-width: 52px; height: 32px; border-radius: 7px; background: var(--s2); color: var(--tx); font-size: 12px; font-weight: 600; padding: 0 8px; }
.tcchip.on { background: #FFC23B; color: #0E0F12; }
.fillbtn.on { background: #FFC23B; color: #0E0F12; }

/* FX bypass switches (rc1, spec fx-bypass/spec.md) */
.fxhd { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.pw { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; padding: 0; margin: -6px -8px -6px 0; cursor: pointer; }
.pw span { width: 40px; height: 24px; border-radius: 12px; box-sizing: border-box; display: grid; place-items: center; background: #FF6A3D; color: #0E0F12; font-size: 14px; font-weight: 700; transition: background .12s, border-color .12s, transform .08s; }
.pw:hover span { background: #FF8259; }
.pw[aria-checked="false"] span { background: transparent; border: 1.5px solid #5A5E66; color: #8A8E96; }
.pw[aria-checked="false"]:hover span { border-color: #B9BCC3; color: #E8E9EC; }
.pw:focus-visible { outline: none; }
.pw:focus-visible span { box-shadow: 0 0 0 2px #0E0F12, 0 0 0 4px #FF6A3D; }
.pw:active span { transform: scale(.96); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fxtagrow { display: none; height: 24px; }
.tag { display: inline-block; font-size: 12px; color: #B9BCC3; border: 1px solid #3A3E46; border-radius: 4px; padding: 0 8px; height: 24px; line-height: 22px; box-sizing: border-box; }
[data-bypassed="true"] > .fxtagrow { display: block; }
[data-bypassed="true"] > :not(.fxhd):not(.fxtagrow):not(.eqbands) { opacity: .4; }
.fxcard[data-bypassed="true"] > .eqbands { opacity: .4; }
[data-bypassed="true"] > .fxhd .dot { background: #5A5E66 !important; }
.fxcard[data-fx]:focus-visible, .eqband:focus-visible { outline: 2px solid #FF6A3D; outline-offset: 2px; }
.fxcard.flash { outline: 2px solid #FF6A3D; outline-offset: 2px; }
.eqbands { display: grid; grid-template-columns: 1fr; gap: 8px; }
.eqband { background: #16181C; border: 1px solid #23262C; border-radius: 8px; padding: 4px 8px 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.eqband .kgrid2 { display: flex; justify-content: space-around; }
.chain .node { background: #23262C; border: 1.5px solid #3A3E46; color: #E8E9EC; cursor: pointer; position: relative; }
.chain .node.off { background: transparent; border-style: dashed; color: #8A8E96; }
.chain .node.off::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 1.5px; background: #8A8E96; }
.chain .node.solo { border-color: #FF6A3D; color: #FF6A3D; }
.chain .chainln { color: #FF6A3D; }
@media (prefers-reduced-motion: reduce) { .pw span { transition: none; } }
.fxbody { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

/* Serum 1 import report (card #1543) */
.fxrep { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.fxrepcard { background: var(--s2); color: var(--tx); border-radius: 10px; max-width: 640px; width: 100%; max-height: 86vh; overflow: auto; padding: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }
.fxhead { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 6px; }
.fxsec { margin-top: 12px; padding-left: 10px; border-left: 3px solid var(--line); }
.fxsec.ok { border-color: #4CAF7A; }
.fxsec.mid { border-color: #E0A23A; }
.fxsec.bad { border-color: var(--bad); }
.fxsec h3 { margin: 0 0 4px; font-size: 13px; }
.fxsec ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.45; color: var(--tx2); }
