.bass-sim {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 48px);
    overflow: hidden;
}

.bass-sim__toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(18, 18, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.bass-sim__toolbar::-webkit-scrollbar { display: none; }

.bass-sim__main {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
}

#room-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

#three-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.zoom-controls {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: rgba(10, 10, 20, 0.75);
    border: 1px solid rgba(0, 255, 234, 0.15);
    border-radius: 8px;
    padding: 6px 4px;
    backdrop-filter: blur(8px);
}

.zoom-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
    padding: 0;
}

.zoom-btn:hover {
    background: rgba(0, 255, 234, 0.12);
    color: #00FFEA;
}

.zoom-btn:active {
    background: rgba(0, 255, 234, 0.2);
}

.zoom-btn--reset {
    margin-top: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 4px;
}

.zoom-pct {
    font-size: 10px;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.45);
    user-select: none;
    min-width: 32px;
    text-align: center;
    line-height: 1;
    padding: 2px 0;
}

.stack-preview {
    display: flex;
    justify-content: center;
    padding: 8px 0;
    min-height: 48px;
}

.stack-preview svg {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
}

.cab-dims-editor {
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(0, 255, 234, 0.04);
    border: 1px solid rgba(0, 255, 234, 0.12);
    border-radius: 6px;
}

.cab-dims-label {
    font-size: 9px;
    color: rgba(0, 255, 234, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.cab-dim-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.cab-dim-row:last-child {
    margin-bottom: 0;
}

.cab-dim-name {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    width: 34px;
    flex-shrink: 0;
    font-family: monospace;
}

.cab-dim-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    outline: none;
    min-width: 40px;
}

.cab-dim-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00FFEA;
    cursor: pointer;
    border: none;
}

.cab-dim-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00FFEA;
    cursor: pointer;
    border: none;
}

.cab-dim-input {
    width: 52px;
    padding: 3px 4px;
    font-size: 11px;
    font-family: monospace;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    flex-shrink: 0;
}

.cab-dim-input:focus {
    border-color: #00FFEA;
    outline: none;
}

.cab-dim-input::-webkit-inner-spin-button {
    opacity: 0.3;
}

.cab-dim-unit {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.slot-rotate-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.slot-rotate-label input[type="checkbox"] {
    accent-color: #00FFEA;
    width: 14px;
    height: 14px;
}

/* ─── Stack Builder ─── */
.stack-builder {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    background: #0a0a14;
}

.sb-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(15, 15, 25, 0.95);
    border-bottom: 1px solid rgba(0, 255, 234, 0.15);
    flex-shrink: 0;
}

.sb-toolbar__title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 8px;
}

.sb-presets {
    display: flex;
    gap: 4px;
    flex: 1;
    flex-wrap: wrap;
}

.sb-preset {
    padding: 5px 10px;
    font-size: 11px;
    font-family: monospace;
    background: rgba(255, 30, 178, 0.1);
    border: 1px solid rgba(255, 30, 178, 0.3);
    color: #FF1EB2;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.sb-preset:hover {
    background: rgba(255, 30, 178, 0.25);
    border-color: #FF1EB2;
}

.sb-preset--horn {
    background: rgba(157, 0, 255, 0.1);
    border-color: rgba(157, 0, 255, 0.3);
    color: #9D00FF;
}

.sb-preset--horn:hover {
    background: rgba(157, 0, 255, 0.25);
    border-color: #9D00FF;
}

.sb-preset--double {
    font-weight: 700;
}

.sb-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.sb-main {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.sb-canvas-wrap {
    flex: 1;
    position: relative;
}

#sb-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.sb-sidebar {
    width: 220px;
    padding: 16px;
    background: rgba(15, 15, 25, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    overflow-y: auto;
}

.sb-sel-panel {
    margin-bottom: 16px;
}

.sb-sel-title {
    font-size: 10px;
    font-weight: 600;
    color: #00FFEA;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.sb-dims {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-family: monospace;
    margin-bottom: 8px;
}

.sb-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.8;
}

.sb-hint kbd {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 10px;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.6);
}

.bass-btn--xs {
    padding: 2px 8px !important;
    font-size: 14px !important;
    min-width: 24px;
    line-height: 1;
}

.controls-legend {
    position: absolute;
    bottom: 12px;
    left: 50px;
    z-index: 5;
    background: rgba(10, 10, 20, 0.88);
    border: 1px solid rgba(0, 255, 234, 0.12);
    border-radius: 8px;
    padding: 12px 16px 10px;
    backdrop-filter: blur(10px);
    display: none;
    min-width: 220px;
}

.controls-legend.visible {
    display: block;
}

.controls-legend__close {
    position: absolute;
    top: 4px;
    right: 8px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 16px;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
}

.controls-legend__close:hover {
    color: rgba(255, 255, 255, 0.7);
}

.controls-legend__title {
    font-size: 10px;
    font-weight: 600;
    color: #00FFEA;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.controls-legend__row {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    white-space: nowrap;
}

.controls-legend__row kbd {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 10px;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 4px;
    min-width: 16px;
    text-align: center;
}

.bass-sim__sidebar {
    width: 280px;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    padding: 16px;
    overflow-y: auto;
    background: rgba(18, 18, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.bass-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    font-family: inherit;
}

.bass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.bass-btn--pink {
    background: #FF1EB2;
    border-color: #FF1EB2;
    box-shadow: 0 0 20px rgba(255, 30, 178, 0.3);
}

.bass-btn--pink:hover {
    background: #ff4dc4;
    box-shadow: 0 0 30px rgba(255, 30, 178, 0.5);
}

.bass-btn--pink.calculating {
    background: linear-gradient(90deg, #FF1EB2, #9D00FF, #FF1EB2);
    background-size: 200% 100%;
    animation: calcGradient 1.5s linear infinite;
}

@keyframes calcGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.bass-btn--pink.done {
    background: #00FFEA;
    border-color: #00FFEA;
    color: #000;
    transition: all 0.15s;
}

.bass-btn--accent {
    background: rgba(0, 255, 234, 0.1);
    border-color: rgba(0, 255, 234, 0.3);
    color: #00FFEA;
}

.bass-btn--accent:hover {
    background: rgba(0, 255, 234, 0.2);
}

.bass-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.08);
}

.bass-btn--ghost.active {
    background: rgba(157, 0, 255, 0.15);
    border-color: rgba(157, 0, 255, 0.4);
    color: #c77dff;
}

.bass-btn--sm {
    padding: 4px 10px;
    font-size: 12px;
}

.bass-btn-group {
    display: flex;
    gap: 0;
}

.bass-btn-group .bass-btn {
    border-radius: 10px 0 0 10px;
    border-right: none;
}

.bass-select-mini {
    padding: 4px 20px 4px 6px;
    border-radius: 0 10px 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 8 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l3 3 3-3' stroke='%2300FFEA' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 5px center;
    transition: border-color 0.2s;
}

.bass-select-mini:focus { border-color: rgba(0, 255, 234, 0.4); }
.bass-select-mini option { background: #12121a; color: #fff; }

.bass-select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2300FFEA' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bass-select:focus {
    border-color: rgba(0, 255, 234, 0.4);
    box-shadow: 0 0 12px rgba(0, 255, 234, 0.15);
}

.bass-select option,
.bass-select optgroup {
    background: #12121a;
    color: #fff;
}

.bass-select optgroup {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

.preset-info {
    font-size: 11px;
    color: rgba(0, 255, 234, 0.6);
    margin-top: 6px;
    padding: 4px 0;
    letter-spacing: 0.3px;
}

.sidebar-section__toggle {
    cursor: pointer;
    user-select: none;
}

.toggle-arrow {
    float: right;
    transition: transform 0.2s;
    font-size: 11px;
    opacity: 0.4;
}

.sidebar-section--collapsed .toggle-arrow {
    transform: rotate(-90deg);
}

.sidebar-section__body {
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sub-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.sub-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.15s;
    font-size: 12px;
}

.sub-list-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.sub-list-item--active {
    background: rgba(255, 30, 178, 0.08);
    border-color: rgba(255, 30, 178, 0.25);
}

.sub-list-item__color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px currentColor;
}

.sub-list-item__info {
    flex: 1;
    min-width: 0;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sub-list-item__pos {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.scene-save-row {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.scene-input {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 12px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.scene-input:focus {
    border-color: rgba(0, 255, 234, 0.4);
}

.scene-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.scene-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 160px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.scene-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.15s;
}

.scene-item:hover {
    background: rgba(0, 255, 234, 0.06);
    border-color: rgba(0, 255, 234, 0.15);
}

.scene-item__name {
    flex: 1;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scene-item__time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
    white-space: nowrap;
}

.scene-item__del {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 2px;
    font-size: 14px;
    line-height: 1;
    transition: color 0.15s;
}

.scene-item__del:hover {
    color: #ff6b6b;
}

.scene-status {
    font-size: 10px;
    color: rgba(0, 255, 234, 0.5);
    margin-top: 4px;
    min-height: 14px;
}

.bass-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
}

.bass-toggle__label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: color 0.2s;
}

.bass-toggle__label--active { color: #00FFEA; }

.bass-toggle__switch {
    width: 36px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.bass-toggle__thumb {
    width: 16px;
    height: 16px;
    background: #00FFEA;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(0, 255, 234, 0.5);
}

.bass-toggle.is-3d .bass-toggle__thumb { transform: translateX(16px); }

.sidebar-section {
    background: rgba(18, 18, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}

.sidebar-section__title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preset-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.preset-chip {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.preset-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.preset-chip--outdoor {
    border-color: rgba(255, 107, 0, 0.3);
    color: rgba(255, 107, 0, 0.7);
}

.preset-chip--outdoor.preset-chip--active {
    background: rgba(255, 107, 0, 0.1);
    border-color: rgba(255, 107, 0, 0.5);
    color: #FF6B00;
}

.preset-chip--active {
    background: rgba(0, 255, 234, 0.1);
    border-color: rgba(0, 255, 234, 0.3);
    color: #00FFEA;
}

.drawing-hint { font-size:11px; color:rgba(0,255,234,0.6); text-align:center; padding:4px 0; }

.slider-group {
    margin-bottom: 10px;
}

.slider-group label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.slider-val {
    color: #00FFEA;
    font-weight: 600;
}

.bass-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    transition: background 0.2s;
}

.bass-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00FFEA;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 234, 0.4);
    transition: transform 0.15s, box-shadow 0.15s;
}

.bass-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 16px rgba(0, 255, 234, 0.6);
}

.bass-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00FFEA;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 255, 234, 0.4);
}

.bass-slider--sub::-webkit-slider-thumb { background: #FF1EB2; box-shadow: 0 0 10px rgba(255, 30, 178, 0.4); }
.bass-slider--sub::-moz-range-thumb { background: #FF1EB2; box-shadow: 0 0 10px rgba(255, 30, 178, 0.4); }

.slider-hint {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    margin-top: 2px;
}

.freq-analysis {
    position: absolute;
    bottom: 16px;
    right: 296px;
    width: 220px;
    background: rgba(18, 18, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px;
    z-index: 5;
}

.freq-analysis__header {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.freq-analysis__spl {
    font-size: 24px;
    font-weight: 700;
    color: #00FFEA;
    margin-bottom: 8px;
}

#freq-response-canvas {
    width: 100%;
    height: 60px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 6px;
}

.freq-analysis__label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.onboarding-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.onboarding-card {
    background: rgba(18, 18, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 360px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.onboarding-icon { margin-bottom: 20px; }

.onboarding-card h3 {
    font-size: 18px;
    margin: 0 0 8px;
    color: #fff;
}

.onboarding-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 24px;
}

.onboarding-nav {
    display: flex;
    gap: 10px;
    justify-content: center;
}

@media (max-width: 768px) {
    .bass-sim {
        flex-direction: column;
    }

    .bass-sim__sidebar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        height: auto;
        max-height: 50vh;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px 20px 0 0;
        transform: translateY(calc(100% - 40px));
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 20;
    }

    .bass-sim__sidebar::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
        margin: 0 auto 12px;
    }

    .bass-sim__sidebar.open {
        transform: translateY(0);
    }

    .bass-sim__toolbar {
        padding: 8px 10px;
        gap: 6px;
    }

    .bass-btn span { display: none; }
    .bass-btn { padding: 8px; }

    .freq-analysis {
        right: 16px;
        bottom: 56px;
    }

    #sub-params {
        position: fixed;
        inset: 0;
        z-index: 30;
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        background: rgba(10, 10, 15, 0.95);
        display: flex;
        flex-direction: column;
        padding: 20px;
    }
}
