.baduno-header{z-index:50;background:var(--bg-primary);width:100%;position:relative}.baduno-header-inner{justify-content:space-between;align-items:center;max-width:1150px;height:60px;margin:0 auto;padding:0 2rem;display:flex}.baduno-header-logo{flex-shrink:0;margin-left:1rem}body:has(.chat-sidebar) .baduno-logo-img{display:none!important}.baduno-logo-link{color:var(--text-primary);letter-spacing:-.01em;align-items:center;font-size:.9375rem;font-weight:500;text-decoration:none;display:flex}.logo-text-simple{color:var(--text-primary);letter-spacing:.05em;font-family:Raleway,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:1rem;font-weight:400;line-height:32px}.baduno-logo-link{align-items:center!important;gap:5px!important;height:32px!important;display:flex!important}.baduno-header-nav{flex:1;justify-content:center;gap:.5rem;display:flex}.baduno-header-icons{align-items:center;gap:.5rem;margin-right:1rem;display:flex}.baduno-icon-btn{border:1px solid var(--border);color:var(--text-secondary);cursor:pointer;background:0 0;border-radius:8px;justify-content:center;align-items:center;width:32px;height:32px;padding:0;transition:all .2s;display:flex}.baduno-icon-btn:hover{background:var(--bg-secondary);border-color:var(--text-secondary);color:var(--text-primary)}.baduno-icon-btn svg{width:16px;height:16px}.baduno-header-user{flex-shrink:0}.baduno-header-actions{align-items:center;gap:.75rem;display:flex}.baduno-btn{cursor:pointer;border:none;border-radius:8px;justify-content:center;align-items:center;padding:.5rem 1.25rem;font-family:inherit;font-size:.875rem;font-weight:500;text-decoration:none;transition:all .2s;display:inline-flex}.baduno-btn-primary{background:var(--accent);color:var(--bg-primary)}.baduno-btn-primary:hover{background:var(--accent-hover)}.baduno-btn-secondary{border:1px solid var(--border);color:var(--text-primary);background:0 0}.baduno-btn-secondary:hover{background:var(--bg-secondary);border-color:var(--text-secondary)}.baduno-btn-block{width:100%}.baduno-user-menu{position:relative}.baduno-user-menu-trigger{border:1px solid var(--border);cursor:pointer;height:32px;color:var(--text-primary);background:0 0;border-radius:8px;align-items:center;gap:.5rem;padding:0 .5rem 0 .25rem;font-family:inherit;transition:all .2s;display:flex}.baduno-user-menu-trigger:hover{background:var(--bg-secondary);border-color:var(--text-secondary)}.baduno-avatar{background:#7c3aed;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:20px;height:20px;display:flex;overflow:hidden}.baduno-avatar-image{object-fit:cover;width:100%;height:100%}.baduno-avatar-initials{color:#fff;font-size:.625rem;font-weight:600}.baduno-user-name{text-overflow:ellipsis;white-space:nowrap;max-width:150px;font-size:.875rem;font-weight:500;overflow:hidden}.baduno-chevron{flex-shrink:0;transition:transform .2s}.baduno-user-menu-trigger:hover .baduno-chevron{transform:translateY(1px)}.baduno-user-dropdown{background:var(--bg-secondary);border:1px solid var(--border);opacity:0;visibility:hidden;border-radius:12px;min-width:280px;max-height:80vh;transition:all .2s;position:absolute;top:100%;right:0;overflow-y:auto;transform:translateY(-10px);box-shadow:0 10px 40px #0000004d;z-index:9999;margin-top:8px}.baduno-user-dropdown.active{opacity:1;visibility:visible;transform:translateY(0)}.baduno-dropdown-header{align-items:flex-start;gap:1rem;padding:1.25rem;display:flex}.baduno-dropdown-avatar{background:#7c3aed;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:48px;height:48px;display:flex;overflow:hidden}.baduno-dropdown-avatar img{object-fit:cover;width:100%;height:100%}.baduno-dropdown-avatar-initials{color:#fff;font-size:1.125rem;font-weight:600}.baduno-dropdown-user-info{flex:1;min-width:0}.baduno-dropdown-name{text-overflow:ellipsis;white-space:nowrap;margin-bottom:.25rem;font-size:.9375rem;font-weight:600;overflow:hidden}.baduno-dropdown-email{color:var(--text-secondary);text-overflow:ellipsis;white-space:nowrap;font-size:.8125rem;overflow:hidden}.baduno-dropdown-plan{background:var(--bg-tertiary);border:1px solid var(--border);text-transform:uppercase;letter-spacing:.05em;color:var(--text-primary);border-radius:6px;margin-top:.5rem;padding:.25rem .5rem;font-size:.6875rem;font-weight:600;display:inline-block}.baduno-dropdown-divider{background:var(--border);height:1px;margin:0 .5rem}.baduno-dropdown-menu{padding:.5rem}.baduno-dropdown-item{color:var(--text-primary);cursor:pointer;text-align:left;background:0 0;border:none;border-radius:8px;align-items:center;gap:.75rem;width:100%;padding:.75rem;font-family:inherit;font-size:.875rem;font-weight:500;text-decoration:none;transition:background .15s;display:flex}.baduno-dropdown-item:hover{background:var(--bg-tertiary)}.baduno-dropdown-item svg{opacity:.7;flex-shrink:0}.baduno-dropdown-item span:first-of-type{flex:1}.baduno-dropdown-logout{color:var(--error)}.baduno-dropdown-logout:hover{background:#ef44441a}.baduno-dropdown-item-danger{color:var(--warning)}.baduno-badge{text-transform:uppercase;letter-spacing:.05em;border-radius:4px;padding:.125rem .375rem;font-size:.625rem;font-weight:600}.baduno-badge-pro{color:#fff;background:#7c3aed}.baduno-sidebar-toggle{border:1px solid var(--border);cursor:pointer;background:0 0;border-radius:8px;justify-content:center;align-items:center;width:40px;height:40px;padding:0;transition:all .2s;display:none!important;flex-shrink:0}.baduno-sidebar-toggle:hover{background:var(--bg-secondary);border-color:var(--text-secondary)}.baduno-sidebar-toggle svg{color:var(--text-primary)}.baduno-mobile-toggle{border:1px solid var(--border);cursor:pointer;background:0 0;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;gap:.25rem;width:40px;height:40px;padding:0;transition:all .2s;display:none}.baduno-mobile-toggle:hover{background:var(--bg-secondary);border-color:var(--text-secondary)}.baduno-mobile-toggle span{background:var(--text-primary);border-radius:2px;width:18px;height:2px;transition:all .3s;display:block}.baduno-mobile-toggle.active span:first-child{transform:translateY(6px) rotate(45deg)}.baduno-mobile-toggle.active span:nth-child(2){opacity:0}.baduno-mobile-toggle.active span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}.baduno-mobile-menu{background:var(--bg-primary);opacity:0;visibility:hidden;transition:all .3s;position:fixed;inset:60px 0 0;overflow-y:auto}.baduno-mobile-menu.active{opacity:1;visibility:visible}.baduno-mobile-menu-content{padding:1.5rem}.baduno-mobile-header{background:var(--bg-secondary);border:1px solid var(--border);border-radius:12px;gap:1rem;margin-bottom:1.5rem;padding:1.5rem;display:flex}.baduno-mobile-avatar{background:#7c3aed;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:56px;height:56px;display:flex;overflow:hidden}.baduno-mobile-avatar img{object-fit:cover;width:100%;height:100%}.baduno-mobile-avatar-initials{color:#fff;font-size:1.25rem;font-weight:600}.baduno-mobile-user-info{flex:1;min-width:0}.baduno-mobile-name{margin-bottom:.25rem;font-size:1.125rem;font-weight:600}.baduno-mobile-email{color:var(--text-secondary);margin-bottom:.5rem;font-size:.875rem}.baduno-mobile-plan{background:var(--bg-tertiary);border:1px solid var(--border);text-transform:uppercase;letter-spacing:.05em;border-radius:6px;padding:.25rem .5rem;font-size:.75rem;font-weight:600;display:inline-block}.baduno-mobile-nav{flex-direction:column;gap:.5rem;display:flex}.baduno-mobile-nav-item{background:var(--bg-secondary);border:1px solid var(--border);color:var(--text-primary);cursor:pointer;text-align:left;border-radius:12px;align-items:center;gap:1rem;padding:1rem;font-family:inherit;font-size:.9375rem;font-weight:500;text-decoration:none;transition:all .2s;display:flex}.baduno-mobile-nav-item:hover{background:var(--bg-tertiary);border-color:var(--text-secondary)}.baduno-mobile-nav-item svg{opacity:.8;flex-shrink:0}.baduno-mobile-nav-item span:first-of-type{flex:1}.mobile-token-counter{background:var(--bg-secondary);border:1px solid var(--border);border-radius:12px;margin-bottom:1rem;padding:1rem;transition:all .2s}.mobile-token-counter:hover{background:var(--bg-tertiary);border-color:var(--text-secondary)}.mobile-token-header{justify-content:space-between;align-items:center;margin-bottom:.75rem;display:flex}.mobile-token-label{color:var(--text-secondary);align-items:center;gap:.5rem;font-size:.875rem;font-weight:500;display:flex}.mobile-token-icon{width:24px;height:24px;color:var(--text-secondary);justify-content:center;align-items:center;display:flex}.mobile-token-value{color:var(--text-primary);font-size:1.125rem;font-weight:600}.mobile-token-value .token-remaining{color:var(--text-primary)}.mobile-token-value .token-slash{color:var(--text-secondary);margin:0 .25rem;font-weight:400}.mobile-token-value .token-total{color:var(--text-secondary);font-weight:500}.mobile-token-bar{background:var(--bg-tertiary);border-radius:3px;width:100%;height:6px;margin-bottom:.5rem;position:relative;overflow:hidden}.mobile-token-progress{background:linear-gradient(90deg,#7c3aed 0,#a855f7 100%);border-radius:3px;height:100%;transition:width .3s;position:absolute;top:0;left:0}.mobile-token-counter.token-good .mobile-token-progress{background:linear-gradient(90deg,#10b981 0,#34d399 100%)}.mobile-token-counter.token-medium .mobile-token-progress{background:linear-gradient(90deg,#f59e0b 0,#fbbf24 100%)}.mobile-token-counter.token-low .mobile-token-progress{background:linear-gradient(90deg,#ef4444 0,#f87171 100%)}.mobile-token-counter.token-critical .mobile-token-progress{background:linear-gradient(90deg,#dc2626 0,#ef4444 100%)}.mobile-token-warning{color:#f87171;background:#ef44441a;border:1px solid #ef444433;border-radius:8px;align-items:center;gap:.5rem;margin-top:.75rem;padding:.5rem .75rem;font-size:.8125rem;font-weight:500;display:flex}.mobile-token-warning svg{flex-shrink:0;width:16px;height:16px}.mobile-token-percentage{justify-content:space-between;align-items:center;margin-top:.5rem;display:flex}.mobile-token-percentage-label{color:var(--text-secondary);font-size:.75rem;font-weight:500}.mobile-token-percentage-value{color:var(--text-primary);font-size:.875rem;font-weight:600}.baduno-mobile-divider{background:var(--border);height:1px;margin:.5rem 0}.baduno-mobile-actions{flex-direction:column;gap:.75rem;display:flex}body.menu-open{overflow:hidden}@media (max-width:768px){.baduno-header{position:fixed!important}.baduno-header-inner{height:60px;padding:0 1rem;gap:.5rem}.baduno-header-actions,.baduno-header-icons,.baduno-header-nav,.baduno-user-menu{display:none}.baduno-sidebar-toggle{display:flex!important}.baduno-mobile-toggle{display:flex}.baduno-user-name{display:none}}@media (min-width:769px) and (max-width:1024px){.baduno-header{position:fixed!important}.baduno-user-name{max-width:120px}.baduno-header-inner{height:60px;padding:0 1.5rem}}@media (max-width:480px){.baduno-header{position:fixed!important}.baduno-header-inner{height:60px;padding:0 .75rem}.baduno-mobile-header{padding:1rem}.baduno-mobile-avatar{width:48px;height:48px}.baduno-mobile-name{font-size:1rem}}@supports (-webkit-touch-callout:none){.baduno-btn,.baduno-header,.baduno-icon-btn,.baduno-mobile-toggle,.baduno-user-menu-trigger{-webkit-tap-highlight-color:transparent}.baduno-mobile-menu,.baduno-user-dropdown{-webkit-overflow-scrolling:touch}}.sidebar-header{padding:.75rem;display:flex;flex-direction:column;gap:.5rem}.chat-sidebar.open .sidebar-header{border-bottom:1px solid var(--border);background:var(--bg-secondary)}.chat-sidebar.open .new-chat-btn{border:1px solid var(--bg-secondary);background:var(--bg-secondary)}.sidebar-header-top{display:flex;align-items:center;justify-content:flex-end;width:100%;margin-bottom:1rem}.new-chat-btn{color:var(--text-secondary);padding:.75rem 1rem;font-size:.75rem;cursor:pointer;transition:all .15s;text-transform:uppercase;letter-spacing:.05em;font-weight:500;border-radius:12px;display:flex;flex-direction:row;align-items:center;gap:.5rem;background:var(--bg-primary);border:1px solid var(--bg-primary)}.new-chat-btn:hover{background:var(--bg-tertiary);color:var(--text-primary)}.chat-sidebar:not(.open) .new-chat-btn .btn-text{display:none;opacity:0;width:0;overflow:hidden;transition:opacity .2s ease,width .2s ease}.chat-sidebar:not(.open) .new-chat-btn{width:40px;min-width:auto}.chat-sidebar:not(.open) .new-chat-btn svg{margin:0}.chat-sidebar:not(.open) .sidebar-header-top{justify-content:center}.chat-sidebar.open .new-chat-btn .btn-text{display:inline;opacity:1;width:auto;overflow:visible;transition:opacity .2s ease .1s,width .2s ease .1s}.chat-sidebar.open .new-chat-btn{justify-content:flex-start}