*{margin:0;padding:0;box-sizing:border-box}html,body,#root{width:100%;height:100%;overflow:hidden;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif}canvas{display:block;outline:none}.control-panel{position:fixed;top:10px;right:10px;width:380px;max-width:90vw;max-height:90vh;background:#000000f2;border:1px solid #333;border-radius:12px;box-shadow:0 8px 32px #0009;color:#fff;font-family:monospace;overflow:hidden;display:flex;flex-direction:column;z-index:1000;box-sizing:border-box;padding:20px;font-size:12px}.control-panel-tabs{display:flex;flex-wrap:wrap;gap:3px;margin-bottom:15px;border-bottom:1px solid #333}.tab-button{flex:1 1 calc(25% - 3px);min-width:80px;padding:8px 4px;border:none;border-radius:4px 4px 0 0;font-size:11px;cursor:pointer;transition:all .2s ease;background:#333;color:#ccc}.tab-button:hover{opacity:.8}.tab-button.active{background:#4caf50;color:#fff}.control-panel-content{flex:1;overflow-y:auto;overflow-x:hidden;padding:0;max-width:100%;box-sizing:border-box}.tab-content{display:flex;flex-direction:column;gap:20px;width:100%;box-sizing:border-box;overflow:hidden}.control-section{background:#1a1a1a;border:none;border-radius:6px;padding:10px;width:100%;box-sizing:border-box;overflow:hidden;margin-bottom:15px}.control-section h3{margin:0 0 10px;font-size:12px;font-weight:400;color:#ffc107}.control-row{margin-bottom:12px}.control-row:last-child{margin-bottom:0}.control-row label{display:flex;justify-content:space-between;margin-bottom:5px;font-size:11px;color:#fff}.control-row input[type=range]{width:100%;height:6px;background:#ffffff1a;border-radius:3px;outline:none;-webkit-appearance:none;box-sizing:border-box;flex-shrink:0}.control-row input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;background:#0cf;border-radius:50%;cursor:pointer}.control-row input[type=range]:disabled{opacity:.3;cursor:not-allowed}.control-row input[type=checkbox]{width:18px;height:18px;cursor:pointer}.control-row input[type=color]{width:60px;height:30px;border:1px solid rgba(255,255,255,.2);border-radius:4px;cursor:pointer}.color-preview{display:inline-block;width:30px;height:30px;border:1px solid rgba(255,255,255,.2);border-radius:4px;margin-left:8px}.select-input{width:100%;padding:8px;background:#2a2a2a;border:1px solid #555;border-radius:4px;color:#fff;font-size:11px;cursor:pointer}.preset-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.preset-button{padding:8px 12px;background:#333;border:none;border-radius:4px;color:#fff;font-size:10px;cursor:pointer;transition:all .2s;text-align:center}.preset-button:hover{opacity:.9}.preset-button.active{background:#ff9800;color:#000}.preset-row{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:8px}.preset-row span{font-size:12px;color:#888}.preset-button-small{padding:4px 8px;background:#ffffff0d;border:1px solid rgba(255,255,255,.15);border-radius:4px;color:#fff;font-size:11px;cursor:pointer;transition:all .2s}.preset-button-small:hover{background:#ffffff1a}.btn-primary,.btn-secondary,.btn-danger{padding:8px 12px;font-size:10px;cursor:pointer;border-radius:4px;font-family:monospace;transition:all .2s;width:100%;border:none;font-weight:400}.btn-primary{background:#4caf50;color:#fff}.btn-primary:hover{opacity:.9}.btn-secondary{background:#333;color:#fff}.btn-secondary:hover{opacity:.9}.btn-danger{background:#f44336;color:#fff}.btn-danger:hover{opacity:.9}.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;font-size:10px}.stat-item{display:flex;flex-direction:column;gap:4px;padding:8px;background:#1a1a1a;border-radius:4px}.stat-label{font-size:10px;color:#2196f3;font-weight:700}.stat-value{font-size:16px;font-weight:400;color:#4caf50}.progress-bar{width:100%;height:8px;background:#ffffff1a;border-radius:4px;overflow:hidden}.progress-fill{height:100%;transition:width .3s,background-color .3s;border-radius:4px}.info-box{background:#1a1a1a;border:none;border-radius:6px;padding:10px;margin-bottom:15px}.info-box h4{margin:0 0 8px;font-size:11px;color:#4caf50;font-weight:400}.info-box ul{margin:0;padding-left:20px;font-size:10px;color:#fff;line-height:1.6}.info-box li{margin-bottom:4px}.control-panel-content::-webkit-scrollbar{width:8px}.control-panel-content::-webkit-scrollbar-track{background:#ffffff0d}.control-panel-content::-webkit-scrollbar-thumb{background:#00c8ff4d;border-radius:4px}.control-panel-content::-webkit-scrollbar-thumb:hover{background:#00c8ff80}
