#output-section{width:100%;max-width:100%;box-sizing:border-box;margin-top:24px}#output-section .card-header{margin-bottom:16px}#output-section .card-header,#output-section .code-wrapper,#output-section .code-editor{width:100%;box-sizing:border-box}#output-section .code-wrapper{margin-top:0}#output-section .card-actions{display:flex;align-items:center;gap:12px}#output-json{font-family:JetBrains Mono,monospace!important;font-size:.9rem;line-height:1.6;color:var(--text-code)!important;height:280px;min-height:200px;max-height:450px;width:100%;background:#0000004d!important;border:1px solid rgba(255,255,255,.15);border-radius:10px;padding:20px;resize:vertical;overflow-y:auto;transition:border-color .2s ease}#output-json:hover{border-color:#ffffff40}#output-json:focus{outline:none;border-color:#ffffff59}.code-wrapper{font-family:var(--font-mono);color:var(--text-code);font-size:.9rem;margin-top:20px}.code-editor{font-family:JetBrains Mono,monospace!important;font-size:.9rem;line-height:1.6;color:var(--text-code)!important;height:200px;width:100%;background:#0000004d!important;border:1px solid rgba(255,255,255,.15);border-radius:10px;padding:20px;resize:vertical;transition:border-color .2s ease}.code-editor:hover{border-color:#ffffff40}.code-editor:focus{outline:none;border-color:#ffffff59}.code-editor .string{color:#98c379}.code-editor .number{color:#d19a66}.code-editor .boolean{color:#56b6c2}.code-editor .null{color:#c678dd}.code-editor .key{color:#e06c75}#global-params-section{margin-bottom:24px;animation:fadeIn .4s ease-out;position:relative;z-index:10}#global-params-section .card-header{border-bottom:1px solid rgba(255,255,255,.08);padding-bottom:15px;margin-bottom:20px}.params-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px}.global-param-group{display:flex;flex-direction:column;gap:8px}.global-param-label{font-size:.85rem;color:var(--text-secondary);font-weight:500;text-transform:uppercase;letter-spacing:.5px;display:flex;justify-content:space-between;align-items:center}.custom-dropdown{position:relative}.dropdown-trigger{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#0003;border:1px solid rgba(255,255,255,.1);border-radius:8px;cursor:pointer;transition:all .25s ease;min-height:48px}.dropdown-trigger:hover{background:#ffffff08;border-color:#fff3}.dropdown-value{color:var(--text-primary);font-size:.95rem;font-family:var(--font-body)}.dropdown-chevron{transition:transform .3s ease;opacity:.7}.custom-dropdown.open .dropdown-chevron{transform:rotate(180deg)}.dropdown-menu{position:absolute;top:calc(100% + 6px);left:0;right:0;background:#19180ffa;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.1);border-radius:8px;max-height:250px;overflow-y:auto;z-index:100;box-shadow:0 8px 24px #0006;opacity:0;visibility:hidden;transform:translateY(-10px);transition:all .2s cubic-bezier(.4,0,.2,1)}.custom-dropdown.open .dropdown-menu{opacity:1;visibility:visible;transform:translateY(0)}.dropdown-item{padding:10px 14px;color:var(--text-secondary);font-size:.9rem;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:8px}.dropdown-item:hover{background:#ffffff0d;color:var(--text-primary)}.dropdown-item.selected{background:#ffffff14;color:var(--text-primary);border-left:3px solid var(--primary-color)}.info-icon{display:inline-flex;color:var(--text-secondary);opacity:.5;cursor:help;transition:opacity .2s}.info-icon:hover{opacity:1;color:var(--text-primary)}#reset-global-params svg{width:18px;height:18px}#open-template-gallery{background:var(--accent-gradient);border:none;color:#fff;box-shadow:0 4px 15px #ea02e240}#open-template-gallery:hover{filter:brightness(1.15) saturate(1.1);transform:translateY(-1px);box-shadow:0 6px 20px #ea02e266}.reset-defaults-btn:hover,#reset-global-params:hover{border-color:#ffffff98;background:#c0c0c01a}@keyframes fadeIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@media (max-width: 600px){.params-grid{grid-template-columns:1fr}}.llm-page{padding-bottom:60px;animation:fadeIn .4s ease}.llm-hero{text-align:center;margin:0 0 90px}.llm-hero h2{font-size:1.8rem;margin-bottom:12px}.llm-subtitle{color:var(--text-secondary);font-size:1.1rem;max-width:550px;margin:0 auto}.llm-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px;margin-bottom:20px}.provider-card{display:flex;flex-direction:column;align-items:center;padding:30px;text-align:center;transition:all .3s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden;will-change:transform;backface-visibility:hidden}.provider-card:hover{transform:translateY(-8px);background:#ffffff0d;border-color:#ffffff4d}.provider-badge{display:flex;flex-direction:column;align-items:center;gap:12px;margin-bottom:20px}.provider-badge img{transition:transform .3s ease}.provider-card:hover .provider-badge img{transform:scale(1.05)}.provider-badge span{font-size:1.2rem;font-weight:700;color:var(--text-primary)}.provider-setup-status{display:inline-flex;align-items:center;justify-content:center;padding:6px 14px;border-radius:5px;font-size:.72rem;font-weight:700;margin:0 auto 20px;background:#ffffff14;color:var(--text-secondary);width:fit-content;min-width:100px;white-space:nowrap}.provider-setup-status.configured{background:#10b98126;color:#10b981}.provider-card p{font-size:.95rem;color:var(--text-secondary);line-height:1.6;margin-bottom:24px;flex-grow:1}.usage-dashboard{margin-top:20px;background:#ffffff05;border:1px solid rgba(255,255,255,.08)}.usage-total-tokens{font-family:var(--font-mono);font-size:.85rem;color:#ffd95bdc;background:#fff0691a;padding:4px 12px;border-radius:5px;font-weight:600}.usage-stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;padding:0 0 12px}.stat-box{padding:20px;background:#ffffff08;border-radius:12px;border:1px solid rgba(255,255,255,.096);transition:all .3s ease;display:flex;flex-direction:column;gap:12px;position:relative;overflow:hidden}.stat-box:hover{background:#ffffff0f;border-color:#ffffff7e;transform:translateY(-4px);box-shadow:0 10px 30px #0000004d}.stat-header{display:flex;justify-content:space-between;align-items:center}.stat-provider{font-weight:700;font-size:1.5rem;color:#fff;letter-spacing:.5px}.stat-indicator{width:10px;height:10px;border-radius:50%;background:#10b981;box-shadow:0 0 10px #10b98199}.stat-main{margin:4px 0}.stat-value{font-size:1.5rem;font-weight:800;line-height:1;color:#ffffffd5;display:flex;align-items:baseline;gap:4px}.stat-unit{font-size:.9rem;color:#ffffffd5;font-weight:500}.stat-footer{display:flex;flex-direction:column;gap:6px;padding-top:15px;border-top:1px solid rgba(255,255,255,.1)}.stat-info{font-size:.75rem;color:#ff4545;display:flex;justify-content:space-between;align-items:center}.stat-info span:first-child{opacity:.8;text-transform:none;font-size:.8rem;letter-spacing:.5px}.stat-info span:last-child{font-family:var(--font-mono);color:#ffd754;background:#ffbb0015;padding:2px 6px;border-radius:4px}.validation-status{margin-top:15px;display:flex;align-items:center;gap:10px;font-size:.9rem;padding:10px;border-radius:8px}.validation-status.success{background:#10b9811a;color:#10b981}.validation-status.error{background:#ef44441a;color:#ef4444}.loader-small{width:16px;height:16px;border:2px solid rgba(255,255,255,.2);border-top-color:var(--primary-color);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.template-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#000000b3;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);z-index:1000;display:flex;justify-content:center;align-items:center;opacity:0;visibility:hidden;transition:all .3s ease}.template-modal-overlay.active{opacity:1;visibility:visible}.template-modal{background:var(--bg-primary);background:linear-gradient(135deg,#1e1e28f2,#14141efa);border:1px solid rgba(255,255,255,.1);border-radius:var(--radius-md);box-shadow:0 20px 50px #00000080;width:90%;max-width:1000px;max-height:85vh;display:flex;flex-direction:column;overflow:hidden;transform:scale(.95);transition:transform .3s cubic-bezier(.175,.885,.32,1.275)}.template-modal-overlay.active .template-modal{transform:scale(1)}.template-modal.save-dialog{max-width:500px;height:auto;max-height:90vh}.template-modal-header{padding:20px 24px;border-bottom:1px solid rgba(255,255,255,.1);display:flex;justify-content:space-between;align-items:center;background:#ffffff08}.template-modal-header h3{margin:0;font-size:1.25rem;font-weight:700}.close-modal-btn{display:flex;align-items:center;justify-content:center;width:28px;height:28px;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);color:var(--text-secondary);cursor:pointer;border-radius:8px}.close-modal-btn:hover{color:#ef4444;background:#ef444426;border-color:#ef44444d}.template-modal-body{padding:24px;overflow-y:auto;flex:1}.template-form-group{margin-bottom:20px}.template-form-group label{display:block;margin-bottom:8px;color:var(--text-secondary);font-size:.9rem}.template-form-input,.template-form-textarea{width:100%;background:#0000004d;border:1px solid rgba(255,255,255,.1);border-radius:var(--radius-sm);padding:12px;color:var(--text-primary);font-family:var(--font-body);transition:border-color .3s}.template-form-input:focus,.template-form-textarea:focus{outline:none;border-color:var(--accent-secondary)}.template-form-textarea{min-height:80px;resize:vertical}.template-modal-footer{padding:20px 24px;border-top:1px solid rgba(255,255,255,.1);display:flex;justify-content:flex-end;gap:12px;background:#0003}.template-modal .btn-secondary{background:transparent;border:1px solid rgba(255,255,255,.2);color:var(--text-secondary);padding:20px 40px;border-radius:var(--radius-sm);font-weight:500;cursor:pointer;transition:border-color .3s;display:inline-flex;align-items:center;justify-content:center}.template-modal .btn-secondary:hover{border-color:var(--text-primary);color:var(--text-primary)}.template-modal .btn-primary{background:var(--accent-gradient);border:none;color:#fff;padding:10px 24px;border-radius:var(--radius-sm);font-weight:600;cursor:pointer;transition:filter .2s;display:inline-flex;align-items:center;justify-content:center}.template-modal .btn-primary:hover{filter:brightness(1.1)}.template-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}.template-card{background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:var(--radius-md);padding:20px;transition:all .3s ease;cursor:pointer;display:flex;flex-direction:column;position:relative;overflow:hidden}.template-card:hover{transform:translateY(-5px);background:#ffffff14;border-color:#fff3;box-shadow:0 10px 20px #0000004d}.template-card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}.template-name{font-size:1.1rem;font-weight:600;margin:0;color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.template-actions{display:flex;gap:8px;opacity:0;transition:opacity .2s}@media (hover: none){.template-actions{opacity:1}}.template-card:hover .template-actions{opacity:1}.icon-btn{background:none;border:none;color:var(--text-secondary);cursor:pointer;padding:4px;border-radius:4px;display:flex;align-items:center;justify-content:center}.icon-btn:hover{color:var(--text-primary);background:#ffffff1a}.icon-btn.delete:hover{color:#ef4444;background:#ef44441a}.template-desc{font-size:.9rem;color:var(--text-secondary);margin-bottom:16px;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;flex:1}.template-info{display:flex;justify-content:space-between;align-items:center;font-size:.8rem;color:var(--text-secondary);margin-top:12px;padding-top:12px;border-top:1px solid rgba(255,255,255,.05)}.template-tag{background:#ffbb0026;color:#ffd64eee;padding:2px 8px;border-radius:12px;font-size:.75rem}.template-empty-state{grid-column:1 / -1;text-align:center;padding:60px 20px;color:var(--text-secondary)}.template-empty-state svg{color:#fff3;margin-bottom:16px}.history-meta{display:flex;align-items:center;gap:12px}.history-meta span{color:var(--text-secondary);font-size:.85rem;font-weight:500}.btn-icon-svg{margin-right:6px}.modal-header-actions #history-preview-actions{margin-right:2px}#history-close-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);color:#ffffffa6;cursor:pointer;border-radius:8px;transition:none}#history-close-btn svg{width:20px;height:20px}#history-close-btn:hover{color:#ef4444;background:#ef444426;border-color:#ef44444d}#history-restore-btn{width:32px!important;height:32px!important;padding:0!important;display:flex;align-items:center;justify-content:center;border-radius:8px!important}#history-restore-btn svg{width:18px;height:18px}.history-list::-webkit-scrollbar,.code-editor::-webkit-scrollbar{width:6px}.history-list::-webkit-scrollbar-track,.code-editor::-webkit-scrollbar-track{background:transparent}.history-list::-webkit-scrollbar-thumb,.code-editor::-webkit-scrollbar-thumb{background:#ffffff1a;border-radius:10px}.history-list::-webkit-scrollbar-thumb:hover,.code-editor::-webkit-scrollbar-thumb:hover{background:#fff3}.history-page .dict-split-view{height:700px;display:flex;overflow:hidden;position:relative;gap:16px}.history-page .dict-sidebar{width:320px;border-bottom:1px solid rgba(255,255,255,.08);border-radius:10px;display:flex;flex-direction:column;background:#00000026;transition:border-color .2s ease}.history-page .dict-sidebar:hover{border-color:#ffffff4d}.history-sidebar .sidebar-header,.dict-sidebar .sidebar-header{padding:10px;border-bottom:1px solid rgba(255,255,255,.075);display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.history-sidebar .sidebar-header span,.dict-sidebar .sidebar-header span{font-size:1.1rem;font-weight:600;text-transform:none;letter-spacing:.5px;color:#ffffffc5}.history-list{flex:1;overflow-y:auto}.history-item{padding:8px 14px;margin-bottom:6px;border-bottom:none;transition:all .2s ease;cursor:pointer;display:flex;flex-direction:column;gap:2px}.history-item:hover{background:#0051ff10;border-radius:8px}.history-item.active{background:#0051ff19;border:1px solid rgba(0,68,255,.548);border-radius:8px}.history-item-top{display:flex;justify-content:space-between;align-items:center}.history-date{font-size:.75rem;color:var(--text-secondary)}.history-item-bottom{display:flex;justify-content:space-between;align-items:flex-end}.history-summary{font-size:.9rem;color:var(--text-primary);opacity:.8}.history-delete-btn{opacity:0;padding:4px;color:var(--text-secondary);transition:all .2s;background:transparent;border:none;cursor:pointer;margin-bottom:-4px;margin-right:-4px}.history-item:hover .history-delete-btn{opacity:1}.history-delete-btn:hover{color:#ef4444}.history-badge{font-size:.7rem;padding:2px 6px;border-radius:4px;font-weight:700;text-transform:uppercase}.badge-json{background:linear-gradient(135deg,#7261003d,#ffd90066);color:#fffbecd0}.badge-ai{background:linear-gradient(135deg,#57007234,#ff009666);color:#fff1facb}.btn-icon-small{background:#ffffff08;border:1px solid rgba(255,255,255,.05);color:#ffffffe0;cursor:pointer;padding:6px;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.btn-icon-small:hover{background:#ef444426;color:#ef4444;border:1px solid rgba(239,68,68,.3)}.history-page .dict-main-content{flex:1;display:flex;flex-direction:column;overflow:hidden;background:#00000042}#history-section .code-wrapper{flex:1;margin:0;padding-top:0;display:flex;flex-direction:column;overflow:hidden}.history-page .code-editor,#history-modal .code-editor{flex:1;padding:24px;margin:0;border:1px solid rgba(255,255,255,.158);border-radius:10px;white-space:pre-wrap;font-family:JetBrains Mono,monospace;font-size:.95rem;line-height:1.6;overflow-y:auto;background:#ffffff13;position:relative;transition:all .2s ease}.history-page .code-editor:hover,#history-modal .code-editor:hover{border-color:#ffffff80}.code-editor:has(.placeholder-content){display:flex;align-items:center;justify-content:center;color:var(--text-secondary);font-style:italic;opacity:.6}.placeholder-content{text-align:center;max-width:300px}#history-modal .modal-content{max-width:1000px;height:85vh;display:flex;flex-direction:column;position:relative;overflow:hidden}#history-modal .modal-header{width:100%;margin:0;display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid rgba(255,255,255,.1);background:transparent;position:relative;z-index:110}#history-modal .modal-header h3{margin:0;font-size:1.25rem;font-weight:700;background:var(--accent-gradient);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}#history-hamburger-btn{display:flex!important;flex-direction:column;justify-content:center;gap:4px;width:32px;height:32px;padding:7px;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:8px;cursor:pointer;transition:all .3s ease;margin:0}#history-hamburger-btn:hover{background:#ffffff1a;border-color:#ffffff4d}#history-hamburger-btn .hamburger-line{width:100%;height:2px;background:#fff9;border-radius:2px;transition:all .3s ease}#history-hamburger-btn:hover .hamburger-line{background:linear-gradient(335deg,#697fffee,#ff3bf8ec,#ffdd1dee)}.modal-header-actions{display:flex;gap:6px;align-items:center}#history-modal .modal-body{flex:1;padding:12px 0;display:flex;overflow:hidden}#history-modal .history-sidebar{position:absolute;top:0;left:-320px;width:300px;height:100%;background:#121218fa;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-right:1px solid rgba(255,255,255,.1);z-index:200;padding:0 15px 15px;transition:left .4s cubic-bezier(.16,1,.3,1),visibility .4s;box-shadow:10px 0 40px #0009;display:flex;flex-direction:column;visibility:hidden;pointer-events:none;border-radius:12px}#history-modal .history-sidebar.active{left:0;visibility:visible;pointer-events:auto}#history-sidebar-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#0006;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:100;opacity:0;visibility:hidden;transition:all .3s ease}#history-sidebar-overlay.active{opacity:1;visibility:visible}#history-sidebar-close{width:28px;height:28px;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:6px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--text-secondary);transition:all .2s ease}#history-sidebar-close:hover{background:#ef44441a;border-color:#ef44444d;color:#ef4444}#history-modal .history-main{flex:1;display:flex;flex-direction:column;min-width:0;padding:15px}#history-modal .code-wrapper{flex:1;display:flex;flex-direction:column;margin:0;min-height:0}.history-actions{display:flex;gap:8px;align-items:center}#history-section{margin:0 0 90px}.history-main-card{background:var(--bg-elevated);border-radius:var(--radius-md)}.history-main-card .card-header{position:relative;z-index:110}.diff-line{padding:0 4px;min-height:1.2em}.diff-add{background:#10b98126;color:#34d399}.diff-remove{background:#ef444426;color:#f87171;text-decoration:line-through;opacity:.8}.history-main-card{position:relative;overflow:hidden}.history-section-content{padding:15px;min-height:500px}.history-section-content .code-wrapper{height:100%}.history-section-content .code-editor{min-height:600px;padding:30px}#history-section-hamburger-btn{display:flex!important;flex-direction:column;justify-content:center;gap:4px;width:32px;height:32px;padding:7px;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:8px;cursor:pointer;transition:all .3s ease;margin:0}#history-section-hamburger-btn:hover{background:#ffffff1a;border-color:#ffffff4d}#history-section-hamburger-btn .hamburger-line{width:100%;height:2px;background:#fff9;border-radius:2px;transition:all .3s ease}#history-section-hamburger-btn:hover .hamburger-line{background:linear-gradient(335deg,#697fffee,#ff3bf8ec,#ffdd1dee)}.history-section-sidebar{position:absolute;top:0;left:-320px;width:300px;height:100%;background:#121218fa;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-right:1px solid rgba(255,255,255,.1);z-index:200;padding:0 15px 15px;transition:left .4s cubic-bezier(.16,1,.3,1),visibility .4s;box-shadow:10px 0 40px #0009;display:flex;flex-direction:column;visibility:hidden;pointer-events:none;border-radius:12px}.history-section-sidebar .sidebar-title{background:linear-gradient(335deg,#697fffee,#ff3bf8ec,#ffdd1dee)!important;-webkit-background-clip:text!important;-webkit-text-fill-color:transparent!important;background-clip:text!important;padding:5px 0!important}.history-section-sidebar.active{left:0;visibility:visible;pointer-events:auto}#history-section-sidebar-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#0006;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:100;opacity:0;visibility:hidden;transition:all .3s ease}#history-section-sidebar-overlay.active{opacity:1;visibility:visible}#history-section-sidebar-close{width:28px;height:28px;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:6px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--text-secondary);transition:all .2s ease}#history-section-sidebar-close:hover{background:#ef44441a;border-color:#ef44444d;color:#ef4444}
