#devtools-panel {
    position: fixed;
    top: 0;
    right: -380px;
    width: 370px;
    height: 100vh;
    background: rgba(10, 14, 23, 0.96);
    border-left: 1px solid #1f2937;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    color: #e0e0e0;
    transition: right 0.25s ease;
    backdrop-filter: blur(12px);
    user-select: none;
}
#devtools-panel.open { right: 0; }

.dt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #1f2937;
    background: rgba(17, 24, 39, 0.8);
    flex-shrink: 0;
}
.dt-title {
    font-size: 11px;
    font-weight: 700;
    color: #EEAD35;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.dt-header-btns { display: flex; gap: 6px; align-items: center; }
.dt-btn-sm {
    padding: 3px 8px;
    font-size: 10px;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 4px;
    color: #e0e0e0;
    cursor: pointer;
}
.dt-btn-sm:hover { background: #374151; color: #e0e0e0; }
.dt-close {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    color: #d0d0d0;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dt-close:hover { color: #ef4444; }

.dt-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}
.dt-body::-webkit-scrollbar { width: 6px; }
.dt-body::-webkit-scrollbar-track { background: transparent; }
.dt-body::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }

.dt-section { border-bottom: 1px solid #1f2937; }
.dt-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #EEAD35;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(17, 24, 39, 0.4);
}
.dt-section-header:hover { background: rgba(31, 41, 55, 0.6); }
.dt-arrow { font-size: 9px; color: #d0d0d0; }

.dt-section-body { padding: 6px 14px 10px; }

.dt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 0;
    gap: 8px;
}
.dt-label {
    font-size: 14px;
    color: #e8e8e8;
    flex-shrink: 0;
    min-width: 90px;
}
.dt-slider-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 8px;
}
.dt-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #374151;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.dt-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #EEAD35;
    cursor: pointer;
    border: 2px solid #0a0e17;
}
.dt-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #EEAD35;
    cursor: pointer;
    border: 2px solid #0a0e17;
}
.dt-value {
    font-size: 20px;
    color: #e0e0e0;
    font-family: 'SF Mono', 'Cascadia Code', monospace;
    min-width: 42px;
    text-align: right;
}

.dt-switch {
    position: relative;
    width: 34px;
    height: 18px;
    flex-shrink: 0;
}
.dt-switch input { opacity: 0; width: 0; height: 0; }
.dt-switch-slider {
    position: absolute;
    inset: 0;
    background: #374151;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.2s;
}
.dt-switch-slider::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #6b7280;
    transition: transform 0.2s, background 0.2s;
}
.dt-switch input:checked + .dt-switch-slider { background: rgba(238, 173, 53, 0.3); }
.dt-switch input:checked + .dt-switch-slider::before { transform: translateX(16px); background: #EEAD35; }

.dt-color {
    width: 32px;
    height: 22px;
    border: 1px solid #374151;
    border-radius: 4px;
    padding: 0;
    cursor: pointer;
    background: transparent;
}
.dt-color::-webkit-color-swatch-wrapper { padding: 1px; }
.dt-color::-webkit-color-swatch { border-radius: 3px; border: none; }

.dt-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #111827;
    border: 1px solid #EEAD35;
    color: #EEAD35;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
.dt-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
