#block_67 { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; min-height: 100vh; background: #1a1a2e; color: #e0e0e0; overflow-x: hidden; }
.app { display: flex; min-height: 100vh; }
.sidebar { width: 380px; min-width: 380px; background: rgba(15, 15, 30, 0.97); backdrop-filter: blur(20px); border-right: 1px solid rgba(255, 255, 255, 0.08); padding: 20px; overflow-y: auto; max-height: 100vh; position: sticky; top: 0; z-index: 10; }
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }
.preview-area { flex: 1; position: relative; }
.preview-canvas { width: 100%; height: 100vh; }
.app-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; background: linear-gradient(135deg, #667eea, #764ba2, #f093fb); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.app-subtitle { font-size: 12px; color: rgba(255, 255, 255, 0.35); margin-bottom: 18px; }
.add-buttons { display: flex; gap: 8px; margin-bottom: 18px; }
.btn-add { flex: 1; padding: 10px 12px; border: none; border-radius: 10px; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn-add-linear { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.btn-add-linear:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3); }
.btn-add-radial { background: linear-gradient(135deg, #f093fb, #f5576c); color: white; }
.btn-add-radial:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3); }
.btn-add svg { width: 14px; height: 14px; }
.gradient-list { display: flex; flex-direction: column; gap: 16px; }
.gradient-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; overflow: hidden; transition: all 0.25s ease; animation: slideIn 0.25s ease; position: relative; }
.gradient-card.disabled { opacity: 0.4; /* pointer-events: none; */}
.gradient-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.gradient-card.linear::before { background: linear-gradient(90deg, #667eea, #764ba2); }
.gradient-card.radial::before { background: linear-gradient(90deg, #f093fb, #f5576c); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.gradient-card:hover { border-color: rgba(255, 255, 255, 0.12); }
.gradient-card-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; cursor: pointer; user-select: none; gap: 8px; }
.gradient-card-header-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gradient-type-badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 5px; text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0; }
.gradient-type-badge.linear { background: rgba(102, 126, 234, 0.2); color: #667eea; }
.gradient-type-badge.radial { background: rgba(240, 147, 251, 0.2); color: #f093fb; }
.gradient-card-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gradient-card-actions { display: flex; gap: 4px; flex-shrink: 0; }
.btn-icon-sm { width: 26px; height: 26px; border: none; border-radius: 6px; background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.4); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s ease; position: relative; }
.btn-icon-sm:hover { background: rgba(255, 255, 255, 0.12); color: white; }
.btn-icon-sm.delete:hover { background: rgba(245, 87, 108, 0.2); color: #f5576c; }
.btn-icon-sm:disabled { opacity: 0.2; cursor: default; pointer-events: none; }
.btn-icon-sm svg { width: 13px; height: 13px; }
.btn-icon-sm .tooltip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.85); color: white; font-size: 10px; font-weight: 600; padding: 4px 8px; border-radius: 5px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.15s ease; z-index: 5; }
.btn-icon-sm:hover .tooltip { opacity: 1; }
.expand-arrow { transition: transform 0.2s ease; color: rgba(255, 255, 255, 0.25); width: 14px; height: 14px; flex-shrink: 0; }
.gradient-card.expanded .expand-arrow { transform: rotate(180deg); }
.gradient-card-body { padding: 0 12px 12px; display: none; }
.gradient-card.expanded .gradient-card-body { display: block; }
.control-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.control-row label { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, 0.5); flex-shrink: 0; min-width: 42px; text-transform: uppercase; letter-spacing: 0.3px; }
.control-row input[type="range"] { flex: 1; }
.control-val { font-size: 10px; font-weight: 600; color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.06); padding: 1px 6px; border-radius: 4px; flex-shrink: 0; min-width: 36px; text-align: center; }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%; background: white; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,0.3); transition: transform 0.1s ease; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: white; cursor: pointer; border: none; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.divider { height: 1px; background: rgba(255, 255, 255, 0.06); margin: 10px 0; }
.color-stop-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 6px 8px; background: rgba(255, 255, 255, 0.02); border-radius: 8px; }
.color-input-sm { position: relative; width: 28px; height: 28px; border-radius: 7px; overflow: hidden; border: 1.5px solid rgba(255, 255, 255, 0.1); flex-shrink: 0; }
.color-input-sm input[type="color"] { position: absolute; top: -5px; left: -5px; width: calc(100% + 10px); height: calc(100% + 10px); border: none; cursor: pointer; background: none; padding: 0; }
.stop-controls { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.stop-mini { display: flex; align-items: center; gap: 6px; }
.stop-mini-label { font-size: 9px; color: rgba(255,255,255,0.35); font-weight: 600; min-width: 22px; text-transform: uppercase; }
.stop-mini input[type="range"] { flex: 1; }
.stop-mini-val { font-size: 9px; color: rgba(255,255,255,0.55); min-width: 24px; text-align: right; }
.btn-remove-stop { width: 22px; height: 22px; border: none; border-radius: 5px; background: rgba(245, 87, 108, 0.1); color: #f5576c; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s ease; flex-shrink: 0; }
.btn-remove-stop:hover { background: rgba(245, 87, 108, 0.25); }
.btn-remove-stop svg { width: 10px; height: 10px; }
.btn-add-stop { width: 100%; padding: 8px; border: 1px dashed rgba(255, 255, 255, 0.12); border-radius: 8px; background: transparent; color: rgba(255, 255, 255, 0.3); font-family: inherit; font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 4px; }
.btn-add-stop:hover { border-color: rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.02); }
.bottom-actions { margin-top: 16px; display: flex; gap: 8px; }
.btn-io { flex: 1; padding: 9px; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.7); font-family: inherit; font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 5px; }
.btn-io:hover { background: rgba(255,255,255,0.08); color: white; border-color: rgba(255,255,255,0.2); }
.btn-io svg { width: 13px; height: 13px; }
.code-output { margin-top: 16px; padding: 12px; background: rgba(0, 0, 0, 0.25); border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.06); }
.code-output-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.code-output-title { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, 0.4); text-transform: uppercase; letter-spacing: 0.5px; }
.btn-copy { padding: 5px 12px; border: none; border-radius: 6px; background: rgba(102, 126, 234, 0.15); color: #667eea; font-family: inherit; font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.btn-copy:hover { background: rgba(102, 126, 234, 0.3); }
.code-text { font-family: 'Courier New', monospace; font-size: 10px; color: rgba(255, 255, 255, 0.6); word-break: break-all; line-height: 1.5; max-height: 100px; overflow-y: auto; padding: 8px; background: rgba(0, 0, 0, 0.15); border-radius: 6px; }
.empty-state { text-align: center; padding: 30px 20px; color: rgba(255, 255, 255, 0.25); }
.empty-state svg { width: 36px; height: 36px; margin-bottom: 8px; opacity: 0.4; }
.empty-state p { font-size: 12px; line-height: 1.5; }
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); z-index: 100; display: flex; align-items: center; justify-content: center; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content { background: rgba(25, 25, 45, 0.98); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 24px; width: 90%; max-width: 520px; max-height: 80vh; animation: modalSlide 0.25s ease; }
@keyframes modalSlide { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-title { font-size: 16px; font-weight: 700; color: white; }
.modal-close { width: 32px; height: 32px; border: none; border-radius: 8px; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.5); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; font-size: 18px; }
.modal-close:hover { background: rgba(255,255,255,0.12); color: white; }
.modal-textarea { width: 100%; height: 200px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; color: #a0e0ff; font-family: 'Courier New', monospace; font-size: 12px; padding: 12px; resize: vertical; outline: none; }
.modal-textarea:focus { border-color: rgba(102, 126, 234, 0.4); }
.modal-actions { display: flex; gap: 10px; margin-top: 14px; }
.modal-btn { flex: 1; padding: 10px; border: none; border-radius: 8px; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.modal-btn-primary { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.modal-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3); }
.modal-btn-secondary { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
.modal-btn-secondary:hover { background: rgba(255,255,255,0.12); color: white; }
@media (max-width: 768px) { .app { flex-direction: column; } .sidebar { width: 100%; min-width: unset; max-height: unset; position: relative; } .preview-canvas { height: 50vh; } }
