.debug-panel {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 300px;
    max-height: calc(100vh - 20px);
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    font-family: Arial, sans-serif;
    pointer-events: auto !important;
    touch-action: auto !important;
}

.debug-header {
    padding: 10px;
    background: #2196F3;
    color: white;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto !important;
}

.debug-content {
    padding: 15px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    pointer-events: auto !important;
    touch-action: pan-y !important;
}

.debug-content.collapsed {
    display: none;
}

.parameter-group {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    pointer-events: auto !important;
}

.parameter-group:last-child {
    border-bottom: none;
}

.parameter-group h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.parameter-control {
    margin-bottom: 15px;
    pointer-events: auto !important;
}

.parameter-control:last-child {
    margin-bottom: 5px;
}

.parameter-control label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #666;
}

.parameter-control input[type="range"] {
    width: 100%;
    margin: 5px 0;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    outline: none;
    pointer-events: auto !important;
    touch-action: auto !important;
    cursor: pointer;
}

.parameter-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #2196F3;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    pointer-events: auto !important;
}

.parameter-control input[type="range"]::-webkit-slider-thumb:hover {
    background: #1976D2;
}

.parameter-control input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #2196F3;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    pointer-events: auto !important;
}

.parameter-control input[type="range"]::-moz-range-thumb:hover {
    background: #1976D2;
}

.parameter-control input[type="checkbox"] {
    margin-left: 5px;
    width: 16px;
    height: 16px;
    pointer-events: auto !important;
}

.value-display {
    font-family: monospace;
    color: #2196F3;
    font-size: 12px;
}

.dual-slider {
    display: flex;
    gap: 10px;
    align-items: center;
    pointer-events: auto !important;
}

.dual-slider input[type="range"] {
    flex: 1;
    pointer-events: auto !important;
}

#debugPanel {
    position: fixed;
    top: 10px;
    right: 10px;
}