[hidden]{display:none!important}
.dashboard-navigation,.review-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.6rem;margin-bottom:1rem}
.dashboard-tabs{display:flex;flex-wrap:wrap;gap:.35rem}
.dashboard-tabs button[aria-current="page"],.dashboard-tabs button[aria-pressed="true"]{background:var(--green);color:white;border-color:var(--green)}
.dashboard-menu{position:relative}
.dashboard-menu summary,.my-work-row summary{cursor:pointer;font-weight:700;min-height:44px;padding:.5rem .7rem;border-radius:.45rem}
.dashboard-menu summary{border:1px solid var(--line);background:#fff}
.dashboard-menu[open]>summary{background:#edf2e8}
.menu-body,.review-filters{display:grid;gap:.5rem;padding:.7rem;border:1px solid var(--line);background:white;border-radius:.6rem}
.dashboard-navigation .menu-body,.gradebook-panel .menu-body{position:absolute;right:0;min-width:13.5rem;z-index:5;box-shadow:0 6px 20px #163c3420}
.menu-body :is(button,a){text-align:left;margin:0}
.account-menu{min-width:10rem}
.account-menu .menu-body{margin-top:.25rem}
.overview-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin:1rem 0}
.overview-count{display:grid;justify-items:start;gap:.1rem;text-align:left;padding:.8rem 1rem;background:#f6f8f2}
.overview-count strong{font-size:1.7rem;line-height:1.2}
.review-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
.review-filters label{margin:0;min-width:0}
.work-list-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,auto) auto;gap:.75rem;align-items:center;padding:.7rem .25rem;border-top:1px solid var(--line)}
.work-list-row strong,.work-list-row small,.my-work-row small,.gradebook-grid small{display:block}
.work-list-row small,.my-work-row small{color:var(--muted)}
.work-list-row button{margin:0}
.my-work-row{border-top:1px solid var(--line)}
.my-work-row summary small{margin-left:1rem}
.my-work-row>p,.my-work-row>button,.my-work-row>a{margin-left:.7rem}
.student-work-menu{margin-top:.8rem}
.student-work-menu .submission-queue{border:0;box-shadow:none;margin:0;padding:.65rem}
.gradebook-panel .roster-header{justify-content:flex-start;gap:.65rem;flex-wrap:wrap}
.gradebook-panel .roster-header h2{margin-right:auto}
.gradebook-view{display:block;max-width:26rem;margin:.6rem 0}
.gradebook-scroll{overflow:auto;max-height:65vh;border:1px solid var(--line);border-radius:.6rem}
.gradebook-grid{border-collapse:separate;border-spacing:0;width:100%;margin:0}
.gradebook-grid :is(th,td){min-width:9rem;padding:.6rem;border-bottom:1px solid var(--line);border-right:1px solid var(--line);vertical-align:middle}
.gradebook-grid tr>:first-child{position:sticky;left:0;z-index:1;background:#f6f8f2;min-width:9rem;max-width:13rem;overflow-wrap:anywhere}
.gradebook-grid thead th{position:sticky;top:0;background:#f6f8f2;z-index:2;vertical-align:top}
.gradebook-grid thead th:first-child{z-index:3}
.gradebook-assignment-title{padding:.25rem .45rem;text-align:left;border:0;text-decoration:underline;max-width:15rem;overflow-wrap:anywhere;background:transparent}
.gradebook-cell{min-height:44px;text-align:left;max-width:100%;overflow-wrap:anywhere}
.gradebook-cell[data-status="Missing"]{color:#842b26;background:#fff0ec}
.gradebook-cell[data-status="Revision requested"]{color:#674d11;background:#fff6dc}
.gradebook-cell[data-status="Submitted"]{background:#e9f4ee}
.menu-check{display:flex;align-items:center;gap:.45rem;min-height:44px}
.menu-check input{width:1.1rem;min-height:0;margin:0}
@media(max-width:850px),(pointer:coarse) and (max-width:1250px){
  dialog.submission-dialog{width:100%;height:100dvh;max-height:100dvh;max-width:100%;margin:0;border-radius:0;inset:0}
}
@media(max-width:600px){
  .overview-counts{gap:.35rem}
  .overview-count{padding:.45rem .5rem;font-size:.8rem}
  .work-list-row{grid-template-columns:minmax(0,1fr) auto;gap:.25rem .6rem}
  .work-list-row>div:nth-child(2){grid-row:2;grid-column:1}
  .work-list-row button{grid-row:1/span 2;grid-column:2}
  .review-filters{grid-template-columns:1fr}
  .dashboard-navigation .menu-body{left:0;right:auto}
}

.next-assignment{display:flex;align-items:center;justify-content:space-between;gap:1rem;background:#edf4e8;border-color:#d3e0ca}
.next-assignment h2{font-size:.9rem;margin:0 0 .2rem;color:#365649}
.next-assignment strong{display:block;font-size:1.25rem}
.next-assignment p{margin:0}
.next-assignment .button{flex-shrink:0}
@media(max-width:540px){.next-assignment{align-items:flex-start;flex-direction:column}}

.student-gradebook-tabs{margin:.5rem 0 .75rem}
.student-gradebook-tabs button{min-height:44px}
.student-grade-row summary{display:flex;align-items:center;justify-content:space-between;gap:.5rem;list-style:none}
.student-grade-row summary::-webkit-details-marker{display:none}
.student-grade-row summary::before{content:'▸';flex:none}
.student-grade-row[open] summary::before{content:'▾'}
.student-grade-row summary>span:first-child{flex:1;overflow-wrap:anywhere}
.student-grade-meta{display:flex;gap:.35rem .55rem;align-items:center;justify-content:flex-end;flex-wrap:wrap;text-align:right;font-size:.82rem}
.student-grade-meta small{margin:0}
.student-grade-status{padding:.1rem .45rem;border-radius:.4rem;background:#edf2e8;color:#244d3e}
