.color-settings-page{width:100%;height:100vh;height:100dvh;min-height:100vh;min-height:100dvh;background-color:var(--theme-bg-primary,#ffffff);position:relative;overflow-y:auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;display:flex;flex-direction:column}@media (max-width:767px){.color-settings-page{height:100vh;height:100dvh;min-height:100vh;min-height:100dvh;height:-webkit-fill-available;min-height:-webkit-fill-available}}.color-settings-header{display:flex;align-items:center;padding:15px 20px;background-color:var(--theme-header-bg,rgba(247,247,247,.95));backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--theme-border-color,#e0e0e0);position:sticky;top:0;z-index:10;gap:12px}.back-button{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:none;border:none;color:var(--theme-accent-color,#007bff);cursor:pointer;transition:all .2s ease}.back-button:hover{background-color:var(--theme-bg-tertiary,#f0f0f0);transform:scale(1.05)}.back-button:active{transform:scale(.95)}.page-title{font-size:18px;font-weight:600;color:var(--theme-text-primary,#1f1f1f);margin:0}@media (max-width:767px){.color-settings-header{padding:12px 15px}.page-title{font-size:16px}.back-button{width:32px;height:32px}}.preview-banner{justify-content:space-between;padding:12px 20px;background:linear-gradient(135deg,var(--theme-accent-color,#007bff),var(--theme-accent-hover,#0056b3));color:white;animation:slideDown .3s ease-out}.preview-banner,.preview-info{display:flex;align-items:center}.preview-info{gap:8px;flex:1}.preview-icon{font-size:16px;animation:pulse 2s infinite}.preview-text{font-size:14px;font-weight:500}.preview-cancel-btn{background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.3);color:white;padding:6px 12px;border-radius:6px;font-size:12px;cursor:pointer;transition:all .2s ease}.preview-cancel-btn:hover{background:rgba(255,255,255,.3)}@media (max-width:767px){.preview-banner{padding:10px 15px;flex-direction:column;gap:8px;text-align:center}.preview-info{justify-content:center}.preview-text{font-size:13px}}.theme-category-selector{display:flex;padding:20px;gap:8px;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none}.theme-category-selector::-webkit-scrollbar{display:none}.theme-category-btn{padding:8px 16px;border:2px solid var(--theme-border-color,#e0e0e0);background:var(--theme-bg-secondary,#f8f9fa);color:var(--theme-text-secondary,#6c757d);border-radius:20px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;white-space:nowrap;flex-shrink:0}.theme-category-btn:hover{border-color:var(--theme-accent-color,#007bff);color:var(--theme-accent-color,#007bff);transform:translateY(-1px)}.theme-category-btn.active{background:var(--theme-accent-color,#007bff);border-color:var(--theme-accent-color,#007bff);color:white;box-shadow:var(--theme-shadow-medium,0 2px 8px rgba(0,0,0,.15))}@media (max-width:767px){.theme-category-selector{padding:15px;gap:6px}.theme-category-btn{padding:6px 12px;font-size:13px}}.themes-container{flex:1;padding:0 20px 20px;overflow-y:auto}.themes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;animation:fadeInUp .5s ease-out}@media (max-width:767px){.themes-container{padding:0 15px 90px}.themes-grid{grid-template-columns:1fr;gap:12px}}@media (max-width:480px){.themes-container{padding:0 12px 85px}.themes-grid{gap:10px}}.current-theme-info{padding:20px;background:var(--theme-bg-secondary,#f8f9fa);border-top:1px solid var(--theme-border-light,#e9ecef);margin-top:auto}.current-theme-label{font-size:12px;color:var(--theme-text-tertiary,#8a8a8a);font-weight:500;text-transform:uppercase;letter-spacing:.5px;margin-bottom:8px}.current-theme-details{display:flex;flex-direction:column;gap:4px}.current-theme-name{font-size:16px;font-weight:600;color:var(--theme-text-primary,#1f1f1f)}.current-theme-description{font-size:14px;color:var(--theme-text-secondary,#6c757d);line-height:1.4}@media (max-width:767px){.current-theme-info{padding:15px}.current-theme-name{font-size:15px}.current-theme-description{font-size:13px}}.loading-container{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:var(--theme-text-secondary,#6c757d)}.loading-spinner{width:40px;height:40px;border-top:3px solid var(--theme-border-light,#e9ecef);border:3px solid var(--theme-border-light,#e9ecef);border-top-color:var(--theme-accent-color,#007bff);border-radius:50%;animation:spin 1s linear infinite}.loading-container p{font-size:14px;margin:0}.applying-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(255,255,255,.9);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .2s ease-out}.applying-content{display:flex;flex-direction:column;align-items:center;gap:16px;padding:24px;background:var(--theme-bg-primary,#ffffff);border-radius:12px;box-shadow:var(--theme-shadow-heavy,0 4px 16px rgba(0,0,0,.2));border:1px solid var(--theme-border-color,#e0e0e0)}.applying-spinner{width:32px;height:32px;border-top:3px solid var(--theme-border-light,#e9ecef);border:3px solid var(--theme-border-light,#e9ecef);border-top-color:var(--theme-accent-color,#007bff);border-radius:50%;animation:spin 1s linear infinite}.applying-content p{margin:0;font-size:14px;color:var(--theme-text-secondary,#6c757d);font-weight:500}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes slideDown{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.applying-overlay,.back-button,.preview-banner,.preview-icon,.theme-category-btn,.themes-grid{animation:none!important;transition:none!important}.back-button:hover,.theme-category-btn:hover{transform:none!important}}@media (prefers-contrast:high){.theme-category-btn{border-width:3px}.preview-banner{border:2px solid white}.applying-content{border-width:2px}}.theme-dark .applying-overlay{background:rgba(26,26,26,.9)}@media (min-width:768px) and (max-width:1023px){.themes-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}}.theme-item-wrapper{position:relative}.themes-container>.custom-theme-actions{display:flex;gap:8px;margin-bottom:16px;justify-content:center;flex-direction:row}.theme-item-wrapper .custom-theme-actions{display:flex;gap:8px;margin-top:8px;justify-content:center}.create-custom-theme-btn{display:flex;align-items:center;gap:8px;padding:12px 20px;background:var(--theme-accent-color,#007bff);color:white;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;margin-bottom:16px;flex:1;max-width:200px;justify-content:center}.create-custom-theme-btn:hover{background:var(--theme-accent-hover,#0056b3);transform:translateY(-1px);box-shadow:var(--theme-shadow-medium,0 2px 8px rgba(0,0,0,.15))}.create-custom-theme-btn .btn-icon{font-size:16px;font-weight:700}.create-custom-theme-btn .btn-text{font-size:14px}.copy-current-theme-btn{display:flex;align-items:center;gap:8px;padding:12px 20px;background:var(--theme-accent-color,#007bff);color:white;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;margin-bottom:16px;flex:1;max-width:200px;justify-content:center}.copy-current-theme-btn:hover{background:var(--theme-accent-hover,#0056b3);transform:translateY(-1px);box-shadow:var(--theme-shadow-medium,0 2px 8px rgba(0,0,0,.15))}.copy-current-theme-btn .btn-icon{font-size:16px}.copy-current-theme-btn .btn-text{font-size:14px}.delete-theme-btn,.edit-theme-btn{width:32px;height:32px;border:none;border-radius:6px;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;font-size:14px}.edit-theme-btn{background:var(--theme-accent-color,#007bff);color:white}.edit-theme-btn:hover{background:var(--theme-accent-hover,#0056b3);transform:translateY(-1px)}.delete-theme-btn{background:var(--theme-error-color,#dc3545);color:white}.delete-theme-btn:hover{background:#c82333;transform:translateY(-1px)}.copy-dialog-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:10000;padding:20px;box-sizing:border-box}.copy-dialog-container{background:var(--theme-bg-primary,#ffffff);border-radius:12px;box-shadow:var(--theme-shadow-heavy,0 4px 16px rgba(0,0,0,.2));max-width:500px;width:100%;max-height:90vh;overflow:hidden;display:flex;flex-direction:column}.copy-dialog-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--theme-border-color,#e0e0e0);background:var(--theme-bg-secondary,#f8f9fa)}.copy-dialog-header h3{margin:0;font-size:18px;font-weight:600;color:var(--theme-text-primary,#1f1f1f)}.close-btn{font-size:20px;border-radius:50%}.copy-dialog-content{padding:24px;flex:1;overflow-y:auto}.copy-dialog-description{margin:0 0 20px;font-size:14px;color:var(--theme-text-secondary,#6c757d);line-height:1.5}.form-group input,.form-group textarea{width:100%;padding:12px;border:1px solid var(--theme-border-color,#e0e0e0);border-radius:8px;font-size:14px;color:var(--theme-text-primary,#1f1f1f);background:var(--theme-bg-primary,#ffffff);transition:all .2s ease;box-sizing:border-box}.form-group input:focus,.form-group textarea:focus{outline:none;border-color:var(--theme-accent-color,#007bff);box-shadow:0 0 0 3px rgba(0,123,255,.1)}.form-group textarea{min-height:60px}.copy-dialog-actions{display:flex;gap:12px;padding:20px 24px;border-top:1px solid var(--theme-border-color,#e0e0e0);background:var(--theme-bg-secondary,#f8f9fa)}.copy-dialog-actions button{flex:1;padding:12px 20px;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease}.cancel-btn:hover{background:var(--theme-border-color,#dee2e6)}.confirm-btn{background:var(--theme-accent-color,#007bff);color:white}.confirm-btn:hover:not(:disabled){background:var(--theme-accent-hover,#0056b3);transform:translateY(-1px);box-shadow:var(--theme-shadow-medium,0 2px 8px rgba(0,0,0,.15))}.confirm-btn:disabled{background:var(--theme-border-color,#dee2e6);color:var(--theme-text-tertiary,#adb5bd);cursor:not-allowed;transform:none;box-shadow:none}.custom-editor-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:10000;padding:20px;box-sizing:border-box}.custom-editor-container{background:var(--theme-bg-primary,#ffffff);border-radius:12px;box-shadow:var(--theme-shadow-heavy,0 4px 16px rgba(0,0,0,.2));max-width:800px;width:100%;max-height:90vh;overflow:hidden;display:flex;flex-direction:column}@media (max-width:768px){.themes-container>.custom-theme-actions{gap:8px;flex-direction:row;margin-bottom:16px;justify-content:center}.copy-current-theme-btn,.create-custom-theme-btn{padding:10px 16px;font-size:13px;margin-bottom:0;flex:1;max-width:200px;justify-content:center}.copy-current-theme-btn .btn-icon,.create-custom-theme-btn .btn-icon{font-size:14px}.copy-current-theme-btn .btn-text,.create-custom-theme-btn .btn-text{font-size:13px}.theme-item-wrapper .custom-theme-actions{flex-direction:row;justify-content:center;margin-top:8px;margin-bottom:0;gap:8px}.delete-theme-btn,.edit-theme-btn{width:36px;height:36px;font-size:14px;flex-shrink:0}.copy-dialog-overlay,.custom-editor-overlay{padding:15px}.copy-dialog-container{max-height:90vh}.copy-dialog-header{padding:16px 20px}.copy-dialog-header h3{font-size:16px}.copy-dialog-content{padding:20px}.copy-dialog-actions{padding:16px 20px;flex-direction:column;gap:8px}.copy-dialog-actions button{width:100%}}@media (max-width:480px){.themes-container>.custom-theme-actions{gap:6px;flex-direction:row}.copy-current-theme-btn,.create-custom-theme-btn{padding:8px 12px;font-size:12px;flex:1;max-width:150px}.copy-current-theme-btn .btn-icon,.copy-current-theme-btn .btn-text,.create-custom-theme-btn .btn-icon,.create-custom-theme-btn .btn-text{font-size:12px}.theme-item-wrapper .custom-theme-actions{gap:6px;flex-direction:row}.delete-theme-btn,.edit-theme-btn{width:32px;height:32px;font-size:12px}.copy-dialog-overlay,.custom-editor-overlay{padding:10px}.copy-dialog-container{max-height:95vh}.copy-dialog-header{padding:12px 16px}.copy-dialog-header h3{font-size:15px}.copy-dialog-content{padding:16px}.copy-dialog-actions{padding:12px 16px;gap:6px}}.theme-dark .copy-dialog-overlay,.theme-dark .custom-editor-overlay{background:rgba(0,0,0,.8)}.theme-dark .copy-dialog-container,.theme-dark .custom-editor-container{background:var(--theme-bg-primary,#1a1a1a);border:1px solid var(--theme-border-color,#333)}.theme-dark .copy-dialog-header{background:var(--theme-bg-secondary,#2d2d2d);border-bottom-color:var(--theme-border-color,#333)}.theme-dark .copy-dialog-actions{background:var(--theme-bg-secondary,#2d2d2d);border-top-color:var(--theme-border-color,#333)}@media (min-width:1024px){.themes-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}.themes-container{padding:0 24px 24px}.current-theme-info,.theme-category-selector{padding:24px}.custom-editor-overlay{padding:40px}}.preset-card{background:var(--theme-bg-primary,#ffffff);border:1px solid var(--theme-border-color,#e0e0e0);border-radius:12px;padding:20px;transition:all .3s ease;position:relative;overflow:hidden}.preset-card:hover{transform:translateY(-2px);box-shadow:var(--theme-shadow-medium,0 4px 12px rgba(0,0,0,.15))}.preset-card.current,.preset-card:hover{border-color:var(--theme-accent-color,#007bff)}.preset-card.current{background:linear-gradient(135deg,var(--theme-bg-primary,#ffffff) 0,rgba(0,123,255,.05) 100%)}.preset-card.current:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--theme-accent-color,#007bff) 0,var(--theme-accent-hover,#0056b3) 100%)}.preset-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:12px}.preset-title{flex:1}.preset-title h3{margin:0 0 4px;font-size:18px;font-weight:600;color:var(--theme-text-primary,#1f1f1f);line-height:1.3}.current-badge,.default-badge{display:inline-block;padding:2px 8px;border-radius:12px;font-size:11px;font-weight:500;margin-left:8px}.default-badge{background:var(--theme-success-color,#28a745);color:white}.current-badge{background:var(--theme-accent-color,#007bff);color:white}.preset-actions{display:flex;gap:4px;opacity:0;transition:opacity .2s ease}.preset-card:hover .preset-actions{opacity:1}.action-btn{background:none;border:none;padding:6px;border-radius:6px;cursor:pointer;font-size:14px;transition:all .2s ease;display:flex;align-items:center;justify-content:center;width:28px;height:28px}.edit-btn:hover{background:var(--theme-info-color,#17a2b8);color:white}.duplicate-btn:hover{background:var(--theme-warning-color,#ffc107);color:white}.delete-btn:hover{background:var(--theme-danger-color,#dc3545);color:white}.preset-description{font-size:14px;line-height:1.4;margin-bottom:16px;min-height:40px}.preset-params{margin-bottom:16px}.param-group{display:flex;gap:12px;margin-bottom:8px}.param-group:last-child{margin-bottom:0}.param-item{display:flex;flex-direction:column;align-items:center;flex:1;background:var(--theme-bg-secondary,#f8f9fa);padding:8px;border-radius:8px;border:1px solid var(--theme-border-light,#e9ecef)}.param-label{font-size:11px;color:var(--theme-text-secondary,#6c757d);margin-bottom:2px;text-align:center}.param-value{font-size:14px;font-weight:600;color:var(--theme-text-primary,#1f1f1f)}.preset-footer{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.preset-meta{display:flex;flex-direction:column;gap:2px}.created-time,.updated-time{font-size:11px;color:var(--theme-text-secondary,#6c757d)}.set-current-btn{background:var(--theme-accent-color,#007bff);color:white;border:none;padding:6px 12px;border-radius:6px;font-size:12px;font-weight:500;cursor:pointer;transition:all .2s ease}.set-current-btn:hover{background:var(--theme-accent-hover,#0056b3);transform:translateY(-1px)}.preset-visualization{border-top:1px solid var(--theme-border-light,#e9ecef);padding-top:12px}.param-bar{display:flex;align-items:center;margin-bottom:8px}.param-bar:last-child{margin-bottom:0}.bar-label{font-size:12px;color:var(--theme-text-secondary,#6c757d);width:60px;margin-right:8px}.bar-container{flex:1;height:6px;background:var(--theme-bg-tertiary,#e9ecef);border-radius:3px;overflow:hidden}.bar-fill{height:100%;border-radius:3px;transition:width .3s ease}.bar-fill.creativity{background:linear-gradient(90deg,#ff6b6b,#ffa500)}.bar-fill.consistency{background:linear-gradient(90deg,#4ecdc4,#45b7d1)}@media (max-width:768px){.preset-card{padding:16px}.preset-header{flex-direction:column;gap:12px;align-items:stretch}.preset-actions{opacity:1;justify-content:flex-end}.param-group{flex-direction:column;gap:8px}.param-item{flex-direction:row;justify-content:space-between;padding:6px 12px}.param-label{margin-bottom:0;margin-right:8px}.preset-footer{flex-direction:column;gap:12px;align-items:stretch}.set-current-btn{width:100%;padding:8px}}@media (max-width:480px){.preset-card{padding:12px}.preset-title h3{font-size:16px}.preset-description{font-size:13px}.param-item{padding:4px 8px}.param-label{font-size:10px}.param-value{font-size:13px}}.theme-dark .preset-card{background:var(--theme-bg-primary,#1a1a1a);border-color:var(--theme-border-color,#404040)}.theme-dark .preset-card:hover{border-color:var(--theme-accent-color,#4dabf7)}.theme-dark .preset-card.current{background:linear-gradient(135deg,var(--theme-bg-primary,#1a1a1a) 0,rgba(77,171,247,.1) 100%)}.theme-dark .preset-title h3{color:var(--theme-text-primary,#ffffff)}.theme-dark .param-item{background:var(--theme-bg-secondary,#2d2d2d);border-color:var(--theme-border-light,#404040)}.theme-dark .param-value{color:var(--theme-text-primary,#ffffff)}.theme-dark .bar-container{background:var(--theme-bg-tertiary,#404040)}.theme-dark .preset-visualization{border-top-color:var(--theme-border-light,#404040)}@media (prefers-reduced-motion:reduce){.preset-card{transition:none}.preset-card:hover{transform:none}.bar-fill{transition:none}.set-current-btn:hover{transform:none}}@media (prefers-contrast:high){.preset-card{border-width:2px}.preset-card.current{border-width:3px}.param-item{border-width:2px}}.preset-editor-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(0,0,0,.5);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:10000;padding:20px}.preset-editor-modal{background:var(--theme-bg-primary,#ffffff);border-radius:16px;box-shadow:var(--theme-shadow-heavy,0 8px 32px rgba(0,0,0,.3));width:100%;max-width:600px;max-height:90vh;overflow:hidden;display:flex;flex-direction:column;border:1px solid var(--theme-border-color,#e0e0e0)}.error-list{padding:16px 24px;background:#fff5f5;border-bottom:1px solid #fed7d7}.error-item{color:#c53030;font-size:14px;margin-bottom:4px;padding:4px 0}.error-item:last-child{margin-bottom:0}.modal-body{flex:1;overflow-y:auto;padding:24px}.form-section{margin-bottom:32px}.form-section:last-child{margin-bottom:0}.form-section h3{margin:0 0 16px;font-size:16px;font-weight:600;color:var(--theme-text-primary,#1f1f1f);padding-bottom:8px;border-bottom:2px solid var(--theme-accent-color,#007bff)}.form-group:last-child{margin-bottom:0}.param-hint{font-size:12px;color:var(--theme-text-secondary,#6c757d);font-weight:400;margin-left:8px}.form-group input[type=number],.form-group input[type=text],.form-group select,.form-group textarea{width:100%;padding:12px 16px;border:1px solid var(--theme-border-color,#e0e0e0);border-radius:8px;font-size:14px;color:var(--theme-text-primary,#1f1f1f);background:var(--theme-bg-primary,#ffffff);transition:all .2s ease;box-sizing:border-box}.form-group input[type=number]:focus,.form-group input[type=text]:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:var(--theme-accent-color,#007bff);box-shadow:0 0 0 3px rgba(0,123,255,.1)}.form-group textarea{resize:vertical;min-height:80px}.slider-container{display:flex;align-items:center;gap:16px}.slider{flex:1;height:6px;border-radius:3px;background:var(--theme-bg-tertiary,#e9ecef);outline:none;-webkit-appearance:none;appearance:none}.slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:20px;height:20px;border-radius:50%;background:var(--theme-accent-color,#007bff);cursor:pointer;border:2px solid white;box-shadow:0 2px 4px rgba(0,0,0,.2)}.slider::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:var(--theme-accent-color,#007bff);cursor:pointer;border:2px solid white;box-shadow:0 2px 4px rgba(0,0,0,.2)}.number-input{width:80px!important;text-align:center;padding:8px 12px!important}.select-input{cursor:pointer}.param-explanation{margin-top:6px;font-size:12px;color:var(--theme-text-secondary,#6c757d);line-height:1.4;font-style:italic}.cancel-btn,.save-btn{flex:1;padding:12px 24px;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease}.cancel-btn:hover:not(:disabled){background:var(--theme-bg-primary,#ffffff);color:var(--theme-text-primary,#1f1f1f)}.save-btn{background:var(--theme-accent-color,#007bff);color:white}.save-btn:hover:not(:disabled){background:var(--theme-accent-hover,#0056b3);transform:translateY(-1px)}.cancel-btn:disabled,.save-btn:disabled{opacity:.6;cursor:not-allowed}.save-btn:disabled:hover{transform:none}@media (max-width:768px){.preset-editor-overlay{padding:16px}.preset-editor-modal{max-height:95vh}.modal-header{padding:16px 20px}.modal-header h2{font-size:18px}.modal-body{padding:20px}.modal-footer{padding:16px 20px;flex-direction:row;gap:8px}.cancel-btn,.save-btn{padding:10px 16px;font-size:13px}.slider-container{flex-direction:column;gap:12px;align-items:stretch}.number-input{width:100%!important}}@media (max-width:480px){.preset-editor-overlay{padding:12px}.modal-header{padding:12px 16px}.modal-body{padding:16px}.modal-footer{padding:12px 16px;flex-direction:row;gap:6px}.cancel-btn,.save-btn{padding:8px 12px;font-size:12px}.form-section{margin-bottom:24px}.form-group{margin-bottom:16px}}.theme-dark .preset-editor-modal{background:var(--theme-bg-primary,#1a1a1a);border-color:var(--theme-border-color,#404040)}.theme-dark .form-group input[type=number],.theme-dark .form-group input[type=text],.theme-dark .form-group select,.theme-dark .form-group textarea{background:var(--theme-bg-primary,#1a1a1a);border-color:var(--theme-border-color,#404040);color:var(--theme-text-primary,#ffffff)}.theme-dark .form-group input[type=number]:focus,.theme-dark .form-group input[type=text]:focus,.theme-dark .form-group select:focus,.theme-dark .form-group textarea:focus{border-color:var(--theme-accent-color,#4dabf7);box-shadow:0 0 0 3px rgba(77,171,247,.1)}.theme-dark .slider{background:var(--theme-bg-tertiary,#404040)}.theme-dark .slider::-webkit-slider-thumb{background:var(--theme-accent-color,#4dabf7);border-color:var(--theme-bg-primary,#1a1a1a)}.theme-dark .slider::-moz-range-thumb{background:var(--theme-accent-color,#4dabf7);border-color:var(--theme-bg-primary,#1a1a1a)}.theme-dark .cancel-btn:hover:not(:disabled){background:var(--theme-bg-primary,#1a1a1a);color:var(--theme-text-primary,#ffffff)}@media (prefers-reduced-motion:reduce){.preset-editor-overlay{backdrop-filter:none}.form-group input[type=number],.form-group input[type=text],.form-group select,.form-group textarea{transition:none}.save-btn:hover:not(:disabled){transform:none}}@media (prefers-contrast:high){.preset-editor-modal{border-width:2px}.modal-header{border-bottom-width:2px}.modal-footer{border-top-width:2px}.form-group input[type=number],.form-group input[type=text],.form-group select,.form-group textarea{border-width:2px}}.create-preset-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(0,0,0,.5);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:10000;padding:20px}.create-preset-modal{background:var(--theme-bg-primary,#ffffff);border-radius:16px;box-shadow:var(--theme-shadow-heavy,0 8px 32px rgba(0,0,0,.3));width:100%;max-width:700px;max-height:90vh;overflow:hidden;display:flex;flex-direction:column;border:1px solid var(--theme-border-color,#e0e0e0)}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--theme-border-color,#e0e0e0);background:var(--theme-bg-secondary,#f8f9fa)}.modal-header h2{margin:0;font-size:20px;font-weight:600;color:var(--theme-text-primary,#1f1f1f)}.close-btn{background:none;border:none;font-size:24px;color:var(--theme-text-secondary,#6c757d);cursor:pointer;padding:4px;border-radius:6px;transition:all .2s ease;width:32px;height:32px;display:flex;align-items:center;justify-content:center}.close-btn:hover{color:var(--theme-text-primary,#1f1f1f)}.close-btn:hover,.modal-tabs{background:var(--theme-bg-tertiary,#e9ecef)}.modal-tabs{display:flex;padding:4px;margin:0}.tab-btn{flex:1;background:none;border:none;padding:12px 16px;border-radius:8px;font-size:14px;font-weight:500;color:var(--theme-text-secondary,#6c757d);cursor:pointer;transition:all .2s ease}.tab-btn.active{background:var(--theme-bg-primary,#ffffff);color:var(--theme-text-primary,#1f1f1f);box-shadow:var(--theme-shadow-light,0 2px 4px rgba(0,0,0,.1))}.tab-btn:hover:not(.active){background:rgba(255,255,255,.5)}.tab-content{flex:1;overflow-y:auto;padding:24px;max-height:60vh}.template-section{margin-bottom:24px}.template-section h3{margin:0 0 8px;font-size:16px;font-weight:600;color:var(--theme-text-primary,#1f1f1f)}.section-description{margin:0 0 20px;font-size:14px;color:var(--theme-text-secondary,#6c757d);line-height:1.4}.template-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;margin-bottom:20px;overflow-y:auto;max-height:400px}.template-card{background:var(--theme-bg-primary,#ffffff);border:2px solid var(--theme-border-color,#e0e0e0);border-radius:12px;padding:16px;cursor:pointer;transition:all .2s ease;display:flex;align-items:flex-start;gap:12px}.template-card:hover{transform:translateY(-1px);box-shadow:var(--theme-shadow-light,0 2px 8px rgba(0,0,0,.1))}.template-card.selected,.template-card:hover{border-color:var(--theme-accent-color,#007bff)}.template-card.selected{background:linear-gradient(135deg,var(--theme-bg-primary,#ffffff) 0,rgba(0,123,255,.05) 100%)}.template-icon{font-size:24px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:var(--theme-bg-secondary,#f8f9fa);border-radius:8px;flex-shrink:0}.template-info{flex:1}.template-info h4{margin:0 0 4px;font-size:16px;font-weight:600;color:var(--theme-text-primary,#1f1f1f)}.template-info p{margin:0 0 8px;font-size:13px;line-height:1.4}.template-info p,.template-params{color:var(--theme-text-secondary,#6c757d)}.template-params{display:flex;gap:12px;font-size:11px}.template-params span{background:var(--theme-bg-tertiary,#e9ecef);padding:2px 6px;border-radius:4px}.custom-name-section{margin-bottom:20px}.custom-name-section h3{margin:0 0 12px;font-size:16px;font-weight:600}.custom-name-section h3,.name-input{color:var(--theme-text-primary,#1f1f1f)}.name-input{width:100%;padding:12px 16px;border:1px solid var(--theme-border-color,#e0e0e0);border-radius:8px;font-size:14px;background:var(--theme-bg-primary,#ffffff);transition:all .2s ease;box-sizing:border-box}.name-input:focus{outline:none;border-color:var(--theme-accent-color,#007bff);box-shadow:0 0 0 3px rgba(0,123,255,.1)}.custom-section{margin-bottom:20px}.custom-section h3{margin:0 0 8px;font-size:16px;font-weight:600;color:var(--theme-text-primary,#1f1f1f)}.form-group{margin-bottom:20px}.form-group label{display:block;margin-bottom:8px;font-size:14px;font-weight:500;color:var(--theme-text-primary,#1f1f1f)}.preset-preview{margin-top:24px}.preset-preview h4{margin:0 0 12px;font-size:14px;font-weight:600;color:var(--theme-text-primary,#1f1f1f)}.preview-card{background:var(--theme-bg-secondary,#f8f9fa);border:1px solid var(--theme-border-color,#e0e0e0);border-radius:8px;padding:16px}.preview-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.preview-name{font-size:16px;font-weight:600;color:var(--theme-text-primary,#1f1f1f)}.preview-type{background:var(--theme-accent-color,#007bff);color:white;padding:2px 8px;border-radius:12px;font-size:11px;font-weight:500}.preview-description{font-size:13px;margin-bottom:8px;line-height:1.4}.preview-description,.preview-params{color:var(--theme-text-secondary,#6c757d)}.preview-params{display:flex;gap:12px;font-size:11px}.preview-params span{background:var(--theme-bg-tertiary,#e9ecef);padding:2px 6px;border-radius:4px}.modal-footer{display:flex;gap:12px;padding:20px 24px;border-top:1px solid var(--theme-border-color,#e0e0e0);background:var(--theme-bg-secondary,#f8f9fa)}.cancel-btn,.create-btn{flex:1;padding:12px 24px;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease}.cancel-btn{background:var(--theme-bg-tertiary,#e9ecef);color:var(--theme-text-secondary,#6c757d);border:1px solid var(--theme-border-color,#e0e0e0)}.cancel-btn:hover{background:var(--theme-bg-primary,#ffffff);color:var(--theme-text-primary,#1f1f1f)}.create-btn{background:var(--theme-accent-color,#007bff);color:white}.create-btn:hover:not(:disabled){background:var(--theme-accent-hover,#0056b3);transform:translateY(-1px)}.create-btn:disabled{opacity:.6;cursor:not-allowed}.create-btn:disabled:hover{transform:none}@media (max-width:768px){.create-preset-overlay{padding:16px}.create-preset-modal{max-height:95vh}.modal-header{padding:16px 20px}.modal-header h2{font-size:18px}.tab-content{padding:20px}.template-grid{grid-template-columns:1fr;gap:12px}.template-card{padding:12px}.modal-footer{padding:16px 20px;flex-direction:row;gap:8px}.cancel-btn,.create-btn{padding:10px 16px;font-size:13px}}@media (max-width:480px){.create-preset-overlay{padding:12px}.modal-header{padding:12px 16px}.tab-content{padding:16px}.template-card{flex-direction:column;text-align:center}.template-icon{align-self:center}.template-params{justify-content:center}.modal-footer{padding:12px 16px;flex-direction:row;gap:6px}.cancel-btn,.create-btn{padding:8px 12px;font-size:12px}}.theme-dark .create-preset-modal{background:var(--theme-bg-primary,#1a1a1a);border-color:var(--theme-border-color,#404040)}.theme-dark .modal-header{background:var(--theme-bg-secondary,#2d2d2d);border-bottom-color:var(--theme-border-color,#404040)}.theme-dark .modal-header h2{color:var(--theme-text-primary,#ffffff)}.theme-dark .modal-tabs{background:var(--theme-bg-tertiary,#404040)}.theme-dark .tab-btn.active{background:var(--theme-bg-primary,#1a1a1a);color:var(--theme-text-primary,#ffffff)}.theme-dark .tab-btn:hover:not(.active){background:rgba(255,255,255,.1)}.theme-dark .template-card{background:var(--theme-bg-primary,#1a1a1a);border-color:var(--theme-border-color,#404040)}.theme-dark .template-card:hover{border-color:var(--theme-accent-color,#4dabf7)}.theme-dark .template-card.selected{background:linear-gradient(135deg,var(--theme-bg-primary,#1a1a1a) 0,rgba(77,171,247,.1) 100%)}.theme-dark .template-icon{background:var(--theme-bg-secondary,#2d2d2d)}.theme-dark .name-input,.theme-dark .template-info h4{color:var(--theme-text-primary,#ffffff)}.theme-dark .name-input{background:var(--theme-bg-primary,#1a1a1a);border-color:var(--theme-border-color,#404040)}.theme-dark .name-input:focus{border-color:var(--theme-accent-color,#4dabf7);box-shadow:0 0 0 3px rgba(77,171,247,.1)}.theme-dark .preview-card{background:var(--theme-bg-secondary,#2d2d2d);border-color:var(--theme-border-color,#404040)}.theme-dark .preview-name{color:var(--theme-text-primary,#ffffff)}.theme-dark .modal-footer{background:var(--theme-bg-secondary,#2d2d2d);border-top-color:var(--theme-border-color,#404040)}.theme-dark .cancel-btn{background:var(--theme-bg-tertiary,#404040);color:var(--theme-text-secondary,#adb5bd);border-color:var(--theme-border-color,#404040)}.theme-dark .cancel-btn:hover{background:var(--theme-bg-primary,#1a1a1a);color:var(--theme-text-primary,#ffffff)}@media (prefers-reduced-motion:reduce){.create-preset-overlay{backdrop-filter:none}.template-card{transition:none}.template-card:hover{transform:none}.name-input{transition:none}.create-btn:hover:not(:disabled){transform:none}}@media (prefers-contrast:high){.create-preset-modal{border-width:2px}.modal-header{border-bottom-width:2px}.modal-footer{border-top-width:2px}.name-input,.template-card{border-width:2px}}.preset-manager-page{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--theme-bg-primary,#ffffff);color:var(--theme-text-primary,#1f1f1f);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;display:flex;flex-direction:column;overflow:hidden}.preset-manager-page.loading{display:flex;align-items:center;justify-content:center;height:100vh}.loading-spinner{text-align:center;color:var(--theme-text-secondary,#6c757d)}.loading-spinner:before{content:"";display:inline-block;width:40px;height:40px;border-top:4px solid var(--theme-border-light,#e9ecef);border:4px solid var(--theme-border-light,#e9ecef);border-top-color:var(--theme-accent-color,#007bff);border-radius:50%;animation:spin 1s linear infinite;margin-bottom:16px}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.preset-header{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:16px 20px;background:var(--theme-bg-secondary,#f8f9fa);border-bottom:1px solid var(--theme-border-color,#e0e0e0);flex-shrink:0;min-height:64px;flex-wrap:nowrap!important;overflow:hidden;position:relative}.header-actions{display:flex;align-items:center;gap:8px;right:20px}.header-actions,.header-back-btn{position:absolute;top:50%;transform:translateY(-50%);z-index:10}.header-back-btn{background:none;border:none;color:var(--theme-text-secondary,#6c757d);cursor:pointer;padding:6px;border-radius:6px;transition:all .2s ease;width:32px;height:32px;display:flex!important;align-items:center!important;justify-content:center!important;flex-shrink:0!important;margin:0!important;left:20px}.header-back-btn:hover{background:var(--theme-bg-tertiary,#e9ecef);color:var(--theme-text-primary,#1f1f1f)}.back-icon{font-size:18px;line-height:1;font-weight:600}.header-title{margin:0;font-size:20px;font-weight:600;color:var(--theme-text-primary,#1f1f1f);flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;padding-left:52px;padding-right:52px}.new-preset-btn{background:var(--theme-accent-color,#007bff);color:white;border:none;padding:8px 12px;border-radius:6px;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:4px;white-space:nowrap;width:fit-content;flex-shrink:0;box-shadow:0 1px 3px rgba(0,0,0,.1)}.new-preset-btn:hover{background:var(--theme-accent-hover,#0056b3);transform:translateY(-1px);box-shadow:0 2px 6px rgba(0,0,0,.15)}.new-preset-btn:active{transform:translateY(0);box-shadow:0 1px 2px rgba(0,0,0,.1)}.cleanup-btn{background:var(--theme-bg-tertiary,#e9ecef);color:var(--theme-text-secondary,#6c757d);border:1px solid var(--theme-border-color,#e0e0e0);padding:8px 12px;border-radius:6px;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:4px;white-space:nowrap;width:fit-content;flex-shrink:0;box-shadow:0 1px 3px rgba(0,0,0,.1)}.cleanup-btn:hover{background:var(--theme-bg-quaternary,#dee2e6);color:var(--theme-text-primary,#1f1f1f);transform:translateY(-1px);box-shadow:0 2px 6px rgba(0,0,0,.15)}.cleanup-btn:active{transform:translateY(0);box-shadow:0 1px 2px rgba(0,0,0,.1)}.cleanup-btn:disabled{opacity:.6;cursor:not-allowed;transform:none!important;box-shadow:0 1px 3px rgba(0,0,0,.1)!important}.btn-icon{font-size:14px;font-weight:600;line-height:1}.btn-text{font-size:13px;font-weight:500}.error-message{background:#fff5f5;border:1px solid #fed7d7;padding:12px 20px;margin:0 20px 16px;border-radius:8px;justify-content:space-between;flex-shrink:0}.error-message,.error-message button{color:#c53030;display:flex;align-items:center}.error-message button{background:none;border:none;font-size:18px;cursor:pointer;padding:0;width:20px;height:20px;justify-content:center;border-radius:50%;transition:background-color .2s ease}.error-message button:hover{background:rgba(197,48,48,.1)}.current-preset-section{padding:6px 20px;background:var(--theme-bg-secondary,#f8f9fa);border-bottom:1px solid var(--theme-border-color,#e0e0e0);flex-shrink:0}.current-preset-card{background:var(--theme-bg-primary,#ffffff);border:2px solid var(--theme-accent-color,#007bff);border-radius:8px;padding:4px 12px;display:flex;align-items:center;justify-content:space-between;box-shadow:var(--theme-shadow-light,0 2px 4px rgba(0,0,0,.1))}.preset-info{flex:1}.preset-name{font-size:13px;font-weight:600;color:var(--theme-text-primary,#1f1f1f);margin-bottom:1px}.preset-description{font-size:11px;color:var(--theme-text-secondary,#6c757d)}.preset-badge{background:var(--theme-accent-color,#007bff);color:white;padding:2px 5px;border-radius:8px;font-size:9px;font-weight:500;flex-shrink:0;margin-left:8px}.category-filter{padding:12px 20px;border-bottom:1px solid var(--theme-border-color,#e0e0e0);flex-shrink:0}.filter-tabs{display:flex;gap:4px;background:var(--theme-bg-tertiary,#e9ecef);padding:4px;border-radius:8px}.filter-tab{background:none;border:none;padding:8px 12px;border-radius:6px;font-size:13px;font-weight:500;color:var(--theme-text-secondary,#6c757d);cursor:pointer;transition:all .2s ease;flex:1;white-space:nowrap}.filter-tab.active{background:var(--theme-bg-primary,#ffffff);color:var(--theme-text-primary,#1f1f1f);box-shadow:var(--theme-shadow-light,0 2px 4px rgba(0,0,0,.1))}.filter-tab:hover:not(.active){background:rgba(255,255,255,.5)}.presets-container{flex:1;overflow-y:auto;padding:16px 20px 80px}.presets-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;max-width:1200px;margin:0 auto}.empty-state{grid-column:1/-1;text-align:center;padding:40px 20px;color:var(--theme-text-secondary,#6c757d)}.empty-icon{font-size:40px;margin-bottom:16px}.empty-state h3{margin:0 0 8px;font-size:18px;font-weight:600;color:var(--theme-text-primary,#1f1f1f)}.empty-state p{margin:0 0 20px;font-size:14px}.create-first-btn{background:var(--theme-accent-color,#007bff);color:white;border:none;padding:12px 20px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease}.create-first-btn:hover{background:var(--theme-accent-hover,#0056b3);transform:translateY(-1px)}@media (max-width:768px){.preset-header{padding:12px 16px;gap:12px;min-height:60px;display:flex!important;align-items:center!important;flex-wrap:nowrap!important}.header-actions{right:16px;gap:6px}.header-back-btn{width:28px;height:28px;padding:4px;margin:0!important;left:16px}.header-title{padding-left:44px;padding-right:44px}.back-icon,.header-title{font-size:16px}.cleanup-btn,.new-preset-btn{padding:6px 10px;font-size:12px;gap:3px}.btn-icon{font-size:13px}.btn-text{font-size:12px}.current-preset-section{padding:4px 16px}.category-filter{padding:12px 16px}.presets-container{padding:12px 16px 80px}.presets-grid{grid-template-columns:1fr;gap:12px}.current-preset-card{padding:3px 10px}.preset-name{font-size:12px}.preset-description{font-size:10px}.preset-badge{font-size:8px;padding:1px 4px}.filter-tabs{gap:2px}.filter-tab{padding:6px 8px;font-size:12px}}@media (max-width:480px){.preset-header{padding:10px 12px;gap:8px;min-height:56px;display:flex!important;align-items:center!important;flex-wrap:nowrap!important}.header-actions{right:12px;gap:4px}.header-back-btn{width:24px;height:24px;padding:3px;margin:0!important;left:12px}.header-title{padding-left:36px;padding-right:36px}.back-icon{font-size:14px}.header-title{font-size:15px}.cleanup-btn,.new-preset-btn{padding:5px 8px;font-size:11px;gap:2px}.btn-icon{font-size:12px}.btn-text{font-size:11px}.current-preset-card{flex-direction:column;gap:8px;text-align:center}.preset-badge{margin-left:0}.filter-tabs{gap:1px}.filter-tab{padding:6px;font-size:11px}}.theme-dark .preset-manager-page{background:var(--theme-bg-primary,#1a1a1a);color:var(--theme-text-primary,#ffffff)}.theme-dark .current-preset-section,.theme-dark .preset-header{background:var(--theme-bg-secondary,#2d2d2d);border-bottom-color:var(--theme-border-color,#404040)}.theme-dark .current-preset-card{background:var(--theme-bg-primary,#1a1a1a);border-color:var(--theme-accent-color,#4dabf7)}.theme-dark .category-filter{border-bottom-color:var(--theme-border-color,#404040)}.theme-dark .filter-tabs{background:var(--theme-bg-tertiary,#404040)}.theme-dark .filter-tab.active{background:var(--theme-bg-primary,#1a1a1a);color:var(--theme-text-primary,#ffffff)}.theme-dark .filter-tab:hover:not(.active){background:rgba(255,255,255,.1)}@media (prefers-reduced-motion:reduce){.loading-spinner:before{animation:none}.create-first-btn:hover,.new-preset-btn:hover{transform:none}}.dbm-overlay{position:fixed;inset:0;z-index:10002;display:flex;align-items:center;justify-content:center;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);background:rgba(0,0,0,.65);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}.dbm-modal{position:relative;width:92%;max-width:520px;max-height:92vh;display:flex;flex-direction:column;background:var(--theme-bg-secondary,linear-gradient(145deg,#1a1d2e 0,#141624 100%));border:1px solid var(--theme-border-color,rgba(255,255,255,.08));border-radius:20px;box-shadow:0 32px 80px rgba(0,0,0,.6),0 0 0 1px var(--theme-accent-color,rgba(99,102,241,.15));overflow:hidden;animation:dbm-pop-in .22s cubic-bezier(.34,1.56,.64,1)}@keyframes dbm-pop-in{0%{opacity:0;transform:scale(.92) translateY(12px)}to{opacity:1;transform:scale(1) translateY(0)}}.dbm-header{justify-content:space-between;gap:12px;padding:18px 20px 14px;border-bottom:1px solid var(--theme-border-color,rgba(255,255,255,.06))}.dbm-header,.dbm-header-title{display:flex;align-items:center}.dbm-header-title{margin:0;gap:8px;color:var(--theme-text-primary,#e8eaf6);font-size:17px;font-weight:700;letter-spacing:.3px}.dbm-header-icon{color:var(--theme-accent-color,#818cf8);font-size:15px}.dbm-close-btn{width:34px;height:34px;flex-shrink:0;border:0;border-radius:999px;background:rgba(255,255,255,.06);color:#9ca3af;font-size:20px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s}.dbm-close-btn:hover{background:var(--theme-bg-tertiary,rgba(255,255,255,.12));color:var(--theme-text-primary,#fff)}.dbm-body{position:relative;flex:1;display:flex;flex-direction:column;gap:12px;min-height:0;overflow-y:auto;padding:16px}.dbm-body::-webkit-scrollbar{width:4px}.dbm-body::-webkit-scrollbar-track{background:transparent}.dbm-body::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:2px}.dbm-menu{position:relative;flex:1;min-height:0;overflow:hidden;border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03)),var(--theme-bg-tertiary,rgba(255,255,255,.03));border:1px solid var(--theme-border-color,rgba(255,255,255,.08));box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 12px 28px rgba(0,0,0,.16)}.dbm-panels{display:flex;width:200%;height:min(var(--dbm-panel-height,360px),calc(92vh - 110px));min-height:0;transform:translateX(0);transition:transform .26s ease}.dbm-panels.sub-active{transform:translateX(-50%)}.dbm-panel{width:50%;min-width:50%}.dbm-panel-root{padding:16px;min-height:0}.dbm-actions{display:grid;gap:10px;max-height:100%;overflow-y:auto}.dbm-item{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;width:100%;padding:14px 16px;text-align:left;border:1px solid var(--theme-border-color,rgba(255,255,255,.08));border-radius:18px;background:var(--theme-bg-tertiary,rgba(255,255,255,.05));color:var(--theme-text-primary,#e8eaf6);cursor:pointer;transition:transform .18s ease,border-color .18s ease,background .18s ease}.dbm-item:hover:not(:disabled){transform:translateY(-1px);border-color:var(--theme-accent-color,rgba(129,140,248,.35));background:color-mix(in srgb,var(--theme-accent-color,#818cf8) 12%,transparent)}.dbm-item-danger{color:#fca5a5;background:rgba(127,29,29,.18);border-color:rgba(248,113,113,.2)}.dbm-icon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:14px;background:rgba(129,140,248,.14);color:var(--theme-accent-color,#818cf8)}.dbm-item-danger .dbm-icon{background:rgba(220,38,38,.12);color:#dc2626}.dbm-text{min-width:0}.dbm-label{font-size:.95rem;font-weight:700;line-height:1.35}.dbm-desc{margin-top:3px;color:var(--theme-text-secondary,#9ca3af);font-size:.82rem;line-height:1.45}.dbm-caret{color:rgba(156,163,175,.9);font-size:1.1rem}.dbm-panel-sub{display:flex;flex-direction:column;min-height:0}.dbm-panel-header{display:flex;align-items:center;gap:10px;padding:14px 16px 12px;border-bottom:1px solid var(--theme-border-color,rgba(255,255,255,.06))}.dbm-back-btn{width:34px;height:34px;border:0;border-radius:999px;background:rgba(129,140,248,.12);color:var(--theme-accent-color,#818cf8);font-size:1.2rem;cursor:pointer}.dbm-panel-title{font-size:.98rem;font-weight:700;color:var(--theme-text-primary,#e8eaf6)}.dbm-panel-body{flex:1;min-height:0;padding:14px 16px 16px;overflow-y:auto}.dbm-panel-stack{display:grid;gap:14px}.dbm-empty-tip,.dbm-field-tip,.dbm-help,.progress-subtitle{color:var(--theme-text-secondary,#9ca3af);font-size:.84rem;line-height:1.5}.dbm-help{margin:0}.dbm-danger-card,.dbm-form-block,.dbm-note-card,.dbm-option-group{padding:14px;border-radius:16px;background:var(--theme-bg-tertiary,rgba(255,255,255,.04));border:1px solid var(--theme-border-color,rgba(255,255,255,.07))}.dbm-danger-title,.dbm-field-label,.dbm-note-title,.dbm-option-title{display:block;margin-bottom:10px;font-size:.9rem;font-weight:700;color:var(--theme-text-primary,#e8eaf6)}.dbm-input{width:100%;min-height:42px;padding:11px 14px;border-radius:12px;border:1px solid var(--theme-border-color,rgba(255,255,255,.1));background:var(--theme-bg-tertiary,rgba(255,255,255,.05));color:var(--theme-text-primary,#e8eaf6);box-sizing:border-box}.dbm-input::placeholder{color:var(--theme-text-tertiary,#4b5563)}.dbm-input:focus{outline:none;border-color:var(--theme-accent-color,rgba(129,140,248,.6));background:var(--theme-bg-primary,rgba(255,255,255,.07));box-shadow:0 0 0 3px var(--theme-shadow-light,rgba(129,140,248,.12))}.dbm-inline-row{display:flex;gap:10px}.dbm-input-small{flex:1}.dbm-chip-btn,.dbm-danger-btn,.dbm-primary-btn,.dbm-secondary-btn{min-height:42px;border-radius:12px;border:1px solid transparent;font-weight:600;cursor:pointer;transition:transform .18s ease,opacity .18s ease,border-color .18s ease}.dbm-danger-btn,.dbm-primary-btn,.dbm-secondary-btn{width:100%;padding:0 14px}.dbm-primary-btn{color:#fff;background:linear-gradient(135deg,var(--theme-accent-color,#2563eb),#1d4ed8)}.dbm-chip-btn,.dbm-secondary-btn{color:var(--theme-text-secondary,#d1d5db);background:var(--theme-bg-tertiary,rgba(255,255,255,.06));border-color:var(--theme-border-color,rgba(255,255,255,.1))}.dbm-danger-btn{color:#fff;background:linear-gradient(135deg,#dc2626,#b91c1c)}.dbm-chip-row{display:flex;gap:8px;flex-wrap:wrap}.dbm-chip-btn{min-height:34px;padding:0 12px;border-radius:999px}.dbm-option-groups{display:grid;gap:12px}.dbm-chat-list,.dbm-option-list{display:grid;gap:8px}.dbm-chat-item,.dbm-check-item{display:flex;align-items:center;gap:10px;color:var(--theme-text-primary,#e8eaf6);font-size:.9rem}.dbm-chat-item input,.dbm-check-item input{accent-color:var(--theme-accent-color,#2563eb)}.dbm-split-line{display:flex;align-items:center;justify-content:space-between;gap:10px}.dbm-chat-list{margin-top:10px;max-height:220px;overflow-y:auto}.dbm-chat-item{display:grid;grid-template-columns:auto 1fr auto;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.04)}.dbm-chat-name{min-width:0}.dbm-chat-type{color:var(--theme-text-secondary,#9ca3af);font-size:.8rem}.dbm-danger-text,.dbm-note-text{color:var(--theme-text-secondary,#9ca3af);font-size:.86rem;line-height:1.5}.dbm-danger-card{background:rgba(127,29,29,.18);border-color:rgba(248,113,113,.28)}.status-message{padding:12px 14px;border-radius:16px;font-size:.9rem;font-weight:500;backdrop-filter:blur(12px)}.status-message.error{background:rgba(254,242,242,.92);color:var(--theme-error-text,#b91c1c);border:1px solid var(--theme-error-border,#fecaca)}.status-message.success{background:rgba(240,253,244,.92);color:var(--theme-success-text,#166534);border:1px solid var(--theme-success-border,#bbf7d0)}.progress-overlay{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(15,23,42,.48);backdrop-filter:blur(8px);border-radius:18px}.progress-card{width:100%;padding:22px;text-align:center;border-radius:18px;background:rgba(255,255,255,.94);border:1px solid rgba(226,232,240,.9);box-shadow:0 20px 40px rgba(15,23,42,.22)}.progress-title{font-size:1rem;font-weight:700;color:var(--theme-text-primary,#111827)}.dbm-back-btn:disabled,.dbm-chip-btn:disabled,.dbm-close-btn:disabled,.dbm-danger-btn:disabled,.dbm-input:disabled,.dbm-item:disabled,.dbm-primary-btn:disabled,.dbm-secondary-btn:disabled{opacity:.6;cursor:not-allowed}@media (max-width:480px){.dbm-overlay{padding:0;align-items:flex-end}.dbm-modal{width:100%;max-width:none;max-height:96dvh;border-radius:20px 20px 0 0;border-bottom:none;animation:dbm-slide-up .25s cubic-bezier(.34,1.56,.64,1)}@keyframes dbm-slide-up{0%{opacity:0;transform:translateY(40px)}to{opacity:1;transform:translateY(0)}}.dbm-panels{height:min(var(--dbm-panel-height,360px),calc(96dvh - 138px - env(safe-area-inset-bottom)))}.dbm-header{padding-top:max(14px,env(safe-area-inset-top))}.dbm-body{padding-bottom:calc(16px + env(safe-area-inset-bottom))}.dbm-inline-row,.dbm-split-line{flex-direction:column;align-items:stretch}.dbm-chat-item{grid-template-columns:auto 1fr}.dbm-chat-type{grid-column:2}}