/* MISS SHEEN groovebox — hardware-style panel; follows the site / Remix variables. */
.gbx {
  --gb-bass: #46b4ff; --gb-perc: #ffd166; --gb-fx: #b07cff;
  position: relative; outline: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(180deg, var(--bg3, #18181e), var(--bg2, #121216));
  border: 1px solid var(--line, #232329); border-radius: 24px; padding: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05);
  color: var(--ink, #f4f4f1); font-family: inherit;
}
.gbx button { font-family: inherit; color: inherit; cursor: pointer; text-transform: none; letter-spacing: normal; margin: 0; min-height: 0; }
.gbx [hidden] { display: none !important; }

/* top strip: brand, display, transport */
.gbx-top { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; margin-bottom: 16px; }
.gbx-brand { display: flex; flex-direction: column; line-height: 1.1; }
.gbx-brand b { font-size: 20px; font-weight: 900; letter-spacing: .08em; }
.gbx-brand span { font-size: 10px; letter-spacing: .2em; color: var(--mute, #9a9aa3); margin-top: 4px; }
.gbx-lcd {
  min-width: 0; background: #07090a; border-radius: 12px; padding: 10px 14px 9px; border: 1px solid #000;
  box-shadow: inset 0 2px 10px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.05);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--acc, #ff4d2e);
}
.gbx-lcd-main { font-size: 14px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 10px color-mix(in srgb, var(--acc, #ff4d2e) 60%, transparent); }
.gbx-lcd-sub { font-size: 12px; opacity: .8; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.3em; }
.gbx-lcd-steps { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; margin-top: 7px; }
.gbx-lcd-steps i { height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--acc, #ff4d2e) 18%, transparent); }
.gbx-lcd-steps i:nth-child(4n+1) { background: color-mix(in srgb, var(--acc, #ff4d2e) 32%, transparent); }
.gbx-lcd-steps i.on { background: var(--acc, #ff4d2e); box-shadow: 0 0 8px var(--acc, #ff4d2e); }
.gbx-transport { display: flex; gap: 8px; }
.gbx-tb {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line, #232329); background: var(--bg, #0b0b0d);
  display: grid; place-items: center; padding: 0; box-shadow: 0 3px 0 rgba(0,0,0,.35); transition: transform .08s, background .15s;
}
.gbx-tb:active { transform: translateY(2px); box-shadow: none; }
.gbx-tb svg { width: 20px; height: 20px; fill: currentColor; }
.gbx-tb.on { background: var(--acc, #ff4d2e); border-color: var(--acc, #ff4d2e); color: #fff; }
.gbx-rec i { width: 16px; height: 16px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 3px rgba(255,59,48,.18); }
.gbx-rec.on { background: #ff3b30; border-color: #ff3b30; }
.gbx-rec.on i { background: #fff; animation: gbx-blink 1s steps(2) infinite; }
@keyframes gbx-blink { 50% { opacity: .25; } }
.gbx.is-rec { box-shadow: 0 30px 80px rgba(0,0,0,.35), 0 0 0 2px rgba(255,59,48,.55); }

/* body */
.gbx-body { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: 22px; align-items: start; }
.gbx-left, .gbx-right { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.gbx-lbl { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mute, #9a9aa3); }
.gbx-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.gbx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gbx-chip, .gbx-tabs button, .gbx-oct button {
  padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line, #232329); background: var(--bg, #0b0b0d);
  font-size: 13px; font-weight: 700; line-height: 1; transition: border-color .15s, background .15s;
}
.gbx-chip:hover, .gbx-tabs button:hover { border-color: var(--acc, #ff4d2e); }
.gbx-chip.on, .gbx-tabs button.on { background: var(--acc, #ff4d2e); border-color: var(--acc, #ff4d2e); color: #fff; }
.gbx-chip.queued { border-color: var(--acc, #ff4d2e); animation: gbx-blink .5s steps(2) infinite; }
.gbx-pat { width: 36px; padding: 8px 0; text-align: center; }
.gbx-tabs { display: flex; gap: 6px; align-items: center; }
.gbx-tabs button { padding: 9px 18px; font-size: 14px; }
.gbx-hint { margin-left: auto; font-size: 12px; color: var(--dim, #6b6b74); }
.gbx-demo {
  padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line, #232329); background: var(--bg, #0b0b0d);
  color: var(--ink, #f4f4f1); font-family: inherit; font-size: 13px; font-weight: 700; max-width: 160px;
}

/* pads */
.gbx-pads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; touch-action: none; }
.gbx-pad {
  --pc: var(--acc, #ff4d2e);
  position: relative; aspect-ratio: 1; border-radius: 14px; border: 1px solid rgba(0,0,0,.6); padding: 0;
  background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--pc) 10%, #2a2a31) 0%, #1a1a20 70%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -3px 0 rgba(0,0,0,.35), 0 3px 0 rgba(0,0,0,.4);
  color: #e9e9ee; touch-action: none; transition: transform .05s;
}
.gbx-pad.g-p { --pc: var(--gb-perc); }
.gbx-pad.g-f { --pc: var(--gb-fx); }
.gbx-pad.g-b { --pc: var(--gb-bass); }
.gbx-pad::after { content: ''; position: absolute; left: 12px; right: 12px; top: 8px; height: 3px; border-radius: 2px; background: var(--pc); opacity: .55; }
.gbx-pad:active { transform: scale(.97); }
.gbx-pad.sel { border-color: color-mix(in srgb, var(--pc) 70%, transparent); }
.gbx-pad.hit { animation: gbx-hit .28s ease-out; }
@keyframes gbx-hit {
  0% { background: var(--pc); box-shadow: 0 0 28px var(--pc), inset 0 0 0 1px rgba(255,255,255,.4); color: #111; }
  100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -3px 0 rgba(0,0,0,.35), 0 3px 0 rgba(0,0,0,.4); }
}
.gbx-pk { position: absolute; top: 15px; right: 11px; font-size: 11px; font-weight: 800; opacity: .45; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.gbx-pn { position: absolute; left: 11px; bottom: 9px; right: 8px; text-align: left; font-size: 12px; font-weight: 700; line-height: 1.15; opacity: .9; }

/* keys mode */
.gbx-keys { display: flex; flex-direction: column; gap: 12px; }
.gbx-oct { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.gbx-oct button { width: 34px; padding: 7px 0; font-size: 16px; }
.gbx-oct span { min-width: 34px; text-align: center; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.gbx-oct em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--dim, #6b6b74); }
.gbx-piano { position: relative; height: 190px; touch-action: none; }
.gbx-key { position: absolute; top: 0; box-sizing: border-box; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; touch-action: none; }
.gbx-key em { font-style: normal; font-size: 11px; font-weight: 800; font-family: 'JetBrains Mono', ui-monospace, monospace; pointer-events: none; }
.gbx-key.wht { height: 100%; background: linear-gradient(#f4f4f1, #dcdcd6); border: 1px solid #111; border-radius: 0 0 8px 8px; color: #555; z-index: 1; }
.gbx-key.blk { height: 60%; background: linear-gradient(#2a2a31, #0b0b0d); border: 1px solid #000; border-radius: 0 0 6px 6px; color: #aaa; z-index: 2; box-shadow: 0 3px 4px rgba(0,0,0,.5); }
.gbx-key.on, .gbx-key:active { background: var(--acc, #ff4d2e); color: #fff; }

/* knobs */
.gbx-knobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px 14px; }
.gbx-knob { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 6px; background: var(--bg, #0b0b0d); border: 1px solid var(--line, #232329); border-radius: 12px; padding: 8px 10px 6px; cursor: pointer; }
.gbx-knob input { grid-column: 1 / -1; width: 100%; accent-color: var(--acc, #ff4d2e); margin: 2px 0 0; cursor: pointer; }
.gbx-knob output { font-size: 12px; font-weight: 700; font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--ink, #f4f4f1); grid-row: 1; grid-column: 2; }

/* sequencer */
.gbx-seq { display: flex; flex-direction: column; gap: 3px; background: var(--bg, #0b0b0d); border: 1px solid var(--line, #232329); border-radius: 14px; padding: 10px; touch-action: none; }
.gbx-row { --pc: var(--acc, #ff4d2e); display: grid; grid-template-columns: 76px repeat(16, minmax(0, 1fr)); gap: 3px; align-items: center; }
.gbx-row.g-p { --pc: var(--gb-perc); }
.gbx-row.g-f { --pc: var(--gb-fx); }
.gbx-row.g-b, .gbx-keysrow { --pc: var(--gb-bass); }
.gbx-keysrow { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line, #232329); }
.gbx-rl { text-align: left; background: none; border: 0; padding: 0 6px 0 0; font-size: 11px !important; font-weight: 700; color: var(--mute, #9a9aa3) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gbx-row.sel .gbx-rl { color: var(--pc) !important; }
.gbx-c { height: 16px; border-radius: 4px; background: rgba(255,255,255,.05); cursor: pointer; transition: background .08s; }
.gbx-c.beat { background: rgba(255,255,255,.1); }
.gbx-row.sel .gbx-c { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 35%, transparent); }
.gbx-c.on { background: var(--pc); }
.gbx-c.soft { background: color-mix(in srgb, var(--pc) 50%, transparent); }
.gbx-c.tail { background: color-mix(in srgb, var(--pc) 25%, transparent); }
.gbx-c.now { box-shadow: 0 0 0 1px rgba(255,255,255,.55); }
.gbx-c.now.on, .gbx-c.now.soft { background: #fff; box-shadow: 0 0 10px var(--pc); }
.gbx-edit { display: flex; flex-wrap: wrap; gap: 6px; }
.gbx-sharebox { display: flex; gap: 8px; }
.gbx-sharebox input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line, #232329); background: var(--bg, #0b0b0d); color: var(--ink, #f4f4f1); font: 12px/1.2 'JetBrains Mono', ui-monospace, monospace; user-select: text; -webkit-user-select: text; }

/* light Remix themes: keep the hardware dark-ish where it matters */
html[data-remix="light"] .gbx-pad { color: #e9e9ee; }

@media (max-width: 900px) {
  .gbx-body { grid-template-columns: 1fr; }
  .gbx-left { max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 600px) {
  .gbx { padding: 12px; border-radius: 18px; }
  .gbx-top { grid-template-columns: 1fr auto; gap: 10px; }
  .gbx-lcd { grid-column: 1 / -1; grid-row: 2; }
  .gbx-brand b { font-size: 17px; }
  .gbx-tb { width: 42px; height: 42px; }
  .gbx-transport { gap: 6px; }
  .gbx-pads { gap: 7px; }
  .gbx-pn { font-size: 11px; left: 8px; bottom: 7px; }
  .gbx-pk { top: 13px; right: 8px; }
  .gbx-hint { display: none; }
  .gbx-piano { height: 150px; }
  .gbx-key em { font-size: 9px; }
  .gbx-knobs { grid-template-columns: 1fr 1fr; }
  .gbx-seq { padding: 8px 6px; }
  .gbx-row { grid-template-columns: 46px repeat(16, minmax(0, 1fr)); gap: 2px; }
  .gbx-rl { font-size: 9px !important; padding-right: 3px; }
  .gbx-c { height: 15px; border-radius: 3px; }
  .gbx-oct em { display: none; }
}
@media (prefers-reduced-motion: reduce) { .gbx-pad.hit { animation-duration: .12s; } .gbx-rec.on i, .gbx-chip.queued { animation: none; } }
.gbx-brand b, .gbx-brand span, .gbx-knob output { white-space: nowrap; }
@media (max-width: 600px) {
  .gbx { margin: 0 -10px; }
  .gbx-brand b { font-size: 15px; letter-spacing: .06em; }
  .gbx-brand span { font-size: 9px; letter-spacing: .12em; }
  .gbx-knob .gbx-lbl { font-size: 10px; letter-spacing: .1em; }
}
@media (max-width: 600px) {
  .gbx-top { grid-template-columns: minmax(0, 1fr) auto; }
  .gbx-brand { min-width: 0; overflow: hidden; }
  .gbx-tb { width: 38px; height: 38px; }
  .gbx-tb svg { width: 17px; height: 17px; }
  .gbx-rec i { width: 13px; height: 13px; }
  .gbx-transport { gap: 5px; }
}
@media (max-width: 360px) { .gbx-brand span { display: none; } }
/* Phones: the panel runs edge to edge with the page (arcade.css bleeds .mxp-app to the screen). */
@media (max-width: 600px) { .gbx { box-sizing: border-box; width: 100%; margin: 0; border-radius: 0; border-left: 0; border-right: 0; padding: 14px 12px; } }

/* ================= v1.4: MISS SHEEN + CYNTHIAZISER side by side ================= */
@property --v { syntax: '<number>'; inherits: true; initial-value: 0; }
.msx { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.msx-bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--mute, #9a9aa3); }
.msx-bar-l { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-right: 2px; }
.msx-bar button { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line, #232329); background: var(--bg, #0b0b0d); color: var(--ink, #f4f4f1); font: 800 12px/1 inherit; letter-spacing: .06em; cursor: pointer; margin: 0; min-height: 0; text-transform: none; }
.msx-bar button.on { background: var(--acc, #ff4d2e); border-color: var(--acc, #ff4d2e); color: #fff; box-shadow: 0 0 16px color-mix(in srgb, var(--acc, #ff4d2e) 45%, transparent); }
.msx-bar-h { margin-left: auto; font-size: 12px; color: var(--dim, #6b6b74); }
.msx kbd, .cz kbd { display: inline-block; min-width: 1.5em; padding: 1px 5px; margin: 0 1px; border-radius: 5px; border: 1px solid #34303a; border-bottom-width: 2px; background: #111014; color: var(--ink, #f4f4f1); font: 700 11px/1.4 'JetBrains Mono', ui-monospace, monospace; text-align: center; }
.msx.tab-free .msx-bar-h { color: var(--acc, #ff4d2e); }
.msx .gbx, .msx .cz { transition: box-shadow .2s, border-color .2s; }
.msx.live-pads .gbx:not(.is-rec) { border-color: color-mix(in srgb, var(--acc, #ff4d2e) 55%, var(--line, #232329)); }
.msx.live-synth .cz { border-color: var(--acc, #ff4d2e); box-shadow: 0 30px 80px rgba(0,0,0,.35), 0 0 0 1px var(--acc, #ff4d2e), 0 0 34px color-mix(in srgb, var(--acc, #ff4d2e) 30%, transparent); }

/* the synth panel */
.cz {
  --cz-acc: var(--acc, #ff4d2e); --cz-hot: #ff3d7f; --cz-led: #ffb020; --lfo: 1s;
  position: relative; overflow: hidden; outline: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  background: radial-gradient(120% 60% at 100% 0%, rgba(255,61,127,.07), transparent 60%), linear-gradient(180deg, #1b161b, #121014);
  border: 1px solid var(--line, #232329); border-radius: 24px; padding: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05);
  color: var(--ink, #f4f4f1); font-family: inherit;
}
.cz button { font-family: inherit; color: inherit; cursor: pointer; text-transform: none; letter-spacing: normal; margin: 0; min-height: 0; }
.cz-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cz-brand { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.cz-brand b { font-size: 21px; font-weight: 900; font-style: italic; letter-spacing: .05em; white-space: nowrap;
  background: linear-gradient(90deg, var(--cz-acc), var(--cz-hot) 70%, #ffb020); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cz-brand span { font-size: 9px; letter-spacing: .22em; color: var(--mute, #9a9aa3); margin-top: 5px; white-space: nowrap; }
.cz-live { display: flex; align-items: center; gap: 6px; font: 800 10px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .12em; color: var(--dim, #6b6b74); white-space: nowrap; }
.msx.live-synth .cz-live { color: var(--cz-acc); }
.cz-led { width: 8px; height: 8px; border-radius: 50%; background: #3a1f1a; box-shadow: inset 0 1px 1px rgba(0,0,0,.6); flex: none; }
.msx.live-synth .cz-live .cz-led { background: var(--cz-acc); box-shadow: 0 0 8px var(--cz-acc), 0 0 2px #fff inset; }

.cz-screen { position: relative; height: 66px; border-radius: 12px; background: #060507; border: 1px solid #000; box-shadow: inset 0 2px 12px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.05); overflow: hidden; }
.cz-scope { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cz-read { position: absolute; left: 10px; top: 7px; right: 10px; display: flex; justify-content: space-between; gap: 8px; font: 700 11px/1.2 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .06em; color: var(--cz-acc); pointer-events: none; text-shadow: 0 0 8px rgba(255,77,46,.6); }
.cz-read b, .cz-read span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-read span { color: #ffb08f; opacity: .85; }
.cz-presets { gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.cz-presets::-webkit-scrollbar { display: none; }
.cz-presets .gbx-chip { padding: 7px 7px; font-size: 11.5px; white-space: nowrap; flex: none; }
.cz .gbx-chip.on { background: linear-gradient(90deg, var(--cz-acc), var(--cz-hot)); border-color: transparent; }

/* rack + modules */
.cz-rack { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-right: 18px; }
.cz-cables { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.cz-cs { fill: none; stroke: rgba(0,0,0,.55); stroke-width: 6; stroke-linecap: round; }
.cz-cc { fill: none; stroke-width: 3.4; stroke-linecap: round; opacity: .92; }
.cz-plug { stroke: #0b0b0d; stroke-width: 1.5; }
.cz-mod { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 20px; grid-template-rows: auto 1fr; gap: 4px 6px; padding: 7px 6px 8px 10px; border-radius: 14px; background: linear-gradient(180deg, #121015, #0c0b0e); border: 1px solid #27222b; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.cz-mod::before, .cz-mod::after { content: ''; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #2c2830; bottom: 5px; }
.cz-mod::before { left: 5px; } .cz-mod::after { right: 5px; }
.cz-mh { display: flex; align-items: center; gap: 7px; font: 800 10px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .22em; color: var(--mute, #9a9aa3); }
.cz-mh b { font-weight: 800; }
.cz-ctrls { grid-column: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 2px; min-width: 0; }
.cz-jcol { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 1px 0 2px; }
.cz-jack { width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle, #000 0 32%, #8a838d 38%, #4a454e 60%, #2a262d 72%); box-shadow: 0 0 0 2px #19161b; }
/* LEDs: osc and env blink on each note (brighter on accents), filter glows with the cutoff, LFO pulses at its rate */
.cz.trig .cz-led[data-led="osc"], .cz.trig .cz-led[data-led="env"], .cz.trig-acc .cz-led[data-led="osc"], .cz.trig-acc .cz-led[data-led="env"] { animation: cz-flash .22s ease-out; }
.cz.trig-acc .cz-led[data-led="amp"] { animation: cz-flash .3s ease-out; }
@keyframes cz-flash { 0% { background: var(--cz-led); box-shadow: 0 0 10px var(--cz-led); } 100% { background: #3a1f1a; } }
.cz-led[data-led="flt"] { background: color-mix(in srgb, var(--cz-acc) 70%, #3a1f1a); box-shadow: 0 0 6px var(--cz-acc); }
.cz.lfo-on .cz-led[data-led="lfo"] { animation: cz-pulse var(--lfo) ease-in-out infinite; }
@keyframes cz-pulse { 50% { background: var(--cz-hot); box-shadow: 0 0 9px var(--cz-hot); } }

/* knobs */
.cz-k { --v: 0; position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 2px; touch-action: none; cursor: ns-resize; outline: none; transition: --v .14s ease-out; }
.cz-k.grab { transition: none; }
.cz-dial { position: relative; width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: conic-gradient(from 225deg, var(--cz-acc) calc(var(--v) * 270deg), #2c272f 0 270deg, transparent 0); }
.cz-dial::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4d464f, #1c191e 72%); box-shadow: 0 3px 6px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12); }
.cz-dial i { position: absolute; left: calc(50% - 1.5px); bottom: 50%; width: 3px; height: 34%; border-radius: 2px; background: #fff; transform-origin: 50% 100%; transform: rotate(calc(var(--v) * 270deg - 135deg)); box-shadow: 0 0 4px rgba(255,255,255,.4); }
.cz-macro .cz-dial { width: 46px; height: 46px; background: conic-gradient(from 225deg, var(--cz-acc), var(--cz-hot) calc(var(--v) * 270deg), #2c272f 0 270deg, transparent 0); }
.cz-macro .cz-dial::before { inset: 6px; }
.cz-k:focus-visible .cz-dial, .cz-k.grab .cz-dial { box-shadow: 0 0 0 2px #fff3, 0 0 14px color-mix(in srgb, var(--cz-acc) 60%, transparent); }
.cz-kl { font: 800 9px/1.1 Inter, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--mute, #9a9aa3); white-space: nowrap; }
.cz-cap { position: absolute; top: -3px; left: calc(50% - 32px); z-index: 1; min-width: 0; padding: 0 4px; font-size: 10px; color: var(--cz-acc); border-color: #3b2a2a; }
.cz-kv { position: absolute; left: 50%; top: -4px; transform: translate(-50%, -100%) scale(.9); opacity: 0; z-index: 4; pointer-events: none; white-space: nowrap;
  padding: 3px 7px; border-radius: 6px; background: #000; border: 1px solid var(--cz-acc); color: #fff; font: 700 11px/1.2 'JetBrains Mono', ui-monospace, monospace; transition: opacity .15s, transform .15s; }
.cz-k.show .cz-kv { opacity: 1; transform: translate(-50%, -100%) scale(1); }
.cz-k.show .cz-kl { color: var(--cz-acc); }
/* switches (waveforms, LFO target, mono/poly) */
.cz-sw { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 2px 0 0 !important; background: none !important; border: 0 !important; }
.cz-swv { width: 44px; height: 38px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 9px; background: #060507; border: 1px solid #000; box-shadow: inset 0 1px 6px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.06); color: var(--cz-acc); }
.cz-swv svg { width: 22px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 3px var(--cz-acc)); }
.cz-swv em { font: 800 9px/1 'JetBrains Mono', ui-monospace, monospace; font-style: normal; letter-spacing: .06em; }
.cz-sw:active .cz-swv { transform: translateY(1px); }
.cz-sw:hover .cz-swv { border-color: var(--cz-acc); }

/* keyboard */
.cz-kbar { display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.cz-kbar .gbx-oct button { width: 30px; padding: 6px 0; }
.cz-kbar .gbx-oct span { min-width: 30px; }
.cz-kb { position: relative; height: 118px; touch-action: none; }
.cz-key { position: absolute; top: 0; box-sizing: border-box; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; touch-action: none; }
.cz-key em { font-style: normal; font-size: 10px; font-weight: 800; font-family: 'JetBrains Mono', ui-monospace, monospace; pointer-events: none; }
.cz-key.wht { height: 100%; background: linear-gradient(#efe9e1, #d6cfc6); border: 1px solid #111; border-radius: 0 0 7px 7px; color: #6a625c; z-index: 1; }
.cz-key.blk { height: 60%; background: linear-gradient(#2d2830, #0c0b0e); border: 1px solid #000; border-radius: 0 0 5px 5px; color: #a49ca7; z-index: 2; box-shadow: 0 3px 4px rgba(0,0,0,.5); }
.cz-key.on, .cz-key:active { background: linear-gradient(var(--cz-hot), var(--cz-acc)); color: #fff; box-shadow: 0 0 14px color-mix(in srgb, var(--cz-hot) 60%, transparent); }
.msx.live-synth .cz-key.wht em { color: #2a2420; }
.cz-lane { display: flex; align-items: center; gap: 6px; }
.cz-lane .gbx-chips { gap: 4px; flex-wrap: nowrap; }
.cz-lane .gbx-chip { padding: 6px 8px; font-size: 11.5px; }

/* the Cynth lane in the step sequencer */
.gbx-czrow { --pc: #ff3d7f; }
.gbx-czrow .gbx-c { position: relative; }
.gbx-c.acc { box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.gbx-c.sl::after { content: ''; position: absolute; left: 70%; right: -6px; top: calc(50% - 2px); height: 4px; border-radius: 2px; background: var(--pc); z-index: 1; }
.gbx-czrow .gbx-c.now.on { background: #fff; }

/* desktop: groovebox left, synth right (the page breaks out of its 1180px column to fit both) */
@media (min-width: 1200px) {
  .mxp-app[data-game="miss-sheen"] { width: min(calc(100vw - 48px), 1640px); margin-left: calc(50% - min(50vw - 24px, 820px)); }
  .msx { grid-template-columns: minmax(0, 1fr) 400px; }
  .msx .gbx-body { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
}
@media (min-width: 1500px) { .msx { grid-template-columns: minmax(0, 1fr) 420px; } .msx .gbx-body { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); } }
/* stacked (tablet): one wide column, so the cables stay in their lane */
@media (min-width: 700px) and (max-width: 1199px) {
  .cz-ctrls { justify-content: space-around; }
  .cz-kb { height: 140px; }
}
@media (hover: none) and (pointer: coarse) { .msx-bar, .cz-live { display: none; } }
@media (max-width: 600px) {
  .msx { gap: 0; }
  .msx-bar { padding: 0 12px 10px; }
  .msx-bar-h { display: none; }
  .cz { border-radius: 0; border-left: 0; border-right: 0; padding: 16px 12px 18px; gap: 11px; }
  .msx .gbx { border-bottom: 0; }
  .cz-brand b { font-size: 18px; }
  .cz-rack { padding-right: 16px; }
  .cz-mod { padding-left: 7px; }
  .cz-dial { width: 36px; height: 36px; }
  .cz-macro .cz-dial { width: 44px; height: 44px; }
  .cz-swv { width: 40px; height: 36px; }
  .cz-lane .gbx-lbl { display: none; }
  .cz-cap { left: calc(50% - 28px); }
  .cz-kb { height: 112px; }
  .cz-key em { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) { .cz-k { transition: none; } .cz.lfo-on .cz-led[data-led="lfo"] { animation: none; } }

/* Themify styles every input as a white 17em form box (input:read-write …). Undo that inside MISS SHEEN and draw our own sliders. */
.mxp-app .gbx-knob input[type=range] {
  -webkit-appearance: none; appearance: none; display: block; box-sizing: border-box; width: 100%; max-width: none; min-width: 0; height: 20px;
  margin: 2px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none; cursor: pointer;
}
.mxp-app .gbx-knob input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--acc, #ff4d2e) var(--p, 50%), var(--line, #2a2a31) var(--p, 50%)); }
.mxp-app .gbx-knob input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line, #2a2a31); }
.mxp-app .gbx-knob input[type=range]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--acc, #ff4d2e); }
.mxp-app .gbx-knob input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-top: -5px; border-radius: 50%; background: var(--acc, #ff4d2e); border: 2px solid var(--ink, #f4f4f1); box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.mxp-app .gbx-knob input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--acc, #ff4d2e); border: 2px solid var(--ink, #f4f4f1); box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.mxp-app .gbx-knob input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc, #ff4d2e) 45%, transparent); }
.mxp-app .gbx-sharebox input[type=text] { width: auto; max-width: none; margin: 0; }
.mxp-app select.gbx-demo { width: auto; margin: 0; }
