#tempo-control{display:grid;grid-template-columns:44px 23px;grid-template-rows:12px 24px;align-items:center;padding:4px 6px;gap:1px 4px;min-width:0;border:1px solid transparent;border-radius:9px;transition:background .15s,border-color .15s}
#tempo-control .bpm-label{grid-column:1;grid-row:1;text-align:center;font-size:var(--vd-fs-2xs,.6875rem);line-height:12px}
#tempo-control .bpm-input{grid-column:1;grid-row:2;padding:0;line-height:24px;height:24px}
#tempo-control:hover,#tempo-control:focus-within{background:#25212e;border-color:#61516e}
#tempo-control .bpm-input{width:44px;font-variant-numeric:tabular-nums;appearance:textfield;-moz-appearance:textfield}
#tempo-control .bpm-input::-webkit-inner-spin-button,#tempo-control .bpm-input::-webkit-outer-spin-button{appearance:none;margin:0}
.tempo-arrows{display:flex;flex-direction:column;gap:1px;grid-column:2;grid-row:1 / span 2}
.tempo-step{width:23px;height:17px;display:grid;place-items:center;border:0;border-radius:4px;background:transparent;color:#c4b2df;cursor:pointer;transition:background .12s,color .12s}
.tempo-step:hover{background:#4a3a5a;color:#fff}.tempo-step:disabled{opacity:.28;cursor:default}.tempo-step:focus-visible{outline:2px solid #c2a5f6;outline-offset:1px}
.tempo-step svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.beat-controls.beat-sound-selectors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
.beat-controls.beat-sound-selectors label{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0;font-size:12px;color:#bdb3cc}
.beat-controls.beat-sound-selectors select{width:100%;max-width:100%;min-height:40px;padding:9px 11px;border:1px solid #50455e;border-radius:9px;background:#25212e;color:#f0eaf8;font:inherit;font-size:14px}
.beat-controls.beat-sound-selectors select:focus-visible{outline:2px solid #b79adb;outline-offset:2px}
.guide-companion{position:fixed;right:18px;bottom:52px;z-index:9300;display:flex;flex-direction:column;align-items:flex-end;gap:10px;max-width:calc(100vw - 24px);font:14px/1.45 Inter,system-ui,sans-serif}
.guide-companion-trigger{display:flex;align-items:center;gap:9px;min-height:47px;padding:10px 17px;border:1px solid #78638f;border-radius:24px;background:#2c223c;color:#f0e8fc;box-shadow:0 5px 22px #08060c55;font:inherit;font-weight:600;cursor:pointer;transition:background .15s,transform .15s}
.guide-companion-trigger>span{color:#c6a5ff;font-size:21px}.guide-companion-trigger:hover{background:#3e2c54;transform:translateY(-1px)}
.guide-companion-menu{width:286px;max-width:100%;padding:9px;border:1px solid #665275;border-radius:16px;background:#211a2c;box-shadow:0 14px 40px #05030870;color:#ede5f6;max-height:calc(100vh - 140px);overflow:auto}
.guide-companion-menu[hidden]{display:none}.guide-companion-menu>strong{display:block;padding:7px 9px 10px;font-size:14px;font-weight:600}
.guide-companion-menu>button{display:flex;flex-direction:column;text-align:left;gap:4px;width:100%;padding:11px 10px;margin:2px 0;border:1px solid transparent;border-radius:10px;background:transparent;color:inherit;font:inherit;cursor:pointer}
.guide-companion-menu>button small{font-size:12px;color:#b9abc8;font-weight:400}.guide-companion-menu>button:hover,.guide-companion-menu>button[aria-pressed=true]{background:#3a2b49;border-color:#655076}
.guide-companion button:focus-visible{outline:2px solid #caadf5;outline-offset:2px}
.guide-companion-menu>.guide-reference{border-top:1px solid #4f3d60;border-radius:0;margin-top:8px;color:#c9b4e2;font-size:12px}
.guide-companion-trigger>span{display:flex;align-items:center}
.guide-companion-trigger{touch-action:none}
.guide-companion-moving .guide-companion-trigger{cursor:grabbing;transform:none;user-select:none}
#studio-guide-level-chip,#btn-guide,#btn-arr-guide{display:none!important}
.guide-checklist{bottom:112px!important}
@media(min-width:1000px){.beat-controls.beat-sound-selectors{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.guide-companion{right:12px;bottom:47px}.guide-companion-trigger{min-height:42px;padding:8px 14px}.guide-checklist{bottom:105px!important}.beat-controls.beat-sound-selectors{gap:9px}}
@media(prefers-reduced-motion:reduce){.guide-companion-trigger,.tempo-step,#tempo-control{transition:none}}

/* Shared studio typography and spacing, including the compact sound editor. */
:root{--muted:#a69cb5;--muted2:#766b87}
.topbar{height:auto;min-height:58px;gap:10px;padding:8px 12px;flex-wrap:wrap}
.topbar>.transport-btn,.topbar .transport-btn{width:36px;height:36px;flex-shrink:0;border-radius:9px}
.topbar .transport{flex-shrink:0}.topbar .master-vol{min-width:155px}.topbar .view-switch{flex-shrink:0}
.topbar .vol-label,.topbar .bpm-label,.topbar .status-item{font-size:11px}
.session-tool,.arr-tool,.export-btn,.guide-btn{font-size:13px;min-height:36px;border-radius:8px}
.track-name{font-size:13px}.clip-name{font-size:12px}.clip-info{font-size:11px}
.modify-panel.open{height:248px}.modify-header{height:44px}.modify-body{height:204px}
.modify-title{font-size:14px}.modify-sub{font-size:12px}.modify-preview-btn,.modify-close{min-height:34px;border-radius:8px;font-size:13px}.modify-close{min-width:34px}
.param-col{min-width:155px;padding:12px 16px}.param-label,.param-val{font-size:12px}.param-select{font-size:14px;min-height:38px;border-radius:8px}
.param-slider{min-height:22px}.studio-button{min-height:36px;font-size:13px}.pad-edit-btn{width:36px;height:36px;min-width:36px}
button:focus-visible,a:focus-visible{outline:2px solid #bba2ed;outline-offset:2px}
.ctx-menu{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;font-size:13px}
.ctx-item{width:100%;border:0;background:transparent;text-align:left;font:inherit;min-height:36px}
.topbar-tool{flex-shrink:0;padding:0 11px;border:1px solid #514560;background:#251f30;color:#f0eaf8;white-space:nowrap}
.topbar-tool:hover{background:#382b48;border-color:#8b70ac}
.topbar-tool[aria-pressed=true]{background:#423157;border-color:#9f83c3;color:#fff}
.arr-ctx-menu{min-width:238px;z-index:15000;border-color:#665177;background:#241d2e;padding:6px}
.arr-ctx-menu .ctx-header{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f2eaf9;max-width:250px}
.arr-ctx-menu .ctx-item{padding:9px 11px;color:#f1e9fa;border-radius:6px}
.arr-ctx-menu .ctx-item:hover,.arr-ctx-menu .ctx-item:focus-visible{background:#41314f}
.arr-ctx-menu .ctx-item:disabled{color:#8e809e;cursor:default;background:transparent}
.arr-ctx-menu .ctx-item.danger{color:#fda4ad}
.arr-ctx-tip{padding:6px 10px 2px;margin:0;max-width:250px;font-size:11px;line-height:1.45;color:#c6b4d7}
.modify-take-btn{min-height:34px;padding:0 10px;border:1px solid #635177;background:#292034;color:#ded1ef;border-radius:8px;font:inherit;font-size:13px;cursor:pointer}
@media(max-width:1360px){.topbar .step-leds{display:none}}
@media(max-width:900px){.topbar{gap:8px}.topbar .vu-meter{display:none}.topbar .nav-user .status-item{display:none}.topbar .master-vol{margin-left:0}.topbar .sep{display:none}}
@media(max-width:600px){.topbar .pos-display{font-size:12px;min-width:80px}.modify-panel.open{height:220px}.modify-body{height:176px}.param-col{min-width:145px;padding:10px 12px}.session-tools{padding:7px 8px;gap:5px}}
