:root {
  color-scheme: light;
  --ink: #19332c;
  --ink-soft: #52655f;
  --canvas: #f3f0e8;
  --paper: #fffdf7;
  --sage: #cdddcf;
  --sage-deep: #315d4d;
  --powder: #dce8ee;
  --yellow: #f3e7aa;
  --coral: #df9b85;
  --danger: #9d3d33;
  --focus: #1c66a5;
  --shadow: 0 24px 70px rgb(43 65 56 / 12%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

html {
  background: var(--canvas);
  color: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}

:focus-visible {
  outline: 3px solid var(--focus);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.auth-layout {
  display: grid;
  min-height: 100vh;
}

.auth-intro,
.auth-panel {
  padding: clamp(1.5rem, 5vw, 4.5rem);
}

.auth-intro {
  display: flex;
  min-height: 42vh;
  flex-direction: column;
  justify-content: space-between;
  background: var(--ink);
  color: #f7f5ed;
}

.wordmark {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.auth-intro-copy {
  max-width: 42rem;
  padding: 4rem 0;
}

.auth-intro h1 {
  max-width: 12ch;
  margin: 0.6rem 0 1rem;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: clamp(2.25rem, 7vw, 5.25rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.07;
}

.auth-intro-copy > p:last-child {
  max-width: 34rem;
  margin: 0;
  color: #c9d6d0;
  font-size: 1.05rem;
  line-height: 1.8;
}

.eyebrow {
  margin: 0;
  color: var(--sage-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.auth-intro .eyebrow {
  color: var(--yellow);
}

.auth-note {
  margin: 0;
  color: #a9bbb4;
  font-size: 0.82rem;
}

.auth-panel {
  display: grid;
  align-items: center;
  background: var(--paper);
}

.auth-panel-inner {
  width: min(100%, 29rem);
  margin-inline: auto;
}

.auth-panel h2 {
  margin: 0.5rem 0;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.muted,
.support-copy {
  color: var(--ink-soft);
  line-height: 1.65;
}

.workspace-page {
  background: var(--canvas);
}

.workspace-shell {
  min-height: 100vh;
}

.app-sidebar {
  display: none;
  background: var(--ink);
  color: white;
}

.app-mobile-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: var(--ink);
  color: white;
}

.workspace-brand,
.app-account {
  display: flex;
  align-items: center;
}

.workspace-brand {
  gap: 0.65rem;
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  background: var(--yellow);
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.app-navigation {
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

.app-navigation-link {
  min-height: 2.75rem;
  padding: 0.75rem 0.85rem;
  color: #c9d6d0;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.app-navigation-link:hover,
.app-navigation-link.is-current {
  background: rgb(255 255 255 / 10%);
  color: white;
}

.app-navigation-link.is-current {
  border-left: 3px solid var(--yellow);
}

.app-account {
  gap: 0.8rem;
}

.user-email {
  display: none;
  color: #d6dfda;
  font-size: 0.82rem;
}

.app-account form {
  margin: 0;
}

.app-mobile-menu {
  position: relative;
}

.app-mobile-menu summary {
  padding: 0.6rem 0.75rem;
  border: 1px solid rgb(255 255 255 / 35%);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  list-style: none;
}

.app-mobile-menu summary::-webkit-details-marker {
  display: none;
}

.app-mobile-menu-panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: min(19rem, calc(100vw - 2rem));
  padding: 0.75rem;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.app-mobile-menu-panel .app-account {
  justify-content: space-between;
  margin-top: 0.75rem;
  padding: 0.85rem;
  border-top: 1px solid rgb(255 255 255 / 15%);
}

.app-mobile-menu-panel .user-email {
  display: block;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-action {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: 750;
}

.workspace-main {
  width: min(100% - 2rem, 84rem);
  margin: 0 auto;
  padding-block: clamp(2.25rem, 7vw, 5rem);
}

.workspace-main h1 {
  margin: 0.4rem 0;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: clamp(2.3rem, 7vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.breadcrumbs {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 750;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.breadcrumbs li + li::before {
  color: #91a099;
  content: "/";
}

.breadcrumbs a {
  color: var(--sage-deep);
  text-underline-offset: 0.2rem;
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
}

.workspace-title-row {
  display: grid;
  gap: 1.5rem;
  align-items: end;
}

.workspace-lede {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.approval-note {
  width: fit-content;
  margin: 0;
  padding: 0.55rem 0.75rem;
  background: var(--sage);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.primary-link {
  background: var(--ink);
  color: white;
}

.secondary-link {
  width: fit-content;
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
}

.course-list,
.section-studio {
  margin-top: clamp(3rem, 8vw, 6rem);
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--ink);
}

.section-heading-row h2 {
  margin: 0.35rem 0 0;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: clamp(1.75rem, 5vw, 2.8rem);
  font-weight: 500;
}

.section-count {
  margin: 0;
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 1.5rem;
}

.section-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
}

.course-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.course-card {
  display: grid;
  min-width: 0;
  gap: 0.55rem;
  padding: 1.2rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 5px 20px rgb(39 45 40 / 6%);
  text-decoration: none;
}

.course-card:nth-child(3n + 2) {
  background: var(--powder);
}

.course-card:nth-child(3n) {
  background: var(--sage);
}

.course-card span {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.course-card strong {
  overflow-wrap: anywhere;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: clamp(1.3rem, 5vw, 1.85rem);
  font-weight: 500;
}

.editor-heading,
.course-hero {
  display: grid;
  gap: 1.25rem;
  align-items: end;
}

.editor-panel {
  width: min(100%, 48rem);
  padding: clamp(1.1rem, 4vw, 2rem);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.section-fields {
  overflow: hidden;
  min-width: 0;
  margin: 0.75rem 0 0;
  padding: 0;
  border: 1px solid #ccd5d0;
  background: var(--powder);
}

.section-fields-header {
  padding: 1rem 1.1rem;
  background: var(--sage);
}

.section-fields-header h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.section-fields-header p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.section-fields-body {
  padding: 1rem 1.1rem 1.1rem;
}

.dynamic-section-list {
  display: grid;
  gap: 0.7rem;
}

.section-form-row {
  display: grid;
  min-width: 0;
  gap: 0.55rem;
  padding: 0.85rem;
  background: rgb(255 255 255 / 62%);
}

.section-form-row .field {
  min-width: 0;
}

.add-section-action,
.remove-section-action {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--sage-deep);
  cursor: pointer;
  font-weight: 800;
}

.add-section-action {
  min-height: 2.75rem;
  margin-top: 0.85rem;
  padding: 0.55rem 0;
}

.add-section-action span {
  display: inline-grid;
  width: 1.7rem;
  height: 1.7rem;
  margin-right: 0.35rem;
  place-items: center;
  background: var(--ink);
  color: white;
}

.remove-section-action {
  min-height: 2.25rem;
  padding: 0.25rem 0;
  color: var(--danger);
}

.section-layout {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.assignment-editor {
  margin-top: 2rem;
}

.assignment-editor-grid,
.criterion-list {
  display: grid;
  gap: 1rem;
}

.assignment-editor .editor-panel {
  width: 100%;
}

.assignment-editor h2,
.rubric-heading-row p {
  margin-top: 0;
}

.assignment-editor .field {
  min-width: 0;
  margin-top: 1rem;
}

.assignment-editor label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.assignment-editor input:not([type="checkbox"]),
.assignment-editor textarea {
  width: 100%;
  min-width: 0;
}

.field-help {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.rubric-heading-row,
.editor-actions,
.criterion-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.rubric-total {
  display: grid;
  min-width: 4.5rem;
  text-align: right;
}

.rubric-total strong {
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
}

.rubric-total span {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.criterion-row {
  overflow: hidden;
  min-width: 0;
  margin: 0;
  border: 1px solid #ccd5d0;
  background: var(--canvas);
}

.criterion-card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: var(--sage);
}

.criterion-card-header h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.criterion-fields {
  display: grid;
  gap: 0.75rem;
  padding: 0 1rem 1rem;
}

.criterion-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
}

.criterion-controls button:disabled {
  opacity: 0.35;
}

.add-criterion-action {
  width: 100%;
  min-height: 3rem;
  margin-top: 1rem;
  border: 2px dashed var(--sage-deep);
  background: transparent;
  color: var(--sage-deep);
  cursor: pointer;
  font-weight: 800;
}

.editor-actions {
  margin-top: 1.25rem;
}

.markdown-content {
  line-height: 1.7;
  overflow-wrap: anywhere;
}

@media (min-width: 70rem) {
  .assignment-editor-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }

  .criterion-fields {
    grid-template-columns: minmax(0, 1fr) 8rem;
  }

  .criterion-field-title {
    grid-column: 1 / -1;
  }

  .criterion-field-description {
    grid-column: 1;
  }

  .criterion-field-points {
    grid-column: 2;
    grid-row: 2;
  }
}

.section-list {
  min-width: 0;
  margin: 0;
  padding: 0;
  background: var(--paper);
  list-style: none;
}

.section-row {
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
  border-bottom: 1px solid #d8ddd8;
}

.section-identity,
.section-actions {
  display: flex;
  min-width: 0;
  align-items: center;
}

.section-identity {
  gap: 0.8rem;
}

.section-identity > div {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.section-identity strong {
  overflow-wrap: anywhere;
  font-size: 1.02rem;
}

.section-identity span:last-child {
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.section-index {
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 1.25rem;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-start;
}

.section-actions form {
  margin: 0;
}

.join-code-status,
.section-action-button {
  display: inline-flex;
  width: 7rem;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--sage-deep);
  background: transparent;
  color: var(--sage-deep);
  font-size: 0.76rem;
  font-family: inherit;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.section-action-button {
  cursor: pointer;
}

.join-code-status {
  border-color: transparent;
  background: var(--sage);
  color: var(--ink);
}

.section-action-button.danger-action {
  border-color: #d9a59e;
  color: var(--danger);
}

.empty-workspace {
  display: grid;
  gap: 1rem;
  margin-top: clamp(3rem, 8vw, 7rem);
  padding: clamp(1.25rem, 4vw, 2.5rem) 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid #bdc7c0;
}

.roster-list {
  margin-top: 1rem;
  margin-bottom: 0;
  padding: 0;
  background: var(--paper);
  list-style: none;
}

.roster-row {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid #d8ddd8;
}

.roster-transfer-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
}

.roster-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.roster-remove-form {
  margin: 0;
}

.roster-transfer-form label {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 800;
}

.roster-transfer-form select {
  min-height: 2.5rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid #b8c4be;
  background: white;
}

.success-summary {
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--sage-deep);
  background: var(--sage);
}

.roster-empty {
  margin: 0;
  padding: 1rem;
  background: var(--paper);
  color: var(--ink-soft);
}

.empty-workspace h2,
.empty-workspace h3 {
  margin: 0.4rem 0;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 500;
}

.empty-workspace p:last-child {
  max-width: 40rem;
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.empty-number {
  margin: 0;
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 1.5rem;
}

.stacked-form {
  display: grid;
  gap: 1.2rem;
  margin-top: 2rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.88rem;
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.9rem 0.25rem;
  border: 0;
  border-bottom: 2px solid #b8c4be;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--sage-deep);
}

.primary-action {
  min-height: 3.15rem;
  margin-top: 0.5rem;
  border: 0;
  border-radius: 0.35rem;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-weight: 800;
}

.primary-action:hover {
  background: var(--sage-deep);
}

.join-code-display {
  width: fit-content;
  padding: 1rem 1.25rem;
  border: 2px solid var(--ink);
  background: var(--yellow);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: clamp(1.2rem, 4vw, 2rem);
  letter-spacing: 0.08em;
}

.activation-link-display {
  padding: 1rem;
  background: var(--yellow);
  overflow-wrap: anywhere;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.6;
}

.ta-activation-form {
  gap: 0;
}

.activation-scope-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--ink);
}

.activation-scope-heading h2 {
  margin: 0.35rem 0 0;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 500;
}

.activation-scope-heading > p {
  margin: 0 0 0.2rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  white-space: nowrap;
}

.activation-choice {
  display: flex;
  min-height: 4rem;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border: 1px solid #cbd3ce;
  background: transparent;
  cursor: pointer;
}

.activation-choice:hover {
  border-color: var(--sage-deep);
  background: rgb(205 221 207 / 28%);
}

.activation-choice:has(input:checked) {
  border-color: var(--sage-deep);
  background: var(--sage);
}

.activation-choice input {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--sage-deep);
}

.activation-choice span {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
}

.activation-choice strong {
  font-size: 0.92rem;
}

.activation-choice small {
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.45;
}

.activation-choice-all {
  margin-top: 1.25rem;
  background: var(--powder);
}

.activation-choice-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.15rem 0;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 800;
}

.activation-choice-divider::before,
.activation-choice-divider::after {
  height: 1px;
  flex: 1;
  background: #d8ddd8;
  content: "";
}

.activation-choice-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.activation-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #d8ddd8;
}

.activation-form-footer p {
  max-width: 30rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.55;
}

.activation-form-footer .primary-action {
  width: auto;
  min-width: 10.5rem;
  margin: 0;
  padding-inline: 1.25rem;
}

.checkbox-list {
  padding: 1rem;
  border: 1px solid #b8c4be;
}

.checkbox-list ul {
  display: grid;
  gap: 0.6rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.join-code-reveal {
  display: grid;
  max-width: 52rem;
  gap: 1.25rem;
  margin-top: clamp(3rem, 10vw, 8rem);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.join-code-reveal h1,
.join-code-reveal p {
  margin: 0;
}

.join-code-reveal .primary-link {
  width: fit-content;
  margin-top: 0.5rem;
}

.form-status:empty {
  display: none;
}

.error-summary,
.field-error {
  color: var(--danger);
}

.error-summary {
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--coral);
  background: #fbebe5;
}

.error-summary p {
  margin: 0;
}

.error-summary ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.error-summary a {
  color: inherit;
  font-weight: 750;
}

.field-error {
  margin: 0;
  font-size: 0.82rem;
}

.support-copy {
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #dfe3dd;
  font-size: 0.82rem;
}

@media (min-width: 54rem) {
  .app-mobile-header {
    display: none;
  }

  .app-sidebar {
    position: fixed;
    z-index: 20;
    inset: 0 auto 0 0;
    display: flex;
    width: 15rem;
    flex-direction: column;
    padding: 1.25rem 1rem;
  }

  .app-sidebar .app-navigation {
    flex: 1;
    margin-top: 2rem;
  }

  .app-sidebar .app-account {
    display: grid;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgb(255 255 255 / 15%);
  }

  .app-sidebar .user-email {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-sidebar ~ .workspace-main {
    width: min(calc(100% - 17rem), 84rem);
    margin-right: auto;
    margin-left: max(16rem, calc(50% - 34.5rem));
  }

  .auth-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(26rem, 0.75fr);
  }

  .auth-intro {
    min-height: 100vh;
  }

  .auth-panel {
    box-shadow: var(--shadow);
  }

  .user-email {
    display: inline;
  }

  .workspace-title-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .editor-heading,
  .course-hero {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-row {
    grid-template-columns: minmax(12rem, 1fr) minmax(0, auto);
    align-items: center;
  }

  .section-actions {
    justify-content: flex-end;
  }

  .roster-row {
    grid-template-columns: minmax(12rem, 1fr) auto;
    align-items: center;
  }

  .section-form-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .empty-workspace {
    grid-template-columns: 6rem minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
