.workspace-shell .workspace-header{gap:1rem;padding:1rem 1.5rem;border-bottom:1px solid #e9e9ec;box-shadow:none;background:#fff;align-items:center;}
.workspace-shell .brand-companions{display:none;}
.workspace-shell .wordmark{flex:0 0 auto;}
.workspace-shell .workspace-primary-navigation.grouped-navigation{display:flex;flex:1;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:.25rem;overflow:visible;min-width:0;width:auto;padding:0;}
.workspace-shell .workspace-header .grouped-navigation{background:transparent;border:0;box-shadow:none;border-radius:0;}
.workspace-shell .workspace-header .grouped-navigation>.workspace-nav-link,.workspace-shell .workspace-header .grouped-navigation>.workspace-menu{width:auto;flex:0 0 auto;}
.workspace-shell .workspace-header .grouped-navigation .workspace-nav-link[aria-pressed=true]{color:#202027;background:#f0f0f3;}
.workspace-shell .grouped-navigation .workspace-nav-link,.workspace-shell .grouped-navigation .workspace-menu-trigger{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:40px;padding:.6rem .85rem;border:0;border-radius:.65rem;background:transparent;color:#575761;font:inherit;font-size:.875rem;font-weight:500;text-decoration:none;white-space:nowrap;box-shadow:none;}
.workspace-shell .grouped-navigation :is(.workspace-nav-link,.workspace-menu-trigger):hover,.workspace-shell .grouped-navigation .is-active,.workspace-shell .grouped-navigation [aria-expanded=true]{color:#202027;background:#f0f0f3;}
.workspace-menu{position:relative;}
.workspace-menu-trigger svg,.workspace-account summary svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;}
.workspace-shell .workspace-menu-panel{position:absolute;z-index:300;top:calc(100% + .5rem);left:0;display:grid;grid-template-columns:1fr 1fr;gap:.25rem .75rem;min-width:540px;max-height:min(75dvh,650px);overflow-y:auto;padding:.6rem;border:1px solid #e2e2e8;border-radius:.9rem;background:#fff;box-shadow:0 10px 35px #16162220;}
.workspace-menu-study .workspace-menu-panel>section:first-child{grid-row:span 2;}
.workspace-shell .workspace-menu-admin .workspace-menu-panel{left:auto;right:0;}
.workspace-menu-admin .workspace-menu-panel>section:last-child{grid-column:1;grid-row:1 / span 2;}
.workspace-menu-admin .workspace-menu-panel>section:not(:last-child){grid-column:2;}
.workspace-menu-admin .workspace-menu-panel>section:last-child,.workspace-menu-study .workspace-menu-panel>section:nth-child(2){border-top:0;margin-top:0;padding-top:0;}
.workspace-menu-panel section+section{border-top:1px solid #eeeef1;margin-top:.4rem;padding-top:.4rem;}
.workspace-menu-panel h3{margin:0;padding:.5rem .6rem;color:#777780;font-size:.75rem;font-weight:500;letter-spacing:.01em;}
.workspace-shell .workspace-menu-panel .workspace-menu-link{display:block;width:100%;padding:.65rem .7rem;min-height:40px;text-align:left;border:0;border-radius:.5rem;background:transparent;color:#35353e;font:inherit;font-size:.875rem;font-weight:400;text-decoration:none;box-shadow:none;}
.workspace-shell .workspace-menu-panel .workspace-menu-link:hover,.workspace-shell .workspace-menu-panel .workspace-menu-link.is-active{background:#f3f3f6;color:#22222b;}
.workspace-shell :is(.workspace-nav-link,.workspace-menu-trigger,.workspace-menu-link,.ask-history-question):focus-visible{outline:2px solid #2778e8;outline-offset:2px;}
.workspace-account{position:relative;flex:0 0 auto;}
.workspace-account>summary{display:flex;gap:.4rem;align-items:center;min-height:40px;list-style:none;cursor:pointer;color:#555560;font-size:.875rem;}
.workspace-account summary::-webkit-details-marker{display:none;}
.workspace-account-panel{position:absolute;z-index:300;right:0;top:calc(100% + .4rem);width:260px;border:1px solid #e2e2e8;background:white;padding:1rem;border-radius:.8rem;box-shadow:0 10px 35px #16162220;}
.workspace-shell .workspace-account-panel .identity-block{display:flex;flex-direction:column;align-items:stretch;gap:1rem;}
.workspace-account-panel .identity-block span{display:flex;flex-direction:column;gap:.35rem;}
.role-preview-disclosure{padding:.35rem 1.5rem;border-bottom:1px solid #eeeef1;background:#fafafa;}
.role-preview-disclosure>summary{width:max-content;padding:.35rem 0;font-size:.8125rem;color:#696974;cursor:pointer;}
.workspace-shell .role-preview-bar{margin:.5rem 0;border:1px solid #e6e6eb;border-radius:.75rem;box-shadow:none;}
.workspace-shell .companion-banner{display:none;}
.workspace-shell .course-selector{padding:.65rem 1.5rem;background:#fff;border-bottom:1px solid #eeeef1;}
.workspace-shell .course-selector>span{font-size:.8125rem;color:#72727c;}
.student-chat-redesign.workspace-main-conversation.ask-history-layout{grid-template-columns:264px minmax(0,1fr);gap:2rem;max-width:1600px;margin:0 auto;padding:1.25rem 1.5rem;align-items:start;}
.workspace-shell .student-chat-redesign .ask-history-sidebar{position:sticky;top:1rem;display:flex;flex-direction:column;gap:0;align-self:start;min-width:0;padding:.75rem .5rem;background:#f7f7f8;border:1px solid #ededf0;border-radius:.85rem;box-shadow:none;max-height:calc(100dvh - 2rem);}
.ask-history-sidebar .ask-history-heading{padding:.2rem .65rem .6rem;}
.ask-history-sidebar .ask-history-heading h2{font-size:.875rem;font-weight:600;color:#303038;margin:0;}
.ask-history-sidebar .ask-history-new{order:0;margin:0 .25rem .8rem;padding:.65rem .75rem;min-height:42px;background:white;color:#34343c;border:1px solid #e2e2e7;font-size:.875rem;font-weight:500;box-shadow:none;}
.ask-history-sidebar .ask-history-content{min-height:0;overflow-y:auto;padding:0 .25rem;scrollbar-width:thin;}
.ask-history-sidebar .ask-history-search{margin:0 0 .8rem;}
.ask-history-sidebar .ask-history-search label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);}
.ask-history-sidebar .ask-history-search input{min-width:0;height:38px;border:1px solid #e2e2e7;background:#fff;border-radius:.55rem;padding:.5rem .6rem;font-size:.875rem;}
.ask-history-sidebar .ask-history-search button{background:transparent;color:#6c6c77;min-width:34px;border:0;}
.ask-history-sidebar .ask-history-folders{gap:.15rem;padding:0 0 .7rem;border-bottom:1px solid #e7e7eb;margin-bottom:.5rem;}
.ask-history-sidebar .ask-history-folder,.ask-history-sidebar .ask-history-chapters-toggle{padding:.55rem .6rem;min-height:38px;gap:.6rem;border:0;background:transparent;color:#575763;font-size:.875rem;font-weight:400;box-shadow:none;}
.ask-history-sidebar .ask-history-folder[aria-pressed=true]{background:#eaeaec;color:#262630;}
.ask-history-sidebar .ask-history-folder svg,.ask-history-sidebar .ask-history-chapters-toggle svg{width:16px;height:16px;}
.ask-history-sidebar .ask-history-list-heading{padding:.7rem .6rem .35rem;}
.ask-history-sidebar .ask-history-list-heading h3{font-size:.75rem;font-weight:500;color:#777782;margin:0;}
.ask-history-sidebar .ask-history-questions ol{gap:.15rem;margin:0;padding:0;list-style:none;}
.workspace-shell .ask-history-sidebar .ask-history-question{display:grid;grid-template-columns:18px minmax(0,1fr) 8px;align-items:start;gap:.55rem;width:100%;padding:.7rem .6rem;border:0;border-radius:.55rem;background:transparent;color:#44444e;text-align:left;box-shadow:none;}
.workspace-shell .ask-history-sidebar .ask-history-question:hover{background:#eeeeef;}
.workspace-shell .ask-history-sidebar .ask-history-question[aria-current=true]{background:#e9e9ec;color:#20202a;}
.question-row-copy{display:flex;flex-direction:column;gap:.25rem;min-width:0;}
.ask-history-sidebar .ask-history-question-title{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:.875rem;line-height:1.4;font-weight:400;}
.ask-history-sidebar .is-unreviewed .ask-history-question-title{color:#292932;font-weight:500;}
.ask-history-sidebar .ask-history-question-meta{display:flex;gap:.4rem;font-size:.75rem;line-height:1.35;color:#85858e;}
.ask-history-question-meta>span{max-width:125px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
.question-status{width:17px;height:17px;margin-top:1px;flex:0 0 auto;stroke:#898993;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round;}
.question-status-attention{stroke:#a76a1d;}
.question-status-thinking{stroke:#6c7fa5;animation:question-thinking 1.5s ease-in-out infinite;}
@keyframes question-thinking{50%{opacity:.35;}}
@media(prefers-reduced-motion:reduce){.question-status-thinking{animation:none;}}
.question-unread-slot{display:flex;align-items:center;height:19px;}
.question-unread-dot{display:inline-block;flex:0 0 auto;width:7px;height:7px;border-radius:50%;background:#287cf1;}
.history-dot-legend{display:flex;align-items:center;gap:.5rem;margin:.8rem .6rem .2rem;color:#72727d;font-size:.75rem;}
.ask-history-sidebar .ask-history-note{margin:.8rem .6rem .2rem;font-size:.75rem;color:#85858f;}
.ask-history-sidebar .ask-history-more{background:transparent;border:0;color:#686875;padding:.6rem;font-size:.8125rem;}
.ask-history-sidebar .ask-history-status{font-size:.8125rem;line-height:1.5;color:#777782;}
.history-pending{display:flex;gap:.55rem;order:-1;margin:.25rem .4rem .8rem;padding:.6rem;background:#eef2f8;border-radius:.55rem;}
.history-pending>span{display:flex;flex-direction:column;min-width:0;gap:.25rem;}
.history-pending strong{font-size:.875rem;font-weight:500;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}
.history-pending small{font-size:.75rem;color:#6d7890;}
.workspace-shell .mobile-tab-bar{display:none;}
@media(max-width:1000px){.workspace-shell .workspace-header{flex-wrap:wrap;gap:.5rem 1rem;}.workspace-shell .grouped-navigation{order:3;flex-basis:100%;}.workspace-account{margin-left:auto;}.student-chat-redesign.workspace-main-conversation.ask-history-layout{gap:1.25rem;grid-template-columns:240px minmax(0,1fr);}.workspace-shell .course-selector>span{display:none;}}
@media(max-width:700px){
 .workspace-shell .workspace-header{padding:.65rem 1rem;}.workspace-shell .grouped-navigation{gap:.1rem;}.workspace-shell .grouped-navigation :is(.workspace-nav-link,.workspace-menu-trigger){padding:.55rem .65rem;font-size:.875rem;min-height:44px;}
 .workspace-shell .workspace-menu-panel,.workspace-shell .workspace-menu-admin .workspace-menu-panel{position:fixed;top:8.5rem;left:1rem;right:1rem;min-width:0;grid-template-columns:1fr;max-height:calc(100dvh - 10rem);}
 .workspace-menu-admin .workspace-menu-panel>section,.workspace-menu-admin .workspace-menu-panel>section:last-child,.workspace-menu-admin .workspace-menu-panel>section:not(:last-child){grid-column:auto;grid-row:auto;}
 .workspace-shell .course-selector{padding:.55rem 1rem;}.role-preview-disclosure{padding-inline:1rem;}
 .student-chat-redesign.workspace-main-conversation.ask-history-layout{grid-template-columns:minmax(0,1fr);padding:.8rem 1rem;gap:1rem;}
 .workspace-shell .student-chat-redesign .ask-history-sidebar{position:static;max-height:none;width:100%;padding:.5rem;}
 .ask-history-sidebar .ask-history-heading{display:flex;align-items:center;justify-content:space-between;padding:.3rem .4rem;}
 .ask-history-sidebar .ask-history-toggle{font-size:.8125rem;min-height:38px;background:transparent;color:#666674;}
 .ask-history-sidebar:not(.ask-history-open) .ask-history-content,.ask-history-sidebar:not(.ask-history-open) .history-dot-legend{display:none;}
 .ask-history-sidebar .ask-history-new{margin:.3rem .25rem;}.ask-history-sidebar .ask-history-content{max-height:55dvh;}
 .workspace-shell.student-mobile-shell{padding-bottom:env(safe-area-inset-bottom,0px);}
}
@media(min-width:701px){.ask-history-sidebar .ask-history-toggle{display:none;}.ask-history-sidebar .ask-history-content{display:block;}}
