.workbench-student { margin: 0; }
.shell.workbench-shell { width: 100%; max-width: none; }
.workbench-student-content { width: min(1120px, calc(100% - 1.5rem)); margin: 0 auto; }
.workbench-student-content.home-shell { max-width: 960px; }
.workbench-header { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; min-height: 60px; padding: 0 max(1rem, calc((100% - 1120px)/2)); background: #fff; border-bottom: 1px solid #dce2df; font: 400 1rem/1.4 system-ui, sans-serif; }
.workbench-header > .home-account { justify-self: end; }
.workbench-brand { color: #242b29; text-decoration: none; font-weight: 700; white-space: nowrap; }
.workbench-nav { display: flex; gap: .35rem; }
.workbench-nav a { display: flex; align-items: center; justify-content: center; gap: .35rem; padding: .5rem .65rem; min-height: 44px; color: #32483e; border-radius: 6px; text-decoration: none; font-size: .9rem; }
.workbench-nav svg { width: 1.1rem; height: 1.1rem; }
.workbench-nav a:hover, .workbench-nav a[aria-current] { background: #f4e8e9; color: #803840; }
.workbench-module { --accent: #85434b; --text: #242b29; }
.workbench-module :is(button, input, select, textarea, time, .meeting-nav-label) { font-family: var(--sans); }
.workbench-module :is(.card h2, .ev h2) { font-size: 1.42rem; }
.workbench-module :is(.dt, .dtitle) { font-size: 2rem; font-weight: 700; line-height: 1.35; }
@media (max-width: 560px) {
  .workbench-module :is(.card h2, .ev h2) { font-size: 1.3rem; }
  .workbench-module :is(.dt, .dtitle) { font-size: 1.75rem; }
}
.workbench-module .btn { --accent: #cb5d5d; --text: #30313a; }
.workbench-module #login-btn[hidden] { display: none; }
.meeting-neighbors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1rem; padding-top: .75rem; border-top: 2px solid var(--muted); }
.meeting-neighbors a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; min-width: 0; min-height: 6.375rem; padding: .65rem 1rem; text-align: center; color: var(--text); text-decoration: none; }
.meeting-neighbors [rel="prev"] { grid-column: 1; }
.meeting-neighbors [rel="next"] { grid-column: 2; }
.meeting-neighbors [rel="prev"] + [rel="next"] { border-left: 1px solid var(--line); }
.meeting-neighbors a:hover { color: var(--accent); }
.meeting-neighbors a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.meeting-neighbors :is(.meeting-nav-label, time) { color: #6b625e; font-size: .75rem; }
.meeting-nav-title { overflow-wrap: anywhere; font-size: .96rem; line-height: 1.55; }
.workbench-module .wrap { max-width: 960px; padding-top: 1.5rem; }
.workbench-class-links { display: flex; gap: .6rem; flex-wrap: wrap; }
.workbench-class-links a { min-height: 44px; display: inline-flex; align-items: center; }
.share-dialog { box-sizing: border-box; width: min(27rem, calc(100% - 2rem)); margin: auto; padding: 1.2rem; border: 1px solid var(--line); border-radius: 6px; background: #fffaf7; color: var(--text); }
.share-dialog::backdrop { background: #242b2966; }
.share-dialog h2 { margin: 0; font-size: 1.1rem; }
.share-dialog p { margin: .65rem 0; }
.share-dialog input { width: 100%; min-height: 40px; margin-bottom: .65rem; font: inherit; }
.share-dialog .share-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.share-dialog .btn { min-height: 44px; }
.share-dialog a.btn { display: inline-flex; align-items: center; text-decoration: none; }
.share-dialog [hidden] { display: none; }
.workbench-header .home-account { position: relative; }
.workbench-header .home-account summary { display: flex; align-items: center; gap: .45rem; min-height: 44px; padding: .35rem .55rem; border-radius: 6px; font-size: .9rem; cursor: pointer; list-style: none; white-space: nowrap; }
.workbench-header .home-account summary::-webkit-details-marker { display: none; }
.workbench-header .home-account summary::after { content: ''; width: .4rem; height: .4rem; border-right: 1px solid; border-bottom: 1px solid; transform: translateY(-2px) rotate(45deg); }
.workbench-header .home-account[open] summary { background: #e8ecea; }
.workbench-header .home-account-menu, .workbench-enabled .home-account-menu { position: absolute; right: 0; z-index: 30; min-width: 9rem; padding: .3rem; border: 1px solid #dce2df; border-radius: 6px; background: white; box-shadow: 0 6px 18px #242b2920; }
.workbench-header .home-account-menu :is(a, button), .workbench-enabled .home-account-menu :is(a, button) { display: flex; align-items: center; min-height: 44px; width: 100%; color: #242b29; font: inherit; padding: .35rem .55rem; border: 0; background: transparent; white-space: nowrap; text-decoration: none; cursor: pointer; }
.workbench-summary { display: grid; grid-template-columns: 3fr 2fr; gap: 1.4rem; margin-top: 1.5rem; }
.workbench-summary section { min-width: 0; }
.workbench-summary h2 { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: 1rem; border-bottom: 1px solid #dce2df; margin: 0; padding-bottom: .45rem; }
.workbench-summary h2 a, .workbench-muted { font-size: .82rem; color: #4c6157; }
.workbench-task { display: grid; grid-template-columns: 1.55rem minmax(0, 1fr) auto; gap: .4rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid #dce2df; }
.workbench-task input { width: 1.1rem; height: 1.1rem; margin: .2rem; accent-color: #85434b; }
.workbench-task > div > a, #workbench-meeting > a { display: block; padding: .3rem 0; overflow-wrap: anywhere; }
.workbench-late, .workbench-due { padding: .2rem .35rem; border-radius: 4px; font-size: .75rem; white-space: nowrap; }
.workbench-late { background: #f4e8e9; color: #803840; }
.workbench-due { background: #f4ead7; color: #704f17; }
#workbench-meeting { padding-top: .45rem; }
@media (max-width: 650px) {
  .workbench-header { grid-template-columns: 1fr auto; }
  .workbench-summary { grid-template-columns: 1fr; gap: 1rem; }
  .shell:has(.workbench-nav), .workbench-module { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .workbench-class-links { width: 100%; }
  .workbench-nav { position: fixed; z-index: 20; bottom: 0; left: 0; right: 0; justify-content: space-around; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); border-top: 1px solid #dce2df; background: white; }
  .workbench-nav a { flex: 1; flex-direction: column; gap: .15rem; min-height: 48px; padding: .2rem; font-size: .8rem; }
}
.workbench-module [hidden] { display: none !important; }
