/* AXIOM B-1 - bass synthesizer. Palette: dark blue, light blue, grey, white. */
:root {
    --n0: #060e1d; --n1: #0b1830; --n2: #112243; --n3: #19315b; --n4: #244378;
    --line: #2a4a7c; --line2: #3b5f96;
    --blue: #7cc4ff; --blue2: #a8dcff; --blueD: #3f8fd8; --glow: rgba(124, 196, 255, .45);
    --white: #f4f8fd; --grey: #9aa7ba; --greyD: #62728a; --greyL: #c3cddb;
    --text: #e8eff9; --muted: #8fa0b8; --dim: #5d6f8a;
    --mono: 'Consolas', 'SF Mono', Menlo, 'Courier New', monospace;
    --ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --vh: 1vh;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--n0); color: var(--text); font-family: var(--ui); }
body { min-height: calc(100 * var(--vh)); padding: 6px 10px; display: flex; justify-content: center; align-items: flex-start; overflow-x: hidden; user-select: none; -webkit-user-select: none; touch-action: manipulation; -webkit-text-size-adjust: 100%; }
.hidden { display: none !important; }
button, select, input { font-family: inherit; color: inherit; }
button { cursor: pointer; }

.chassis { width: 100%; max-width: 1500px; background: linear-gradient(180deg, var(--n2) 0%, var(--n1) 100%); border: 2px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .1); padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 8px; position: relative; }

/* ---------------------------------------------------------------- top bar */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; border-bottom: 2px solid var(--n3); padding-bottom: 7px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title { font-size: 21px; font-weight: 900; letter-spacing: 2px; color: var(--white); }
.brand-title b { color: var(--blue); }
.brand-sub { font-size: 9px; letter-spacing: 1.4px; color: var(--muted); font-family: var(--mono); }
.grp { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.led-box { background: var(--n0); border: 1px solid var(--line); border-radius: 5px; padding: 2px 8px; display: flex; flex-direction: column; align-items: center; min-width: 54px; }
.led-box .l { font-size: 8px; letter-spacing: 1.5px; color: var(--muted); }
.led-box .v { font-family: var(--mono); font-size: 20px; color: var(--blue); text-shadow: 0 0 8px var(--glow); line-height: 1.05; }
.led-box input { width: 56px; background: transparent; border: 0; border-top: 1px solid var(--n3); color: var(--grey); font-size: 10px; text-align: center; }
.btn { background: linear-gradient(180deg, var(--n3), var(--n2)); border: 1px solid var(--line); border-radius: 5px; color: var(--text); font-size: 11px; font-weight: 700; letter-spacing: .8px; padding: 6px 10px; min-height: 30px; }
.btn:hover { border-color: var(--blue); }
.btn:active, .btn.on { background: var(--blue); color: var(--n0); border-color: var(--blue2); box-shadow: 0 0 10px var(--glow); }
.btn.big { padding: 6px 16px; font-size: 13px; }
.btn.play.on { background: var(--white); color: var(--n0); }
.btn.sm { font-size: 9px; padding: 3px 7px; min-height: 22px; }
.sel { background: var(--n0); border: 1px solid var(--line); border-radius: 5px; color: var(--text); font-size: 11px; padding: 5px 6px; min-height: 30px; max-width: 100%; }
.sel:focus, .btn:focus-visible { outline: 1px solid var(--blue); }
.lbl { font-size: 9px; letter-spacing: 1.2px; color: var(--muted); }
.seg { display: flex; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.seg .btn { border: 0; border-radius: 0; border-right: 1px solid var(--line); min-height: 28px; }
.seg .btn:last-child { border-right: 0; }
.right { margin-left: auto; }
#scope { background: var(--n0); border: 1px solid var(--line); border-radius: 4px; width: 120px; height: 40px; }
.vu { display: flex; gap: 2px; height: 40px; }
.vu i { display: block; width: 6px; background: var(--n0); border: 1px solid var(--line); position: relative; }
.vu i b { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(0deg, var(--blueD), var(--blue2) 70%, var(--white)); }
input[type=range] { accent-color: var(--blue); }

/* ---------------------------------------------------------------- selectors, pattern bank */
.panel { background: var(--n1); border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; }
.sel-row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.sel-row .sel { min-width: 150px; }
.bank { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.pats { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 4px; flex: 1 1 560px; }
.pat { background: var(--n2); border: 1px solid var(--line); border-radius: 5px; color: var(--greyL); padding: 4px 2px 3px; display: flex; flex-direction: column; align-items: center; line-height: 1.1; min-height: 40px; position: relative; }
.pat b { font-size: 15px; font-family: var(--mono); color: var(--white); }
.pat small { font-size: 7px; letter-spacing: .5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: clip; max-width: 100%; }
.pat.cur { background: var(--blue); border-color: var(--blue2); box-shadow: 0 0 12px var(--glow); }
.pat.cur b, .pat.cur small { color: var(--n0); }
.pat.q { outline: 2px dashed var(--white); animation: blink .5s steps(2) infinite; }
.pat.has::after { content: ''; position: absolute; top: 3px; right: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }
.pat.cur.has::after { background: var(--n0); }
@keyframes blink { 50% { outline-color: transparent; } }
.bars { display: flex; gap: 3px; align-items: center; }
.bar-btn { width: 30px; height: 30px; background: var(--n2); border: 1px solid var(--line); border-radius: 4px; font-family: var(--mono); font-size: 12px; color: var(--greyL); position: relative; }
.bar-btn.view { background: var(--n4); color: var(--white); border-color: var(--blue); }
.bar-btn.play { box-shadow: inset 0 -3px 0 var(--white); }
.bar-btn.off { opacity: .35; }

/* ---------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 5px; margin-bottom: 5px; }
.step { position: relative; height: 62px; border-radius: 6px; border: 1px solid var(--line); background: var(--n0); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 3px; color: var(--muted); font-size: 9px; font-family: var(--mono); }
.step .nt { font-size: 11px; color: var(--greyL); line-height: 1; }
.step .nm { position: absolute; top: 3px; left: 4px; font-size: 8px; color: var(--dim); }
.step .fl { position: absolute; top: 3px; right: 4px; font-size: 8px; color: var(--white); letter-spacing: -1px; }
.step.g1 { border-bottom: 4px solid #5fb4ff; } .step.g2 { border-bottom: 4px solid #f4f8fd; } .step.g3 { border-bottom: 4px solid #5fb4ff; } .step.g4 { border-bottom: 4px solid #aab6c8; }
.step.on.g1, .step.on.g3 { background: linear-gradient(180deg, #2c6cae, #5fb4ff); }
.step.on.g2 { background: linear-gradient(180deg, #a9b6c8, #f4f8fd); } .step.on.g4 { background: linear-gradient(180deg, #5a687f, #aab6c8); }
.step.on { color: var(--n0); border-color: var(--white); } .step.on .nt { color: var(--n0); font-weight: 800; } .step.on .nm { color: rgba(6, 14, 29, .6); } .step.on .fl { color: var(--n0); }
.step.sel { outline: 2px solid var(--blue2); outline-offset: 1px; }
.step.head::before { content: ''; position: absolute; inset: 0; border-radius: 5px; box-shadow: inset 0 0 0 3px var(--white), 0 0 12px var(--white); pointer-events: none; }
.step.acc .nt::after { content: '>'; }
.roll { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 5px; }
.roll-col { display: flex; flex-direction: column; gap: 1px; }
.cell { height: 7px; background: var(--n0); border-radius: 1px; }
.cell.r0 { background: var(--n3); } .cell.r7 { background: var(--n3); } .cell.r12 { background: var(--n3); }
.cell.on { background: var(--blue); box-shadow: 0 0 5px var(--glow); }
.cell.dis { opacity: .35; }
.rollwrap { position: relative; touch-action: none; }
.rollleg { display: flex; justify-content: space-between; font-size: 8px; color: var(--dim); font-family: var(--mono); margin-top: 2px; }
.insp { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 7px; padding-top: 6px; border-top: 1px solid var(--n3); }
.insp .v { font-family: var(--mono); font-size: 13px; color: var(--blue); min-width: 38px; text-align: center; }

/* ---------------------------------------------------------------- root bar */
.rootbar { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.rootnote { font-family: var(--mono); font-size: 24px; color: var(--blue); text-shadow: 0 0 10px var(--glow); min-width: 64px; text-align: center; }
.chk { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--greyL); }

/* ---------------------------------------------------------------- synth panels, knobs */
.tabs { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 6px; }
.tab { background: var(--n2); border: 1px solid var(--line); border-bottom: 0; border-radius: 5px 5px 0 0; padding: 6px 12px; font-size: 11px; font-weight: 700; letter-spacing: .8px; color: var(--greyL); }
.tab.on { background: var(--blue); color: var(--n0); }
.pgrid { display: flex; flex-wrap: wrap; gap: 8px; }
.grp-box { background: var(--n0); border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px 8px; }
.grp-box h4 { font-size: 10px; letter-spacing: 1.5px; color: var(--blue); margin-bottom: 5px; font-weight: 700; }
.grp-box .cs { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: flex-end; }
.kn { display: flex; flex-direction: column; align-items: center; width: 56px; gap: 2px; touch-action: none; }
.kn .dial { width: 42px; height: 42px; border-radius: 50%; background: conic-gradient(from -135deg, var(--blue) calc(var(--v, 0) * 270deg), var(--n3) 0); position: relative; border: 1px solid var(--line2); }
.kn .dial::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--n4), var(--n1)); }
.kn .dial i { position: absolute; left: 50%; top: 50%; width: 2px; height: 15px; margin-left: -1px; background: var(--white); border-radius: 1px; transform-origin: 50% 0; transform: rotate(calc(180deg + -135deg + var(--v, 0) * 270deg)); z-index: 2; }
.kn .nm { font-size: 8px; letter-spacing: .8px; color: var(--muted); text-align: center; white-space: nowrap; }
.kn .val { font-family: var(--mono); font-size: 9px; color: var(--greyL); min-height: 11px; }
.kn.learn .dial { outline: 2px dashed var(--white); }
.kn.learning .dial { outline: 2px solid var(--blue2); animation: blink .4s steps(2) infinite; }
.cs-sel { display: flex; flex-direction: column; gap: 2px; min-width: 76px; }
.cs-sel .nm { font-size: 8px; letter-spacing: .8px; color: var(--muted); }
.cs-sel .sel { font-size: 10px; min-height: 26px; padding: 3px 4px; }

/* ---------------------------------------------------------------- piano */
.pianowrap { position: relative; }
.piano { position: relative; height: 92px; display: flex; touch-action: none; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: var(--n0); }
.wk { flex: 1 1 0; background: linear-gradient(180deg, var(--greyL), var(--white)); border-right: 1px solid var(--greyD); position: relative; display: flex; align-items: flex-end; justify-content: center; font-size: 8px; color: var(--greyD); padding-bottom: 2px; min-width: 0; }
.bk { position: absolute; top: 0; height: 58%; background: linear-gradient(180deg, var(--n0), var(--n3)); border: 1px solid var(--n0); border-radius: 0 0 3px 3px; z-index: 3; transform: translateX(-50%); }
.wk.root { background: linear-gradient(180deg, var(--blue2), var(--blue)); color: var(--n0); font-weight: 800; box-shadow: inset 0 0 0 2px var(--blueD); }
.bk.root { background: linear-gradient(180deg, var(--blueD), var(--blue)); }
.wk.play { background: linear-gradient(180deg, var(--white), var(--blue2)); box-shadow: inset 0 0 14px var(--blue), 0 0 12px var(--white); }
.bk.play { background: linear-gradient(180deg, var(--blue2), var(--white)); }
.wk.pn::before, .bk.pn::before { content: ''; position: absolute; top: 5px; left: 50%; width: 7px; height: 7px; margin-left: -3px; border-radius: 50%; background: var(--blueD); z-index: 4; }
.wk.pn::before { top: auto; bottom: 16px; }
.wk.held, .bk.held { box-shadow: inset 0 0 0 2px var(--white); }
.oct-lbl { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- perform-side loop strip */
.loopstrip { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.lpads { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; flex: 1 1 420px; }
.lpad { background: var(--n2); border: 1px solid var(--line); border-radius: 4px; font-family: var(--mono); font-size: 10px; min-height: 28px; color: var(--greyL); }
.lpad.full { border-color: var(--blue); color: var(--white); }
.lpad.run { background: var(--blue); color: var(--n0); }
.lpad.qd { outline: 2px dashed var(--white); }

/* ---------------------------------------------------------------- floating windows */
.unlock { position: fixed; inset: 0; background: rgba(6, 14, 29, .86); z-index: 90; display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer; }
.unlock div { border: 2px solid var(--blue); border-radius: 12px; padding: 24px 34px; background: var(--n1); box-shadow: 0 0 40px var(--glow); }
.unlock b { display: block; font-size: 22px; letter-spacing: 3px; color: var(--white); } .unlock span { color: var(--blue); font-size: 12px; }
.win { position: fixed; z-index: 60; background: var(--n1); border: 2px solid var(--line2); border-radius: 9px; padding: 9px 11px; box-shadow: 0 14px 40px rgba(0, 0, 0, .8); max-width: min(380px, calc(100vw - 12px)); max-height: calc(100 * var(--vh) - 20px); overflow: auto; font-size: 11px; display: flex; flex-direction: column; gap: 6px; }
.win .hd { display: flex; align-items: center; gap: 8px; } .win .hd b { letter-spacing: 1.4px; color: var(--white); } .win .hd button { margin-left: auto; }
.win .row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .win .row input[type=text] { background: var(--n0); border: 1px solid var(--line); border-radius: 4px; padding: 5px; flex: 1; min-width: 80px; color: var(--text); }
.win .box { border: 1px solid var(--line); border-radius: 6px; padding: 5px 7px; display: flex; flex-direction: column; gap: 5px; }
.dim { color: var(--muted); font-size: 10px; }
.sp-state.on { color: var(--blue); }
.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--blue); color: var(--n0); font-weight: 700; padding: 8px 16px; border-radius: 20px; z-index: 99; font-size: 12px; max-width: 90vw; text-align: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .6); }

/* ---------------------------------------------------------------- DJ section */
.dj { display: flex; flex-direction: column; gap: 8px; }
.djtop { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.decks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.deck { background: var(--n1); border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.deck h3 { font-size: 13px; letter-spacing: 2px; color: var(--white); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .deck h3 b { color: var(--blue); }
.slots { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.slot { background: var(--n2); border: 1px solid var(--line); border-radius: 5px; min-height: 46px; padding: 3px; font-size: 9px; color: var(--greyL); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; position: relative; }
.slot b { font-family: var(--mono); font-size: 12px; color: var(--white); } .slot small { color: var(--muted); font-size: 8px; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.slot.full { border-color: var(--blueD); } .slot.run { background: var(--blue); } .slot.run b, .slot.run small { color: var(--n0); } .slot.qd { outline: 2px dashed var(--white); } .slot.sel { box-shadow: 0 0 0 2px var(--white); }
.wave { width: 100%; height: 56px; background: var(--n0); border: 1px solid var(--line); border-radius: 4px; }
.dctl { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: flex-end; }
.fader { writing-mode: vertical-lr; direction: rtl; height: 90px; width: 22px; }
.xf { width: min(420px, 90%); }
.fxpads { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.fxp { background: var(--n2); border: 1px solid var(--line); border-radius: 5px; min-height: 40px; font-size: 9px; font-weight: 700; color: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.fxp small { color: var(--muted); font-size: 8px; } .fxp.hit { background: var(--blue); color: var(--n0); } .fxp.hit small { color: var(--n0); }
.prog { height: 4px; background: var(--n3); border-radius: 2px; overflow: hidden; } .prog i { display: block; height: 100%; width: 0; background: var(--blue); }

/* ---------------------------------------------------------------- compact views */
.plist { display: none; }
.cmp-only { display: none; }
html.v-side body, html.v-port body { padding: 3px; }
html.v-side .chassis, html.v-port .chassis { padding: 4px 6px 6px; gap: 4px; border-radius: 6px; }
html.v-side .brand-sub, html.v-port .brand-sub, html.v-side .vu, html.v-port .vu, html.v-side #scope, html.v-port #scope { display: none; }
html.v-side .brand-title, html.v-port .brand-title { font-size: 15px; }
html.v-side .cmp-only, html.v-port .cmp-only { display: initial; }
html.v-side .full-only, html.v-port .full-only { display: none !important; }
html.v-side .top, html.v-port .top { gap: 4px 8px; padding-bottom: 4px; }
html.v-side .led-box, html.v-port .led-box { min-width: 40px; padding: 1px 5px; } html.v-side .led-box .v, html.v-port .led-box .v { font-size: 15px; } html.v-side .led-box input, html.v-port .led-box input { display: none; }
html.v-side .btn, html.v-port .btn { min-height: 28px; padding: 4px 8px; }
html.v-side .pat, html.v-port .pat { min-height: 30px; padding: 2px 1px; } html.v-side .pat small, html.v-port .pat small { display: none; } html.v-side .pat b, html.v-port .pat b { font-size: 13px; }
html.v-side .step, html.v-port .step { height: 48px; } html.v-side .step .nm, html.v-port .step .nm { display: none; }
html.v-side .panel, html.v-port .panel { padding: 4px 6px; }
html.v-side .piano, html.v-port .piano { height: 70px; }
html.v-side #view-perform { display: grid; grid-template-columns: 168px minmax(0, 1fr); grid-template-areas: 'pl bank' 'pl seq' 'pl root' 'pl piano'; gap: 4px 6px; align-items: start; }
html.v-side .plist { display: flex; grid-area: pl; flex-direction: column; gap: 3px; max-height: calc(100 * var(--vh) - 62px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
html.v-side #area-bank { grid-area: bank; } html.v-side #area-seq { grid-area: seq; } html.v-side #area-root { grid-area: root; } html.v-side #area-piano { grid-area: piano; }
html.v-port .plist { display: flex; flex-direction: row; gap: 3px; overflow-x: auto; padding-bottom: 3px; -webkit-overflow-scrolling: touch; }
html.v-port #view-perform { display: flex; flex-direction: column; gap: 4px; }
html.v-port .pats { grid-template-columns: repeat(8, minmax(0, 1fr)); } html.v-port .steps, html.v-port .roll { grid-template-columns: repeat(8, minmax(0, 1fr)); }
html.v-port .steps { row-gap: 3px; } html.v-port .step { height: 46px; }
html.v-port .roll-col:nth-child(n+9) { display: none; } html.v-port .roll.second .roll-col:nth-child(-n+8) { display: none; } html.v-port .roll.second .roll-col:nth-child(n+9) { display: flex; }
.pl-item { background: var(--n2); border: 1px solid var(--line); border-radius: 5px; text-align: left; padding: 4px 7px; font-size: 11px; font-weight: 700; color: var(--white); flex: 0 0 auto; line-height: 1.15; }
.pl-item small { display: block; font-size: 8px; color: var(--muted); font-weight: 400; letter-spacing: .6px; }
.pl-item.cur { background: var(--blue); color: var(--n0); border-color: var(--blue2); } .pl-item.cur small { color: var(--n0); }
.pl-item.cur2 { box-shadow: inset 0 0 0 2px var(--white); }
html.v-side .decks, html.v-port .decks { grid-template-columns: 1fr; }
html.v-side .slots, html.v-port .slots { grid-template-columns: repeat(8, 1fr); }
@media (max-width: 1100px) { .decks { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .pats { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (pointer: coarse) { .btn { min-height: 36px; } .sel { min-height: 36px; } }
html.edit #area-synth { display: block !important; position: fixed; inset: 0; z-index: 50; overflow: auto; border-radius: 0; background: var(--n1); }
html.edit #area-synth .tab.cmp-only { margin-left: auto; background: var(--white); color: var(--n0); display: initial; }
body.learn-on .kn .dial { outline: 1px dashed var(--white); }

/* ---- compact refinements (sideways phone must fit one screen without scrolling) */
html.v-side .cell { height: 4px; } html.v-side .roll { gap: 3px; } html.v-side .steps { gap: 3px; margin-bottom: 3px; }
html.v-side .rollleg, html.v-side .oct-lbl .lbl:first-child, html.v-port .rollleg, html.v-port .oct-lbl .lbl:first-child { display: none; }
html.v-side .insp, html.v-port .insp { margin-top: 3px; padding-top: 3px; gap: 3px 5px; } html.v-side .insp .lbl, html.v-side .insp input, html.v-port .insp .lbl:not(:first-child), html.v-port .insp input { display: none; }
html.v-side .insp .btn.sm, html.v-port .insp .btn.sm { min-height: 24px; font-size: 9px; padding: 2px 6px; }
html.v-side .bank { gap: 3px 8px; } html.v-side .bank .grp .lbl, html.v-port .bank .grp .lbl { display: none; } html.v-side #sel-len, html.v-port #sel-len { min-height: 24px; padding: 1px; }
html.v-side .bar-btn, html.v-port .bar-btn { width: 24px; height: 24px; font-size: 10px; }
html.v-side .pats { gap: 2px; } html.v-side .pat { min-height: 26px; }
html.v-side .rootbar, html.v-port .rootbar { gap: 3px 8px; } html.v-side .rootnote, html.v-port .rootnote { font-size: 17px; min-width: 40px; } html.v-side .rootbar .lbl, html.v-port .rootbar .lbl { display: none; }
html.v-side .chk, html.v-port .chk { font-size: 9px; } html.v-side .seg .btn, html.v-port .seg .btn { min-height: 24px; padding: 2px 7px; font-size: 10px; }
html.v-side .piano { height: 54px; } html.v-side .oct-lbl, html.v-port .oct-lbl { margin-bottom: 2px; } html.v-side .oct-lbl .btn, html.v-port .oct-lbl .btn { min-height: 22px; }
html.v-side .top .right { margin-left: 0; } html.v-side .step { height: 40px; }
html.v-port .rollwrap { display: none; } html.v-port .piano { height: 84px; } html.v-port .plist { padding-bottom: 2px; } html.v-port .pl-item { padding: 3px 6px; font-size: 10px; }
html.v-port .top { row-gap: 3px; } html.v-port .grp.right { margin-left: 0; width: 100%; }
html.v-port #b-view, html.v-side #b-view { font-size: 9px; }
html.v-side .cell { height: 3px; } html.v-side .top { flex-wrap: nowrap; } html.v-side #b-tap, html.v-side #s-swing { display: none; } html.v-side .rootbar { flex-wrap: nowrap; }
html.v-side #area-piano { position: relative; padding: 3px; } html.v-side .oct-lbl { position: absolute; top: 5px; right: 8px; z-index: 6; margin: 0; opacity: .85; }
html.v-side #area-root, html.v-side #area-bank { padding: 3px 6px; } html.v-side .piano { height: 52px; } html.v-side .chassis { gap: 3px; } html.v-side #area-seq { padding: 4px 6px; }
html.v-side .led-box .l { font-size: 7px; } html.v-side .brand-title { font-size: 13px; } html.v-side .top .btn { padding: 2px 6px; min-height: 24px; font-size: 10px; }
html.v-side .brand, html.v-port .brand, html.v-side .led-box:nth-child(4), html.v-port .led-box:nth-child(4) { display: none; }
html.v-side .grp { gap: 3px; flex-wrap: nowrap; } html.v-side .top { gap: 3px 6px; } html.v-side .led-box { min-width: 36px; } html.v-side .btn.big { padding: 2px 8px; font-size: 11px; }
html.v-side .top .grp.right { flex-wrap: nowrap; }

/* ---- full view: tighter, so synth controls + patterns + the 16 step pads fit one window */
html.v-full body { padding: 4px 8px; } html.v-full .chassis { gap: 5px; padding: 6px 10px 8px; }
html.v-full .top { padding-bottom: 4px; gap: 4px 12px; } html.v-full .brand-title { font-size: 18px; } html.v-full .brand-sub { display: none; }
html.v-full .led-box .v { font-size: 17px; } html.v-full .led-box input { display: none; } html.v-full .btn.big { padding: 4px 12px; min-height: 28px; }
html.v-full .panel { padding: 5px 8px; } html.v-full .sel-row .sel, html.v-full .btn { min-height: 26px; }
html.v-full .tabs { margin-bottom: 4px; } html.v-full .tab { padding: 4px 11px; font-size: 10px; }
html.v-full .pgrid { gap: 5px; } html.v-full .grp-box { padding: 4px 6px 5px; } html.v-full .grp-box h4 { margin-bottom: 3px; font-size: 9px; }
html.v-full .kn { width: 52px; } html.v-full .kn .dial { width: 34px; height: 34px; } html.v-full .kn .dial::after { inset: 4px; } html.v-full .kn .dial i { height: 12px; }
html.v-full .kn .nm { font-size: 7.5px; } html.v-full .kn .val { font-size: 8.5px; min-height: 10px; } html.v-full .cs-sel .sel { min-height: 24px; } html.v-full .grp-box .cs { gap: 4px 6px; }
html.v-full .pat { min-height: 34px; padding: 2px 2px; } html.v-full .pat b { font-size: 13px; } html.v-full .bar-btn { width: 26px; height: 26px; }
html.v-full .step { height: 50px; } html.v-full .steps { margin-bottom: 4px; gap: 4px; } html.v-full .roll { gap: 4px; } html.v-full .cell { height: 5px; } html.v-full .rollleg { display: none; }
html.v-full .insp { margin-top: 4px; padding-top: 4px; } html.v-full .rootnote { font-size: 20px; }
html.v-full .piano { height: 70px; } html.v-full .oct-lbl { margin-bottom: 2px; }

/* ---- velocity lane under the note roll */
.vwrap { position: relative; margin-top: 4px; } .vlbl { position: absolute; left: 4px; top: 1px; font-size: 7px; letter-spacing: 1.2px; color: var(--dim); z-index: 2; pointer-events: none; }
.vlane { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 5px; height: 42px; touch-action: none; }
.vcol { position: relative; background: var(--n0); border: 1px solid var(--n3); border-radius: 3px; overflow: hidden; display: flex; align-items: flex-end; }
.vcol i { display: block; width: 100%; background: var(--n4); } .vcol.on i { background: linear-gradient(0deg, var(--blueD), var(--blue2)); } .vcol.acc i { background: linear-gradient(0deg, var(--greyL), var(--white)); }
html.v-full .vlane { height: 34px; gap: 4px; } html.v-side .vlane { height: 20px; gap: 3px; } html.v-side .vlbl, html.v-port .vlbl { display: none; }
html.v-port .vlane { grid-template-columns: repeat(8, minmax(0, 1fr)); height: 0; display: none; }
html.v-port .insp #i-vel, html.v-port .insp #i-gate { display: inline-block; width: 70px; } html.v-side .cell { height: 2px; } html.v-side .vlane { height: 18px; } html.v-side .piano { height: 46px; }

/* ---- DJ platter (scratch) */
.ttrow { display: flex; gap: 10px; align-items: center; } .ttrow .wave { flex: 1 1 auto; min-width: 0; height: 120px; } .tt { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 0 0 auto; }
.platter { width: 118px; height: 118px; border-radius: 50%; position: relative; touch-action: none; cursor: grab; background: radial-gradient(circle, var(--n3) 0 28%, var(--n0) 29% 100%); border: 2px solid var(--line2); box-shadow: 0 0 0 3px var(--n1), inset 0 0 12px rgba(0, 0, 0, .8); }
.platter.hold { cursor: grabbing; border-color: var(--blue); box-shadow: 0 0 0 3px var(--n1), 0 0 18px var(--glow); }
.disc { position: absolute; inset: 0; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(124, 196, 255, .0) 0 3px, rgba(124, 196, 255, .09) 3px 4px); will-change: transform; }
.disc .lab { position: absolute; inset: 31%; border-radius: 50%; background: radial-gradient(circle, var(--blue2), var(--blueD)); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--n0); line-height: 1; } .disc .lab b { font-family: var(--mono); font-size: 11px; } .disc .lab i { font-size: 6px; font-style: normal; letter-spacing: 1px; }
.disc .mark { position: absolute; left: 50%; top: 3px; width: 3px; height: 22px; margin-left: -1.5px; background: var(--white); border-radius: 2px; }
.ttbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 168px; } .ttbtns .btn { min-height: 22px; padding: 2px 4px; font-size: 8px; }
@media (max-width: 700px) { .ttrow { flex-direction: column; align-items: stretch; } .ttrow .wave { height: 56px; } .tt { flex-direction: row; justify-content: center; } }
html.v-full .vlane { height: 28px; } html.v-full .cell { height: 4px; } html.v-full .piano { height: 60px; } html.v-full .step { height: 46px; } html.v-full .oct-lbl .lbl:first-child { font-size: 8px; }

/* ---- pad controller map preview (MIDI window) */
.padprev { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; } .padprev .pc { background: var(--n0); border: 1px solid var(--n3); border-radius: 3px; font-size: 8px; text-align: center; padding: 4px 0; color: var(--dim); font-family: var(--mono); }
.padprev .pc.pat { background: var(--blue); color: var(--n0); border-color: var(--blue2); } .padprev .pc.step { background: var(--white); color: var(--n0); } .padprev .pc.bar { background: var(--greyL); color: var(--n0); }
