.sidebar{width:260px;flex-shrink:0;background:var(--sidebar-bg);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:16px 12px}.brand{display:flex;align-items:center;justify-content:center;padding:4px 6px 22px}.brand img{height:38px;width:auto;display:block}.new-chat{display:flex;align-items:center;gap:8px;background:var(--accent);color:#fff;border:none;border-radius:var(--radius);padding:10px 14px;font-size:14px;font-weight:700;cursor:pointer;text-align:left}.new-chat svg,.search-chat svg{display:block;flex-shrink:0}.new-chat:hover{background:var(--accent-dark)}.search-chat{display:flex;align-items:center;gap:8px;background:transparent;color:var(--text-soft);border:1px solid var(--border);border-radius:var(--radius);padding:10px 14px;font-size:14px;font-weight:500;cursor:pointer;text-align:left;margin-top:8px}.search-chat:hover{background:var(--border);color:var(--text)}.nav-label{margin:22px 8px 6px;font-size:12px;font-weight:500;color:var(--text-soft)}.history{list-style:none;margin:0;padding:0 0 80px;flex:1;min-height:0;overflow-y:auto;overflow-x:visible}.history-item{position:relative;display:flex;align-items:center;justify-content:space-between;padding:8px 10px;border-radius:8px;font-size:13.5px;font-weight:500;color:var(--text);cursor:pointer;margin-bottom:2px;transition:background .15s ease}.history-item:hover,.history-item.active{background:var(--border)}.history-item.menu-open{background:var(--border);z-index:50}.history-title{flex:1;min-width:0;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:6px}.history-title-input{flex:1;min-width:0;border:1px solid var(--accent);background:#fff;border-radius:4px;padding:2px 6px;font-size:13.5px;font-weight:500;color:var(--text);outline:none;font-family:inherit;line-height:1.2;margin-right:6px}.history-menu-btn{opacity:0;width:26px;height:26px;padding:0;border:none;background:transparent;border-radius:6px;color:var(--text-soft);cursor:pointer;flex-shrink:0;display:flex;align-items:center;justify-content:center;transition:opacity .15s ease,background .15s ease,color .15s ease}.history-item:hover .history-menu-btn,.history-item.active .history-menu-btn,.history-item.menu-open .history-menu-btn,.history-menu-btn:focus-visible{opacity:1}@media(hover:none){.history-menu-btn{opacity:1}}.history-menu-btn:hover{background:#00000014;color:var(--text)}.history-menu{position:absolute;top:calc(100% + 4px);right:8px;min-width:140px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:4px;box-shadow:0 4px 16px #00000026;display:none;flex-direction:column;gap:2px;z-index:100}.history-item.menu-open .history-menu{display:flex}.history-menu[hidden]{display:none!important}.history-menu-option{display:flex;align-items:center;gap:8px;width:100%;border:none;background:transparent;border-radius:6px;padding:7px 10px;text-align:left;font-size:13px;font-weight:500;color:var(--text);cursor:pointer;transition:background .12s ease}.history-menu-option:hover{background:var(--sidebar-bg)}.history-menu-option.delete{color:#dc2626}.history-menu-option.delete:hover{background:#fee2e2}.history-menu-option svg{width:16px;height:16px;flex-shrink:0;shape-rendering:auto!important}.sidebar-divider{margin-top:auto;border-top:1px solid var(--border);margin-bottom:8px}.sidebar-footer{display:flex;align-items:center;justify-content:space-between;width:100%;padding:8px 4px;background:transparent}.user-info{display:flex;align-items:center;gap:12px;min-width:0;overflow:hidden}.avatar{width:34px;height:34px;border-radius:0;border:1px solid var(--border);background:var(--accent-tint);color:var(--accent-dark);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex-shrink:0;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover;display:block}.user-name{font-size:13.5px;font-weight:500;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.settings-btn{width:36px;height:36px;padding:0;border:none;background:transparent;border-radius:6px;color:var(--text-soft);cursor:pointer;flex-shrink:0;display:flex;align-items:center;justify-content:center;transition:background .15s ease,color .15s ease}.settings-btn:hover{background:var(--border);color:var(--text)}.settings-btn svg{width:22px;height:22px}
