/* Компактная навигация и единое меню аккаунта */
.chat-page .sidebar{padding:24px 16px 14px;background:linear-gradient(175deg,#193e34,#17352f 70%);border-right:1px solid #ffffff0d;gap:0;isolation:isolate}.chat-page .sidebar .brand{padding:0 10px;margin-bottom:28px;gap:11px}.chat-page .sidebar .brand-mark{height:38px;width:38px;border-radius:13px;background:#d1e5b7}.chat-page .sidebar .brand strong{font-size:24px;letter-spacing:-1px}.chat-page .sidebar .new-chat{min-height:46px;margin:0 0 20px;border-radius:13px;background:#d8eac8;border:1px solid #c5dcb4;color:#204533;box-shadow:0 4px 14px #09261b12;font-size:13px;font-weight:600}.chat-page .sidebar .new-chat:hover{background:#e5f2d9;transform:none}.chat-page .sidebar .side-group{order:1;padding:0 0 17px;margin:0;border-bottom:1px solid #ffffff12}.chat-page .sidebar .side-group a{padding:11px 12px;border-radius:11px;color:#c1d1c5;font-size:13px;gap:11px;min-height:42px}.chat-page .sidebar .side-group a:hover,.chat-page .sidebar .side-group a:first-child{background:#ffffff09;color:#edf4e9}.chat-page .side-group svg{width:19px;height:19px;color:#9cbb9e}.chat-page .side-group small{background:#ffffff0c;color:#b5ccb3;padding:2px 6px;border-radius:6px;font-size:10px}.chat-page .sidebar .chat-history{order:2;flex:1;min-height:90px;margin-top:23px;padding:0;overflow:auto;scrollbar-color:#426357 transparent}.chat-page .history-label{font-size:9px;letter-spacing:.11em;color:#84a18f;margin:0 9px 12px}.chat-page .history-label small{border-radius:6px;background:#ffffff0b;font-size:9px;color:#adccaf}.chat-page .history-search{display:block;margin:0 2px 18px}.chat-page .history-search input{height:39px;border:1px solid #ffffff14;border-radius:10px;padding:9px 12px;background:#ffffff06;color:#e3eee4;font-size:12px;box-shadow:none}.chat-page .history-search input::placeholder{color:#87a493}.chat-page .history-search input:focus{border-color:#87ac8b;outline:2px solid #b7d8b010}.chat-page .chat-date-group{font-size:10px;color:#829d8c;margin:19px 10px 8px}.chat-page .history-row{border-radius:10px;margin:4px 0;border:1px solid transparent;transition:background .15s}.chat-page .history-row.active{background:#ffffff0d;border-color:#ffffff0b}.chat-page .history-row:hover{background:#ffffff12}.chat-page #chat-list .history-open{font-size:12px;color:#d1dfd2;padding:12px 10px;font-weight:400}.chat-page #chat-list .history-more{font-size:20px;color:#8fac94;width:30px}.chat-page .history-sync{order:3;padding:12px 10px;font-size:9px;color:#829f8c;flex-shrink:0}.sidebar .account-box{position:relative;order:4;border:0;border-top:1px solid #ffffff12;padding:13px 0 0;margin:0;flex-shrink:0}.sidebar .account-trigger{display:flex;width:100%;align-items:center;gap:10px;padding:9px 8px;border:1px solid transparent;border-radius:12px;background:transparent;color:#e2ebdf;text-align:left;cursor:pointer;margin:0}.sidebar .account-trigger:hover,.sidebar .account-trigger[aria-expanded=true]{background:#ffffff09;border-color:#ffffff0b}.sidebar .account-avatar{width:35px;height:35px;display:grid;place-items:center;border-radius:11px;background:#b9d1aa;color:#244333;font-size:12px;font-weight:700;flex-shrink:0}.sidebar .account-identity{display:flex;flex-direction:column;min-width:0;flex:1;gap:3px}.sidebar .account-identity strong{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:12px;font-weight:550}.sidebar .account-identity small{font-size:10px;color:#8ca792}.sidebar .account-chevron{font-size:16px;color:#9db69e;transition:transform .2s}.sidebar .account-trigger[aria-expanded=true] .account-chevron{transform:rotate(180deg)}.sidebar .account-menu{position:absolute;bottom:calc(100% + 7px);left:0;right:0;border:1px solid #4b6b58;border-radius:14px;background:#25493b;padding:7px;box-shadow:0 12px 36px #061e2040;z-index:30;max-height:45dvh;overflow:auto}.sidebar .account-menu a,.sidebar .account-menu button,.sidebar .account-menu .teacher-profile-button{display:block;width:100%;box-sizing:border-box;margin:0;padding:11px 10px;border:0;border-radius:8px;background:transparent;color:#d5e3d0;text-decoration:none;text-align:left;font:12px/1.45 system-ui;cursor:pointer}.sidebar .account-menu a:hover,.sidebar .account-menu button:hover{background:#ffffff0b;color:#fff}.sidebar .account-menu #account-logout{border-top:1px solid #ffffff12;margin-top:5px;padding-top:13px;color:#dfb9aa;border-radius:0 0 8px 8px}.sidebar .account-menu .configured:before{color:#c0dfb2}.chat-page .sidebar .side-footer{order:5;padding:13px 8px 0;margin:8px 0 0;border:0;font-size:10px}.chat-page .sidebar .side-footer a{color:#8ea594}.sidebar :focus-visible{outline:2px solid #b4d6a3;outline-offset:2px}.sidebar [hidden]{display:none!important}@media(max-width:950px){.chat-page .sidebar{width:288px;padding-top:max(24px,env(safe-area-inset-top))}.chat-page .sidebar .brand{margin-bottom:24px}.chat-page .sidebar .side-footer{padding-bottom:env(safe-area-inset-bottom)}.chat-page #sidebar-close{top:25px;right:16px;color:#b3c8b6}.chat-page .sidebar .brand strong{font-size:22px}.chat-page .sidebar .history-search input{font-size:16px}}@media(max-height:650px){.chat-page .sidebar .brand{margin-bottom:14px}.chat-page .sidebar .new-chat{margin-bottom:12px}.chat-page .sidebar .chat-history{margin-top:15px}.chat-page .sidebar .side-group{padding-bottom:10px}.chat-page .history-sync{padding:8px}.chat-page .sidebar .side-footer{padding-top:4px;margin-top:4px}}@media(prefers-reduced-motion:reduce){.sidebar .account-chevron,.chat-page .history-row{transition:none}}
