.admin-dashboard{padding:2rem;max-width:1600px;margin:0 auto}.dashboard-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.header-content h1{color:#1f2937;font-size:2rem;margin-bottom:.5rem}.header-content p{color:#fff;font-size:1rem}.refresh-btn{padding:.75rem 1.5rem;background:var(--accent);color:var(--bg);border:none;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s}.refresh-btn:hover:not(:disabled){background:var(--accent-hover);transform:translateY(-2px)}.refresh-btn:disabled{background:#9ca3af;cursor:not-allowed}.health-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:2rem}.overview-card{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 4px 20px #0000001a;display:flex;gap:1rem;align-items:center;transition:all .2s}.overview-card.overall{border:3px solid}.overview-icon{flex-shrink:0}.overview-content h3{color:#6b7280;font-size:.875rem;font-weight:600;text-transform:uppercase;margin-bottom:.5rem}.status-text{font-size:1.5rem;font-weight:700;margin-bottom:.25rem}.status-detail{color:#6b7280;font-size:.875rem}.metric-value{font-size:2rem;font-weight:700;color:#1f2937;margin-bottom:.25rem}.metric-label{color:#6b7280;font-size:.875rem}.services-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:1.5rem;margin-bottom:2rem}.service-card{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 4px 20px #0000001a;border-left:4px solid;transition:all .2s}.service-card:hover{transform:translateY(-4px);box-shadow:0 8px 30px #00000026}.service-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1rem}.service-title{display:flex;gap:.75rem;align-items:flex-start}.service-icon{color:var(--text-secondary);flex-shrink:0}.service-title h3{color:#1f2937;font-size:1.125rem;margin-bottom:.25rem}.service-id{color:#6b7280;font-size:.75rem;font-family:Courier New,monospace}.service-status{display:flex;align-items:center;gap:.5rem;font-size:.875rem;font-weight:600;text-transform:uppercase}.service-endpoint{background:#f3f4f6;padding:.75rem;border-radius:6px;margin-bottom:1rem;font-size:.75rem}.endpoint-label{color:#6b7280;font-weight:600;margin-right:.5rem}.service-endpoint code{color:#1f2937;word-break:break-all}.service-error{background:#fee2e2;border:1px solid #ef4444;padding:.75rem;border-radius:6px;margin-bottom:1rem;display:flex;align-items:center;gap:.5rem;color:#991b1b;font-size:.875rem}.service-metrics{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem;margin-bottom:1rem}.metric-item{display:flex;flex-direction:column;gap:.25rem}.metric-key{color:#6b7280;font-size:.75rem;text-transform:capitalize}.metric-value{color:#1f2937;font-size:.875rem;font-weight:600}.service-response-time{display:flex;align-items:center;gap:.5rem;color:#6b7280;font-size:.875rem;margin-bottom:1rem;padding-top:1rem;border-top:1px solid #e5e7eb}.service-footer{padding-top:.75rem;border-top:1px solid #e5e7eb}.last-checked{color:#9ca3af;font-size:.75rem}.connectivity-map{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 4px 20px #0000001a;margin-bottom:2rem}.connectivity-map h2{color:#1f2937;margin-bottom:2rem}.connectivity-diagram{display:flex;flex-direction:column;gap:2rem}.connection-flow{display:flex;align-items:center;justify-content:center;gap:1rem;flex-wrap:wrap}.connection-flow.secondary{opacity:.8}.flow-node{display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:1rem;background:#f9fafb;border:2px solid #e5e7eb;border-radius:8px;min-width:120px;position:relative}.flow-node span{font-size:.875rem;font-weight:600;color:#374151;text-align:center}.node-status{position:absolute;top:.5rem;right:.5rem;width:12px;height:12px;border-radius:50%}.node-status.healthy{background:#10b981;box-shadow:0 0 8px #10b98180}.node-status.degraded{background:#f59e0b;box-shadow:0 0 8px #f59e0b80}.node-status.unhealthy{background:#ef4444;box-shadow:0 0 8px #ef444480}.flow-arrow{font-size:1.5rem;color:#9ca3af;font-weight:700}.recommendations{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 4px 20px #0000001a}.recommendations h2{color:#1f2937;margin-bottom:1.5rem}.recommendation-list{display:flex;flex-direction:column;gap:1rem}.recommendation-item{display:flex;gap:1rem;padding:1rem;background:#f9fafb;border-radius:8px;border-left:4px solid #e5e7eb}.recommendation-item h4{color:#1f2937;font-size:.875rem;margin-bottom:.25rem}.recommendation-item p{color:#6b7280;font-size:.875rem;line-height:1.5}@media (max-width: 768px){.health-overview,.services-grid{grid-template-columns:1fr}.connection-flow{flex-direction:column}.flow-arrow{transform:rotate(90deg)}}[data-theme=dark] .health-grid .service-card{background:#14141499;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-color:#22222280}[data-theme=dark] .health-grid .service-card:hover{border-color:#323232cc}[data-theme=dark] .service-name{color:var(--text-primary)}[data-theme=dark] .service-id,[data-theme=dark] .service-endpoint{color:var(--text-muted)}[data-theme=dark] .health-header h2{color:var(--text-primary)}[data-theme=dark] .overview-card,[data-theme=dark] .service-card,[data-theme=dark] .connectivity-map,[data-theme=dark] .recommendations{background:#14141499;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 4px 20px #0000004d}[data-theme=dark] .header-content h1,[data-theme=dark] .connectivity-map h2,[data-theme=dark] .recommendations h2,[data-theme=dark] .service-title h3,[data-theme=dark] .recommendation-item h4{color:var(--text-primary)}[data-theme=dark] .overview-content h3,[data-theme=dark] .service-id,[data-theme=dark] .status-detail,[data-theme=dark] .metric-label,[data-theme=dark] .last-checked,[data-theme=dark] .service-response-time,[data-theme=dark] .recommendation-item p{color:var(--text-muted)}[data-theme=dark] .metric-value,[data-theme=dark] .status-text{color:var(--text-primary)}[data-theme=dark] .service-endpoint{background:#141414cc}[data-theme=dark] .service-endpoint code{color:var(--text-secondary)}[data-theme=dark] .flow-node{background:#14141499;border-color:#32323280}[data-theme=dark] .flow-node span{color:var(--text-primary)}[data-theme=dark] .recommendation-item{background:#14141466;border-left-color:#32323280}[data-theme=dark] .service-response-time,[data-theme=dark] .service-footer{border-top-color:#32323280}[data-theme=dark] .refresh-btn{background:var(--accent);color:var(--bg)}[data-theme=dark] .header-content p{color:var(--text-secondary)}[data-theme=dark] .service-error{background:#ef44441a;border-color:#ef44444d;color:#fca5a5}[data-theme=dark] .service-status{color:var(--text-primary)}[data-theme=dark] .endpoint-label,[data-theme=dark] .metric-key,[data-theme=dark] .flow-arrow{color:var(--text-muted)}[data-theme=dark] .admin-dashboard,[data-theme=dark] .dashboard-header .header-content h1,[data-theme=dark] .overview-card{color:var(--text-primary)}[data-theme=dark] .overview-content h3{color:var(--text-muted)}.cost-dashboard{padding:2rem;max-width:1600px;margin:0 auto}.cost-dashboard.loading{display:flex;align-items:center;justify-content:center;min-height:400px}.loading-spinner{font-size:1.5rem;color:#6b7280}.header-content p,.header-subtitle{color:#fff;font-size:1rem}.header-updated{margin-left:.5rem;font-size:.8em;opacity:.85}.time-range-selector{display:flex;gap:.5rem;background:#fff;padding:.25rem;border-radius:8px;box-shadow:0 2px 8px #0000001a}.time-range-selector button{padding:.5rem 1rem;border:none;background:transparent;border-radius:6px;cursor:pointer;font-weight:600;color:#6b7280;transition:all .2s}.time-range-selector button:hover{background:#f3f4f6}.time-range-selector button.active{background:var(--accent);color:var(--bg)}.cost-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;margin-bottom:2rem}.overview-card{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 4px 20px #0000001a;display:flex;gap:1rem;align-items:center;transition:all .2s;min-width:0}.overview-card:hover{transform:translateY(-4px);box-shadow:0 8px 30px #00000026}.overview-card.primary{background:var(--accent);color:var(--bg)}.card-icon{color:inherit;opacity:.9}.overview-card.primary .card-icon{color:var(--bg)}.card-content h3{font-size:.875rem;font-weight:600;text-transform:uppercase;margin-bottom:.5rem;opacity:.9}.card-content{min-width:0;flex:1}.overview-card.primary h3{color:var(--bg)}.cost-value{font-size:1.75rem;font-weight:700;margin-bottom:.25rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cost-value.savings{color:#10b981}.cost-change{display:flex;align-items:center;gap:.25rem;font-size:.875rem;font-weight:600}.cost-detail{font-size:.875rem;opacity:.8}.overview-card.primary .cost-detail{color:var(--bg);opacity:.7}.budget-alert{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 4px 20px #0000001a;margin-bottom:2rem;border-left:4px solid #f59e0b}.alert-header{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem}.alert-header h3{color:#1f2937;font-size:1.125rem}.budget-progress{margin-bottom:1rem}.progress-bar{height:24px;background:#e5e7eb;border-radius:12px;overflow:hidden;margin-bottom:.5rem}.progress-fill{height:100%;transition:width .3s ease;display:flex;align-items:center;justify-content:flex-end;padding-right:.5rem;color:#fff;font-size:.75rem;font-weight:700}.budget-details{display:flex;justify-content:space-between;font-size:.875rem;color:#6b7280}.budget-message{color:#374151;font-size:.875rem;line-height:1.5}.cost-trend-chart{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 4px 20px #0000001a;margin-bottom:2rem}.cost-trend-chart h2{color:#1f2937;margin-bottom:1.5rem}.chart-container{display:flex;align-items:flex-end;justify-content:space-around;height:200px;gap:1rem;padding:1rem 0}.chart-bar{flex:1;display:flex;flex-direction:column;align-items:center;height:100%}.bar-fill{width:100%;background:var(--accent);border-radius:8px 8px 0 0;display:flex;align-items:flex-start;justify-content:center;padding-top:.5rem;transition:all .3s ease;position:relative}.bar-fill:hover{opacity:.8;transform:translateY(-4px)}.bar-value{color:var(--bg);font-size:.75rem;font-weight:700}.bar-label{margin-top:.5rem;font-size:.875rem;color:#6b7280;font-weight:600}.service-costs{margin-bottom:2rem}.service-costs h2{color:#1f2937;margin-bottom:1.5rem}.services-list{display:flex;flex-direction:column;gap:1.5rem}.service-cost-card{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 4px 20px #0000001a;transition:all .2s}.service-cost-card:hover{transform:translateY(-4px);box-shadow:0 8px 30px #00000026}.service-cost-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.service-info{display:flex;gap:1rem;align-items:center}.service-icon{color:var(--text-secondary)}.service-info h3{color:#1f2937;font-size:1.125rem;margin-bottom:.25rem}.service-percentage{color:#6b7280;font-size:.875rem}.service-cost-value{text-align:right}.service-cost-value .cost{display:block;font-size:1.5rem;font-weight:700;color:#1f2937;margin-bottom:.25rem}.cost-trend{display:flex;align-items:center;gap:.25rem;font-size:.875rem;font-weight:600;justify-content:flex-end}.service-cost-bar{height:8px;background:#e5e7eb;border-radius:4px;overflow:hidden;margin-bottom:1rem}.cost-bar-fill{height:100%;background:var(--accent);transition:width .3s ease}.service-details{margin-bottom:1rem;padding:1rem;background:#f9fafb;border-radius:8px}.service-details h4{color:#374151;font-size:.875rem;margin-bottom:.75rem;font-weight:600}.details-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.75rem}.detail-item{display:flex;flex-direction:column;gap:.25rem}.detail-key{color:#6b7280;font-size:.75rem;text-transform:capitalize}.detail-value{color:#1f2937;font-size:.875rem;font-weight:600}.service-recommendations{padding:1rem;background:#fef3c7;border-radius:8px;border-left:4px solid #f59e0b}.service-recommendations h4{color:#92400e;font-size:.875rem;margin-bottom:.75rem;font-weight:600}.service-recommendations ul{list-style:none;padding:0;margin:0}.service-recommendations li{color:#78350f;font-size:.875rem;line-height:1.6;padding:.25rem 0 .25rem 1.25rem;position:relative}.service-recommendations li:before{content:"→";position:absolute;left:0;color:#f59e0b;font-weight:700}.optimization-summary{margin-bottom:2rem}.optimization-summary h2{color:#1f2937;margin-bottom:1.5rem}.optimization-list{display:flex;flex-direction:column;gap:1rem}.optimization-item{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 4px 20px #0000001a;border-left:4px solid}.optimization-item.high{border-left-color:#ef4444}.optimization-item.medium{border-left-color:#f59e0b}.optimization-item.low{border-left-color:#10b981}.optimization-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.priority-badge{padding:.25rem .75rem;border-radius:4px;font-size:.75rem;font-weight:700;text-transform:uppercase}.optimization-item.high .priority-badge{background:#fee2e2;color:#991b1b}.optimization-item.medium .priority-badge{background:#fef3c7;color:#92400e}.optimization-item.low .priority-badge{background:#d1fae5;color:#065f46}.savings-badge{padding:.25rem .75rem;background:#d1fae5;color:#065f46;border-radius:4px;font-size:.75rem;font-weight:700}.optimization-item h4{color:#1f2937;font-size:1rem;margin-bottom:.5rem}.optimization-item p{color:#6b7280;font-size:.875rem;line-height:1.6;margin-bottom:1rem}.implement-btn{padding:.5rem 1rem;background:var(--accent);color:var(--bg);border:none;border-radius:6px;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .2s}.implement-btn:hover{background:var(--accent-hover);transform:translateY(-2px)}.cost-insights{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 4px 20px #0000001a}.cost-insights h2{color:#1f2937;margin-bottom:1.5rem}.insights-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem}.insight-card{padding:1.5rem;background:#f9fafb;border-radius:8px;border-left:4px solid var(--accent)}.insight-card h4{color:#6b7280;font-size:.875rem;font-weight:600;text-transform:uppercase;margin-bottom:.5rem}.insight-value{color:#1f2937;font-size:1.5rem;font-weight:700;margin-bottom:.25rem}.insight-detail{color:#6b7280;font-size:.875rem}@media (max-width: 768px){.cost-overview{grid-template-columns:1fr}.chart-container{height:150px}.details-grid,.insights-grid{grid-template-columns:1fr}}[data-theme=dark] .cost-card{background:#14141499;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-color:#22222280}[data-theme=dark] .cost-card:hover{border-color:#323232cc}[data-theme=dark] .cost-header h2,[data-theme=dark] .cost-total{color:var(--text-primary)}[data-theme=dark] .cost-label{color:var(--text-muted)}[data-theme=dark] .cost-table th{background:#141414cc;color:var(--text-secondary);border-color:#22222280}[data-theme=dark] .cost-table td{border-color:#22222280;color:var(--text-primary)}[data-theme=dark] .cost-table tr:hover td{background:#1e1e1e80}[data-theme=dark] .overview-card:not(.primary),[data-theme=dark] .service-cost-card,[data-theme=dark] .cost-trend-chart,[data-theme=dark] .cost-insights,[data-theme=dark] .budget-alert,[data-theme=dark] .optimization-item{background:#14141499;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 4px 20px #0000004d}[data-theme=dark] .cost-trend-chart h2,[data-theme=dark] .service-costs h2,[data-theme=dark] .optimization-summary h2,[data-theme=dark] .cost-insights h2,[data-theme=dark] .service-info h3,[data-theme=dark] .alert-header h3,[data-theme=dark] .optimization-item h4{color:var(--text-primary)}[data-theme=dark] .card-content h3,[data-theme=dark] .service-percentage,[data-theme=dark] .budget-details,[data-theme=dark] .bar-label,[data-theme=dark] .insight-card h4,[data-theme=dark] .optimization-item p{color:var(--text-muted)}[data-theme=dark] .cost-value,[data-theme=dark] .service-cost-value .cost,[data-theme=dark] .insight-value{color:var(--text-primary)}[data-theme=dark] .time-range-selector{background:#14141499;box-shadow:0 2px 8px #0000004d}[data-theme=dark] .time-range-selector button{color:var(--text-muted)}[data-theme=dark] .time-range-selector button:hover{background:#282828cc}[data-theme=dark] .time-range-selector button.active{background:var(--accent);color:var(--bg)}[data-theme=dark] .service-details{background:#14141466}[data-theme=dark] .service-details h4,[data-theme=dark] .detail-value{color:var(--text-primary)}[data-theme=dark] .detail-key{color:var(--text-muted)}[data-theme=dark] .insight-card{background:#14141466;border-left-color:var(--accent)}[data-theme=dark] .insight-detail{color:var(--text-muted)}[data-theme=dark] .progress-bar,[data-theme=dark] .service-cost-bar{background:#282828cc}[data-theme=dark] .budget-message{color:var(--text-secondary)}[data-theme=dark] .cost-detail{color:var(--text-muted)}[data-theme=dark] .cost-change{color:var(--text-primary)}[data-theme=dark] .service-recommendations{background:#f59e0b1a;border-left-color:#f59e0b}[data-theme=dark] .service-recommendations h4{color:#fbbf24}[data-theme=dark] .service-recommendations li{color:var(--text-secondary)}[data-theme=dark] .implement-btn{background:var(--accent);color:var(--bg)}[data-theme=dark] .implement-btn:hover{background:var(--accent-hover)}[data-theme=dark] .optimization-item.high .priority-badge{background:#ef444426;color:#fca5a5}[data-theme=dark] .optimization-item.medium .priority-badge{background:#f59e0b26;color:#fbbf24}[data-theme=dark] .optimization-item.low .priority-badge,[data-theme=dark] .savings-badge{background:#10b98126;color:#6ee7b7}[data-theme=dark] .cost-dashboard,[data-theme=dark] .dashboard-header .header-content h1{color:var(--text-primary)}[data-theme=dark] .card-content h3{color:var(--text-muted)}[data-theme=dark] .overview-card,[data-theme=dark] .alert-header h3{color:var(--text-primary)}.overview-card.primary .cost-value,.overview-card.primary .cost-change,.overview-card.primary .card-content h3,.overview-card.primary .cost-detail{color:var(--bg)}[data-theme=dark] .overview-card.primary{background:var(--accent)}[data-theme=dark] .overview-card.primary .cost-value,[data-theme=dark] .overview-card.primary .cost-change,[data-theme=dark] .overview-card.primary .card-content h3,[data-theme=dark] .overview-card.primary .cost-detail,[data-theme=dark] .overview-card.primary .card-icon{color:var(--bg)!important}.insight-card h4{color:var(--text-muted)}.insight-value{color:var(--text-primary)}.insight-detail{color:var(--text-secondary)}.app{display:flex;flex-direction:column;height:100vh;background:var(--bg)}.app-header{display:flex;align-items:center;justify-content:space-between;padding:0 24px;height:60px;border-bottom:.5px solid rgba(200,200,210,.4);background:linear-gradient(180deg,#ffffffbf,#f8f8fca6);backdrop-filter:blur(24px) saturate(1.4);-webkit-backdrop-filter:blur(24px) saturate(1.4);flex-shrink:0;box-shadow:0 .5px #ffffff80 inset}[data-theme=dark] .app-header{background:linear-gradient(180deg,#141419bf,#0f0f14a6);border-bottom:.5px solid rgba(60,60,70,.4);box-shadow:0 .5px #ffffff0a inset}.header-brand{display:flex;align-items:baseline;gap:6px}.header-brand h1{font-size:20px;font-weight:600;color:var(--text-primary);letter-spacing:-.01em}.header-brand span{font-size:20px;color:#1b64b0;font-weight:500}.header-nav{display:flex;align-items:center;gap:4px}.nav-btn{display:flex;align-items:center;gap:6px;padding:6px 12px;border:none;background:transparent;border-radius:var(--radius-xs);font-size:16px;font-weight:500;color:var(--text-secondary);transition:background .15s,color .15s}.nav-btn:hover{background:var(--surface);color:var(--text-primary)}.nav-btn.active{background:var(--accent);color:var(--bg)}.nav-btn.dim{opacity:.5}.nav-btn.dim:hover{opacity:.8;background:var(--surface);color:var(--text-primary)}.nav-divider{width:1px;height:20px;background:var(--border);margin:0 4px}.badge{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:2px 6px;border-radius:3px}.badge-live{background:#dcfce7;color:#15803d}.badge-soon{background:#ede9fe;color:#6d28d9}.app-body{display:flex;flex:1;overflow:hidden}.sidebar{width:300px;flex-shrink:0;border-right:1px solid rgba(232,232,232,.5);display:flex;flex-direction:column;overflow:hidden;background:#ffffff80;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}[data-theme=dark] .sidebar{background:#0a0a0a80;border-right:1px solid rgba(34,34,34,.5)}.sidebar-section{padding:16px 16px 8px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted)}.sidebar-tabs{display:flex;padding:8px 8px 0;gap:2px}.sidebar-tab{flex:1;padding:7px 0;border:none;background:transparent;border-radius:var(--radius-xs) var(--radius-xs) 0 0;font-size:14px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--text-muted);cursor:pointer;transition:color .15s,background .15s;border-bottom:2px solid transparent}.sidebar-tab:hover{color:var(--text-secondary)}.sidebar-tab.active{color:var(--text-primary);border-bottom-color:var(--accent)}.new-chat-btn{width:100%;padding:8px 10px;border:1px dashed var(--border);border-radius:var(--radius-xs);background:transparent;font-size:16px;font-weight:500;color:var(--text-secondary);cursor:pointer;transition:border-color .15s,color .15s,background .15s}.new-chat-btn:hover{border-color:var(--text-muted);color:var(--text-primary);background:var(--surface)}.sidebar-empty{padding:24px 16px;text-align:center;font-size:15px;color:var(--text-muted)}.sidebar-search{padding:0 12px 8px}.sidebar-search input{width:100%;padding:7px 10px;border:1px solid var(--border);border-radius:var(--radius-xs);font-size:16px;color:var(--text-primary);background:var(--surface);outline:none;transition:border-color .15s}.sidebar-search input:focus{border-color:#aaa}.sidebar-list{flex:1;overflow-y:auto;padding:4px 8px 16px}.sidebar-item{display:flex;align-items:flex-start;gap:10px;padding:9px 10px;border-radius:var(--radius-xs);cursor:pointer;transition:background .12s;border:none;background:transparent;width:100%;text-align:left}.sidebar-item:hover,.sidebar-item.active{background:var(--surface)}.sidebar-item-icon{font-size:15px;flex-shrink:0;margin-top:1px}.sidebar-item-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.sidebar-item-title{font-size:16px;font-weight:500;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}.sidebar-item-desc{font-size:14px;color:var(--text-muted);margin-top:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}.chat-area{flex:1;display:flex;flex-direction:column;overflow:hidden;min-width:0}.messages{flex:1;overflow-y:auto;padding:32px 0}.messages-inner{max-width:680px;margin:0 auto;padding:0 24px;display:flex;flex-direction:column;gap:24px}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60vh;text-align:center;gap:32px}.empty-logo{width:auto;height:auto;padding:0;border-radius:0;background:none;backdrop-filter:none;-webkit-backdrop-filter:none;display:flex;align-items:center;justify-content:center;margin-bottom:0}[data-theme=dark] .empty-logo{background:none}.empty-state h2{font-size:22px;font-weight:600;color:var(--text-primary);letter-spacing:-.02em}.empty-state p{font-size:17px;color:var(--text-muted);max-width:320px}.suggestion-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:0;width:100%;max-width:480px}.suggestion-btn{padding:14px 16px;border:1px solid rgba(200,200,200,.4);border-radius:14px;background:#fff6;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);text-align:left;font-size:16px;color:var(--text-secondary);transition:all .2s ease;line-height:1.4;box-shadow:0 1px 2px #00000005,inset 0 1px #ffffff80}.suggestion-btn:hover{border-color:#96969680;background:#fff9;color:var(--text-primary);transform:translateY(-1px);box-shadow:0 4px 12px #0000000a,inset 0 1px #fff9}[data-theme=dark] .suggestion-btn{background:#1e1e2366;border-color:#3c3c4666;box-shadow:0 1px 2px #00000014,inset 0 1px #ffffff08}[data-theme=dark] .suggestion-btn:hover{background:#28282d99;border-color:#50505a80;box-shadow:0 4px 12px #0000001f,inset 0 1px #ffffff0a}.msg{display:flex;gap:12px;animation:msgIn .35s cubic-bezier(.16,1,.3,1)}@keyframes msgIn{0%{opacity:0;transform:translateY(8px) scale(.98);filter:blur(2px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}.msg.user{flex-direction:row-reverse}.msg-avatar{width:32px;height:32px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;margin-top:4px}.msg.bot .msg-avatar{background:none;border:none;padding:0;width:32px;height:32px}.bot-logo-img{width:32px;height:32px;object-fit:contain}[data-theme=dark] .bot-logo-img{filter:invert(1)}.msg.user .msg-avatar{background:#1a1a1a14;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid rgba(200,200,200,.3);color:var(--text-secondary)}[data-theme=dark] .msg.user .msg-avatar{background:#ffffff14;border-color:#5050504d}.msg-body{flex:1;min-width:0;max-width:85%}.msg.user .msg-body{display:flex;flex-direction:column;align-items:flex-end}.msg-bubble{padding:14px 18px;border-radius:18px;font-size:17px;line-height:1.6;overflow:hidden;max-width:100%}.msg.bot .msg-bubble{background:linear-gradient(135deg,#ffffffa6,#f5f5fa73,#f0f0f88c);backdrop-filter:blur(24px) saturate(1.4);-webkit-backdrop-filter:blur(24px) saturate(1.4);border:.5px solid rgba(255,255,255,.6);border-radius:4px 20px 20px;color:var(--text-primary);padding:16px 20px;box-shadow:0 .5px #fffc inset,0 1px 3px #0000000a,0 8px 24px #00000008;position:relative}.msg.bot .msg-bubble:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:inherit;background:linear-gradient(180deg,rgba(255,255,255,.3) 0%,transparent 40%);pointer-events:none}[data-theme=dark] .msg.bot .msg-bubble{background:linear-gradient(135deg,#2d2d378c,#23232d66,#28283280);border:.5px solid rgba(255,255,255,.08);box-shadow:0 .5px #ffffff0f inset,0 1px 3px #00000026,0 8px 24px #0000001a}[data-theme=dark] .msg.bot .msg-bubble:before{background:linear-gradient(180deg,rgba(255,255,255,.04) 0%,transparent 40%)}.msg.user .msg-bubble{background:linear-gradient(135deg,#1e1e23e6,#141419d9);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);color:#fff;border-radius:20px 4px 20px 20px;border:.5px solid rgba(255,255,255,.08);box-shadow:0 .5px #ffffff0f inset,0 2px 8px #0000001a,0 8px 24px #0000000f}[data-theme=dark] .msg.user .msg-bubble{background:linear-gradient(135deg,#ffffffeb,#f5f5fae0);color:#0a0a0a;border:.5px solid rgba(255,255,255,.4);box-shadow:0 .5px #ffffff80 inset,0 2px 8px #0003,0 8px 24px #0000001f}.msg-time{font-size:14px;color:var(--text-muted);margin-top:6px;padding:0 4px}.typing{display:flex;gap:4px;padding:4px 0}.typing span{width:6px;height:6px;border-radius:50%;background:var(--text-muted);animation:bounce 1.2s infinite}.typing span:nth-child(2){animation-delay:.2s}.typing span:nth-child(3){animation-delay:.4s}@keyframes bounce{0%,60%,to{transform:translateY(0)}30%{transform:translateY(-5px)}}.progress-bubble{padding:16px 20px!important;background:#f5f5f799!important;backdrop-filter:blur(16px) saturate(1.2)!important;-webkit-backdrop-filter:blur(16px) saturate(1.2)!important;border:1px solid rgba(220,220,225,.5)!important;border-radius:4px 18px 18px!important;box-shadow:0 1px 2px #00000008,0 4px 12px #00000005,inset 0 1px #fff9!important}[data-theme=dark] .progress-bubble{background:#1e1e2380!important;border:1px solid rgba(60,60,70,.4)!important;box-shadow:0 1px 2px #0000001a,0 4px 12px #00000014,inset 0 1px #ffffff0a!important}.progress-bubble p{font-size:17px;color:var(--text-secondary);margin:0 0 10px;line-height:1.5;animation:progressSlideIn .5s cubic-bezier(.16,1,.3,1)}.progress-bubble .typing{padding:0;opacity:.5}.progress-bubble .typing span{width:5px;height:5px;background:var(--text-muted)}@keyframes progressSlideIn{0%{opacity:0;transform:translateY(6px);filter:blur(2px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}.input-bar{border-top:1px solid rgba(232,232,232,.5);padding:16px 24px;background:#ffffffb3;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}[data-theme=dark] .input-bar{background:#0a0a0ab3;border-top:1px solid rgba(34,34,34,.5)}.input-bar-inner{max-width:680px;margin:0 auto;display:flex;align-items:center;gap:8px;border:1px solid rgba(200,200,200,.4);border-radius:20px;padding:10px 16px;transition:border-color .2s,box-shadow .2s;background:#ffffff80;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 1px 3px #00000005,inset 0 1px #ffffff80}.input-bar-inner:focus-within{border-color:#96969680;box-shadow:0 2px 8px #0000000a,inset 0 1px #ffffff80}[data-theme=dark] .input-bar-inner{background:#14141980;border-color:#3c3c4666;box-shadow:0 1px 3px #0000001a,inset 0 1px #ffffff08}[data-theme=dark] .input-bar-inner:focus-within{border-color:#64646e80;box-shadow:0 2px 8px #00000026,inset 0 1px #ffffff08}.input-bar-inner textarea{flex:1;border:none;outline:none;resize:none;font-size:17px;line-height:1.5;color:var(--text-primary);background:transparent;min-height:24px;max-height:160px;overflow-y:auto;text-align:left;padding:2px 0}.input-bar-inner textarea:not(:placeholder-shown){text-align:left}.input-bar-inner textarea::placeholder{color:var(--text-muted);text-align:left}.send-btn{width:36px;height:36px;border-radius:12px;border:none;background:var(--accent);color:var(--bg);display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:all .2s ease;box-shadow:0 2px 6px #00000014}.send-btn:hover:not(:disabled){background:var(--accent-hover);transform:translateY(-1px);box-shadow:0 4px 10px #0000001f}.send-btn:disabled{opacity:.3;cursor:not-allowed}.send-btn svg{width:14px;height:14px}.cancel-btn{width:36px;height:36px;border-radius:12px;border:.5px solid rgba(200,120,110,.35);background:#c8645a1f;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:#c06a60;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:15px;font-weight:600;cursor:pointer;transition:all .2s ease;box-shadow:0 1px 3px #0000000a,inset 0 1px #fff6}.cancel-btn:hover{background:#c8645a33;border-color:#c8786e80;color:#b05a50;transform:translateY(-1px);box-shadow:0 4px 10px #b45a501a,inset 0 1px #ffffff80}.cancel-btn:active{transform:translateY(0);box-shadow:0 1px 2px #0000000a,inset 0 1px #ffffff4d}[data-theme=dark] .cancel-btn{background:#c8645a26;border-color:#c8786e40;color:#d08878;box-shadow:0 1px 3px #0000001f,inset 0 1px #ffffff0a}[data-theme=dark] .cancel-btn:hover{background:#c8645a40;border-color:#c8786e66;color:#e09888;box-shadow:0 4px 10px #b45a5026,inset 0 1px #ffffff0d}@keyframes statusPulse{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.status-updated{font-size:12px;color:var(--text-muted);margin:6px 0 0;padding:0;animation:statusPulse 2s ease-in-out 1;letter-spacing:.02em}[data-theme=dark] .status-updated{color:var(--text-muted)}.new-chat-inline-btn{padding:8px 16px;border:.5px solid rgba(200,200,200,.4);border-radius:var(--radius-xs);background:#fff6;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);font-size:14px;font-weight:500;color:var(--text-secondary);cursor:pointer;transition:all .2s ease;box-shadow:0 1px 2px #00000005,inset 0 1px #ffffff80;flex-shrink:0}.new-chat-inline-btn:hover{border-color:#96969680;background:#fff9;color:var(--text-primary);transform:translateY(-1px);box-shadow:0 4px 12px #0000000a,inset 0 1px #fff9}.new-chat-inline-btn:active{transform:translateY(0);box-shadow:0 1px 2px #00000005,inset 0 1px #ffffff80}[data-theme=dark] .new-chat-inline-btn{background:#1e1e2366;border-color:#3c3c4666;color:var(--text-secondary);box-shadow:0 1px 2px #00000014,inset 0 1px #ffffff08}[data-theme=dark] .new-chat-inline-btn:hover{background:#28282d99;border-color:#50505a80;color:var(--text-primary);box-shadow:0 4px 12px #0000001f,inset 0 1px #ffffff0a}.input-hint{text-align:center;font-size:14px;color:var(--text-muted);margin-top:8px;max-width:680px;margin-left:auto;margin-right:auto}.md{font-size:17px;line-height:1.7;color:var(--text-primary);overflow-x:auto}.md h1,.md h2,.md h3{font-weight:600;margin:16px 0 8px;letter-spacing:-.01em}.md h1{font-size:22px}.md h2{font-size:20px}.md h3{font-size:17px}.md p{margin:6px 0}.md ul,.md ol{padding-left:20px;margin:6px 0}.md li{margin:3px 0}.md strong{font-weight:600}.md hr{border:none;border-top:1px solid var(--border);margin:12px 0}.md pre{background:#f6f6f6;border:1px solid var(--border);border-radius:var(--radius-xs);padding:12px 14px;overflow-x:auto;margin:10px 0;font-family:var(--font-mono);font-size:16px;line-height:1.5}.md code{font-family:var(--font-mono);font-size:16px;background:#f0f0f0;padding:1px 5px;border-radius:3px}.md pre code{background:none;padding:0}.md-table{width:100%;border-collapse:collapse;margin:10px 0;font-size:15px;table-layout:fixed;overflow-wrap:break-word;word-wrap:break-word}.md-table th,.md-table td{padding:8px 12px;border:1px solid var(--border);text-align:left;overflow-wrap:break-word;word-break:break-word}.md-table th{background:var(--bg-secondary, #f5f5f5);font-weight:600}.md-table tr:nth-child(2n) td{background:var(--bg-secondary, #fafafa)}[data-theme=dark] .md-table th{background:#1a1a1a}[data-theme=dark] .md-table tr:nth-child(2n) td{background:#1a1a1a}.md-blockquote{border-left:3px solid var(--border, #d0d0d0);margin:8px 0;padding:8px 14px;background:var(--bg-secondary, #f9f9f9);border-radius:0 6px 6px 0;color:var(--text-secondary, #555);font-size:16px}[data-theme=dark] .md-blockquote{background:#1a1a1a;border-left-color:#444;color:#aaa}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000004d;display:flex;align-items:center;justify-content:center;z-index:100;animation:fadeIn .15s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal{background:#ffffffd9;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border:1px solid var(--border);border-radius:var(--radius);padding:32px;max-width:420px;width:90%;position:relative;animation:slideUp .2s ease}[data-theme=dark] .modal{background:#141414d9;border:1px solid rgba(34,34,34,.5)}@keyframes slideUp{0%{transform:translateY(12px);opacity:0}to{transform:translateY(0);opacity:1}}.modal-close{position:absolute;top:16px;right:16px;width:28px;height:28px;border:none;background:var(--surface);border-radius:50%;font-size:14px;color:var(--text-muted);display:flex;align-items:center;justify-content:center;transition:background .15s}.modal-close:hover{background:var(--border);color:var(--text-primary)}.modal h2{font-size:20px;font-weight:600;margin-bottom:8px;letter-spacing:-.01em}.modal p{font-size:16px;color:var(--text-secondary);line-height:1.6;margin-bottom:20px}.modal-features{display:flex;flex-direction:column;gap:6px;margin-bottom:20px}.modal-feature{display:flex;align-items:center;gap:8px;font-size:16px;color:var(--text-secondary)}.modal-feature:before{content:"";width:4px;height:4px;border-radius:50%;background:var(--text-muted);flex-shrink:0}.modal-eta{font-size:15px;color:var(--text-muted);padding-top:16px;border-top:1px solid var(--border)}.full-view{flex:1;overflow-y:auto;padding:32px}@media (max-width: 768px){.sidebar{display:none}.app-header{padding:0 16px}.messages{padding:20px 0}.messages-inner{padding:0 16px}.input-bar{padding:12px 16px}.suggestion-grid{grid-template-columns:1fr}.new-chat-inline-btn{padding:6px 12px;font-size:13px}.cancel-btn{width:32px;height:32px;border-radius:10px;font-size:13px}.status-updated{font-size:11px}}[data-theme=dark] .md pre{background:#1a1a1a;border-color:#333}[data-theme=dark] .md code{background:#1a1a1a}[data-theme=dark] ::-webkit-scrollbar-thumb{background:#333}[data-theme=dark] ::-webkit-scrollbar-thumb:hover{background:#444}.theme-toggle{font-size:16px;padding:6px 10px;border-radius:var(--radius-xs);transition:transform .3s ease}.theme-toggle:hover{transform:scale(1.1)}[data-theme=dark] .nav-btn{color:var(--text-secondary)}[data-theme=dark] .nav-btn:hover{color:var(--text-primary)}[data-theme=dark] .nav-btn.active{color:var(--bg)}[data-theme=dark] .nav-btn.dim{color:var(--text-muted)}[data-theme=dark] .badge-live{background:#16a34a26;color:#4ade80}[data-theme=dark] .badge-soon{background:#7c3aed26;color:#a78bfa}[data-theme=dark] .sidebar-search input{background:#14141499;border-color:#32323280;color:var(--text-primary)}[data-theme=dark] .sidebar-search input::placeholder{color:var(--text-muted)}[data-theme=dark] .sidebar-item:hover{background:#ffffff0d}[data-theme=dark] .sidebar-item.active{background:#ffffff14}[data-theme=dark] .suggestion-btn{background:#14141466;border-color:#32323280;color:var(--text-secondary)}[data-theme=dark] .suggestion-btn:hover{background:#1e1e1e99;border-color:#50505080;color:var(--text-primary)}[data-theme=dark] .send-btn{background:#fff;color:#0a0a0a}[data-theme=dark] .send-btn:hover:not(:disabled){background:#e0e0e0}[data-theme=dark] .msg.user .msg-avatar{background:#ffffff1a;border-color:#32323280;color:var(--text-secondary)}[data-theme=dark] .msg.bot .msg-avatar{background:none;border:none}[data-theme=dark] .modal-close{background:#ffffff1a;color:var(--text-muted)}[data-theme=dark] .modal-close:hover{background:#ffffff26;color:var(--text-primary)}[data-theme=dark] .modal h2{color:var(--text-primary)}[data-theme=dark] .modal-eta{border-top-color:#32323280}[data-theme=dark] .overlay{background:#0009}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--bg: #ffffff;--surface: #f9f9f9;--border: #e8e8e8;--border-light: #f0f0f0;--text-primary: #111111;--text-secondary: #555555;--text-muted: #999999;--accent: #1a1a1a;--accent-hover: #333333;--user-bubble: #111111;--user-bubble-text: #ffffff;--bot-bubble: #f4f4f4;--bot-bubble-text: #111111;--green: #16a34a;--purple: #7c3aed;--radius: 12px;--radius-sm: 8px;--radius-xs: 6px;--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--font-mono: "JetBrains Mono", "Fira Code", "Courier New", monospace}[data-theme=dark]{--bg: #0a0a0a;--surface: #141414;--border: #222222;--border-light: #1a1a1a;--text-primary: #f0f0f0;--text-secondary: #a0a0a0;--text-muted: #666666;--accent: #ffffff;--accent-hover: #e0e0e0;--user-bubble: #ffffff;--user-bubble-text: #0a0a0a;--bot-bubble: #141414;--bot-bubble-text: #f0f0f0;--green: #22c55e;--purple: #a78bfa}html,body,#root{height:100%}body{font-family:var(--font);font-size:17px;line-height:1.5;color:var(--text-primary);background:var(--bg);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;transition:background-color .3s ease,color .3s ease}button{font-family:var(--font);cursor:pointer}input,textarea{font-family:var(--font)}::-webkit-scrollbar{width:4px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px}::-webkit-scrollbar-thumb:hover{background:#ccc}
