/* Quiz, folders, dashboards, and standard layout. Cascade order is defined in index.html. */

.quiz-shell{height:min(82vh,860px);min-height:620px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#fff;border:1px solid var(--line,#e4e8f0);border-radius:16px;overflow:hidden}.quiz-head{padding:14px 18px;border-bottom:1px solid var(--line,#e4e8f0);background:#fff}.quiz-head-row{display:flex;align-items:center;justify-content:space-between;gap:14px}.quiz-title{font-weight:850;font-size:18px}.quiz-counter{font-size:13px;font-weight:800;color:#667085}.quiz-progress{height:7px;margin-top:10px;background:#edf1f6;border-radius:999px;overflow:hidden}.quiz-progress>span{display:block;height:100%;background:#2457e6;transition:width .2s}.quiz-stage{overflow:auto;padding:28px clamp(18px,4vw,54px)}.quiz-card{max-width:900px;margin:0 auto}.quiz-question-no{font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.08em;color:#667085;margin-bottom:10px}.quiz-feedback{margin-top:18px;padding:13px 15px;border-radius:11px;border:1px solid #dfe5ee;background:#f8fafc;line-height:1.5}.quiz-feedback.correct{background:#ecfdf3;border-color:#75d6a3;color:#087443}.quiz-feedback.wrong{background:#fef3f2;border-color:#f5a7a1;color:#9f2d26}.quiz-explanation{margin-top:7px;color:inherit}.quiz-footer{display:flex;align-items:center;gap:8px;padding:12px 18px;border-top:1px solid var(--line,#e4e8f0);background:#fff}.quiz-footer .quiz-spacer{flex:1}.quiz-review{height:100%;overflow:auto;padding:20px}.quiz-review-toolbar{position:sticky;top:0;z-index:5;display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px;background:rgba(255,255,255,.96);border:1px solid #e4e8f0;border-radius:12px;margin-bottom:12px}.quiz-filter.active{background:#2457e6;color:#fff}.quiz-review-list{display:grid;gap:12px}.quiz-review-item{border:1px solid #e1e6ee;border-radius:12px;padding:15px;background:#fff}.quiz-review-item.correct{border-left:5px solid #12b76a}.quiz-review-item.wrong{border-left:5px solid #f04438}.quiz-review-item.unchecked{border-left:5px solid #98a2b3}.quiz-review-status{font-size:12px;font-weight:850;text-transform:uppercase;margin-bottom:8px}.quiz-review-item.correct .quiz-review-status{color:#087443}.quiz-review-item.wrong .quiz-review-status{color:#b42318}.quiz-result{text-align:center;padding:34px 18px}.quiz-result-score{font-size:48px;font-weight:900;letter-spacing:-.04em}.quiz-result-meta{margin:8px 0 22px;color:#667085;font-weight:700}.quiz-review .mc-option,.quiz-review input,.quiz-review button.ic-option,.quiz-review .dd-slot{pointer-events:none}.exercise-focus #studentPreview>.quiz-shell{height:100%!important;min-height:0!important;border:0;border-radius:0}.exercise-focus #studentPreview{overflow:hidden!important}html[data-theme="dark"] .quiz-shell,html[data-theme="dark"] .quiz-head,html[data-theme="dark"] .quiz-footer,html[data-theme="dark"] .quiz-review-item,html[data-theme="dark"] .quiz-review-toolbar{background:#111827!important;color:#e8edf5!important;border-color:#2b3950!important}html[data-theme="dark"] .quiz-stage,html[data-theme="dark"] .quiz-review{background:#0f172a!important}html[data-theme="dark"] .quiz-feedback{background:#182235;border-color:#34435a}html[data-theme="dark"] .quiz-feedback.correct{background:#123627;color:#8ce8b4}html[data-theme="dark"] .quiz-feedback.wrong{background:#48201f;color:#ffaaa3}@media(max-width:700px){.quiz-shell{height:calc(100dvh - 24px);min-height:520px;border-radius:10px}.quiz-stage{padding:20px 14px}.quiz-footer{padding:10px}.quiz-title{font-size:16px}}

#listView.card{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.folder-v2{display:flex;flex-direction:column;gap:24px;width:100%}.folder-v2-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.folder-chip-strip{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.folder-chip,.folder-new{border:1px solid var(--border,#d9e0ea);background:var(--card,#fff);color:var(--text,#172033);border-radius:999px;padding:10px 16px;font-weight:750;cursor:pointer}.folder-chip.active{background:var(--text,#172033);color:var(--card,#fff);border-color:var(--text,#172033)}.folder-chip .count{opacity:.7;margin-left:5px}.folder-new{width:44px;height:44px;padding:0;border-radius:12px;font-size:24px}.folder-v2-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.folder-v2-title h2{margin:0;font-size:24px}.folder-manage{position:relative}.folder-manage>button{padding:9px 13px}.folder-manage-pop{position:absolute;right:0;top:46px;z-index:80;width:min(340px,80vw);background:var(--card,#fff);border:1px solid var(--border,#d9e0ea);border-radius:14px;padding:8px;box-shadow:0 16px 45px rgba(15,23,42,.16)}.folder-manage-item{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:6px;padding:7px;border-radius:9px}.folder-manage-item:hover{background:var(--soft,#f3f6fb)}.folder-icon-btn{width:34px;height:34px;padding:0}.folder-list-v2{border:1px solid var(--border,#d9e0ea);border-radius:16px;overflow:hidden;background:var(--card,#fff)}.folder-row-v2{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center;padding:18px 20px;border-bottom:1px solid var(--border,#e5eaf1);min-height:82px}.folder-row-v2:last-child{border-bottom:0}.folder-row-v2:hover{background:var(--soft,#f8fafc)}.folder-row-main{min-width:0;cursor:pointer}.folder-row-title{font-weight:800;font-size:17px;line-height:1.3}.folder-row-meta{margin-top:4px;color:var(--muted,#667085);font-size:14px}.folder-row-v2 .status-chip{white-space:nowrap}.folder-empty-v2{padding:30px;text-align:center;color:var(--muted,#667085)}
html[data-theme="dark"] .folder-chip,html[data-theme="dark"] .folder-new,html[data-theme="dark"] .folder-list-v2,html[data-theme="dark"] .folder-manage-pop{background:#111b2b!important;border-color:#2b3a50!important;color:#e8eef8!important}html[data-theme="dark"] .folder-chip.active{background:#e8eef8!important;color:#111827!important;border-color:#e8eef8!important}html[data-theme="dark"] .folder-row-v2{border-color:#26354a!important}html[data-theme="dark"] .folder-row-v2:hover,html[data-theme="dark"] .folder-manage-item:hover{background:#162235!important}
@media(max-width:700px){.folder-v2-head,.folder-v2-title{align-items:flex-start}.folder-row-v2{grid-template-columns:1fr auto}.folder-row-v2>.status-chip{grid-column:1/-1;width:max-content}.folder-row-meta{font-size:13px}}

/* Unified compact presentation for Standard, Exam, and Quiz questions. */
:is(#preview,#studentPreview,.exercise-tab-panel[data-tab-layout="standard"]) > .mc-group:not(.ms-group){
  width:100%;max-width:1000px;margin:16px 0 24px;
}
:is(#preview,#studentPreview,.exercise-tab-panel[data-tab-layout="standard"]) > .mc-group:not(.ms-group) > .mc-options{
  width:100%;max-width:760px;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;
}
:is(#preview,#studentPreview,.exercise-tab-panel[data-tab-layout="standard"]) > .mc-group:not(.ms-group) > .mc-options.mc-long{
  grid-template-columns:1fr;
}
:is(#preview,#studentPreview,.exercise-tab-panel[data-tab-layout="standard"]) > .mc-group:not(.ms-group) .mc-option{
  min-width:0;min-height:0;padding:8px 10px;align-items:flex-start!important;
  border:0!important;border-radius:6px;background:transparent;
}
:is(#preview,#studentPreview,.exercise-tab-panel[data-tab-layout="standard"]) > .mc-group:not(.ms-group) .mc-option:hover{
  background:#f6f7f9!important;
}
:is(#preview,#studentPreview,.exercise-tab-panel[data-tab-layout="standard"]) > .mc-group:not(.ms-group) .mc-option.selected{
  background:#eef4ff!important;color:#1849a9!important;
}
:is(#preview,#studentPreview,.exercise-tab-panel[data-tab-layout="standard"]) > .mc-group:not(.ms-group) .mc-option.correct,
:is(#preview,#studentPreview,.exercise-tab-panel[data-tab-layout="standard"]) > .mc-group:not(.ms-group) .mc-option.revealed{
  background:#ecfdf3!important;color:#087443!important;
}
:is(#preview,#studentPreview,.exercise-tab-panel[data-tab-layout="standard"]) > .mc-group:not(.ms-group) .mc-option.wrong{
  background:#fef3f2!important;color:#b42318!important;
}
:is(#preview,#studentPreview,.exercise-tab-panel[data-tab-layout="standard"]) > .mc-group:not(.ms-group) .mc-label{
  flex:0 0 auto;align-self:flex-start!important;padding-top:0!important;
  font-size:15px;line-height:1.45;
}
:is(#preview,#studentPreview,.exercise-tab-panel[data-tab-layout="standard"]) > .mc-group:not(.ms-group) .mc-text{
  min-width:0;white-space:normal;overflow-wrap:anywhere;align-self:flex-start!important;
  font-size:17px;line-height:1.5;
}
:is(#preview,#studentPreview,.exercise-tab-panel[data-tab-layout="standard"]) > .mc-group:not(.ms-group) > .mc-prompt{
  font-size:18px;line-height:1.5;font-weight:600;
}
:is(#preview,#studentPreview,.exercise-tab-panel[data-tab-layout="standard"]) > .mc-group.promptless{
  display:block;
}
:is(#preview,#studentPreview,.exercise-tab-panel[data-tab-layout="standard"]) > .mc-group.promptless > .mc-options:not(.mc-long){
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:4px 8px!important;
}
@media(max-width:600px){
  :is(#preview,#studentPreview,.exercise-tab-panel[data-tab-layout="standard"]) > .mc-group:not(.ms-group) > .mc-options{grid-template-columns:1fr;}
}
.exam-question-pane .mc-option,
.quiz-stage .mc-option{
  min-height:0!important;
  padding:8px 10px!important;
  align-items:flex-start!important;
  border:0!important;
  border-radius:6px!important;
  background:transparent!important;
}
.exam-question-pane .mc-option:hover,.quiz-stage .mc-option:hover{background:#f6f7f9!important}
.exam-question-pane .mc-option.selected,.quiz-stage .mc-option.selected{background:#eef4ff!important;color:#1849a9!important}
.exam-question-pane .mc-option.correct,.exam-question-pane .mc-option.revealed,
.quiz-stage .mc-option.correct,.quiz-stage .mc-option.revealed{background:#ecfdf3!important;color:#087443!important}
.exam-question-pane .mc-option.wrong,.quiz-stage .mc-option.wrong{background:#fef3f2!important;color:#b42318!important}
.exam-question-pane .mc-label,.exam-question-pane .mc-text,
.quiz-stage .mc-label,.quiz-stage .mc-text{align-self:flex-start!important;padding-top:0!important;line-height:1.45!important}
.exam-question-pane .mc-label,.quiz-stage .mc-label{font-size:15px!important}
.exam-question-pane .mc-text,.quiz-stage .mc-text{font-size:17px!important;line-height:1.5!important}
.exam-question-pane .mc-prompt,.quiz-stage .mc-prompt{font-size:18px!important;line-height:1.5!important;font-weight:600!important}
:is(.preview-actions,.exercise-actions,.question-actions,.split-actions,.collection-actions) button{
  min-height:32px;
  padding:6px 10px!important;
  border-radius:7px!important;
  font-size:12px!important;
}
html[data-theme="dark"] :is(.reading-questions,#preview,#studentPreview,.exercise-tab-panel,.exam-question-pane,.quiz-stage) .mc-option:hover{background:#1b293d!important}
html[data-theme="dark"] :is(.reading-questions,#preview,#studentPreview,.exercise-tab-panel,.exam-question-pane,.quiz-stage) .mc-option.selected{background:#172e58!important;color:#a9c8ff!important}
html[data-theme="dark"] :is(.reading-questions,#preview,#studentPreview,.exercise-tab-panel,.exam-question-pane,.quiz-stage) .mc-option.correct,
html[data-theme="dark"] :is(.reading-questions,#preview,#studentPreview,.exercise-tab-panel,.exam-question-pane,.quiz-stage) .mc-option.revealed{background:#123627!important;color:#8ce8b4!important}
html[data-theme="dark"] :is(.reading-questions,#preview,#studentPreview,.exercise-tab-panel,.exam-question-pane,.quiz-stage) .mc-option.wrong{background:#48201f!important;color:#ffaaa3!important}

/* Center the entire Standard column, including instructions and actions. */
:is(#preview,#studentPreview)[data-exercise-layout="standard"],
.exercise-tab-panel[data-tab-layout="standard"]{
  --standard-width:960px;
  padding:clamp(16px,2.4vw,32px)!important;
}
:is(#preview,#studentPreview)[data-exercise-layout="standard"] > *,
.exercise-tab-panel[data-tab-layout="standard"] > *{
  box-sizing:border-box;width:100%;max-width:var(--standard-width)!important;
  margin-left:auto!important;margin-right:auto!important;min-width:0;
}
:is(#preview,#studentPreview)[data-exercise-layout="standard"] > .mc-group > .mc-options,
.exercise-tab-panel[data-tab-layout="standard"] > .mc-group > .mc-options{
  width:100%;max-width:100%;
}
:is(#preview,#studentPreview)[data-exercise-layout="standard"] .mc-text,
.exercise-tab-panel[data-tab-layout="standard"] .mc-text{
  min-width:0;overflow-wrap:anywhere;
}
@media(max-width:600px){
  :is(#preview,#studentPreview)[data-exercise-layout="standard"] > .mc-group > .mc-options,
  .exercise-tab-panel[data-tab-layout="standard"] > .mc-group > .mc-options{grid-template-columns:1fr;}
}

/* ===== Student Dashboard v7 — one canonical Finder/Drive renderer ===== */
body.student-dashboard .app-page-head{display:none!important}
body.student-dashboard .app-main{padding-top:22px}
body.student-dashboard .app-content{max-width:1440px}
.student-dashboard-v7{width:100%;padding:0 0 34px}
.sd7-top{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 18px}
.sd7-location{display:flex;align-items:center;gap:10px;min-width:0}
.sd7-back{width:38px;height:38px;padding:0;display:grid;place-items:center;border:1px solid #d7deea;background:#fff;border-radius:10px;font-size:19px}
.sd7-folder-title{font-size:22px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sd7-section{margin:0 0 26px}
.sd7-sectionbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.sd7-label{font-size:12px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:#667085}
.sd7-new{border:1px solid #d0d7e2;background:#fff;padding:8px 12px;border-radius:10px;font-weight:750}
.sd7-folders{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:11px}
.sd7-folder{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr) 34px;gap:10px;align-items:center;min-height:76px;padding:12px 13px;border:1px solid #dce3ed;border-radius:13px;background:#fff;cursor:pointer;transition:border-color .14s,background .14s,box-shadow .14s}
.sd7-folder:hover{border-color:#b4c0d0;box-shadow:0 3px 12px rgba(16,24,40,.06)}
.sd7-folder.drag-over{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 2px rgba(37,99,235,.12)}
.sd7-folder-icon{font-size:27px;line-height:1}.sd7-folder-name{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sd7-folder-count{margin-top:3px;font-size:12px;color:#667085}
.sd7-more{width:34px;height:34px;padding:0;border:0;background:transparent;border-radius:9px;font-size:20px}.sd7-more:hover{background:#f2f4f7}
.sd7-toolbar{display:flex;align-items:center;gap:7px;margin-bottom:10px;flex-wrap:wrap}.sd7-toolbar .sa-count{margin-left:auto}
.sd7-list{border:1px solid #dfe5ee;border-radius:13px;background:#fff;overflow:visible}
.sd7-card{position:relative;display:grid;grid-template-columns:82px minmax(0,1fr) 36px;gap:14px;align-items:center;min-height:76px;padding:12px 14px;border-bottom:1px solid #edf0f4;background:#fff}
.sd7-card:first-child{border-radius:13px 13px 0 0}.sd7-card:last-child{border-bottom:0;border-radius:0 0 13px 13px}.sd7-card:only-child{border-radius:13px}.sd7-card[draggable=true]{cursor:grab}.sd7-card.is-dragging{opacity:.42}
.sd7-main{min-width:0;cursor:pointer}.sd7-name{font-size:16px;font-weight:820;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sd7-meta{font-size:13px;color:#667085;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sd7-empty{padding:24px;border:1px dashed #cfd8e6;border-radius:13px;text-align:center;color:#667085}.sd7-rootdrop{margin-top:10px;padding:11px;border:1px dashed transparent;border-radius:10px;text-align:center;color:transparent;font-size:12px}.sd7-rootdrop.drag-over{border-color:#2563eb;background:#eff6ff;color:#2563eb}
html[data-theme=dark] .sd7-back,html[data-theme=dark] .sd7-new,html[data-theme=dark] .sd7-folder,html[data-theme=dark] .sd7-list,html[data-theme=dark] .sd7-card{background:#111a2b!important;border-color:#2b3950!important;color:#e8eef8!important}
html[data-theme=dark] .sd7-folder:hover{background:#152137!important;border-color:#52627b!important}html[data-theme=dark] .sd7-folder.drag-over{background:#13274a!important;border-color:#4f8cff!important}
html[data-theme=dark] .sd7-label,html[data-theme=dark] .sd7-folder-count,html[data-theme=dark] .sd7-meta{color:#9eabc0!important}html[data-theme=dark] .sd7-more:hover{background:#1b2940!important}html[data-theme=dark] .sd7-empty{border-color:#34445e;color:#9eabc0}
@media(max-width:700px){body.student-dashboard .app-main{padding-top:14px}.sd7-folders{grid-template-columns:1fr}.sd7-card{grid-template-columns:70px minmax(0,1fr) 34px;gap:9px;padding:12px}.sd7-name{white-space:normal}.sd7-toolbar .sa-count{width:100%;margin-left:0}.sd7-folder-title{font-size:19px}}
/* Student pages use the sidebar as the page title. This is persistent, so no title flashes while data loads. */
body.student-ui .app-page-head{display:none!important}
body.student-ui:not(.exercise-focus) .app-main{padding-top:22px}
/* Compact Finder-style assignment context menu */
.sd7-card>.folder-more{width:34px!important;height:34px!important;padding:0!important;border:0!important;border-radius:9px!important;background:transparent!important;font-size:20px!important;line-height:1!important}
.sd7-card>.folder-more:hover,.sd7-card>.folder-more:focus-visible{background:#f2f4f7!important;outline:none}
.sd7-card>.student-action-menu{position:absolute!important;right:12px!important;top:52px!important;z-index:120!important;width:230px!important;min-width:230px!important;padding:6px!important;margin:0!important;border:1px solid #d9e0ea!important;border-radius:11px!important;background:#fff!important;box-shadow:0 14px 34px rgba(16,24,40,.16)!important}
.student-action-menu button{display:flex!important;align-items:center!important;gap:7px!important;width:100%!important;min-height:34px!important;padding:7px 9px!important;margin:0!important;border:0!important;border-radius:7px!important;background:transparent!important;color:#344054!important;text-align:left!important;font-size:13px!important;line-height:1.25!important;white-space:nowrap!important}
.student-action-menu button:hover{background:#f2f4f7!important}
.student-action-menu .menu-primary{font-weight:750!important;color:#175cd3!important}
.student-action-menu .menu-divider{height:1px;margin:5px 3px;background:#eaecf0}
.student-action-menu .menu-label{padding:3px 9px 4px;color:#98a2b3;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.student-action-menu .menu-check{width:15px;flex:0 0 15px;text-align:center;font-weight:800;color:#175cd3}
.student-action-menu .menu-folder{width:17px;flex:0 0 17px;text-align:center}
.student-action-menu .menu-text{min-width:0;overflow:hidden;text-overflow:ellipsis}
html[data-theme=dark] .sd7-card>.folder-more:hover,html[data-theme=dark] .sd7-card>.folder-more:focus-visible{background:#1b2940!important}
html[data-theme=dark] .sd7-card>.student-action-menu{background:#172235!important;border-color:#34445e!important;box-shadow:0 16px 36px rgba(0,0,0,.38)!important}
html[data-theme=dark] .student-action-menu button{color:#dbe4f0!important}
html[data-theme=dark] .student-action-menu button:hover{background:#223049!important}
html[data-theme=dark] .student-action-menu .menu-primary,html[data-theme=dark] .student-action-menu .menu-check{color:#8bb8ff!important}
html[data-theme=dark] .student-action-menu .menu-divider{background:#2b3950}
html[data-theme=dark] .student-action-menu .menu-label{color:#8290a6}

/* v4.5 Reading Collection: fixed question tracker + instruction inside question scroll */
.reading-collection.rc-no-sidebar{grid-template-columns:minmax(0,1fr)!important}
.reading-collection.rc-no-sidebar .rc-main{grid-column:1/-1}
.reading-collection.rc-no-sidebar .rc-tabs{padding-left:10px!important}
.rc-question-instruction{margin:16px 0 18px!important;padding:12px 14px!important;border-radius:10px!important}
.rc-question-instruction .instruction-text{font-size:13px;line-height:1.45;font-weight:700}
.rc-set .reading-questions{display:flex;flex-direction:column;min-height:0}
.rc-set .reading-question-scroll{flex:1;min-height:0;overflow:auto;padding-top:0!important}
.rc-set .reading-qnav{position:sticky!important;top:0!important;z-index:20!important;flex:none!important}
html[data-theme="dark"] .rc-question-instruction{background:#172554!important;border-color:#31558e!important;color:#e5e7eb!important}
@media(max-width:700px){.reading-collection.rc-no-sidebar{display:block!important}.rc-question-instruction{margin:12px 0 16px!important}}

/* Multi-teacher workspace v7 */
.team-member{display:grid;grid-template-columns:minmax(0,1fr) 120px auto;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line,#e4e8f0)}.team-member:last-child{border-bottom:0}.team-name{font-weight:800}.team-email{font-size:13px;color:#667085;margin-top:2px}.team-role{text-transform:capitalize;font-size:12px;font-weight:800;color:#475467}.team-remove{background:#fff0f0;color:#b42318}.workspace-chip{font-size:11px;color:#667085;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme="dark"] .instruction-box{background:#17243a!important;border-color:#3b5f95!important;border-left-color:#6ea8ff!important}html[data-theme="dark"] .instruction-text{color:#f1f5fb!important}html[data-theme="dark"] .team-member{border-color:#2b3950!important}html[data-theme="dark"] .team-email,html[data-theme="dark"] .team-role{color:#aebbd0!important}
@media(max-width:700px){.team-member{grid-template-columns:1fr auto}.team-role{grid-column:1}.team-remove{grid-column:2;grid-row:1/3}}

.team-pending-head{margin-top:24px;padding:10px 0 6px;font-size:12px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:#667085}.team-pending{opacity:.9}.team-pending .team-role{color:#b54708}html[data-theme="dark"] .team-pending-head{color:#9eacc2}html[data-theme="dark"] .team-pending .team-role{color:#f7b955}
#inviteSetupPanel{position:relative;z-index:1;pointer-events:auto}
body:has(#inviteSetupPanel:not(.hide)){overflow:auto!important}
body:has(#inviteSetupPanel:not(.hide)):after{display:none!important}

.teacher-dashboard-v7 .folder-menu{position:absolute!important;right:12px;top:calc(100% - 8px);z-index:120;width:min(240px,80vw);padding:7px;background:#fff;border:1px solid #d9e0ea;border-radius:11px;box-shadow:0 14px 34px rgba(16,24,40,.16)}
.teacher-dashboard-v7 .folder-menu button{display:block;width:100%;text-align:left;margin:0;padding:9px 10px;background:transparent;border-radius:7px;font-size:14px}
.teacher-dashboard-v7 .folder-menu button:hover{background:#f2f4f7}
.teacher-dashboard-v7 .folder-submenu{border-top:1px solid #e4e8ef;margin-top:5px;padding-top:5px}
.teacher-dashboard-v7 .sd7-folder:focus-visible,.teacher-dashboard-v7 .sd7-main:focus-visible{outline:2px solid #2457e6;outline-offset:3px}
.teacher-dashboard-v7 .sd7-name{white-space:normal;overflow-wrap:anywhere}
html[data-theme=dark] .teacher-dashboard-v7 .folder-menu{background:#172235!important;border-color:#34445e!important;color:#e8eef8}
html[data-theme=dark] .teacher-dashboard-v7 .folder-menu button:hover{background:#24334b!important}
html[data-theme=dark] .teacher-dashboard-v7 .folder-submenu{border-color:#34445e}

.teacher-exercise-card{grid-template-columns:105px minmax(0,1fr) 36px}.teacher-exercise-card>.folder-menu{position:absolute;right:12px;top:52px;z-index:120;width:220px;padding:7px;background:var(--card,#fff);border:1px solid var(--border,#d9e0ea);border-radius:11px;box-shadow:0 14px 34px rgba(16,24,40,.16)}.teacher-exercise-card>.folder-menu.hide{display:none}.teacher-exercise-card .folder-submenu{max-height:220px;overflow:auto}.teacher-dashboard-v7 .sa-count{color:var(--muted,#667085)}.assignment-actions{display:flex;gap:8px;flex-wrap:wrap}.assignment-actions .danger{color:#b42318}.teacher-dashboard-v7 .folder-manage-pop>button{display:block;width:100%;text-align:left;margin:2px 0}@media(max-width:700px){.teacher-exercise-card{grid-template-columns:minmax(0,1fr) 34px}.teacher-exercise-card>.status-chip{grid-column:1/-1;width:max-content}.assignment-group-card{align-items:flex-start;gap:12px;flex-wrap:wrap}}

.teacher-drop-tray{display:none;margin:0 0 20px;padding:14px;border:1px dashed #b9c8dd;border-radius:12px;background:#f8faff}
.teacher-dragging .teacher-drop-tray{display:block}
.teacher-drop-label{display:block;font-size:12px;color:#667085;margin-bottom:9px}
.teacher-drop-targets{display:flex;gap:9px;flex-wrap:wrap}
.teacher-drop-target{padding:12px 16px;border:1px dashed #b9c8dd;border-radius:10px;background:#fff;color:#344054;max-width:100%;overflow-wrap:anywhere}
.teacher-drop-target.drag-over{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 2px #2563eb22}
.teacher-exercise-card.is-dragging{opacity:.42}
.teacher-dashboard-v7 .teacher-action-menu{max-width:calc(100vw - 48px)}
.teacher-action-menu .teacher-menu-folders{max-height:240px;overflow-y:auto;overscroll-behavior:contain}
.teacher-action-menu .menu-divider{margin:7px 3px}
html[data-theme=dark] .teacher-drop-tray{background:#111a2b;border-color:#34445e}
html[data-theme=dark] .teacher-drop-label{color:#9eabc0}
html[data-theme=dark] .teacher-drop-target{background:#172235;border-color:#52627b;color:#e8eef8}
html[data-theme=dark] .teacher-drop-target.drag-over{background:#13274a;border-color:#4f8cff}

/* Teacher Exercises: the sidebar already names this page, so remove the duplicate page heading. */
body.teacher-exercises-page .app-page-head{display:none!important}
body.teacher-exercises-page .app-main{padding-top:24px!important}

/* Student ellipsis menus: same compact treatment as teacher folder menus. */
.student-dashboard-v7 .folder-menu{width:min(240px,80vw)!important;padding:7px!important;border-radius:11px!important}
.student-dashboard-v7 .folder-menu button{display:flex!important;align-items:center!important;width:100%!important;min-height:0!important;margin:0!important;padding:8px 10px!important;text-align:left!important;background:transparent!important;border:0!important;border-radius:7px!important;box-shadow:none!important;font-size:14px!important;line-height:1.25!important}
.student-dashboard-v7 .folder-menu button:hover{background:#f2f4f7!important}
.student-dashboard-v7 .folder-menu .menu-divider{margin:5px 3px!important}
.student-dashboard-v7 .folder-menu .menu-label{padding:5px 10px 4px!important;font-size:11px!important}
html[data-theme=dark] .student-dashboard-v7 .folder-menu button{background:transparent!important;color:#e8eef8!important}
html[data-theme=dark] .student-dashboard-v7 .folder-menu button:hover{background:#24334b!important}

/* Teacher drag/drop: make cards and folder targets unmistakably draggable/droppable. */
.teacher-exercise-card{cursor:grab!important;-webkit-user-drag:element;touch-action:none}
.teacher-exercise-card:active{cursor:grabbing!important}
.teacher-dashboard-v7 [data-teacher-folder-id]{transition:border-color .12s,background .12s,box-shadow .12s}
.teacher-dashboard-v7 [data-teacher-folder-id].drag-over{border-color:#2563eb!important;background:#eff6ff!important;box-shadow:0 0 0 2px #2563eb33!important}
.teacher-pointer-dragging,.teacher-pointer-dragging *{cursor:grabbing!important;user-select:none!important}
html[data-theme=dark] .teacher-dashboard-v7 [data-teacher-folder-id].drag-over{background:#13274a!important;border-color:#4f8cff!important}

/* The sidebar already identifies every teacher page. Keep only the local heading inside each view. */
body.app-mode:not(.student-ui) .app-page-head{display:none!important}
body.app-mode:not(.student-ui):not(.exercise-focus) .app-main{padding-top:22px!important}

/* Student folder options float in their own card, matching the teacher folder menu. */
.student-dashboard-v7 .sd7-folders{overflow:visible!important}
.student-dashboard-v7 .sd7-folder{position:relative!important}
.student-dashboard-v7 .sd7-folder:has(>.folder-menu:not(.hide)){z-index:180!important}
.student-dashboard-v7 .sd7-folder>.folder-menu{
  position:absolute!important;right:10px!important;top:calc(100% - 6px)!important;
  z-index:190!important;width:210px!important;max-width:calc(100vw - 48px)!important;
  margin:0!important;padding:7px!important;background:#fff!important;
  border:1px solid #d9e0ea!important;border-radius:11px!important;
  box-shadow:0 14px 34px rgba(16,24,40,.18)!important
}
.student-dashboard-v7 .sd7-folder>.folder-menu button{
  display:block!important;width:100%!important;margin:0!important;padding:9px 10px!important;
  border:0!important;border-radius:7px!important;background:transparent!important;
  color:#344054!important;text-align:left!important;font-size:14px!important;line-height:1.35!important;
  white-space:nowrap!important
}
.student-dashboard-v7 .sd7-folder>.folder-menu button:hover{background:#f2f4f7!important}
.student-dashboard-v7 .sd7-folder>.folder-menu button.danger{color:#b42318!important}
html[data-theme=dark] .student-dashboard-v7 .sd7-folder>.folder-menu{background:#172235!important;border-color:#34445e!important;box-shadow:0 16px 36px rgba(0,0,0,.38)!important}
html[data-theme=dark] .student-dashboard-v7 .sd7-folder>.folder-menu button{color:#e8eef8!important}
html[data-theme=dark] .student-dashboard-v7 .sd7-folder>.folder-menu button:hover{background:#24334b!important}
html[data-theme=dark] .student-dashboard-v7 .sd7-folder>.folder-menu button.danger{color:#fda29b!important}

/* Teacher exercises now use the same native drag interaction and root drop zone as student assignments. */
.teacher-exercise-card{touch-action:auto!important;-webkit-user-drag:element;cursor:grab!important}
.teacher-exercise-card:active{cursor:grabbing!important}
.teacher-exercise-card.is-dragging{opacity:.42!important}
.teacher-dashboard-v7 .sd7-rootdrop{margin-top:10px!important}
