.chat-history-sidebar{--text-primary:#eef0f6;--text-secondary:#eef0f6a8;--text-tertiary:#eef0f685;--border:#ffffff14;--border-strong:#ffffff2b;--surface-1:#ffffff0d;--surface-2:#ffffff14;--surface-3:#ffffff21;--sidebar-hover:#ffffff12;--sidebar-active:#d9775738;--accent:#d97757;--accent-hover:#e68b6d;--accent-soft:#d977572e;--accent-contrast:#1f1e1b;color:var(--text-primary);border-right:1px solid var(--border);z-index:100;width:280px;min-width:280px;max-width:280px;height:100dvh;font-family:var(--font-mono);background:radial-gradient(circle at 0 0,#242a3d,#12141f);flex-direction:column;display:flex;position:fixed;top:0;left:0;overflow:hidden}html[data-theme=dark] .chat-history-sidebar{--text-primary:#edebe6;--text-secondary:#b1ada1;--text-tertiary:#8c877a;--border:#edebe61a;--border-strong:#edebe638;--surface-1:#edebe60d;--surface-2:#edebe614;--surface-3:#edebe621;--sidebar-hover:#edebe612;background:#1f1f1d}.chat-history-sidebar.overlay{z-index:1100;width:min(320px,85vw);max-width:320px;height:100dvh;box-shadow:var(--shadow-2);border-radius:0;position:fixed;top:0;left:0}.sidebar-backdrop{opacity:0;pointer-events:none;transition:opacity var(--dur-med) ease;display:none;background:#1f1e1b66!important}.sidebar-navigation{background:0 0;flex-shrink:0;padding:10px 10px 4px}.nav-brand-sidebar{justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px;display:flex}.brand-identity-sidebar{flex:auto;align-items:center;gap:.6rem;min-width:0;display:flex}.sidebar-brand-theme{background:var(--sidebar-hover);border:1px solid var(--border);border-radius:var(--radius-full);flex-shrink:0;align-items:center;gap:2px;margin-inline-start:auto;padding:3px;display:inline-flex}.sidebar-brand-theme .theme-toggle{background:0 0;border:0;padding:0}.sidebar-brand-theme .theme-toggle-seg{width:22px}.sidebar-brand-theme .language-switcher-trigger.language-switcher-trigger--compact{background:0 0;border:0;width:24px;min-width:24px;height:24px}.sidebar-brand-theme .language-switcher-trigger--compact .language-switcher-trigger__flag{width:16px;height:16px}.brand-icon-sidebar{background:#ffffff0f;border:1px solid #ff408140;border-radius:12px;flex-shrink:0;width:48px;height:48px;position:relative;overflow:hidden;box-shadow:0 6px 18px #ff174433}.brand-icon-sidebar picture,.brand-icon-sidebar img{-o-object-fit:cover;object-fit:cover;width:100%;height:100%;display:block}.nav-brand-sidebar-link{min-width:0;color:inherit;font-family:"Rajdhani", var(--font-mono), sans-serif;letter-spacing:1px;flex-direction:column;line-height:1.15;text-decoration:none;display:flex}.brand-text-main-sidebar{font-family:"Rajdhani", var(--font-mono), sans-serif;background:linear-gradient(135deg,#ff1744 0%,#ff5252 50%,#f50057 100%);-webkit-text-fill-color:transparent;text-shadow:0 0 12px #ff006066;-webkit-background-clip:text;background-clip:text;font-size:1.25rem;font-weight:700}.brand-text-sub-sidebar{font-family:"Rajdhani", var(--font-mono), sans-serif;letter-spacing:.35em;color:#f0f0ffa6;font-size:.85rem;font-weight:600}.brand-actions-sidebar{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.brand-action-button,.user-menu-button-sidebar{color:var(--text-secondary)!important;border-radius:var(--radius-xs)!important;transition:background var(--dur-fast) ease, color var(--dur-fast) ease!important;padding:6px!important}.brand-action-button:hover,.user-menu-button-sidebar:hover{background:var(--sidebar-hover)!important;color:var(--text-primary)!important}.user-avatar-sidebar{border:1px solid var(--border);font-size:12px;font-family:var(--font-mono);background:var(--surface-3);color:var(--text-primary)}.new-chat-mobile-button{color:var(--accent)!important;background:var(--accent-soft)!important;border-radius:var(--radius-xs)!important}.new-chat-mobile-button:hover{filter:brightness(.96);background:var(--accent-soft)!important}.nav-collapse-section{flex-direction:column;display:flex}.nav-collapsible-content{overflow:hidden}.nav-collapsible-content.expanded{max-height:none}.nav-actions-sidebar{display:flex}.login-link-sidebar{width:100%;text-decoration:none}.login-button-sidebar{width:100%;border:1px solid var(--border-strong)!important;color:var(--text-primary)!important;background:var(--surface-1)!important;border-radius:var(--radius-sm)!important;font-family:var(--font-mono)!important;text-transform:none!important;transition:background var(--dur-fast) ease, border-color var(--dur-fast) ease!important;padding:7px 14px!important;font-size:13px!important;font-weight:600!important}.login-button-sidebar:hover{background:var(--sidebar-hover)!important;border-color:var(--text-tertiary)!important}.sidebar-close-btn-fixed{top:10px;z-index:5;width:32px;height:32px;inset-inline-end:10px;color:var(--text-secondary)!important;background:var(--surface-2)!important;border-radius:var(--radius-xs)!important;display:none!important;position:absolute!important}.sidebar-close-btn-fixed:hover{color:var(--text-primary)!important;background:var(--surface-3)!important}.sidebar-close-btn-strip{top:calc(12px + env(safe-area-inset-top,0px));z-index:1101;width:44px;height:44px;box-shadow:var(--shadow-2);animation:sidebar-close-in var(--dur-med) ease;inset-inline-start:min(330px,100vw - 48px);color:var(--text-primary)!important;background:var(--surface-1)!important;border:1px solid var(--border-strong)!important;border-radius:14px!important;position:fixed!important}.sidebar-close-btn-strip:hover{background:var(--surface-2)!important}@keyframes sidebar-close-in{0%{opacity:0}to{opacity:1}}.menu-item-sidebar{gap:4px;font-family:var(--font-mono)!important;color:var(--text-primary)!important;font-size:13px!important}.menu-item-sidebar:hover{background:var(--accent-soft)!important}.menu-item-sidebar svg{color:var(--text-secondary)}.logout-item-sidebar:hover{background:var(--danger-soft)!important}.logout-item-sidebar:hover svg{color:var(--danger)}.gpt-sidebar-content{overscroll-behavior:contain;flex-direction:column;flex:auto;gap:2px;min-height:0;padding:4px 8px 6px;display:flex;overflow-y:auto}.gpt-nav-static{flex-direction:column;flex:none;gap:2px;display:flex}.gpt-section{flex-direction:column;gap:1px;padding:1px 0;display:flex}.gpt-section-label{letter-spacing:.12em;text-transform:uppercase;align-items:center;gap:8px;padding:14px 10px 5px;display:flex;font-family:var(--font-mono)!important;color:var(--text-tertiary)!important;font-size:10.5px!important;font-weight:600!important}.gpt-section+.gpt-section{border-top:1px solid var(--border);margin-top:3px;padding-top:3px}.office-alpha-badge{letter-spacing:.08em;color:var(--accent);background:var(--accent-soft);border-radius:var(--radius-full);padding:1px 7px;font-size:9px;font-weight:600}.gpt-item{border-radius:var(--radius-sm);min-height:28px;color:var(--text-secondary);cursor:pointer;font-family:var(--font-mono);transition:background var(--dur-fast) ease, color var(--dur-fast) ease;align-items:center;gap:9px;padding:2px 8px;text-decoration:none;display:flex;position:relative}.gpt-item:hover{background:var(--sidebar-hover);color:var(--text-primary)}.gpt-item.active{background:var(--sidebar-active);color:var(--text-primary)}.gpt-item.active:before{content:"";inset-inline-start:0;background:var(--accent);border-radius:2px;width:2px;position:absolute;top:20%;bottom:20%}.gpt-item-icon{color:var(--text-tertiary);transition:color var(--dur-fast) ease;flex-shrink:0;width:16px!important;height:16px!important;font-size:16px!important}.gpt-item:hover .gpt-item-icon,.gpt-item.active .gpt-item-icon{color:var(--accent)}.gpt-support-dot{background:var(--accent);border-radius:50%;flex-shrink:0;width:7px;height:7px}.gpt-item-text{white-space:nowrap;text-overflow:ellipsis;flex:auto;min-width:0;font-size:13px;line-height:1.35;overflow:hidden}.gpt-item-avatar{border:1px solid var(--border)}.gpt-item-count{color:var(--text-tertiary);background:var(--surface-2);border-radius:var(--radius-full);flex-shrink:0;padding:1px 7px;font-size:10.5px}.gpt-item.gpt-new-chat{color:var(--text-primary);background:var(--surface-1);border-radius:var(--radius-sm);margin-bottom:2px;font-weight:600}.gpt-item.gpt-new-chat .gpt-item-icon{color:var(--text-primary)}.gpt-item.gpt-new-chat:hover{background:var(--surface-2)}.gpt-project-group{flex-direction:column;display:flex}.gpt-folder-item{padding-inline-start:4px}.gpt-folder-toggle{width:22px;height:22px;color:var(--text-tertiary);border-radius:var(--radius-xs);cursor:pointer;transition:background var(--dur-fast) ease, color var(--dur-fast) ease;background:0 0;border:none;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:inline-flex}.gpt-folder-toggle:hover{background:var(--surface-3);color:var(--text-primary)}.gpt-folder-toggle svg{transition:transform var(--dur-fast) var(--ease-out)}.gpt-folder-main{flex:auto;align-items:center;gap:9px;min-width:0;display:flex}.gpt-project-chats{border-inline-start:1px solid var(--border);flex-direction:column;gap:1px;margin-inline-start:14px;padding-inline-start:18px;display:flex}.gpt-chats-section{border-top:1px solid var(--border);flex:none;margin-top:4px}.gpt-load-more{border:1px solid var(--border);border-radius:var(--radius-sm);width:100%;color:var(--text-secondary);font-family:var(--font-mono);cursor:pointer;transition:background var(--dur-fast) ease, color var(--dur-fast) ease;background:0 0;margin:4px 0 2px;padding:6px 10px;font-size:11.5px;display:block}.gpt-load-more:hover{background:var(--sidebar-hover);color:var(--text-primary)}.chat-search-dialog{border:1px solid var(--border,#26251f1f);font-family:var(--font-mono);background:var(--surface-1,#fbfaf7)!important;color:var(--text-primary,#26251f)!important;border-radius:var(--radius-md,14px)!important;box-shadow:var(--shadow-2)!important}.chat-search-head{border-bottom:1px solid var(--border);align-items:center;gap:10px;padding:14px 16px;display:flex}.chat-search-head-icon{color:var(--text-tertiary);flex-shrink:0}.chat-search-input{min-width:0;color:var(--text-primary);font-family:var(--font-mono);background:0 0;border:none;outline:none;flex:auto;font-size:14px}.chat-search-input::-moz-placeholder{color:var(--text-tertiary)}.chat-search-input::placeholder{color:var(--text-tertiary)}.chat-search-spinner{color:var(--accent);flex-shrink:0;animation:.9s linear infinite chat-search-spin}@keyframes chat-search-spin{to{transform:rotate(360deg)}}.chat-search-close{border-radius:var(--radius-xs);width:26px;height:26px;color:var(--text-tertiary);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;display:inline-flex}.chat-search-close:hover{background:var(--surface-2);color:var(--text-primary)}.chat-search-body{min-height:180px;max-height:min(52dvh,460px);padding:8px;overflow-y:auto}.chat-search-hint{text-align:center;color:var(--text-tertiary);font-size:12.5px;font-family:var(--font-mono);margin:24px 12px}.chat-search-result{border-radius:var(--radius-sm);width:100%;color:var(--text-primary);font-family:var(--font-mono);text-align:start;cursor:pointer;transition:background var(--dur-fast) ease;background:0 0;border:none;align-items:flex-start;gap:10px;padding:9px 10px;display:flex}.chat-search-result:hover{background:var(--surface-2)}.chat-search-result-icon{color:var(--text-tertiary);flex-shrink:0;margin-top:2px}.chat-search-result-main{flex-direction:column;gap:2px;min-width:0;display:flex}.chat-search-result-title{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;overflow:hidden}.chat-search-result-snippet{color:var(--text-secondary);-webkit-line-clamp:2;word-break:break-word;-webkit-box-orient:vertical;font-size:11.5px;display:-webkit-box;overflow:hidden}.chat-search-result mark{background:var(--accent-soft,#c15f3c1f);color:var(--accent,#c15f3c);border-radius:3px;padding:0 1px}@media (width<=768px){.chat-search-dialog{width:calc(100% - 24px)!important;margin:12px!important}}.chat-delete-body{padding:18px 20px 4px}.chat-delete-title{font-family:var(--font-mono);color:var(--text-primary);margin:0 0 10px;font-size:15px;font-weight:600}.chat-delete-name{border-radius:var(--radius-sm);background:var(--surface-2);color:var(--text-primary);overflow-wrap:anywhere;-webkit-line-clamp:3;-webkit-box-orient:vertical;margin:0 0 12px;padding:8px 10px;font-size:13px;line-height:1.45;display:-webkit-box;overflow:hidden}.chat-delete-text{color:var(--text-secondary);margin:0;font-size:12.5px;line-height:1.55}.chat-delete-error{border-radius:var(--radius-sm);background:var(--danger-soft);color:var(--danger);margin:12px 0 0;padding:8px 10px;font-size:12.5px;line-height:1.5}.chat-delete-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;padding:16px 20px 18px;display:flex}.chat-delete-actions button{border-radius:var(--radius-sm);min-height:44px;font-family:var(--font-mono);cursor:pointer;transition:background var(--dur-fast) ease, opacity var(--dur-fast) ease;padding:0 16px;font-size:13px}.chat-delete-cancel{border:1px solid var(--border-strong);color:var(--text-primary);background:0 0}.chat-delete-cancel:hover:not(:disabled){background:var(--surface-2)}.chat-delete-confirm{background:var(--danger);border:1px solid var(--danger);color:var(--accent-contrast);font-weight:600}.chat-delete-confirm:hover:not(:disabled){opacity:.9}.chat-delete-actions button:disabled{opacity:.6;cursor:default}.chat-delete-actions button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.gpt-chats-list{flex-direction:column;gap:1px;display:flex}.gpt-chats-group-label{font-family:var(--font-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--text-tertiary);padding:8px 9px 2px;font-size:10px;font-weight:600}.gpt-chats-group-label:first-child{padding-top:4px}.gpt-chat-item{border-radius:var(--radius-sm);min-height:34px;color:var(--text-secondary);cursor:pointer;transition:background var(--dur-fast) ease, color var(--dur-fast) ease;align-items:center;gap:8px;padding:5px 8px 5px 10px;display:flex;position:relative}.gpt-chat-item:hover{background:var(--sidebar-hover);color:var(--text-primary)}.gpt-chat-item.active{background:var(--sidebar-active);color:var(--text-primary)}.gpt-chat-item.active:before{content:"";inset-inline-start:0;background:var(--accent);border-radius:2px;width:2px;position:absolute;top:20%;bottom:20%}.gpt-chat-item.nested{min-height:30px}.gpt-chat-title{font-family:var(--font-mono);white-space:nowrap;text-overflow:ellipsis;flex:auto;min-width:0;font-size:12.5px;line-height:1.35;overflow:hidden}.gpt-chat-avatar{border:1px solid var(--border);width:20px!important;height:20px!important}.gpt-chat-project-mark{color:var(--text-tertiary);flex-shrink:0;align-items:center;margin-inline-end:-3px;display:inline-flex}.gpt-chat-item.active .gpt-chat-project-mark,.gpt-chat-item:hover .gpt-chat-project-mark{color:var(--text-secondary)}.gpt-chat-streaming-dot{background:var(--accent);border-radius:50%;flex-shrink:0;width:7px;height:7px;animation:1.2s ease-in-out infinite sidebar-dot-pulse}@keyframes sidebar-dot-pulse{0%,to{opacity:1}50%{opacity:.35}}.gpt-chat-research{border-radius:var(--radius-full);background:var(--accent-soft);color:var(--accent-hover);font-family:var(--font-mono);white-space:nowrap;flex-shrink:0;align-items:center;gap:5px;padding:1px 7px;font-size:9.5px;font-weight:600;display:inline-flex}.gpt-chat-research-dot{background:var(--accent);border-radius:50%;width:6px;height:6px;animation:1.2s ease-in-out infinite sidebar-dot-pulse}@media (prefers-reduced-motion:reduce){.gpt-chat-research-dot{animation:none}}.gpt-chat-time{inset-inline-end:8px;font-family:var(--font-mono);color:var(--text-tertiary);white-space:nowrap;pointer-events:none;transition:opacity var(--dur-fast) ease;font-size:9.5px;position:absolute;top:50%;transform:translateY(-50%)}.gpt-chat-item.active .gpt-chat-time{color:var(--text-secondary)}.gpt-chat-item:hover .gpt-chat-time,.gpt-chat-item:focus-within .gpt-chat-time{opacity:0}@media (pointer:coarse){.gpt-chat-time{flex-shrink:0;position:static;transform:none}.gpt-chat-item:hover .gpt-chat-time,.gpt-chat-item:focus-within .gpt-chat-time{opacity:1}}.gpt-chat-actions{opacity:0;transition:opacity var(--dur-fast) ease;flex-shrink:0;align-items:center;gap:2px;display:flex}.gpt-chat-item:hover .gpt-chat-actions,.gpt-chat-item:focus-within .gpt-chat-actions{opacity:1}@media (pointer:coarse){.gpt-chat-actions{opacity:.55}}.gpt-action-btn{color:var(--text-tertiary)!important;border-radius:var(--radius-xs)!important;padding:4px!important}.gpt-action-btn:hover{color:var(--text-primary)!important;background:var(--surface-3)!important}.gpt-action-btn.gpt-delete:hover{color:var(--danger)!important;background:var(--danger-soft)!important}.gpt-action-btn svg{width:15px;height:15px;font-size:15px!important}.gpt-edit-row{align-items:center;gap:4px;width:100%;display:flex}.gpt-rename-input{flex:auto;min-width:0}.gpt-rename-input .MuiInputBase-root{font-family:var(--font-mono);color:var(--text-primary);background:var(--surface-1);border-radius:var(--radius-xs);font-size:12.5px}.gpt-rename-input .MuiOutlinedInput-notchedOutline{border-color:var(--border-strong)}.gpt-rename-input .MuiInputBase-root.Mui-focused .MuiOutlinedInput-notchedOutline{border-color:var(--accent)}.sidebar-profile{border-top:1px solid var(--border);background:#00000024;flex-direction:column;flex-shrink:0;gap:6px;padding:6px;display:flex}.sidebar-profile-tab{border-radius:var(--radius-sm);width:100%;min-height:44px;color:var(--text-primary);font-family:var(--font-mono);cursor:pointer;transition:background var(--dur-fast) ease;background:0 0;border:none;align-items:center;gap:9px;padding:6px 8px;text-decoration:none;display:flex}.sidebar-profile-tab:hover{background:var(--sidebar-hover)}.sidebar-profile-avatar{border:1px solid var(--border-strong);flex-shrink:0;width:28px!important;height:28px!important;font-size:11px!important;font-family:var(--font-mono)!important;background:var(--surface-3)!important;color:var(--text-primary)!important}.sidebar-profile-avatar-guest{border:1px solid var(--border-strong);width:28px;height:28px;color:var(--text-secondary);border-radius:50%;justify-content:center;align-items:center;display:inline-flex}.sidebar-profile-name{text-align:start;white-space:nowrap;text-overflow:ellipsis;flex:auto;min-width:0;font-size:12.5px;overflow:hidden}.sidebar-profile-plan-chip{letter-spacing:.06em;text-transform:uppercase;color:var(--accent-hover);background:var(--accent-soft);border-radius:var(--radius-full);flex-shrink:0;padding:2px 8px;font-size:10px;font-weight:600}.sidebar-profile-upgrade-chip{letter-spacing:.05em;color:var(--accent-contrast);background:var(--accent);border-radius:var(--radius-full);cursor:pointer;transition:background var(--dur-fast) ease;flex-shrink:0;padding:3px 10px;font-size:10.5px;font-weight:600}.sidebar-profile-upgrade-chip:hover{background:var(--accent-hover)}.sidebar-profile-chevron{color:var(--text-tertiary);transition:transform var(--dur-fast) var(--ease-out);flex-shrink:0}.sidebar-profile-chevron.is-open{transform:rotate(180deg)}.sidebar-profile-menu,.sidebar-profile-menu-static{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-1);flex-direction:column;gap:6px;padding:8px;display:flex}.sidebar-profile-plan{border-radius:var(--radius-xs);background:var(--surface-2);justify-content:space-between;align-items:center;gap:8px;padding:6px 8px;display:flex}.sidebar-profile-plan-info{flex-direction:column;gap:1px;min-width:0;display:flex}.sidebar-profile-row-label{letter-spacing:.1em;text-transform:uppercase;color:var(--text-tertiary);font-size:10px;font-weight:600}.sidebar-profile-plan-name{color:var(--text-primary);font-size:13px;font-weight:600}.sidebar-profile-upgrade{border-radius:var(--radius-full);background:var(--accent);color:var(--accent-contrast);transition:background var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);flex-shrink:0;align-items:center;gap:4px;padding:6px 12px;font-size:12px;font-weight:600;text-decoration:none;display:inline-flex}.sidebar-profile-upgrade:hover{background:var(--accent-hover);transform:translateY(-1px)}.sidebar-profile-row{justify-content:space-between;align-items:center;gap:8px;padding:2px 8px;display:flex}.sidebar-profile-logout{border-radius:var(--radius-xs);width:100%;color:var(--text-secondary);font-family:var(--font-mono);cursor:pointer;transition:background var(--dur-fast) ease, color var(--dur-fast) ease;background:0 0;border:none;align-items:center;gap:8px;padding:7px 8px;font-size:12px;display:flex}.sidebar-profile-logout:hover{background:var(--danger-soft);color:var(--danger)}.theme-toggle{background:var(--sidebar-hover);border:1px solid var(--border);border-radius:var(--radius-full);flex-shrink:0;align-items:center;gap:2px;padding:3px;display:inline-flex}.theme-toggle-seg{width:28px;height:24px;color:var(--text-tertiary);border-radius:var(--radius-full);cursor:pointer;transition:background var(--dur-fast) ease, color var(--dur-fast) ease;background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.theme-toggle-seg:hover{color:var(--text-primary)}.theme-toggle-seg.is-active{background:var(--surface-1);color:var(--accent);box-shadow:var(--shadow-1)}.chat-history-sidebar.collapsed{width:64px;min-width:64px;max-width:64px}.chat-history-sidebar.collapsed .sidebar-navigation{flex-direction:column;align-items:center;padding:12px 8px;display:flex}.chat-history-sidebar.collapsed .nav-brand-sidebar{justify-content:center;margin-bottom:8px}.chat-history-sidebar.collapsed .collapsed-logo{width:36px;height:36px;margin:0 auto}.chat-history-sidebar.collapsed .brand-identity-sidebar,.chat-history-sidebar.collapsed .brand-actions-sidebar,.chat-history-sidebar.collapsed .nav-collapse-section,.chat-history-sidebar.collapsed .sidebar-profile{display:none!important}.sidebar-edge-toggle{border:1px solid var(--border-strong);border-radius:0 var(--radius-xs) var(--radius-xs) 0;width:24px;height:48px;color:var(--text-tertiary);cursor:pointer;z-index:20;transition:background var(--dur-fast) ease, color var(--dur-fast) ease;background:#191c29;border-left:none;justify-content:center;align-items:center;margin:0;padding:0;display:flex;position:absolute;top:50%;right:-12px;transform:translateY(-50%)}.sidebar-edge-toggle:hover{background:var(--surface-2);color:var(--text-primary)}.chat-history-sidebar.collapsed .sidebar-edge-toggle{right:-12px}html[data-theme=dark] .sidebar-edge-toggle{background:#1f1f1d}@media (width<=1024px){.sidebar-close-btn-fixed{display:inline-flex!important}.sidebar-backdrop{display:block}.sidebar-backdrop.is-open{opacity:1;pointer-events:auto}.chat-history-sidebar.is-closed:not(.overlay){display:none!important}.chat-history-sidebar.overlay{transition:transform var(--dur-med) ease, visibility 0s}.chat-history-sidebar.overlay.is-closed{visibility:hidden;box-shadow:none;transition:transform var(--dur-med) ease, visibility 0s var(--dur-med);transform:translate(-100%)}[dir=rtl] .chat-history-sidebar.overlay.is-closed{transform:translate(100%)}.chat-history-sidebar.overlay.is-open{animation:sidebar-drawer-in var(--dur-med) ease}[dir=rtl] .chat-history-sidebar.overlay.is-open{animation-name:sidebar-drawer-in-rtl}@media (prefers-reduced-motion:reduce){.chat-history-sidebar.overlay,.chat-history-sidebar.overlay.is-closed{transition:none}.chat-history-sidebar.overlay.is-open{animation:none}}.chat-history-sidebar{z-index:1100;width:min(320px,85vw);max-width:320px;box-shadow:var(--shadow-2);border-radius:0}}.sidebar-fab-open{inset-inline-start:14px;z-index:1050;width:44px;height:44px;bottom:calc(16px + 15%);border-radius:var(--radius-md)!important;border:1px solid var(--border-strong)!important;background:var(--surface-1)!important;color:var(--text-primary)!important;box-shadow:var(--shadow-2)!important;transition:transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease!important;display:none!important;position:fixed!important}.sidebar-fab-open:hover{transform:translateY(-2px)}@media (width<=1024px){.sidebar-fab-open{top:calc(env(safe-area-inset-top,0px) + 8px);bottom:auto;width:40px;height:40px;inset-inline-start:10px;display:inline-flex!important}.sidebar-fab-open.hidden{display:none!important}}button.language-switcher-trigger.sidebar-fab-lang{display:none}@media (width<=1024px){button.language-switcher-trigger.sidebar-fab-lang{top:calc(env(safe-area-inset-top,0px) + 8px);border-radius:var(--radius-md);border:1px solid var(--border-strong);background:var(--surface-1);width:40px;min-width:40px;height:40px;box-shadow:var(--shadow-2);z-index:1050;display:inline-flex;position:fixed;inset-inline-start:56px}button.language-switcher-trigger.sidebar-fab-lang .language-switcher-trigger__flag{width:20px;height:20px}button.language-switcher-trigger.sidebar-fab-lang.hidden{display:none}.skills-page.skills-page,.office-workspace.office-workspace{padding-block-start:calc(env(safe-area-inset-top,0px) + 58px)}}@media (width<=1024px) and (height<=480px){button.language-switcher-trigger.sidebar-fab-lang{top:calc(env(safe-area-inset-top,0px) + 2px)}}@media (width<=640px){button.language-switcher-trigger.sidebar-fab-lang{inset-inline-start:54px}}@media (width<=1024px) and (height<=480px){.sidebar-fab-open{top:calc(env(safe-area-inset-top,0px) + 2px)}}@media (width<=640px){.chat-history-sidebar.overlay{height:100dvh}.sidebar-navigation{padding:14px 12px 10px}.sidebar-fab-open{inset-inline-start:8px}}[dir=rtl] .chat-history-sidebar{border-right:none;border-left:1px solid var(--border);left:auto;right:0}[dir=rtl] .chat-history-sidebar.overlay{left:auto;right:0}[dir=rtl] .sidebar-edge-toggle{border-left:1px solid var(--border-strong);border-radius:var(--radius-xs) 0 0 var(--radius-xs);border-right:none;left:-12px;right:auto}[dir=rtl] .chat-history-sidebar.collapsed .sidebar-edge-toggle{left:-12px;right:auto}@media (hover:none) and (pointer:coarse){.chat-search-input,.gpt-rename-input .MuiInputBase-root{font-size:16px}}.chat-history-sidebar.overlay:focus{outline:none}@keyframes sidebar-drawer-in{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes sidebar-drawer-in-rtl{0%{transform:translate(100%)}to{transform:translate(0)}}.gpt-chat-item.two-line{min-height:46px}.gpt-chat-text{flex-direction:column;flex:auto;gap:1px;min-width:0;display:flex}.gpt-chat-text .gpt-chat-title{flex:none;display:block}.gpt-chat-sub{font-family:var(--font-mono);letter-spacing:.02em;color:var(--text-tertiary);white-space:nowrap;text-overflow:ellipsis;font-size:10.5px;line-height:1.3;overflow:hidden}.gpt-chat-item.active .gpt-chat-sub{color:var(--text-secondary)}.gpt-chat-sub.is-live{color:var(--accent-hover)}.gpt-chat-sub.is-relaxed{color:#7c3aed}.gpt-chat-relaxed-dot{background:#7c3aed;border-radius:50%;flex-shrink:0;width:7px;height:7px}.gpt-chat-relaxed-dot.is-ready{background:var(--accent)}.gpt-chat-more{opacity:0;width:28px;height:28px;transition:opacity var(--dur-fast) ease;flex:none}.gpt-chat-item:hover .gpt-chat-more,.gpt-chat-item:focus-within .gpt-chat-more,.gpt-chat-item.active .gpt-chat-more,.gpt-chat-more.is-open{opacity:1}@media (pointer:coarse){.gpt-chat-more{opacity:1;width:40px;height:40px}}.gpt-chat-menu-item{gap:10px!important;min-height:40px!important}.gpt-chat-menu-delete:hover{background:var(--danger-soft)!important;color:var(--danger)!important}.gpt-chat-menu-delete:hover svg{color:var(--danger)}.sidebar-apps{border-top:1px solid var(--border);flex-direction:column;flex:none;padding:4px 8px 8px;display:flex}.sidebar-apps-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding-top:4px;display:grid}.sidebar-app-tile{border-radius:var(--radius-sm);background:var(--surface-1);min-width:0;min-height:48px;color:var(--text-secondary);font-family:var(--font-mono);letter-spacing:.02em;transition:background var(--dur-fast) ease, color var(--dur-fast) ease;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:5px 0;font-size:9.5px;text-decoration:none;display:flex}.sidebar-app-tile:hover{background:var(--sidebar-hover);color:var(--text-primary)}.sidebar-app-tile:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.sidebar-app-tile span{text-align:center;overflow-wrap:anywhere;hyphens:auto;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-width:100%;padding:0 2px;line-height:1.2;display:-webkit-box;overflow:hidden}.chat-history-sidebar .gpt-chats-section{flex:1 0 auto}.chat-history-sidebar.overlay .gpt-item,.chat-history-sidebar.overlay .gpt-chat-item{min-height:44px}.chat-history-sidebar.overlay .gpt-chat-item.two-line{min-height:48px}[dir=rtl] .sidebar-app-tile{letter-spacing:0;font-size:9px}.gpt-chat-text .gpt-chat-title{text-align:start;unicode-bidi:plaintext}.sidebar-apps{padding:6px 8px}.sidebar-apps-grid{gap:4px;padding-top:0}.sidebar-app-tile{letter-spacing:.01em;gap:2px;min-height:32px;padding:3px 0;font-size:8.5px}[dir=rtl] .sidebar-app-tile{font-size:8.5px}.chat-history-sidebar.overlay .sidebar-app-tile{min-height:40px;font-size:9.5px}
