:root { --bg: #222; --panel: #333; --accent: #00d2ff; --text: #eee; }
body { background: var(--bg); color: var(--text); font-family: sans-serif; padding: 20px; text-align: center; }

/* Layout */
.container { display: flex; gap: 20px; justify-content: center; max-width: 1000px; margin: 0 auto; flex-wrap: wrap; }
.panel { background: var(--panel); padding: 20px; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.5); flex: 1; min-width: 300px; }

h2 { margin-top: 0; border-bottom: 2px solid var(--accent); padding-bottom: 10px; font-size: 18px; text-transform: uppercase; letter-spacing: 1px; }

/* Sliders */
.slider-group { margin-bottom: 20px; text-align: left; }
.slider-group label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 5px; font-weight: bold; }
input[type=range] { width: 100%; cursor: pointer; accent-color: var(--accent); }

/* Piano Keys */
.piano { display: flex; justify-content: center; gap: 4px; margin-top: 20px; background: #111; padding: 10px; border-radius: 5px; }
.key { 
    width: 40px; height: 120px; background: white; border-radius: 0 0 4px 4px; 
    cursor: pointer; position: relative; transition: 0.1s; 
    display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; 
    color: #333; font-weight: bold; font-size: 12px; user-select: none;
}
.key:active { background: var(--accent); transform: scale(0.95); }
.key.black { 
    background: #000; color: white; height: 80px; width: 30px; 
    margin-left: -17px; margin-right: -17px; z-index: 2; 
}

/* Export Area */
textarea { width: 100%; height: 150px; background: #111; color: #0f0; border: none; padding: 10px; font-family: monospace; font-size: 12px; margin-top: 10px; }
button.export-btn { background: var(--accent); color: #000; border: none; padding: 10px 20px; font-weight: bold; cursor: pointer; margin-top: 10px; border-radius: 4px; }
button.export-btn:hover { opacity: 0.8; }