#root{width:100%;min-height:100vh}.login-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0f172a,#1e293b);padding:20px}.login-box{background:#1e293b;border-radius:16px;padding:40px;width:100%;max-width:420px;border:1px solid #334155;box-shadow:0 25px 50px -12px #00000080}.login-header{text-align:center;margin-bottom:32px}.login-icon{margin-bottom:16px}.login-header h1{font-size:1.75rem;font-weight:700;color:#f1f5f9;margin-bottom:8px}.login-header p{color:#94a3b8;font-size:.875rem}.login-form{display:flex;flex-direction:column;gap:20px}.login-error{background:#ef44441a;color:#fca5a5;padding:12px;border-radius:8px;font-size:14px;border:1px solid rgba(239,68,68,.2)}.form-label{display:flex;align-items:center;gap:8px;margin-bottom:8px;font-size:14px;font-weight:500;color:#cbd5e1}.login-btn{width:100%;justify-content:center;padding:12px;font-size:16px;margin-top:8px}.login-footer{margin-top:24px;padding-top:24px;border-top:1px solid #334155;text-align:center}.login-footer p{color:#64748b;font-size:12px}.layout{display:flex;min-height:100vh;background:#0f172a}.sidebar{width:260px;background:#1e293b;border-right:1px solid #334155;display:flex;flex-direction:column;transition:width .3s ease}.sidebar.closed{width:70px}.sidebar-header{padding:20px;border-bottom:1px solid #334155;display:flex;align-items:center;justify-content:space-between}.logo{font-size:1.25rem;font-weight:700;color:#3b82f6;white-space:nowrap;overflow:hidden}.sidebar.closed .logo{display:none}.sidebar-toggle{background:none;border:none;color:#94a3b8;cursor:pointer;padding:4px;border-radius:4px;transition:all .2s}.sidebar-toggle:hover{color:#e2e8f0;background:#334155}.sidebar-nav{flex:1;padding:16px 12px;display:flex;flex-direction:column;gap:4px}.nav-item{display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:8px;color:#94a3b8;text-decoration:none;transition:all .2s;white-space:nowrap}.nav-item:hover{background:#334155;color:#e2e8f0}.nav-item.active{background:#3b82f6;color:#fff}.sidebar.closed .nav-item span{display:none}.sidebar-footer{padding:16px 12px;border-top:1px solid #334155}.logout-btn{width:100%;display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:8px;background:none;border:none;color:#ef4444;cursor:pointer;transition:all .2s;font-size:14px}.logout-btn:hover{background:#ef44441a}.sidebar.closed .logout-btn span{display:none}.main-content{flex:1;overflow-y:auto;background:#0f172a}.content-wrapper{padding:24px;max-width:1400px;margin:0 auto}@media(max-width:768px){.sidebar{position:fixed;left:0;top:0;bottom:0;z-index:100;transform:translate(-100%)}.sidebar.open{transform:translate(0)}.sidebar.closed{transform:translate(-100%);width:260px}.main-content{margin-left:0}}.dashboard{padding-bottom:40px}.dashboard-header{margin-bottom:24px;display:flex;justify-content:space-between;align-items:center}.dashboard-header h1{font-size:2rem;font-weight:700;color:#f1f5f9}.last-updated{display:flex;align-items:center;gap:6px;color:#64748b;font-size:14px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-bottom:32px}.stat-card{background:#1e293b;border-radius:12px;padding:20px;display:flex;align-items:center;gap:16px;border:1px solid #334155;transition:transform .2s,border-color .2s}.stat-card:hover{transform:translateY(-2px);border-color:#475569}.stat-icon{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center}.stat-icon.providers{background:#3b82f61a;color:#3b82f6}.stat-icon.active{background:#10b9811a;color:#10b981}.stat-icon.models{background:#8b5cf61a;color:#8b5cf6}.stat-icon.errors{background:#ef44441a;color:#ef4444}.stat-info h3{font-size:1.75rem;font-weight:700;color:#f1f5f9;margin-bottom:4px}.stat-info p{color:#94a3b8;font-size:14px}.status-indicator{display:flex;align-items:center;gap:8px;font-size:14px}.status-indicator.healthy{color:#6ee7b7}.status-indicator.unhealthy{color:#fca5a5}.provider-name{font-weight:600;color:#f1f5f9}.dashboard-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;color:#94a3b8;gap:16px}@media(max-width:1024px){.stats-grid{grid-template-columns:repeat(2,1fr)}}.dashboard-grid{display:grid;grid-template-columns:2fr 1fr;gap:24px}.monitoring-card{background:#1e293b;border-radius:12px;border:1px solid #334155}.monitoring-card .card-header{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid #334155}.monitoring-card .card-title{display:flex;align-items:center;gap:8px;font-size:1.125rem;font-weight:600;color:#f1f5f9;margin:0}.monitoring-summary{padding:20px;display:flex;flex-direction:column;gap:16px}.monitoring-stat{display:flex;align-items:center;gap:12px}.monitoring-stat-icon{width:40px;height:40px;border-radius:10px;background:#3b82f61a;color:#3b82f6;display:flex;align-items:center;justify-content:center}.monitoring-stat-icon.tokens{background:#f59e0b1a;color:#f59e0b}.monitoring-stat-icon.success{background:#10b9811a;color:#10b981}.monitoring-stat-info{display:flex;flex-direction:column}.monitoring-stat-value{font-size:1.25rem;font-weight:700;color:#f1f5f9}.monitoring-stat-label{font-size:.75rem;color:#94a3b8;text-transform:uppercase;letter-spacing:.05em}.top-models-preview{padding:16px 20px 20px;border-top:1px solid #334155}.top-models-preview h4{font-size:.875rem;font-weight:600;color:#94a3b8;margin-bottom:12px;text-transform:uppercase;letter-spacing:.05em}.top-models-list{display:flex;flex-direction:column;gap:8px}.top-model-item{display:flex;align-items:center;gap:12px;padding:8px 12px;background:#33415580;border-radius:8px;font-size:.875rem}.top-model-rank{font-weight:700;color:#3b82f6;min-width:24px}.top-model-name{flex:1;color:#f1f5f9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top-model-requests{color:#94a3b8;font-size:.75rem}.btn-sm{padding:6px 12px;font-size:.875rem}.danger-zone{border:1px solid #dc2626}.danger-zone .card-title{color:#ef4444}.danger-description{color:#94a3b8;font-size:.875rem;line-height:1.6;margin-bottom:16px}.danger-description strong{color:#f1f5f9}.confirm-actions{background:#dc26261a;border:1px solid rgba(220,38,38,.3);border-radius:8px;padding:16px}.confirm-text{color:#fca5a5;font-size:.875rem;margin-bottom:12px}.confirm-buttons{display:flex;gap:12px}.btn-danger{background:#dc2626;color:#fff;border:none;padding:8px 16px;border-radius:6px;font-weight:500;cursor:pointer;transition:all .2s}.btn-danger:hover:not(:disabled){background:#b91c1c}.btn-danger:disabled{opacity:.5;cursor:not-allowed}.btn-secondary{background:#475569;color:#fff;border:none;padding:8px 16px;border-radius:6px;font-weight:500;cursor:pointer;transition:all .2s}.btn-secondary:hover:not(:disabled){background:#334155}@media(max-width:1200px){.dashboard-grid{grid-template-columns:1fr}}@media(max-width:640px){.stats-grid{grid-template-columns:1fr}.dashboard-header{flex-direction:column;align-items:flex-start;gap:8px}}.providers-page{padding-bottom:40px}.page-header h1{font-size:2rem;font-weight:700;color:#f1f5f9;margin-bottom:4px}.page-description{color:#64748b;font-size:14px}.provider-types-hint{display:block;margin-top:8px;font-size:12px;color:#94a3b8}.hint-standard{color:#10b981;font-weight:500}.hint-custom{color:#8b5cf6;font-weight:500}.custom-providers-info{display:flex;align-items:flex-start;gap:12px;padding:16px;margin-bottom:24px;background:#8b5cf61a;border:1px solid rgba(139,92,246,.3);border-radius:8px;color:#a78bfa;font-size:14px}.custom-providers-info svg{flex-shrink:0;margin-top:2px}.custom-providers-info strong{color:#c4b5fd}.providers-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(400px,1fr));gap:20px}.provider-card{background:#1e293b;border-radius:12px;padding:20px;border:1px solid #334155;transition:all .2s}.provider-card:hover{border-color:#475569}.provider-card.disabled{opacity:.6}.provider-card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}.provider-card.custom-provider{border-color:#8b5cf6;background:linear-gradient(135deg,#1e293b,#2d1f3d)}.custom-badge{display:inline-flex;align-items:center;margin-left:8px;padding:2px 8px;background:linear-gradient(135deg,#8b5cf6,#a78bfa);color:#fff;font-size:11px;font-weight:600;border-radius:12px;text-transform:uppercase;letter-spacing:.5px}.provider-info{display:flex;align-items:center;gap:12px}.provider-icon{color:#3b82f6}.provider-info h3{font-size:1.1rem;font-weight:600;color:#f1f5f9}.provider-id{font-size:12px;color:#64748b;text-transform:lowercase}.provider-details{margin-bottom:16px}.detail-row{display:flex;margin-bottom:8px;font-size:14px}.detail-label{color:#64748b;min-width:100px}.detail-value{color:#e2e8f0;word-break:break-all}.features-tags{display:flex;gap:8px;flex-wrap:wrap}.feature-tag{background:#3b82f61a;color:#3b82f6;padding:2px 8px;border-radius:4px;font-size:12px}.provider-actions{display:flex;gap:8px;flex-wrap:wrap}.provider-actions .btn{padding:6px 10px}.test-result{margin-top:16px;padding:12px;border-radius:8px;font-size:14px}.test-result.success{background:#10b9811a;border:1px solid rgba(16,185,129,.2)}.test-result.error{background:#ef44441a;border:1px solid rgba(239,68,68,.2)}.test-result-header{display:flex;align-items:center;gap:8px;margin-bottom:8px;font-weight:600}.test-result.success .test-result-header{color:#6ee7b7}.test-result.error .test-result-header{color:#fca5a5}.success-icon{color:#10b981}.error-icon{color:#ef4444}.models-found{margin-top:8px;padding-top:8px;border-top:1px solid rgba(255,255,255,.1)}.checkbox-group{display:flex;gap:20px;flex-wrap:wrap}.checkbox-label{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:14px;color:#cbd5e1}.checkbox-label input[type=checkbox]{width:18px;height:18px;cursor:pointer;accent-color:#3b82f6}.page-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;color:#94a3b8;gap:16px}.loading-models,.empty-models{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;color:#94a3b8;gap:16px}.models-count{color:#64748b;margin-bottom:16px;font-size:14px}.models-list{max-height:500px;overflow-y:auto}.model-item{background:#0f172a;border:1px solid #334155;border-radius:8px;margin-bottom:12px;overflow:hidden}.model-header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;cursor:pointer;transition:background .2s}.model-header:hover{background:#1e293b}.model-title{display:flex;align-items:center;gap:12px}.model-name{font-weight:600;color:#f1f5f9}.model-provider{font-size:12px;color:#64748b;background:#1e293b;padding:2px 8px;border-radius:4px}.model-meta{display:flex;align-items:center;gap:12px}.model-context{font-size:12px;color:#6ee7b7;background:#10b9811a;padding:2px 8px;border-radius:4px}.model-details-expanded{padding:16px;border-top:1px solid #334155;background:#1e293b}.detail-section{margin-bottom:16px}.detail-section:last-child{margin-bottom:0}.detail-section h4{font-size:12px;text-transform:uppercase;letter-spacing:.5px;color:#94a3b8;margin-bottom:8px}.detail-section p{color:#e2e8f0;line-height:1.6;margin:0}.details-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.detail-item{display:flex;flex-direction:column;gap:4px}.detail-item .detail-label{font-size:12px;color:#64748b;min-width:auto}.detail-item code{background:#0f172a;padding:4px 8px;border-radius:4px;font-size:12px;color:#3b82f6}.detail-item .healthy{color:#6ee7b7}.detail-item .unhealthy{color:#fca5a5}.test-response{margin-top:20px;padding:16px;border-radius:8px;border:1px solid}.test-response.success{background:#10b9810d;border-color:#10b9814d}.test-response.error{background:#ef44440d;border-color:#ef44444d}.test-response h4{margin-bottom:12px;color:#f1f5f9}.response-content{background:#0f172a;padding:12px;border-radius:6px;margin-bottom:16px}.response-text{color:#e2e8f0;margin:0;line-height:1.6;white-space:pre-wrap}.tool-calls{margin-top:16px;padding-top:16px;border-top:1px solid #334155}.tool-calls h5{display:flex;align-items:center;gap:8px;color:#f59e0b;margin-bottom:12px;font-size:14px}.tool-call{background:#0f172a;border:1px solid #334155;border-radius:6px;padding:12px;margin-bottom:12px}.tool-name{color:#e2e8f0;margin-bottom:8px}.tool-name code{color:#3b82f6;background:#3b82f61a;padding:2px 6px;border-radius:4px}.tool-arguments{margin-top:8px}.tool-arguments span{font-size:12px;color:#64748b}.tool-arguments pre{background:#1e293b;padding:8px;border-radius:4px;margin-top:4px;overflow-x:auto;font-size:12px;color:#e2e8f0}.response-meta{display:flex;gap:16px;margin-top:16px;padding-top:16px;border-top:1px solid #334155;font-size:12px;color:#64748b}.error-message{color:#fca5a5;margin:0}@media(max-width:768px){.providers-grid,.form-row,.details-grid{grid-template-columns:1fr}.modal-large{width:95%;margin:10px}}.models-page{padding-bottom:40px}.header-stats{display:flex;gap:12px}.stat-badge{display:flex;align-items:center;gap:6px;padding:8px 16px;background:#1e293b;border-radius:8px;font-size:14px;color:#e2e8f0;border:1px solid #334155}.stat-badge.warning{background:#f59e0b1a;border-color:#f59e0b4d;color:#fbbf24}.stat-badge.success{background:#22c55e1a;border-color:#22c55e4d;color:#4ade80}.filters-bar{display:flex;gap:16px;margin-bottom:24px;flex-wrap:wrap}.view-toggle{display:flex;gap:8px}.view-toggle .btn{padding:8px 16px;font-size:14px}.search-box{flex:1;position:relative;display:flex;align-items:center}.search-box svg{position:absolute;left:12px;color:#64748b}.search-box input{padding-left:40px;width:100%}.filter-select{width:200px}.items-per-page-select{width:140px}.models-table{font-size:14px}.model-info{display:flex;align-items:flex-start;gap:12px}.model-icon{color:#3b82f6;margin-top:2px}.model-name{font-weight:600;color:#f1f5f9;margin-bottom:2px}.model-id{font-size:12px;color:#64748b;font-family:monospace}.manual-badge{display:inline-block;background:#8b5cf61a;color:#8b5cf6;padding:2px 6px;border-radius:4px;font-size:10px;margin-top:4px}.provider-badge{display:inline-block;background:#3b82f61a;color:#3b82f6;padding:4px 10px;border-radius:6px;font-size:12px;font-weight:500}.context-window{display:flex;align-items:center;gap:6px;color:#6ee7b7}.no-data{color:#64748b;font-style:italic}.pricing-info{font-size:12px}.price-row{display:flex;align-items:center;gap:4px;color:#cbd5e1}.price-row svg{color:#10b981}.status-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:6px;font-size:12px;font-weight:500}.status-badge.active{background:#10b9811a;color:#6ee7b7}.status-badge.disabled{background:#ef44441a;color:#fca5a5}.model-error{display:inline-flex;margin-left:8px;color:#f59e0b;cursor:help}.disabled-row{opacity:.6;background:#ef44440d}.blacklisted-badge{display:inline-block;background:#ef44441a;color:#ef4444;padding:2px 6px;border-radius:4px;font-size:10px;margin-top:4px;margin-left:4px}.free-badge{display:inline-block;background:#10b9811a;color:#10b981;padding:2px 6px;border-radius:4px;font-size:10px;margin-top:4px;margin-left:4px;font-weight:500}.models-section{margin-bottom:32px}.section-title{font-size:18px;font-weight:600;color:#f1f5f9;margin-bottom:16px;padding-bottom:8px;border-bottom:1px solid #334155}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;padding-bottom:8px;border-bottom:1px solid #334155}.section-header .section-title{margin-bottom:0;padding-bottom:0;border-bottom:none}.pagination{display:flex;align-items:center;gap:12px}.pagination-info{font-size:14px;color:#94a3b8;min-width:100px;text-align:center}.pagination .btn:disabled{opacity:.5;cursor:not-allowed}.test-result{padding:0}.test-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:12px;border-bottom:1px solid #334155}.test-model-id{font-family:monospace;font-size:14px;color:#e2e8f0;background:#1e293b;padding:6px 12px;border-radius:6px}.test-sections{display:flex;flex-direction:column;gap:12px;margin-bottom:16px}.test-section-card{background:#1e293b;border-radius:8px;padding:16px}.test-section-card h4{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:#94a3b8;margin:0 0 12px}.test-success{display:flex;align-items:center;gap:8px;color:#6ee7b7;font-size:14px}.test-warning{display:flex;align-items:center;gap:8px;color:#fbbf24;font-size:14px}.test-fail{display:flex;align-items:center;gap:8px;color:#fca5a5;font-size:14px}.test-section{margin-bottom:20px}.test-section h4{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:#94a3b8;margin-bottom:8px}.test-response-text{background:#1e293b;padding:12px;border-radius:8px;font-size:14px;color:#e2e8f0;line-height:1.5;margin:0}.test-error{background:#ef44441a;padding:16px;border-radius:8px;border:1px solid rgba(239,68,68,.3)}.test-meta{display:flex;gap:16px;font-size:12px;color:#64748b;margin-top:16px;padding-top:12px;border-top:1px solid #334155}.status-badges{display:flex;flex-wrap:wrap;gap:4px}.status-badge.unhealthy{background:#f59e0b1a;color:#fbbf24}.status-badge.blocked,.status-badge.blacklisted{background:#ef44441a;color:#ef4444}.status-badge.pending{background:#f59e0b1a;color:#fbbf24}.blocked-status-container{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.block-reasons{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.block-reason{display:inline-block;background:#ef444426;color:#fecaca;padding:2px 6px;border-radius:4px;font-size:10px;font-weight:500;border:1px solid rgba(239,68,68,.3)}.empty-cell{padding:60px 20px}.empty-models{display:flex;flex-direction:column;align-items:center;gap:16px;color:#64748b}.empty-models svg{color:#475569}.empty-models p{margin:0}.header-actions{display:flex;align-items:center;gap:16px}.btn-sm{padding:6px 10px}.spinner{width:32px;height:32px;border:3px solid #334155;border-top-color:#3b82f6;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1024px){.filters-bar{flex-direction:column}.filter-select{width:100%}}.rate-limits-page{padding-bottom:40px}.stat-badge.danger{background:#ef44441a;border-color:#ef44444d;color:#fca5a5}.rate-limits-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:20px}.empty-state{grid-column:1 / -1;text-align:center;padding:60px 20px;background:#1e293b;border-radius:12px;border:2px dashed #334155}.empty-icon{color:#475569;margin-bottom:16px}.empty-state h3{color:#94a3b8;margin-bottom:8px}.empty-state p{color:#64748b}.rate-limit-card{background:#1e293b;border-radius:12px;padding:20px;border:1px solid #334155;transition:all .2s}.rate-limit-card:hover{border-color:#475569}.rate-limit-card.limited{border-color:#ef444480;background:#ef44440d}.rate-limit-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #334155}.model-info h3{font-size:14px;font-weight:600;color:#f1f5f9;margin-bottom:4px;word-break:break-all}.limited-badge{display:inline-flex;align-items:center;gap:4px;background:#ef444433;color:#fca5a5;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600}.usage-indicator{display:flex;align-items:center;gap:6px;color:#3b82f6;font-size:13px;font-weight:500}.rate-limit-stats{margin-bottom:16px}.stat-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid rgba(51,65,85,.5)}.stat-row:last-child{border-bottom:none}.stat-label{display:flex;align-items:center;gap:8px;color:#94a3b8;font-size:13px}.stat-value{color:#e2e8f0;font-weight:500;font-size:13px}.limitation-info{display:flex;gap:12px;padding:12px;background:#ef44441a;border-radius:8px;margin-bottom:16px}.limitation-info svg{color:#ef4444;flex-shrink:0}.limitation-info p{font-size:13px;color:#fca5a5}.time-left{color:#f59e0b;margin-top:4px}.rate-limit-actions{display:flex;gap:8px}.rate-limit-actions .btn{flex:1}.errors-page{padding-bottom:40px}.errors-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;margin-bottom:24px}.summary-card{background:#1e293b;border-radius:12px;padding:20px;display:flex;align-items:center;gap:16px;border:1px solid #334155}.summary-card svg{color:#ef4444}.summary-card.warning svg{color:#f59e0b}.summary-card h3{font-size:1.75rem;font-weight:700;color:#f1f5f9}.summary-card p{color:#94a3b8;font-size:14px}.filter-group{display:flex;align-items:center;gap:12px}.filter-group svg{color:#64748b}.filter-group select{width:200px}.empty-errors{text-align:center;padding:60px 20px}.empty-errors .empty-icon{color:#10b981;margin-bottom:16px}.empty-errors h3{color:#f1f5f9;margin-bottom:8px}.empty-errors p{color:#64748b}.errors-list{display:flex;flex-direction:column;gap:16px}.error-item{background:#ef44440d;border:1px solid rgba(239,68,68,.2);border-radius:8px;padding:16px}.error-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.error-type{display:flex;align-items:center;gap:8px}.error-type svg{color:#ef4444}.error-type-badge{background:#ef444433;color:#fca5a5;padding:2px 8px;border-radius:4px;font-size:12px;font-weight:600;text-transform:uppercase}.error-meta{display:flex;align-items:center;gap:16px;font-size:13px}.error-count{color:#f59e0b;font-weight:500}.error-time{display:flex;align-items:center;gap:6px;color:#64748b}.error-model{display:flex;align-items:center;gap:8px;margin-bottom:12px;color:#94a3b8}.error-model code{background:#0f172a;padding:4px 8px;border-radius:4px;font-size:13px;color:#3b82f6}.error-message{background:#0f172a;border-radius:6px;padding:12px;margin-bottom:12px}.error-message p{color:#fca5a5;font-size:13px;font-family:monospace;line-height:1.5;margin:0}.error-actions{display:flex;justify-content:flex-end}@media(max-width:768px){.error-header{flex-direction:column;align-items:flex-start;gap:8px}.error-meta{flex-wrap:wrap}}.fallback-page{padding-bottom:40px}.header-actions{display:flex;gap:12px}.save-notification{display:flex;align-items:center;gap:10px;background:#10b9811a;border:1px solid rgba(16,185,129,.3);color:#6ee7b7;padding:12px 20px;border-radius:8px;margin-bottom:24px;animation:slideIn .3s ease}@keyframes slideIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:24px}.setting-item{display:flex;justify-content:space-between;align-items:flex-start;padding:16px 0;border-bottom:1px solid #334155}.setting-item:last-child{border-bottom:none}.setting-info{flex:1;margin-right:20px}.setting-label{display:block;font-weight:600;color:#f1f5f9;margin-bottom:4px}.setting-description{color:#64748b;font-size:13px;margin:0}.setting-input{width:150px}.toggle{position:relative;display:inline-block;width:48px;height:24px}.toggle input{opacity:0;width:0;height:0}.toggle-slider{position:absolute;cursor:pointer;inset:0;background-color:#475569;transition:.3s;border-radius:24px}.toggle-slider:before{position:absolute;content:"";height:18px;width:18px;left:3px;bottom:3px;background-color:#fff;transition:.3s;border-radius:50%}.toggle input:checked+.toggle-slider{background-color:#3b82f6}.toggle input:checked+.toggle-slider:before{transform:translate(24px)}.providers-priority{margin-bottom:16px}.priority-item{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #334155}.priority-item:last-child{border-bottom:none}.priority-info{display:flex;align-items:center;gap:12px}.priority-name{font-weight:500;color:#e2e8f0}.priority-status{font-size:11px;padding:2px 8px;border-radius:4px;font-weight:500}.priority-status.enabled{background:#10b9811a;color:#6ee7b7}.priority-status.disabled{background:#ef44441a;color:#fca5a5}.priority-input{width:80px;text-align:center}.priority-help{color:#64748b;font-size:12px;margin:0;padding-top:12px;border-top:1px solid #334155}.empty-priority{text-align:center;padding:40px;color:#64748b}.info-card{background:linear-gradient(135deg,#3b82f61a,#8b5cf61a)}.info-content{color:#cbd5e1;font-size:14px;line-height:1.7}.info-content p{margin-bottom:16px}.info-content h4{color:#f1f5f9;margin-bottom:12px;font-size:14px}.info-content ul{margin-bottom:16px;padding-left:20px}.info-content li{margin-bottom:8px}.info-content strong{color:#3b82f6}@media(max-width:768px){.settings-grid{grid-template-columns:1fr}.setting-item{flex-direction:column;gap:12px}.setting-input{width:100%}.header-actions{flex-direction:column;width:100%}}.monitoring-page{padding:1.5rem;max-width:1400px;margin:0 auto}.page-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:2rem;gap:1rem}.page-header h1{font-size:1.875rem;font-weight:700;color:var(--text-primary);margin:0 0 .5rem}.page-description{color:var(--text-secondary);font-size:1rem;margin:0}.header-actions{display:flex;gap:.75rem;flex-wrap:wrap}.section-title{font-size:1.5rem;font-weight:600;color:var(--text-primary);margin:2rem 0 1.5rem;padding-bottom:.5rem;border-bottom:2px solid var(--border)}.monitoring-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;color:var(--text-secondary)}.monitoring-loading .spin{animation:spin 1s linear infinite;margin-bottom:1rem;color:var(--primary)}.monitoring-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:2.5rem}.loadbalancer-stats{margin-bottom:2.5rem}.monitoring-stats .stat-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.25rem;display:flex;align-items:center;gap:1rem;transition:all .2s ease}.monitoring-stats .stat-card:hover{border-color:var(--primary);transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.monitoring-stats .stat-icon{width:48px;height:48px;border-radius:10px;display:flex;align-items:center;justify-content:center}.monitoring-stats .stat-icon.requests{background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff}.monitoring-stats .stat-icon.success{background:linear-gradient(135deg,#10b981,#059669);color:#fff}.monitoring-stats .stat-icon.tokens{background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff}.monitoring-stats .stat-icon.models{background:linear-gradient(135deg,#8b5cf6,#7c3aed);color:#fff}.monitoring-stats .stat-icon.today{background:linear-gradient(135deg,#ec4899,#db2777);color:#fff}.monitoring-stats .stat-icon.time{background:linear-gradient(135deg,#6b7280,#4b5563);color:#fff}.monitoring-stats .stat-info h3{font-size:1.5rem;font-weight:700;color:var(--text-primary);margin:0}.monitoring-stats .stat-info p{font-size:.875rem;color:var(--text-secondary);margin:.25rem 0 0}.monitoring-stats .stat-subtitle{font-size:.75rem;color:var(--text-muted);margin-top:.25rem;display:block}.monitoring-tabs{display:flex;gap:.5rem;margin-bottom:2rem;margin-top:1.5rem;border-bottom:1px solid var(--border);padding-bottom:.5rem}.monitoring-tabs .tab{display:flex;align-items:center;gap:.5rem;padding:.75rem 1.25rem;border-radius:8px;font-weight:500;color:var(--text-secondary);background:transparent;border:none;cursor:pointer;transition:all .2s ease}.monitoring-tabs .tab:hover{background:var(--surface-hover);color:var(--text-primary)}.monitoring-tabs .tab.active{background:var(--primary);color:#fff}.tab-content{animation:fadeIn .3s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:1.5rem;margin-bottom:2.5rem}.cards-grid:last-child{margin-bottom:0}.cards-grid .full-width{grid-column:1 / -1}.chart-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.5rem}.chart-card .card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.5rem}.chart-card .card-title{display:flex;align-items:center;gap:.5rem;font-size:1.125rem;font-weight:600;color:var(--text-primary);margin:0}.chart-container{display:flex;flex-direction:column;gap:.75rem}.chart-bar-row{display:flex;align-items:center;gap:1rem}.chart-label{min-width:120px;max-width:150px;font-size:.875rem;color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right}.chart-bar-wrapper{flex:1;display:flex;align-items:center;gap:.75rem}.chart-bar{height:24px;border-radius:4px;transition:width .5s ease;min-width:4px}.chart-value{font-size:.875rem;font-weight:600;color:var(--text-primary);min-width:60px}.timeline-chart .timeline-item{display:flex;align-items:center;gap:1rem}.timeline-chart .timeline-label{min-width:100px;font-size:.875rem;color:var(--text-secondary);text-align:right}.timeline-chart .timeline-bar-wrapper{flex:1;display:flex;align-items:center;gap:.75rem}.timeline-chart .timeline-bar{height:20px;background:linear-gradient(90deg,var(--primary),var(--primary-light));border-radius:4px;transition:width .5s ease;min-width:4px}.timeline-chart .timeline-value{font-size:.875rem;font-weight:500;color:var(--text-primary);min-width:50px}.filters{display:flex;gap:.75rem;align-items:center}.filters .filter-select{min-width:140px}.customization-controls{display:flex;justify-content:flex-start;margin-bottom:2rem;margin-top:1.5rem;padding:1rem;background:var(--surface-hover);border-radius:8px;border:1px solid var(--border)}.control-group{display:flex;align-items:center;gap:.5rem}.control-group label{font-weight:500;color:var(--text-primary);font-size:.875rem}.control-group select{min-width:160px}.monitoring-table{width:100%}.monitoring-table th{text-align:left;padding:.875rem 1rem;font-weight:600;font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:var(--text-secondary);border-bottom:1px solid var(--border)}.monitoring-table td{padding:1rem;border-bottom:1px solid var(--border-light);font-size:.875rem;color:var(--text-primary)}.monitoring-table tr:last-child td{border-bottom:none}.monitoring-table tr:hover td{background:var(--surface-hover)}.monitoring-table .rank-cell{font-weight:700;color:var(--primary);text-align:center;width:60px}.monitoring-table .number-cell{font-family:Monaco,Menlo,monospace;font-weight:500}.model-cell .model-name{font-weight:500;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.distribution-row{display:flex;flex-direction:column;gap:.5rem;padding:.75rem 0;border-bottom:1px solid var(--border-light)}.distribution-row:last-child{border-bottom:none}.distribution-info{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.distribution-name{font-size:.875rem;font-weight:500;color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200px}.distribution-provider{font-size:.75rem;color:var(--text-muted);background:var(--surface-hover);padding:.125rem .5rem;border-radius:12px;text-transform:capitalize}.distribution-value{font-size:.875rem;font-weight:600;color:var(--text-secondary);white-space:nowrap}.distribution-bar-wrapper{width:100%;height:8px;background:var(--surface-hover);border-radius:4px;overflow:hidden}.distribution-bar{height:100%;border-radius:4px;transition:width .5s ease;min-width:2px}.provider-cell{display:flex;align-items:center;gap:.5rem}.provider-cell .provider-name{font-weight:500}.pagination{display:flex;align-items:center;justify-content:center;gap:1rem;padding:1rem;border-top:1px solid var(--border)}.pagination-info{font-size:.875rem;color:var(--text-secondary)}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.5rem;border-bottom:1px solid var(--border)}.modal-title{display:flex;align-items:center;gap:.5rem;font-size:1.125rem;font-weight:600;color:var(--text-primary);margin:0}.modal-close{background:none;border:none;color:var(--text-secondary);cursor:pointer;padding:.25rem;border-radius:4px;transition:all .2s ease}.modal-close:hover{background:var(--surface-hover);color:var(--text-primary)}@media(max-width:768px){.monitoring-page{padding:1rem}.monitoring-stats{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.monitoring-stats .stat-card{padding:1rem}.monitoring-stats .stat-icon{width:40px;height:40px}.monitoring-stats .stat-info h3{font-size:1.25rem}.monitoring-tabs{flex-wrap:wrap;gap:.25rem}.monitoring-tabs .tab{padding:.5rem .75rem;font-size:.875rem}.cards-grid{grid-template-columns:1fr}.chart-label{min-width:80px;max-width:100px;font-size:.75rem}.chart-value{font-size:.75rem}.filters{flex-wrap:wrap}.monitoring-table{font-size:.75rem}.monitoring-table th,.monitoring-table td{padding:.75rem .5rem}.model-cell .model-name{max-width:120px}}.blacklist-page{padding:1.5rem;max-width:1400px;margin:0 auto}.blacklist-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;color:var(--text-secondary)}.blacklist-loading .spin{animation:spin 1s linear infinite;margin-bottom:1rem;color:var(--primary)}.page-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:2rem;flex-wrap:wrap;gap:1rem}.page-header h1{display:flex;align-items:center;gap:.75rem;font-size:1.875rem;font-weight:700;color:var(--text-primary);margin:0}.page-description{color:var(--text-secondary);margin:.5rem 0 0}.header-actions{display:flex;gap:.75rem}.blacklist-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:2rem}.blacklist-stats .stat-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.25rem;display:flex;align-items:center;gap:1rem}.blacklist-stats .stat-icon{width:48px;height:48px;border-radius:10px;display:flex;align-items:center;justify-content:center}.blacklist-stats .stat-icon.blacklisted{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff}.blacklist-stats .stat-icon.providers{background:linear-gradient(135deg,#8b5cf6,#7c3aed);color:#fff}.blacklist-stats .stat-info h3{font-size:1.5rem;font-weight:700;color:var(--text-primary);margin:0}.blacklist-stats .stat-info p{font-size:.875rem;color:var(--text-secondary);margin:.25rem 0 0}.alert{display:flex;align-items:center;gap:.75rem;padding:1rem;border-radius:8px;margin-bottom:1.5rem}.alert-error{background:#ef44441a;border:1px solid rgba(239,68,68,.2);color:#ef4444}.card{background:var(--surface);border:1px solid var(--border);border-radius:12px;overflow:hidden}.card-header{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.5rem;border-bottom:1px solid var(--border);flex-wrap:wrap;gap:1rem}.card-title{display:flex;align-items:center;gap:.5rem;font-size:1.125rem;font-weight:600;color:var(--text-primary);margin:0}.blacklist-table{width:100%}.blacklist-table th{text-align:left;padding:.875rem 1.5rem;font-weight:600;font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:var(--text-secondary);border-bottom:1px solid var(--border);background:var(--surface-hover)}.blacklist-table td{padding:1rem 1.5rem;border-bottom:1px solid var(--border-light);font-size:.875rem;color:var(--text-primary)}.blacklist-table tr:last-child td{border-bottom:none}.blacklist-table tr:hover td{background:var(--surface-hover)}.model-cell{display:flex;align-items:center;gap:.5rem}.model-cell .model-name{font-weight:500;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-id{font-family:Monaco,Menlo,monospace;font-size:.75rem;background:var(--surface-hover);padding:.25rem .5rem;border-radius:4px;color:var(--text-secondary)}.provider-badge{display:inline-flex;align-items:center;padding:.25rem .75rem;background:var(--surface-hover);border-radius:20px;font-size:.75rem;font-weight:500;color:var(--text-secondary);text-transform:capitalize}.badge{display:inline-flex;align-items:center;padding:.25rem .75rem;border-radius:20px;font-size:.75rem;font-weight:500}.badge-danger{background:#ef44441a;color:#ef4444}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem 2rem;text-align:center;color:var(--text-secondary)}.empty-state svg{color:var(--success);margin-bottom:1rem}.empty-state h3{font-size:1.25rem;font-weight:600;color:var(--text-primary);margin:0 0 .5rem}.empty-state p{margin:0}.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.625rem 1rem;border-radius:8px;font-weight:500;font-size:.875rem;cursor:pointer;transition:all .2s ease;border:none}.btn-secondary{background:var(--surface-hover);color:var(--text-primary)}.btn-secondary:hover{background:var(--border)}.btn:disabled{opacity:.5;cursor:not-allowed}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.modal{background:var(--surface);border-radius:12px;width:100%;max-width:500px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 50px #0000004d}.modal-sm{max-width:400px}.modal-header{display:flex;align-items:center;gap:.75rem;padding:1.25rem 1.5rem;border-bottom:1px solid var(--border)}.modal-title{font-size:1.125rem;font-weight:600;color:var(--text-primary);margin:0;display:flex;align-items:center;gap:.5rem}.modal-body{padding:1.5rem}.modal-footer{display:flex;justify-content:flex-end;gap:.75rem;padding:1rem 1.5rem;border-top:1px solid var(--border)}.warning-text{color:var(--text-secondary);line-height:1.6;margin:0}.info-card{margin-bottom:2rem;background:linear-gradient(135deg,var(--surface) 0%,var(--surface-hover) 100%)}.info-content{padding:1.5rem}.recovery-steps{display:flex;align-items:stretch;gap:1rem;flex-wrap:wrap}.step{flex:1;min-width:200px;display:flex;gap:.75rem;padding:1rem;background:var(--surface);border-radius:8px;border:1px solid var(--border)}.step-number{width:28px;height:28px;border-radius:50%;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:.875rem;flex-shrink:0}.step-content strong{display:block;color:var(--text-primary);margin-bottom:.25rem;font-size:.875rem}.step-content p{margin:0;font-size:.75rem;color:var(--text-secondary);line-height:1.4}.step-arrow{display:flex;align-items:center;color:var(--text-muted);font-size:1.5rem;font-weight:300}.stat-subtitle{font-size:.75rem;color:var(--text-muted);margin-top:.25rem}.stat-icon.recheck{background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff}.badge-warning{background:#f59e0b1a;color:#f59e0b;display:inline-flex;align-items:center;gap:.25rem}.time-info{display:inline-flex;align-items:center;gap:.375rem;color:var(--text-secondary);font-size:.875rem}.recovery-progress{display:flex;flex-direction:column;gap:.375rem;min-width:150px}.progress-bar{width:100%;height:6px;background:var(--surface-hover);border-radius:3px;overflow:hidden}.progress-fill{height:100%;background:linear-gradient(90deg,#10b981,#34d399);border-radius:3px;transition:width .3s ease}.progress-text{font-size:.75rem;color:var(--text-secondary);font-weight:500}.reason-text{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;color:var(--text-secondary);font-size:.875rem}.recheck-row{background:#f59e0b0d}.recheck-row:hover{background:#f59e0b1a!important}.table-toolbar{display:flex;align-items:center;gap:1rem;padding:1rem 1.5rem;border-bottom:1px solid var(--border);flex-wrap:wrap}.search-results{font-size:.875rem;color:var(--text-secondary)}.search-box{position:relative;display:flex;align-items:center;flex:1;max-width:400px}.search-icon{position:absolute;left:.75rem;color:var(--text-muted);pointer-events:none}.search-input{width:100%;padding:.625rem 2rem .625rem 2.5rem;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text-primary);font-size:.875rem;transition:all .2s ease}.search-input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(var(--primary-rgb),.1)}.search-input::placeholder{color:var(--text-muted)}.search-clear{position:absolute;right:.5rem;background:none;border:none;color:var(--text-muted);font-size:1.25rem;cursor:pointer;padding:.25rem;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .2s ease}.search-clear:hover{background:var(--surface-hover);color:var(--text-primary)}.pagination{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.5rem;border-top:1px solid var(--border);flex-wrap:wrap}.pagination-info{font-size:.875rem;color:var(--text-secondary);white-space:nowrap}.pagination-controls{display:flex;align-items:center;gap:.25rem}.pagination-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text-primary);cursor:pointer;transition:all .2s ease}.pagination-btn:hover:not(:disabled){background:var(--surface-hover);border-color:var(--primary)}.pagination-btn:disabled{opacity:.4;cursor:not-allowed}.pagination-page{font-size:.875rem;font-weight:500;color:var(--text-primary);padding:0 .75rem;min-width:100px;text-align:center}.pagination-size{display:flex;align-items:center;gap:.5rem;font-size:.875rem;color:var(--text-secondary)}.pagination-size select{padding:.375rem .5rem;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text-primary);font-size:.875rem;cursor:pointer}.pagination-size select:focus{outline:none;border-color:var(--primary)}.recheck-progress-card{margin-bottom:2rem;border:2px solid var(--primary)}.recheck-progress-card .card-title .pulse{animation:pulse 2s infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.recheck-progress-content{padding:1.5rem}.recheck-main-progress{margin-bottom:1.5rem}.recheck-progress-info{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.recheck-progress-label{font-size:.875rem;color:var(--text-primary);font-weight:500}.recheck-progress-label code{background:var(--surface-hover);padding:.25rem .5rem;border-radius:4px;font-family:Monaco,Menlo,monospace;font-size:.8rem}.recheck-progress-percentage{font-size:.875rem;font-weight:600;color:var(--primary)}.recheck-progress-bar-container{width:100%;height:12px;background:var(--surface-hover);border-radius:6px;overflow:hidden;position:relative}.recheck-progress-bar{height:100%;background:linear-gradient(90deg,var(--primary),var(--primary-light));border-radius:6px;transition:width .3s ease;position:relative}.recheck-progress-bar:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);animation:shimmer 2s infinite}@keyframes shimmer{0%{transform:translate(-100%)}to{transform:translate(100%)}}.recheck-results-section{border-top:1px solid var(--border);padding-top:1.5rem}.recheck-results-title{font-size:.875rem;font-weight:600;color:var(--text-secondary);margin:0 0 1rem;text-transform:uppercase;letter-spacing:.05em}.recheck-results-list{display:flex;flex-direction:column;gap:.75rem}.recheck-result-item{display:flex;flex-direction:column;gap:.5rem;padding:.875rem;border-radius:8px;border:1px solid var(--border);background:var(--surface);transition:all .2s ease}.recheck-result-item:hover{background:var(--surface-hover)}.recheck-result-item.success{border-left:3px solid #10b981}.recheck-result-item.failed{border-left:3px solid #ef4444}.recheck-result-main{display:flex;align-items:center;gap:.75rem}.recheck-result-status{flex-shrink:0}.icon-success{color:#10b981}.icon-failed{color:#ef4444}.recheck-result-model{font-weight:500;color:var(--text-primary);flex:1}.recheck-result-provider{font-size:.75rem;color:var(--text-muted);background:var(--surface-hover);padding:.25rem .5rem;border-radius:4px}.recheck-result-details{display:flex;gap:.5rem;margin-left:1.625rem}.test-badge{font-size:.7rem;padding:.125rem .375rem;border-radius:4px;font-weight:500;text-transform:uppercase}.test-badge.pass{background:#10b9811a;color:#10b981}.test-badge.fail{background:#ef44441a;color:#ef4444}.recheck-result-error{margin-left:1.625rem;font-size:.8rem;color:#ef4444;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recheck-results-more{text-align:center;padding:.75rem;color:var(--text-muted);font-size:.875rem;font-style:italic}.badge-info{background:#3b82f61a;color:#3b82f6}.recheck-header-badges{display:flex;align-items:center;gap:.5rem}.countdown-badge{display:inline-flex;align-items:center;gap:.25rem;animation:pulse-warning 2s infinite}@keyframes pulse-warning{0%,to{opacity:1}50%{opacity:.7}}@media(max-width:768px){.pagination{flex-direction:column;align-items:stretch}.pagination-controls,.pagination-size{justify-content:center}.search-box{max-width:100%}.table-toolbar{flex-direction:column;align-items:stretch}.recheck-result-details,.recheck-result-error{margin-left:0}}@media(max-width:768px){.blacklist-page{padding:1rem}.page-header{flex-direction:column;align-items:flex-start}.header-actions{width:100%;justify-content:flex-end}.blacklist-stats{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.blacklist-table th,.blacklist-table td{padding:.75rem 1rem}.model-cell .model-name{max-width:150px}}.proxies-page{padding:24px;max-width:1400px;margin:0 auto}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.header-title{display:flex;align-items:center;gap:12px}.header-title h1{margin:0;font-size:24px;font-weight:600;color:var(--text-primary)}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px}.stat-card{background:var(--bg-secondary);border-radius:12px;padding:20px;display:flex;align-items:center;gap:16px;border:1px solid var(--border-color)}.stat-icon{width:48px;height:48px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#fff}.stat-icon.total{background:linear-gradient(135deg,#3b82f6,#2563eb)}.stat-icon.enabled{background:linear-gradient(135deg,#10b981,#059669)}.stat-icon.working{background:linear-gradient(135deg,#8b5cf6,#7c3aed)}.stat-icon.not-tested{background:linear-gradient(135deg,#f59e0b,#d97706)}.stat-info{display:flex;flex-direction:column}.stat-value{font-size:28px;font-weight:700;color:var(--text-primary);line-height:1}.stat-label{font-size:14px;color:var(--text-secondary);margin-top:4px}.proxies-list{background:var(--bg-secondary);border-radius:12px;border:1px solid var(--border-color);overflow:hidden}.proxies-table{width:100%;border-collapse:collapse}.proxies-table th,.proxies-table td{padding:16px;text-align:left;border-bottom:1px solid var(--border-color)}.proxies-table th{font-weight:600;color:var(--text-secondary);font-size:12px;text-transform:uppercase;letter-spacing:.5px;background:var(--bg-tertiary)}.proxies-table tbody tr:hover{background:var(--bg-tertiary)}.proxies-table tbody tr.disabled{opacity:.6}.badge{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:4px;font-size:12px;font-weight:500}.badge-success{background:#10b9811a;color:#10b981}.badge-error{background:#ef44441a;color:#ef4444}.badge-warning{background:#f59e0b1a;color:#f59e0b}.badge-disabled{background:#6b72801a;color:#6b7280}.protocol-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:4px;font-size:12px;font-weight:500;text-transform:uppercase}.protocol-badge.http,.protocol-badge.https{background:#3b82f61a;color:#3b82f6}.protocol-badge.socks5{background:#8b5cf61a;color:#8b5cf6}.mono{font-family:JetBrains Mono,monospace;font-size:13px}.action-buttons{display:flex;gap:8px}.btn-icon{width:32px;height:32px;border-radius:6px;border:none;background:var(--bg-tertiary);color:var(--text-secondary);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}.btn-icon:hover{background:var(--bg-primary);color:var(--text-primary)}.btn-icon.active{background:#10b9811a;color:#10b981}.btn-icon.btn-danger:hover{background:#ef44441a;color:#ef4444}.btn-icon:disabled{opacity:.5;cursor:not-allowed}.empty-state{text-align:center;padding:64px 24px}.empty-icon{color:var(--text-muted);margin-bottom:16px}.empty-state h3{margin:0 0 8px;color:var(--text-primary)}.empty-state p{margin:0 0 24px;color:var(--text-secondary)}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:24px}.modal{background:var(--bg-secondary);border-radius:12px;width:100%;max-width:480px;box-shadow:0 25px 50px -12px #00000040}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--border-color)}.modal-header h2{margin:0;font-size:18px;font-weight:600}.btn-close{background:none;border:none;color:var(--text-secondary);cursor:pointer;padding:4px;border-radius:4px;display:flex;align-items:center;justify-content:center}.btn-close:hover{background:var(--bg-tertiary);color:var(--text-primary)}.modal-body{padding:24px}.form-group label{display:block;font-size:14px;font-weight:500;color:var(--text-secondary);margin-bottom:6px}.form-group input,.form-group select{width:100%;padding:10px 12px;border:1px solid var(--border-color);border-radius:6px;background:var(--bg-primary);color:var(--text-primary);font-size:14px;transition:border-color .2s}.form-group input:focus,.form-group select:focus{outline:none;border-color:var(--primary-color)}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.checkbox-label{display:flex!important;align-items:center;gap:8px;cursor:pointer}.checkbox-label input[type=checkbox]{width:auto;margin:0}.modal-footer{display:flex;justify-content:flex-end;gap:12px;padding:20px 24px;border-top:1px solid var(--border-color)}.btn{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;border:none}.btn-primary{background:var(--primary-color);color:#fff}.btn-primary:hover{background:var(--primary-hover)}.btn-secondary{background:var(--bg-tertiary);color:var(--text-primary)}.btn-secondary:hover{background:var(--bg-primary)}.loading-spinner{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:64px;color:var(--text-secondary)}.loading-spinner p{margin-top:16px}.alert{display:flex;align-items:center;gap:8px;padding:12px 16px;border-radius:8px;margin-bottom:16px}.alert-error{background:#ef44441a;color:#ef4444;border:1px solid rgba(239,68,68,.2)}.text-success{color:#10b981}.text-muted{color:var(--text-secondary)}@media(max-width:768px){.proxies-page{padding:16px}.page-header{flex-direction:column;gap:16px;align-items:flex-start}.stats-grid{grid-template-columns:repeat(2,1fr)}.form-row{grid-template-columns:1fr}.proxies-table{font-size:13px}.proxies-table th,.proxies-table td{padding:12px 8px}}.cleanup-page{padding:24px;max-width:1200px;margin:0 auto}.page-header{margin-bottom:32px}.page-header h1{font-size:28px;font-weight:600;color:#1a1a2e;margin:0 0 8px}.page-description{color:#666;margin:0}.cleanup-content{display:flex;flex-direction:column;gap:24px}.cleanup-section{background:#fff;border-radius:12px;padding:24px;box-shadow:0 1px 3px #0000001a}.section-header{display:flex;align-items:center;gap:12px;margin-bottom:16px}.section-header.warning{color:#dc2626}.section-header h2{font-size:20px;font-weight:600;margin:0}.cleanup-warning-text{color:#666;line-height:1.6;margin:0}.cleanup-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}@media(max-width:768px){.cleanup-grid{grid-template-columns:1fr}}.cleanup-card{background:#fff;border-radius:12px;padding:24px;box-shadow:0 1px 3px #0000001a}.cleanup-card.preserved{border:2px solid #10b981}.cleanup-card h3{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:600;margin:0 0 20px;color:#1a1a2e}.cleanup-card.preserved h3{color:#10b981}.cleanup-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:16px}.cleanup-item{display:flex;align-items:flex-start;gap:12px;padding:12px;background:#f8f9fa;border-radius:8px}.cleanup-item-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;background:#dc2626;color:#fff;border-radius:8px;flex-shrink:0}.cleanup-item-icon.preserved{background:#10b981}.cleanup-item-content{display:flex;flex-direction:column;gap:4px}.cleanup-item-title{font-weight:600;color:#1a1a2e}.cleanup-item-desc{font-size:14px;color:#666}.cleanup-actions{display:flex;justify-content:center;padding:24px 0}.btn-large{padding:16px 32px;font-size:18px}.cleanup-result{background:#fff;border-radius:12px;padding:24px;box-shadow:0 1px 3px #0000001a;display:flex;flex-direction:column;gap:16px;align-items:center;text-align:center}.cleanup-result.success{border:2px solid #10b981}.cleanup-result.error{border:2px solid #dc2626}.result-header{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:600}.cleanup-result.success .result-header{color:#10b981}.cleanup-result.error .result-header{color:#dc2626}.result-details{color:#666}.error-count{color:#dc2626;font-weight:600}.modal-confirm{max-width:500px}.confirm-text{font-size:16px;color:#1a1a2e;margin-bottom:16px}.confirm-list{list-style:disc;padding-left:20px;margin-bottom:20px;color:#666}.confirm-list li{margin-bottom:8px;line-height:1.5}.confirm-list li strong{color:#10b981}.confirm-warning{background:#fef2f2;color:#dc2626;padding:12px 16px;border-radius:8px;font-weight:600;text-align:center;margin:0}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.spin{animation:spin 1s linear infinite}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif;background-color:#0f172a;color:#e2e8f0;line-height:1.6}.app{min-height:100vh;display:flex;flex-direction:column}.card{background:#1e293b;border-radius:12px;padding:20px;border:1px solid #334155;box-shadow:0 4px 6px -1px #0000004d}.card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #334155}.card-title{font-size:1.25rem;font-weight:600;color:#f1f5f9}.btn{padding:8px 16px;border-radius:8px;border:none;cursor:pointer;font-size:14px;font-weight:500;transition:all .2s;display:inline-flex;align-items:center;gap:8px}.btn-primary{background:#3b82f6;color:#fff}.btn-primary:hover{background:#2563eb}.btn-secondary{background:#475569;color:#fff}.btn-secondary:hover{background:#64748b}.btn-success{background:#10b981;color:#fff}.btn-success:hover{background:#059669}.btn-danger{background:#ef4444;color:#fff}.btn-danger:hover{background:#dc2626}.btn-warning{background:#f59e0b;color:#fff}.btn-warning:hover{background:#d97706}.badge{padding:4px 8px;border-radius:4px;font-size:12px;font-weight:500}.badge-success{background:#065f46;color:#6ee7b7}.badge-warning{background:#92400e;color:#fcd34d}.badge-danger{background:#991b1b;color:#fca5a5}.badge-info{background:#1e40af;color:#93c5fd}.input{width:100%;padding:10px 12px;border:1px solid #475569;border-radius:8px;background:#0f172a;color:#e2e8f0;font-size:14px;transition:border-color .2s}.input:focus{outline:none;border-color:#3b82f6}.input::placeholder{color:#64748b}.form-group{margin-bottom:16px}.form-label{display:block;margin-bottom:6px;font-size:14px;font-weight:500;color:#cbd5e1}.status-dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:8px}.status-online{background:#10b981;box-shadow:0 0 8px #10b981}.status-offline{background:#ef4444}.status-warning{background:#f59e0b}.grid{display:grid;gap:20px}.grid-2{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:repeat(3,1fr)}.grid-4{grid-template-columns:repeat(4,1fr)}@media(max-width:1024px){.grid-4{grid-template-columns:repeat(2,1fr)}}@media(max-width:768px){.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}}.table-container{overflow-x:auto}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:12px;text-align:left;border-bottom:1px solid #334155}.table th{font-weight:600;color:#94a3b8;font-size:12px;text-transform:uppercase;letter-spacing:.5px}.table tbody tr:hover{background:#1e293b}.modal-overlay{position:fixed;inset:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.modal{background:#1e293b;border-radius:12px;max-width:600px;width:100%;max-height:90vh;overflow-y:auto;border:1px solid #334155}.modal-header{padding:20px;border-bottom:1px solid #334155;display:flex;justify-content:space-between;align-items:center}.modal-title{font-size:1.25rem;font-weight:600}.modal-close{background:none;border:none;color:#94a3b8;cursor:pointer;padding:4px;border-radius:4px;transition:color .2s}.modal-close:hover{color:#e2e8f0}.modal-body{padding:20px}.modal-footer{padding:16px 20px;border-top:1px solid #334155;display:flex;justify-content:flex-end;gap:12px}.modal-large{max-width:800px;width:90%}
