:root {
  --bg: #1b2025;
  --panel: #262d33;
  --panel2: #2f373e;
  --line: #11151a;
  --text: #d6dde3;
  --dim: #8792a0;
  --accent: #ff9a3c;
  --accent2: #7dff9b;
  --blue: #4aa3ff;
  --red: #ff4b4b;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 12px/1.35 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif; overflow: hidden; user-select: none; }
button { font: inherit; color: var(--text); background: #3a434b; border: 1px solid #1a1f24; border-radius: 4px; padding: 3px 8px; cursor: pointer; }
button:hover { background: #48525c; }
button.on, button.active { background: var(--accent); color: #1b1b1b; border-color: #a85d16; }
input, select { font: inherit; color: var(--text); background: #181c20; border: 1px solid #0f1215; border-radius: 3px; padding: 2px 4px; }
input[type=range] { accent-color: var(--accent); background: transparent; border: 0; padding: 0; }
input[type=number] { width: 58px; }
.hidden { display: none !important; }
.hint { color: var(--dim); font-size: 11px; }

#app { display: flex; flex-direction: column; height: 100vh; }

/* ---------- top bar ---------- */
#topbar { display: flex; align-items: center; gap: 10px; padding: 5px 10px; background: linear-gradient(#3a434c, #2a3138); border-bottom: 1px solid var(--line); flex-wrap: wrap; min-height: 46px; }
.brand { font-weight: 300; letter-spacing: 2px; font-size: 15px; color: #e8edf1; white-space: nowrap; }
.brand b { color: var(--accent); font-weight: 800; }
.logo { color: var(--accent); }
.menu { display: flex; gap: 2px; }
.menu-btn { background: transparent; border-color: transparent; }
.transport { display: flex; gap: 3px; background: #1a1f24; padding: 3px; border-radius: 6px; }
.transport button { width: 34px; height: 28px; font-size: 14px; padding: 0; }
#btnPlay { color: var(--accent2); }
#btnPlay.on { background: #2e5a3a; color: var(--accent2); border-color: #1b3a24; }
#btnRec { color: #ff6b6b; }
#btnRec.rec { background: var(--red); color: #fff; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .6; } }
.lcd { background: #0e1a12; border: 1px solid #000; border-radius: 4px; padding: 2px 10px; font-family: 'Consolas', 'Courier New', monospace; color: var(--accent2); text-align: right; min-width: 110px; box-shadow: inset 0 0 8px #000; }
#timeBars { font-size: 16px; line-height: 18px; }
#timeSecs { font-size: 10px; color: #5bbf77; }
.field { display: flex; align-items: center; gap: 5px; }
.field label { color: var(--dim); font-size: 11px; text-transform: uppercase; }
#bpm { width: 56px; font-family: monospace; font-size: 14px; color: var(--accent); text-align: center; }
.tools { display: flex; gap: 2px; background: #1a1f24; padding: 3px; border-radius: 6px; }
.tools button { width: 30px; height: 26px; padding: 0; }
.master input { width: 90px; }
#masterMeter { border-radius: 2px; }
.status { margin-left: auto; flex: 1 1 100px; min-width: 0; text-align: right; color: var(--dim); font-size: 11px; max-width: 360px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---------- main ---------- */
#main { flex: 1; display: flex; min-height: 0; }
.panel-title { background: #20262b; color: var(--dim); font-size: 11px; letter-spacing: 1px; padding: 4px 8px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; }
.pl-actions { margin-left: auto; display: flex; gap: 3px; }
.pl-actions button { padding: 1px 7px; font-size: 11px; }

#browser { width: 230px; background: var(--panel); border-right: 1px solid var(--line); overflow-y: auto; flex-shrink: 0; }
.browser-section { padding: 6px; }
.sec-head { font-weight: 600; color: #e7ecf0; padding: 4px 2px 6px; display: flex; align-items: center; gap: 4px; }
.sec-actions { margin-left: auto; }
.sec-actions button { padding: 1px 6px; font-size: 11px; }
.bitem { display: flex; align-items: center; gap: 7px; padding: 4px 5px; border-radius: 4px; cursor: pointer; }
.bitem:hover { background: #343d45; }
.bicon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 5px; border: 1px solid #555; font-size: 15px; flex-shrink: 0; }
.bicon.fx { background: #2b3a45; border-color: #4aa3ff; }
.bname { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bname small { color: var(--dim); }
.bplay { padding: 0 6px; font-size: 10px; background: transparent; border-color: #444; }
#fxList { margin-top: 6px; }

#playlist { flex: 1; display: flex; flex-direction: column; min-width: 0; }
#arrWrap { flex: 1; display: flex; min-height: 0; }
#trackHeadsWrap { width: 210px; flex-shrink: 0; display: flex; flex-direction: column; background: #2a3137; border-right: 1px solid var(--line); }
#rulerCorner { height: 30px; background: #2c333a; border-bottom: 1px solid var(--line); flex-shrink: 0; }
#trackHeadsClip { flex: 1; overflow: hidden; position: relative; }
#trackHeads { position: absolute; left: 0; right: 0; top: 0; }
.thead { display: flex; border-bottom: 1px solid var(--line); background: #2d353c; }
.thead.sel { background: #37424c; }
.tcolor { width: 6px; flex-shrink: 0; }
.tbody { flex: 1; padding: 4px 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.trow1, .trow2 { display: flex; align-items: center; gap: 4px; }
.tname { flex: 1; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: text; }
.tbtns { display: flex; gap: 2px; }
.tb { padding: 0 5px; font-size: 10px; min-width: 20px; height: 18px; line-height: 16px; }
.tb.on-m { background: #e0584f; color: #fff; }
.tb.on-s { background: #e8c547; color: #111; }
.tb.on-r { background: var(--red); color: #fff; }
.tauto { font-size: 10px; padding: 0 2px; max-width: 86px; }
.tvol { flex: 1; min-width: 0; }
.tmeter { height: 4px; background: #15191d; border-radius: 2px; overflow: hidden; }
.tmeter-fill { height: 100%; width: 0; background: linear-gradient(90deg, #3ddc84, #ffd84a 75%, #ff4b4b); transition: width .05s; }
.tmeter-fill.clip { background: var(--red); }
.thead-auto { border-bottom: 1px solid var(--line); background: #22282d; padding: 6px 8px 4px 14px; display: flex; flex-direction: column; gap: 3px; font-weight: 600; }
.thead-auto .hint { font-weight: 400; font-size: 10px; }
.thead-auto .tb { align-self: flex-start; }

#arrCanvasWrap { flex: 1; position: relative; min-width: 0; overflow: hidden; }
#ruler, #arr { display: block; }
#ruler { cursor: pointer; border-bottom: 1px solid var(--line); }

/* ---------- dock ---------- */
#dockResize { height: 5px; background: #13171b; cursor: ns-resize; border-top: 1px solid #3a434b; }
#dockResize:hover { background: var(--accent); }
#dock { height: 320px; display: flex; flex-direction: column; background: var(--panel); flex-shrink: 0; }
.tabs { display: flex; gap: 2px; padding: 4px 6px 0; background: #20262b; border-bottom: 1px solid var(--line); align-items: flex-end; }
.tabs button { border-radius: 5px 5px 0 0; border-bottom: 0; padding: 4px 12px; background: #2d353c; }
.tabs button.active { background: var(--panel2); color: var(--accent); border-color: #1a1f24; }
.tab-info { margin-left: auto; color: var(--dim); padding-bottom: 4px; }
.tab-page { display: none; flex: 1; min-height: 0; flex-direction: column; background: var(--panel2); }
.tab-page.active { display: flex; }
.pr-toolbar { display: flex; gap: 10px; align-items: center; padding: 4px 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pr-toolbar label { color: var(--dim); display: flex; gap: 4px; align-items: center; }
.pr-toolbar button { padding: 1px 8px; }
.pr-wrap { flex: 1; min-height: 0; position: relative; }
#pr { display: block; position: absolute; inset: 0; }

/* channel rack */
#rack { flex: 1; overflow: auto; padding: 8px; }
.rack-chans { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.rack-ch { background: #394249; }
.rack-ch.sel { background: #4e5a64; color: #fff; }
.rack-grid { display: inline-flex; flex-direction: column; gap: 3px; background: #22292f; padding: 6px; border-radius: 6px; }
.rack-row { display: flex; gap: 3px; align-items: center; }
.rack-lbl { width: 96px; text-align: left; background: #4a545d; font-size: 11px; padding: 2px 6px; flex-shrink: 0; }
.rack-lbl.black { background: #2c3339; }
.step { width: 22px; height: 24px; padding: 0; border-radius: 3px; background: #4b5560; border: 1px solid #1c2126; }
.step.alt { background: #6a4b4b; }
.step.on { box-shadow: 0 0 6px rgba(255,255,255,.35) inset; border-color: #fff; }
.step:hover { filter: brightness(1.25); }

/* mixer */
#mixer { flex: 1; overflow-x: auto; overflow-y: hidden; display: flex; gap: 4px; padding: 6px; }
.mstrip { width: 132px; flex-shrink: 0; background: #2b3238; border: 1px solid #1a1f24; border-radius: 5px; display: flex; flex-direction: column; align-items: center; padding: 4px; gap: 4px; }
.mstrip.sel { border-color: var(--accent); }
.mstrip.master { background: #33302a; width: 150px; }
.mname { width: 100%; text-align: center; font-weight: 600; padding: 3px 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; background: #1f2429; border-radius: 3px; }
.mknobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 4px; width: 100%; justify-items: center; }
.mfader { flex: 1; display: flex; gap: 6px; align-items: stretch; min-height: 60px; }
.vfader { writing-mode: vertical-lr; direction: rtl; width: 22px; height: 100%; }
.vmeter { width: 8px; background: #111; border-radius: 2px; position: relative; overflow: hidden; }
.vmeter-fill { position: absolute; bottom: 0; left: 0; right: 0; height: 0; background: linear-gradient(0deg, #3ddc84, #ffd84a 75%, #ff4b4b); }
.vmeter-fill.clip { background: var(--red); }
.mval { font-family: monospace; font-size: 10px; color: var(--accent); }
.mbtns { display: flex; gap: 3px; }

/* knob */
.knob-wrap { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.knob { border-radius: 50%; position: relative; cursor: ns-resize; box-shadow: 0 1px 2px #000; }
.knob::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #5b656f, #2a3137); }
.knob { --rot: 0deg; }
.knob-ind { position: absolute; left: 50%; top: 50%; width: 2px; height: 38%; margin-left: -1px; transform-origin: 50% 0; transform: rotate(calc(var(--rot) + 180deg)); z-index: 1; border-radius: 1px; }
.knob-label { font-size: 9px; color: var(--dim); white-space: nowrap; }
.knob-val { font-size: 9px; font-family: monospace; color: #cfd6dc; }

/* inspector */
#inspector { flex: 1; overflow: auto; padding: 8px 12px; display: flex; gap: 24px; flex-wrap: wrap; }
.insp-col { flex: 1; min-width: 300px; max-width: 520px; }
.insp-col h3 { margin: 2px 0 8px; font-size: 13px; color: #fff; }
.insp-col h4 { margin: 12px 0 4px; font-size: 12px; color: var(--accent); }
.slider { display: flex; align-items: center; gap: 8px; margin: 5px 0; }
.sl-label { width: 90px; color: var(--dim); flex-shrink: 0; }
.slider input[type=range] { flex: 1; }
.slider input[type=text], .slider select { flex: 1; }
.sl-val { width: 90px; font-family: monospace; font-size: 11px; color: var(--accent); }
.check { display: flex; align-items: center; gap: 6px; margin: 6px 0; color: #cfd6dc; }
.btnrow { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
button.danger { background: #6a2d2d; }
.auto-list { display: flex; flex-direction: column; gap: 3px; }
.auto-row { display: flex; align-items: center; gap: 6px; }
.auto-row .dot { width: 10px; height: 10px; border-radius: 50%; }
.auto-row .an { width: 80px; }
.auto-row .ac { width: 60px; color: var(--dim); }
.auto-row button { padding: 1px 7px; font-size: 11px; }

/* dubler */
#btnDub { width: auto !important; padding: 0 8px !important; font-size: 12px !important; color: #7dff9b; }
#btnDub.rec { background: #1f9d55; color: #fff; animation: blink 1s infinite; }
#btnDubCfg { width: 26px !important; font-size: 12px !important; }
#dubHud { position: fixed; top: 60px; left: 50%; transform: translateX(-50%); z-index: 90; background: rgba(20,26,30,.95); border: 2px solid #1f9d55; border-radius: 10px; padding: 10px 18px; text-align: center; width: 360px; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.dub-title { color: #7dff9b; font-weight: 700; letter-spacing: 1px; }
#dubNote { font-size: 44px; font-weight: 800; color: #fff; font-family: monospace; }
.dub-bar { height: 6px; background: #111; border-radius: 3px; overflow: hidden; margin: 4px 0 6px; }
#dubLevel { height: 100%; width: 0; background: linear-gradient(90deg, #3ddc84, #ffd84a); }
.popover { position: fixed; z-index: 95; background: #2d353c; border: 1px solid #0d1013; border-radius: 6px; padding: 10px 12px; width: 300px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.popover h4 { margin: 0 0 6px; color: var(--accent); }
/* input persen volume */
.pct { width: 58px !important; font-family: monospace; font-size: 11px; color: var(--accent); text-align: right; padding: 1px 3px; }
.pct-wrap { display: inline-flex; align-items: center; gap: 1px; font-size: 10px; color: var(--dim); }
.tvol + .pct-wrap .pct { width: 48px !important; }
.crush-row { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; border-top: 1px solid #1a1f24; padding-top: 3px; }
.crush-row .mknobs { grid-template-columns: repeat(3, 1fr); }
button.crush-on { background: #c94cff; color: #fff; }

/* context menu */
.ctx-menu { position: fixed; z-index: 100; background: #2d353c; border: 1px solid #0d1013; border-radius: 5px; padding: 4px 0; min-width: 200px; box-shadow: 0 8px 24px rgba(0,0,0,.5); max-height: 80vh; overflow-y: auto; }
.ctx-menu .item { padding: 5px 14px; cursor: pointer; white-space: nowrap; }
.ctx-menu .item:hover { background: var(--accent); color: #111; }
.ctx-menu .item.disabled { color: #666; pointer-events: none; }
.ctx-menu .sep { height: 1px; background: #1a1f24; margin: 4px 0; }

#dropOverlay { position: fixed; inset: 0; background: rgba(255,154,60,.12); border: 3px dashed var(--accent); z-index: 50; display: grid; place-items: center; font-size: 20px; color: #fff; pointer-events: none; }
#loading { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 200; display: flex; gap: 12px; align-items: center; justify-content: center; font-size: 15px; }
.spinner { width: 26px; height: 26px; border: 3px solid #555; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #46505a; border-radius: 5px; }
::-webkit-scrollbar-track { background: #1b2025; }

@media (max-width: 900px) {
  #browser { width: 170px; }
  #trackHeadsWrap { width: 160px; }
  .status { display: none; }
  #dock { height: 260px; }
}
.pct::-webkit-outer-spin-button, .pct::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pct { -moz-appearance: textfield; appearance: textfield; }

/* =========================================================
   RESPONSIF
   ========================================================= */
.m-only, .c-only, .m-sheet-close { display: none; }
#arr, #ruler, #pr, .knob, #mViz { touch-action: none; }
html, body { overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
#dubHud .dub-sub { color: var(--dim); font-size: 12px; margin-top: -4px; }
.dub-bar { position: relative; }
#dubGate { position: absolute; top: 0; bottom: 0; width: 2px; background: #ff4b4b; }
#dubStop { margin-top: 8px; background: #1f9d55; color: #fff; border-color: #146c3a; padding: 5px 18px; font-weight: 700; }
.kf-add { background: #3a2f55; }

/* ---------- landscape HP / layar kecil: desktop ringkas ---------- */
body.compact #topbar { flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 3px 6px; min-height: 40px; }
body.compact #topbar > * { flex-shrink: 0; }
body.compact .brand { display: none; }
body.compact .status { display: none; }
body.compact .c-only { display: block; }
body.compact #mBrowserBtn { position: fixed; left: 6px; bottom: 6px; z-index: 30; background: var(--accent); color: #111; }
body.compact #browser { position: fixed; left: 0; top: 40px; bottom: 0; z-index: 40; width: 250px; transform: translateX(-100%); transition: transform .2s; box-shadow: 4px 0 20px rgba(0,0,0,.5); }
body.compact.browser-open #browser { transform: none; }
body.compact #trackHeadsWrap { width: 150px; }
body.compact .tauto { max-width: 60px; }
body.compact #dock { height: 42vh; }
body.compact .pr-toolbar .hint, body.compact .rack .hint { display: none; }

/* ---------- portrait HP: layout ala CapCut ---------- */
body.mobile { font-size: 13px; }
body.mobile .m-only { display: flex; }
body.mobile #topbar, body.mobile #dockResize, body.mobile #playlist > .panel-title { display: none; }
body.mobile #app { height: calc(100dvh - 68px - env(safe-area-inset-bottom)); }
body.mobile #mTop { height: 48px; align-items: center; gap: 8px; padding: 0 10px; background: #0d0f11; flex-shrink: 0; padding-top: env(safe-area-inset-top); }
.m-icon { background: transparent; border: 0; font-size: 20px; padding: 4px 8px; color: #e8edf1; }
.m-title { flex: 1; font-weight: 700; font-size: 15px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.m-bpm { color: var(--dim); font-size: 11px; display: flex; align-items: center; gap: 4px; }
.m-bpm input { width: 48px; font-size: 14px; text-align: center; color: var(--accent); }
.m-export { background: #fff; color: #111; font-weight: 700; border-radius: 16px; padding: 6px 16px; border: 0; }
body.mobile #mPreview { height: 24vh; min-height: 130px; position: relative; background: #000; flex-shrink: 0; }
#mViz { width: 100%; height: 100%; display: block; }
.m-now { position: absolute; right: 12px; bottom: 10px; text-align: right; pointer-events: none; text-shadow: 0 2px 6px #000; }
#mNowInst { font-size: 13px; color: #fff; font-weight: 600; }
#mNowBig { font-family: monospace; font-size: 22px; color: var(--accent2); }
body.mobile #mCtrl { height: 50px; align-items: center; justify-content: space-between; padding: 0 12px; background: #15191d; flex-shrink: 0; position: relative; border-bottom: 1px solid #000; }
#mTime { font-family: monospace; font-size: 13px; color: #cfd6dc; min-width: 90px; }
.m-play { position: absolute; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; font-size: 18px; background: #fff; color: #111; border: 0; }
.m-ctrl-r { display: flex; }
body.mobile #main { flex: 1; min-height: 0; }
body.mobile #browser { position: fixed; left: 0; right: 0; bottom: 0; height: 68vh; width: auto; z-index: 65; border-radius: 16px 16px 0 0; transform: translateY(105%); transition: transform .22s; box-shadow: 0 -10px 30px rgba(0,0,0,.6); padding-bottom: env(safe-area-inset-bottom); }
body.mobile.m-browser-open #browser { transform: none; }
body.mobile #browser .panel-title::before { content: ''; display: block; width: 40px; height: 4px; background: #555; border-radius: 2px; margin: 0 auto 0 0; }
body.mobile .bitem { padding: 8px 6px; }
body.mobile .bicon { width: 34px; height: 34px; font-size: 18px; }
body.mobile .bplay { padding: 4px 10px; font-size: 13px; }
body.mobile #trackHeadsWrap { width: 82px; }
body.mobile .thead .trow2, body.mobile .thead-auto .hint { display: none; }
body.mobile .tbody { padding: 3px 4px; gap: 2px; }
body.mobile .trow1 { flex-direction: column; align-items: stretch; }
body.mobile .tname { font-size: 11px; }
body.mobile .tb { height: 22px; min-width: 24px; }
body.mobile .thead-auto { padding: 4px; font-size: 11px; }
body.mobile #mTools { position: fixed; left: 0; right: 0; bottom: 0; height: calc(68px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #0d0f11; border-top: 1px solid #22282d; overflow-x: auto; overflow-y: hidden; gap: 2px; z-index: 50; scrollbar-width: none; }
body.mobile #mTools::-webkit-scrollbar { display: none; }
.mt { flex: 0 0 auto; width: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: transparent; border: 0; color: #dfe5ea; border-radius: 8px; padding: 4px 2px; }
.mt:active { background: #262c32; }
.mt.on { color: var(--accent); }
.mt-i { font-size: 21px; line-height: 1; }
.mt-l { font-size: 10.5px; white-space: nowrap; }
/* dock (piano roll / mixer / step seq / efek) = bottom sheet */
body.mobile #dock { position: fixed; left: 0; right: 0; bottom: 0; height: 64vh; z-index: 60; border-radius: 14px 14px 0 0; overflow: hidden; transform: translateY(105%); transition: transform .22s; box-shadow: 0 -10px 30px rgba(0,0,0,.6); padding-bottom: env(safe-area-inset-bottom); }
body.mobile.m-dock-open #dock { transform: none; }
body.mobile .m-sheet-close { display: block; margin-right: 4px; background: #444; }
body.mobile .tabs { overflow-x: auto; flex-wrap: nowrap; padding-top: 6px; }
body.mobile .tabs button { flex-shrink: 0; padding: 7px 10px; }
body.mobile .tab-info { display: none; }
body.mobile .pr-toolbar { gap: 6px; padding: 4px 6px; }
body.mobile .pr-toolbar .hint { display: none; }
body.mobile .pr-toolbar button { padding: 5px 10px; }
body.mobile .insp-col { min-width: 100%; }
body.mobile .slider input[type=range] { height: 28px; }
body.mobile .step { width: 30px; height: 32px; }
body.mobile .rack-lbl { width: 70px; }
#mSheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; background: #1f2429; border-radius: 16px 16px 0 0; padding: 10px 14px calc(16px + env(safe-area-inset-bottom)); max-height: 60vh; overflow-y: auto; box-shadow: 0 -10px 30px rgba(0,0,0,.6); }
.m-sheet-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.m-sheet-head button { background: var(--accent); color: #111; border: 0; border-radius: 50%; width: 34px; height: 34px; font-size: 16px; }
#mSheet .slider.wide input[type=range] { height: 32px; }
#mSheet .btnrow button { padding: 7px 12px; }
#mSheet .auto-row { flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid #2a3137; }
#mBackdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 55; }
body.mobile #dubHud { top: 54px; width: 92vw; }
body.mobile #dubCfg { left: 4vw !important; width: 92vw; top: auto !important; bottom: 80px; max-height: 70vh; overflow-y: auto; z-index: 96; }
body.mobile .ctx-menu .item { padding: 11px 16px; font-size: 14px; }
body.mobile #status { display: none; }
body.mobile #loading { font-size: 14px; }
