.portalActions{display:flex;gap:8px;flex-wrap:wrap;grid-column:1/-1;margin-top:10px}
.portalHeader .practiceHint{color:#e5eee3}
.portalActions button,.taskTools button,.taskTools select,.taskTools input,.portalDialog button,.submissionToggle{font:inherit;border:1px solid #bdcbbc;border-radius:9px;padding:8px 12px;background:#fff;color:#344c3a;cursor:pointer}
.taskTools{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.taskTools input{flex:1;min-width:150px}.taskSummary{color:#59695b;font-size:13px;margin:8px 0}
#tasks .taskCard{padding:14px 16px;margin-bottom:10px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 16px;border-radius:12px}
#tasks .taskTitle{font-size:18px;margin:0}#tasks .due,#tasks .materialCount{font-size:13px;margin:0}#tasks .description{font-size:14px;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#tasks .openWorkspace{grid-column:2;grid-row:1/5;align-self:center;margin:0;padding:10px 12px;width:auto}.taskBadge{font-size:12px;color:#48614d}
#submissionHistory{flex:0 0 auto;background:#f9fbf7;border-bottom:1px solid #d1dace;padding:8px 12px}#submissionHistory summary{cursor:pointer;font-weight:700}.submissionList{max-height:26dvh;overflow:auto;display:grid;gap:8px;padding-top:8px}.submissionItem{border:1px solid #d4ded0;border-radius:10px;padding:10px;background:white}.submissionItem p{margin:3px 0;font-size:13px}.submissionItem audio{width:100%;max-width:450px}.submissionItem video{max-height:160px;max-width:100%}
.portalDialog{border:1px solid #c7d2c3;border-radius:14px;padding:0;width:min(1100px,95vw);max-width:95vw;height:90dvh;max-height:90dvh;color:#2e4434;background:#f6f8f2}.portalDialog::backdrop{background:#14281c88}.dialogHead{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #c7d2c3}.dialogHead h2{font-size:19px;margin:0}.libraryLayout{display:grid;grid-template-columns:240px minmax(0,1fr);height:calc(100% - 64px)}.libraryList{overflow:auto;padding:12px;border-right:1px solid #d7dfd1}.libraryList button{display:block;width:100%;margin-bottom:8px;text-align:left;overflow-wrap:anywhere}.libraryPreview{min-width:0;overflow:auto;padding:12px}.libraryPreview iframe{display:block;border:0;width:100%;height:calc(100% - 45px);min-height:250px}.libraryPreview audio,.libraryPreview video{width:100%;max-height:75%}.libraryPreview a{display:inline-block;margin:8px 0;color:#31583c}.libraryEmpty{padding:20px;line-height:1.5}
#messagesPanel.open{top:12px;bottom:12px;right:12px;width:326px;height:auto;max-height:calc(100dvh - 24px);z-index:210}#messagesList{min-height:0}.messagesComposer textarea{min-width:0;width:0}.messagesComposer{flex-shrink:0}.messagesHead{flex-shrink:0}.messageBubble{min-width:0;max-width:100%}
@media(min-width:1100px){body.chatDocked{padding-right:350px}body.chatDocked #workspace{right:350px}body.chatDocked #messagesLauncher{display:none}}
@media(max-width:1099px){#messagesPanel.open{inset:8px;width:auto;height:auto;max-height:calc(100dvh - 16px);padding-bottom:env(safe-area-inset-bottom)}#messagesLauncher{display:none}.workspaceTop{flex-wrap:wrap;gap:6px}.workspaceHeading{flex:1 1 150px}}
@media(max-width:600px){#tasks .taskCard{grid-template-columns:minmax(0,1fr)}#tasks .openWorkspace{grid-column:1;grid-row:auto;justify-self:start}.libraryLayout{grid-template-columns:1fr;grid-template-rows:150px minmax(0,1fr)}.libraryList{border-right:0;border-bottom:1px solid #d7dfd1}.portalDialog{width:96vw;max-width:96vw}.portalActions button{font-size:14px}.recordBar{max-height:48dvh!important}}
@media(max-width:1099px){#messagesPanel.open{top:calc(var(--chat-top,0px) + 8px);bottom:auto;height:calc(var(--chat-height,100dvh) - 16px);max-height:calc(var(--chat-height,100dvh) - 16px)}}
