:root {
  --ink: #17212b;
  --muted: #607080;
  --line: #d9e1e8;
  --paper: #ffffff;
  --wash: #f4f7f9;
  --brand: #0f5f6b;
  --brand-dark: #0b414a;
  --accent: #b2532c;
  --success: #1f7a4d;
  --warning: #a96b00;
  --danger: #a73737;
  --shadow: 0 18px 40px rgba(23, 33, 43, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--wash);
}

body {
  margin: 0;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  align-items: center;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: flex;
  gap: 12px;
  min-width: max-content;
}

.brand:hover {
  text-decoration: none;
}

.brand small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.brand-logo {
  display: block;
  height: 42px;
  max-width: 220px;
  object-fit: contain;
  width: auto;
}

.brand-text {
  display: none;
}

nav {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 14px;
}

nav a {
  color: var(--ink);
  font-weight: 650;
}

.sis-mode {
  background: #eef2f5;
}

.sis-header {
  background: #1f252b;
  box-shadow: 0 2px 10px rgba(23, 33, 43, 0.18);
  color: white;
  position: sticky;
  top: 0;
  z-index: 20;
}

.sis-topbar {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 190px minmax(220px, 360px) minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 8px clamp(18px, 3vw, 42px);
}

.sis-logo {
  align-items: center;
  background: white;
  border-radius: 4px;
  display: inline-flex;
  justify-content: center;
  padding: 6px 10px;
}

.sis-logo:hover {
  text-decoration: none;
}

.sis-logo img {
  display: block;
  height: 34px;
  object-fit: contain;
  width: 164px;
}

.sis-search input {
  background: #151a1f;
  border: 1px solid #3d454d;
  border-radius: 4px;
  color: white;
  min-height: 36px;
}

.sis-search input::placeholder {
  color: #aeb7bf;
}

.sis-app-nav,
.sis-subnav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
}

.sis-app-nav {
  gap: 2px;
}

.sis-app-nav a {
  border-radius: 4px;
  color: #e7edf2;
  font-size: 14px;
  font-weight: 750;
  padding: 10px 12px;
}

.sis-app-nav a:hover {
  background: #303840;
  text-decoration: none;
}

.sis-tools {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: end;
}

.sis-tool {
  border: 1px solid #4a535c;
  border-radius: 4px;
  color: #e7edf2;
  font-size: 12px;
  font-weight: 800;
  min-height: 32px;
  padding: 7px 9px;
}

.sis-tool:hover {
  background: #303840;
  text-decoration: none;
}

.sis-avatar {
  align-items: center;
  background: #0f5f6b;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.sis-signout {
  background: #3b434b;
  border-color: #505a63;
  border-radius: 4px;
  font-size: 12px;
  min-height: 32px;
  padding: 7px 10px;
}

.sis-subbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #ccd5dd;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 clamp(18px, 3vw, 42px);
}

.sis-subnav {
  gap: 0;
}

.sis-subnav a {
  border-right: 1px solid #dfe6eb;
  color: #24313c;
  font-size: 13px;
  font-weight: 800;
  padding: 13px 16px;
}

.sis-subnav a:first-child {
  border-left: 1px solid #dfe6eb;
}

.sis-subnav a:hover {
  background: #eef7f8;
  color: var(--brand-dark);
  text-decoration: none;
}

.sis-session {
  color: #5d6b78;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
}

.shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px clamp(18px, 4vw, 56px) 64px;
}

.sis-mode .shell {
  max-width: 1480px;
  padding: 24px clamp(18px, 3vw, 42px) 56px;
}

.student-portal-mode {
  background: #eef4f6;
}

.student-topbar {
  align-items: center;
  background: #0b414a;
  border-top: 1px solid #176777;
  box-shadow: 0 2px 8px rgba(11, 65, 74, 0.24);
  color: white;
  display: flex;
  gap: 18px;
  min-height: 52px;
  padding: 0 14px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.student-brand {
  align-items: center;
  background: white;
  border-radius: 4px;
  display: flex;
  height: 34px;
  justify-content: center;
  padding: 5px 8px;
  width: 164px;
}

.student-brand img {
  display: block;
  max-height: 24px;
  object-fit: contain;
  width: 146px;
}

.student-menu {
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: white;
  font-size: 12px;
  min-height: 30px;
  padding: 5px 8px;
}

.student-topbar > strong {
  color: #ffffff;
  flex: 1;
  font-size: 20px;
  letter-spacing: 0;
}

.student-top-actions {
  align-items: center;
  display: flex;
  gap: 14px;
}

.student-top-actions a,
.student-top-actions span {
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.student-alert {
  align-items: center;
  background: #d71920;
  border-radius: 999px;
  display: inline-flex;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.student-avatar {
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  color: #0b414a !important;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.student-thumb {
  align-items: center;
  background: #dfeaf4;
  border: 1px solid #c9d8e4;
  border-radius: 999px;
  color: #17375c;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  object-fit: cover;
  overflow: hidden;
  text-transform: uppercase;
  width: 46px;
}

.student-thumb.small {
  height: 34px;
  margin-bottom: 6px;
  width: 34px;
}

.student-thumb.fallback {
  background: linear-gradient(135deg, #eaf3f6, #cfdfe7);
}

.student-signout {
  background: #123f52;
  border-color: #2c7583;
  border-radius: 4px;
  font-size: 12px;
  min-height: 30px;
  padding: 5px 9px;
}

.student-sidebar {
  background: #17375c;
  bottom: 0;
  color: white;
  left: 0;
  position: fixed;
  top: 52px;
  width: 200px;
  z-index: 25;
}

.student-session {
  background: #0f2f4f;
  border-bottom: 1px solid #2c5576;
  font-size: 12px;
  font-weight: 800;
  padding: 12px 14px;
}

.student-sidebar nav {
  display: grid;
  gap: 0;
}

.student-sidebar a {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #eef7fa;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  min-height: 43px;
  padding: 11px 14px;
}

.student-sidebar a::before {
  background: currentColor;
  border-radius: 2px;
  content: "";
  height: 10px;
  margin-right: 11px;
  opacity: 0.86;
  width: 10px;
}

.student-sidebar a.active,
.student-sidebar a:hover {
  background: #0b414a;
  color: #ffffff;
  text-decoration: none;
}

.student-sidebar a.active {
  box-shadow: inset 4px 0 0 #d71920;
}

.student-shell {
  margin-left: 200px;
  padding: 10px 10px 34px;
}

.student-dashboard {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.student-welcome,
.student-panel {
  background: white;
  border: 1px solid #dfe4e8;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(23, 33, 43, 0.04);
}

.student-welcome {
  align-items: center;
  display: flex;
  gap: 22px;
  grid-column: span 5;
  min-height: 196px;
  padding: 16px 20px;
}

.student-photo {
  align-items: center;
  background:
    linear-gradient(rgba(15, 95, 107, 0.1), rgba(15, 95, 107, 0.1)),
    url("/assets/bmhi-seal-blue.jpeg") center / cover no-repeat;
  border-radius: 6px;
  color: transparent;
  display: flex;
  flex: 0 0 auto;
  height: 124px;
  justify-content: center;
  overflow: hidden;
  width: 124px;
}

.student-welcome h1 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 10px;
}

.student-welcome p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.student-panel {
  min-height: 160px;
  overflow: hidden;
}

.student-panel h2 {
  border-bottom: 1px solid #edf0f2;
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  padding: 10px 12px;
}

.student-alert-panel {
  align-items: center;
  background: #fff7e8;
  border: 1px solid #efcf9c;
  border-radius: 4px;
  display: flex;
  gap: 16px;
  grid-column: span 12;
  justify-content: space-between;
  padding: 14px 16px;
}

.student-alert-panel strong {
  color: #6d4200;
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}

.student-alert-panel p {
  color: #765a30;
  margin: 0;
}

.notice-panel {
  grid-column: span 7;
}

.notice-panel a {
  align-items: center;
  border-bottom: 1px solid #edf0f2;
  color: #566371;
  display: flex;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
}

.notice-panel a:hover {
  background: #f8fbfc;
  text-decoration: none;
}

.notice-icon {
  color: #d82514;
  font-weight: 900;
}

.notice-icon.green {
  color: #45b02d;
}

.notice-panel small {
  color: #3580bd;
  margin-left: auto;
}

.subject-panel,
.class-panel,
.homework-panel,
.compact-panel {
  grid-column: span 4;
}

.subject-panel table {
  font-size: 13px;
}

.subject-panel th,
.subject-panel td {
  padding: 8px 14px;
}

.subject-panel .progress {
  display: inline-block;
  height: 5px;
  margin-left: 10px;
  vertical-align: middle;
  width: 104px;
}

.class-row {
  align-items: center;
  background: #f6f6f6;
  border-radius: 5px;
  display: grid;
  gap: 12px;
  grid-template-columns: 38px minmax(0, 1fr) minmax(110px, 0.8fr);
  margin: 10px 10px;
  padding: 10px;
}

.teacher-avatar {
  align-items: center;
  background: #d71920;
  border-radius: 999px;
  color: white;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.class-row strong,
.class-row small {
  display: block;
}

.class-row small {
  color: #637080;
  margin-top: 3px;
}

.homework-row {
  border-bottom: 1px solid #edf0f2;
  padding: 9px 12px;
}

.homework-row h3 {
  color: #5d6b78;
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 5px;
}

.homework-row p {
  color: #5d6b78;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.homework-row span {
  background: #f00064;
  border-radius: 3px;
  color: white;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 5px;
}

.courses-panel {
  grid-column: span 12;
}

.student-course-list {
  display: grid;
}

.student-course-row {
  align-items: center;
  border-bottom: 1px solid #edf0f2;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.8fr) auto auto;
  padding: 12px;
}

.student-course-row:last-child {
  border-bottom: 0;
}

.student-course-row strong,
.student-course-row small {
  display: block;
}

.student-course-row small {
  color: var(--muted);
  margin-top: 4px;
}

.compact-panel {
  min-height: 120px;
}

.compact-panel p {
  line-height: 1.55;
  margin: 12px;
}

.student-profile {
  display: grid;
  gap: 10px;
}

.profile-hero {
  align-items: center;
  background: white;
  border: 1px solid #dfe4e8;
  border-radius: 4px;
  display: flex;
  gap: 18px;
  padding: 18px;
}

.profile-photo {
  align-items: center;
  background:
    linear-gradient(rgba(15, 95, 107, 0.12), rgba(15, 95, 107, 0.12)),
    url("/assets/bmhi-seal-blue.jpeg") center / cover no-repeat;
  border-radius: 6px;
  color: transparent;
  display: flex;
  flex: 0 0 auto;
  height: 118px;
  justify-content: center;
  width: 118px;
}

.profile-hero h1 {
  font-size: 26px;
  margin: 0 0 6px;
}

.profile-hero p {
  color: var(--muted);
  margin: 0 0 12px;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-badges span {
  background: #eef5f6;
  border: 1px solid #d5e7ea;
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.profile-tabs {
  background: white;
  border: 1px solid #dfe4e8;
  border-radius: 4px;
  display: flex;
  flex-wrap: wrap;
}

.profile-tabs a {
  border-right: 1px solid #edf0f2;
  color: #3b4752;
  font-size: 13px;
  font-weight: 800;
  padding: 12px 14px;
}

.profile-tabs a:hover {
  background: #f6fafb;
  color: var(--brand-dark);
  text-decoration: none;
}

.profile-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.profile-card,
.profile-summary {
  grid-column: span 6;
}

.profile-wide {
  grid-column: span 12;
}

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

.profile-table div {
  border-bottom: 1px solid #edf0f2;
  display: grid;
  gap: 5px;
  min-height: 62px;
  padding: 10px 12px;
}

.profile-table strong {
  color: #61707e;
  font-size: 12px;
}

.profile-table span {
  color: var(--ink);
  font-weight: 700;
}

.summary-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 12px;
}

.document-list,
.timeline-list {
  display: grid;
}

.document-list p,
.timeline-list p {
  align-items: center;
  border-bottom: 1px solid #edf0f2;
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 11px 12px;
}

.document-list p:last-child,
.timeline-list p:last-child {
  border-bottom: 0;
}

.document-list span,
.timeline-list span {
  color: var(--muted);
  font-size: 13px;
}

.registrar-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.registrar-mini-list a {
  background: #eef5f7;
  border: 1px solid #d4e4e8;
  border-radius: 999px;
  color: var(--brand-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  padding: 6px 9px;
  text-decoration: none;
}

.registrar-mini-list a:hover,
.registrar-mini-list a:focus-visible {
  background: #dff0f4;
  border-color: #abcfd8;
}

.registrar-mini-help {
  margin: 12px 0 0;
}

.registrar-upload-matrix table {
  min-width: 900px;
}

.registrar-checklist-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 760px;
}

.registrar-checklist-buttons .button {
  margin: 0;
}

.registrar-anchor-list {
  margin-top: 12px;
}

.registrar-stats {
  margin-top: 18px;
}

.registrar-workbench {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  margin-top: 18px;
}

.registrar-overview {
  position: sticky;
  top: 128px;
}

.registrar-timeline,
.registrar-checklist-grid {
  display: grid;
  gap: 14px;
}

.registrar-timeline {
  gap: 10px;
  margin-top: 16px;
}

.registrar-timeline p {
  border-top: 1px solid var(--line);
  margin: 0;
  padding-top: 10px;
}

.registrar-timeline strong,
.registrar-timeline span,
.registrar-file strong,
.registrar-file span {
  display: block;
}

.registrar-timeline span,
.registrar-file span,
.registrar-file-empty {
  color: var(--muted);
  font-size: 13px;
}

.registrar-item {
  display: grid;
  gap: 14px;
}

.registrar-item.approved {
  border-color: #b8d8ca;
}

.registrar-item.missing {
  border-color: #efc0c0;
}

.registrar-item-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.registrar-item-head h2,
.registrar-item-head p {
  margin: 0;
}

.registrar-item-head p {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 5px;
}

.registrar-form,
.registrar-upload {
  display: grid;
  gap: 8px;
}

.registrar-file {
  background: #f8fbfc;
  border: 1px solid #e5edf1;
  border-radius: 6px;
  display: grid;
  gap: 6px;
  padding: 10px;
}

.osv-workspace {
  align-items: stretch;
  margin-top: 18px;
}

.osv-overview,
.osv-request-panel {
  display: grid;
  gap: 12px;
}

.osv-request-panel textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  min-height: 210px;
}

.osv-section {
  margin-top: 22px;
}

.osv-section-head {
  align-items: end;
  border-bottom: 2px solid var(--brand-dark);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
}

.osv-section-head h2,
.osv-section-head span,
.osv-item h3,
.osv-item p {
  margin: 0;
}

.osv-section-head span,
.osv-item-head p {
  color: var(--muted);
}

.osv-item-list {
  display: grid;
  gap: 14px;
}

.osv-item {
  display: grid;
  gap: 14px;
}

.osv-item.approved {
  border-color: #b8d8ca;
}

.osv-item.requested {
  border-color: #d8ca9b;
}

.osv-item-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.osv-item-head h3 {
  font-size: 22px;
}

.osv-item-head p:last-child {
  line-height: 1.45;
  margin-top: 5px;
}

.osv-detail-form {
  display: grid;
  gap: 8px 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.osv-detail-form .span-2 {
  grid-column: span 2;
}

.osv-upload {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.osv-upload label {
  grid-column: 1 / -1;
}

.osv-file-list {
  display: grid;
  gap: 8px;
}

.osv-file {
  align-items: center;
  background: #f8fbfc;
  border: 1px solid #e5edf1;
  border-radius: 6px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px;
}

.osv-file strong,
.osv-file span {
  display: block;
}

.osv-file span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.actions.compact {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}

.button.danger,
button.danger {
  border-color: #f0c0c0;
  color: #a33;
}

.osv-binder {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.osv-binder-section table {
  min-width: 1000px;
}

.osv-binder-section td {
  vertical-align: top;
}

.hesi-toolbar {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.hesi-scorebook {
  overflow-x: auto;
}

.hesi-scorebook table {
  min-width: 1480px;
}

.hesi-scorebook th small {
  color: #64748b;
  font-size: .72rem;
  font-weight: 700;
}

.hesi-score-cell form {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: 76px 1fr;
  min-width: 150px;
}

.hesi-score-cell input {
  margin: 0;
  padding: 8px;
}

.hesi-score-cell span,
.hesi-mini {
  border-radius: 999px;
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  padding: 4px 8px;
  text-transform: uppercase;
}

.hesi-score-cell button {
  grid-column: 1 / -1;
  justify-self: start;
}

.hesi-score-cell.pass {
  background: #fffde1;
}

.hesi-score-cell.pass span,
.hesi-mini.pass {
  background: #dcfce7;
  color: #166534;
}

.hesi-score-cell.remediation {
  background: #fee2e2;
}

.hesi-score-cell.remediation span,
.hesi-mini.remediation {
  background: #fecaca;
  color: #991b1b;
}

.hesi-score-cell.missing {
  background: #f8fafc;
}

.hesi-score-cell.missing span,
.hesi-mini.missing {
  background: #e2e8f0;
  color: #475569;
}

@media print {
  body.sis-mode {
    background: #fff;
  }

  .sis-shell > aside,
  .sis-shell > header,
  .osv-print-head .actions,
  .flash {
    display: none !important;
  }

  .sis-shell {
    display: block;
  }

  .sis-content {
    padding: 0;
  }

  .card {
    break-inside: avoid;
    box-shadow: none;
  }
}

.profile-note {
  color: var(--muted);
  line-height: 1.55;
  margin: 14px 12px 18px;
}

.student-registration,
.student-transcript {
  display: grid;
  gap: 12px;
}

.registration-panel,
.transcript-panel {
  min-height: auto;
}

.registration-panel table,
.transcript-panel table {
  font-size: 13px;
}

.program-list {
  display: grid;
}

.program-card {
  border-bottom: 1px solid #dfe4e8;
  padding: 14px;
}

.program-card:last-child {
  border-bottom: 0;
}

.program-card-head {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.program-card h3,
.program-card h4,
.program-card p {
  margin: 0;
}

.program-card h3 {
  font-size: 18px;
  line-height: 1.2;
}

.program-cost {
  color: var(--brand-dark) !important;
  font-size: 13px;
  font-weight: 800;
  margin-top: 5px !important;
}

.program-card-head p,
.program-subcourse small,
.program-note {
  color: var(--muted);
}

.program-subcourses {
  background: #f8fbfc;
  border: 1px solid #e5edf1;
  border-radius: 6px;
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.program-subcourses h4 {
  border-bottom: 1px solid #e5edf1;
  color: var(--brand-dark);
  font-size: 13px;
  letter-spacing: 0;
  padding: 10px 12px;
}

.program-subcourse {
  align-items: center;
  border-bottom: 1px solid #e5edf1;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 12px;
}

.program-subcourse:last-child {
  border-bottom: 0;
}

.program-subcourse.registered {
  background: #eef7f3;
}

.admin-program-subcourses {
  margin-top: 14px;
}

.admin-program-grid {
  align-items: start;
}

.admin-program-card {
  display: grid;
  gap: 12px;
}

.admin-program-card.featured {
  border-color: #c8dce2;
  box-shadow: 0 16px 34px rgba(15, 95, 107, 0.12);
}

.program-subcourse strong,
.program-subcourse small {
  display: block;
}

.program-subcourse small {
  margin-top: 3px;
}

.program-note {
  font-size: 13px;
  font-weight: 750;
  margin-top: 10px !important;
}

.registration-stats .stat {
  border-radius: 4px;
}

.tuition-fees {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.tuition-fees.compact {
  margin-top: 12px;
}

.tuition-heading {
  align-items: end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.tuition-heading h2,
.tuition-heading p {
  margin: 0;
}

.tuition-table-card,
.fee-table-card {
  overflow-x: auto;
}

.tuition-fees table {
  min-width: 760px;
}

.tuition-fees thead th {
  background: var(--brand-dark);
  color: white;
  font-size: 15px;
}

.tuition-fees tbody td:first-child {
  color: #101828;
}

.tuition-fees tbody td:last-child {
  color: #101828;
}

.fee-table-card {
  justify-self: center;
  max-width: 880px;
  width: 100%;
}

.tuition-notes {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 24px;
}

.tuition-notes li {
  color: #101828;
  font-size: 14px;
  line-height: 1.45;
}

.financial-term {
  display: grid;
  gap: 12px;
}

.financial-head {
  align-items: end;
  background: white;
  border: 1px solid #dfe4e8;
  border-radius: 4px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px;
}

.financial-head h1 {
  font-size: 28px;
  margin: 0 0 6px;
}

.financial-head p {
  color: var(--muted);
  margin: 0;
}

.financial-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.financial-actions select {
  min-width: 240px;
}

.financial-stats .stat {
  border-radius: 4px;
}

.financial-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.financial-section {
  grid-column: span 6;
}

.financial-wide {
  grid-column: span 12;
}

.financial-summary {
  display: grid;
}

.financial-summary p {
  align-items: center;
  border-bottom: 1px solid #edf0f2;
  display: flex;
  justify-content: space-between;
  margin: 0;
  min-height: 44px;
  padding: 10px 12px;
}

.financial-summary p:last-child {
  border-bottom: 0;
}

.financial-summary strong {
  color: #61707e;
  font-size: 13px;
}

.financial-summary span {
  color: var(--ink);
  font-weight: 750;
  text-align: right;
}

.aid-student-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.billing-workbench .card {
  display: grid;
  gap: 10px;
}

.billing-workbench .card button {
  margin-top: 4px;
}

.login-wrap {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  min-height: calc(100vh - 72px);
  padding-block: clamp(32px, 6vw, 72px);
}

.login-logo {
  display: block;
  height: 88px;
  margin: 0 0 22px;
  object-fit: contain;
  width: 88px;
}

.login-copy {
  display: grid;
  gap: 24px;
  width: 100%;
}

.login-hero-media {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
  width: 100%;
}

.login-hero-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.login-copy-text {
  max-width: 760px;
}

.login-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  padding: 28px;
  width: 100%;
}

.login-role-grid {
  display: grid;
  gap: 12px;
}

.login-role-option {
  align-items: flex-start;
  background: white;
  border-color: var(--line);
  color: var(--ink);
  display: grid;
  gap: 4px;
  justify-content: stretch;
  min-height: 82px;
  text-align: left;
}

.login-role-option strong {
  font-size: 20px;
}

.login-role-option span {
  color: var(--muted);
  font-size: 14px;
}

.login-role-option.selected {
  background: #edf6f7;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 109, 123, 0.14);
}

.login-fields {
  display: grid;
  gap: 12px;
}

.login-fields[hidden] {
  display: none;
}

.login-panel > p {
  margin: 0;
}

.login-copy h1,
.page-head h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  margin: 0 0 12px;
}

.login-copy p,
.page-head p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  max-width: 680px;
}

.login-copy p {
  max-width: 720px;
}

.admissions-hero {
  align-items: center;
  display: grid;
  gap: clamp(24px, 5vw, 56px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  margin-bottom: 24px;
}

.admissions-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.04;
  margin: 0 0 14px;
  max-width: 760px;
}

.admissions-hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  max-width: 760px;
}

.admissions-hero img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.admissions-contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.admissions-contact-strip span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  padding: 8px 12px;
}

.admissions-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.admissions-form {
  display: grid;
  gap: 16px;
}

.check-row {
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 12px;
}

.check-row input {
  margin-top: 3px;
  min-height: 0;
  width: auto;
}

.admissions-next-steps ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.admissions-next-steps li {
  margin: 0 0 10px;
}

.admissions-confirmation {
  margin: 48px auto;
  max-width: 760px;
}

.application-details {
  margin-bottom: 10px;
}

.application-details summary {
  color: var(--brand);
  cursor: pointer;
  font-weight: 800;
  margin-bottom: 8px;
}

.admissions-status-form {
  align-items: stretch;
  display: grid;
}

.admissions-status-form textarea {
  min-height: 78px;
}

.page-head {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

.card,
.table-card,
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card {
  padding: 20px;
}

.card h2,
.card h3 {
  margin: 0 0 10px;
}

.muted {
  color: var(--muted);
}

.meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 8px 16px;
}

.stat {
  padding: 18px;
}

.stat span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}

.stat strong {
  font-size: 28px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

label {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px;
}

input,
select,
textarea {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.lesson-edit-form {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding: 14px 0;
}

.lesson-edit-form:first-of-type {
  padding-top: 0;
}

.lesson-edit-form:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.lesson-edit-form p {
  margin: 0;
}

.lesson-edit-form textarea {
  min-height: 92px;
}

.section-visibility-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin: 14px 0;
}

.section-toggle {
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px 10px;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 0;
  padding: 10px 12px;
}

.section-toggle input {
  margin-top: 2px;
  min-height: 0;
  width: auto;
}

.section-toggle span {
  color: var(--ink);
  font-weight: 850;
}

.section-toggle small {
  color: var(--muted);
  grid-column: 2;
}

.section-toggle.locked {
  background: #f6f9fb;
}

.course-toolkit-card .lms-toolkit {
  margin-top: 16px;
}

.lms-toolkit {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 18px;
}

.lms-toolkit.compact {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.lms-tool-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.lms-tool-group-head h3,
.lms-tool-group-head p {
  margin: 0;
}

.lms-tool-group-head h3 {
  color: var(--ink);
}

.lms-tool-group-head p {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 4px;
}

.lms-tool-list {
  display: grid;
  gap: 9px;
}

.lms-tool-card {
  align-items: start;
  background: #f8fbfc;
  border: 1px solid #e5edf1;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 11px;
}

.lms-tool-card strong {
  color: var(--ink);
}

.lms-tool-card p {
  color: var(--muted);
  line-height: 1.4;
  margin: 4px 0 0;
}

.tool-status {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
  white-space: nowrap;
}

.tool-status.enabled {
  background: #eef8f1;
  border-color: #b8d8ca;
  color: #22613a;
}

.tool-status.hidden {
  background: #fff6f2;
  border-color: #f1c8b5;
  color: #9a4a22;
}

.tool-status.neutral {
  background: #f3f6f9;
  color: #4d5b68;
}

.course-import-upload form,
.course-import-list,
.course-import-item {
  display: grid;
  gap: 10px;
}

.course-import-upload textarea,
.course-import-item textarea {
  min-height: 88px;
}

.course-import-list {
  margin-top: 10px;
}

.course-import-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.course-import-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.course-import-head small {
  color: var(--muted);
  display: block;
  line-height: 1.4;
  margin-top: 4px;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.span-2 {
  grid-column: span 2;
}

.actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
button {
  align-items: center;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 750;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
}

.button.secondary,
button.secondary {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.button.ghost,
button.ghost {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}

.button.warn,
button.warn {
  background: var(--accent);
  border-color: var(--accent);
}

.button.disabled,
button:disabled {
  background: #d7dee5;
  border-color: #c6d0da;
  color: #697989;
  cursor: not-allowed;
  pointer-events: none;
}

.button.small,
button.small {
  min-height: 34px;
  padding: 7px 10px;
}

.pill {
  background: #edf6f7;
  border: 1px solid #c8e1e5;
  border-radius: 999px;
  color: var(--brand-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 9px;
}

.pill.orange {
  background: #fff4ee;
  border-color: #f1c8b5;
  color: var(--accent);
}

.progress {
  background: #e7edf1;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  width: 100%;
}

.progress span {
  background: var(--success);
  display: block;
  height: 100%;
}

.flash {
  background: #e8f5ef;
  border: 1px solid #b8ddca;
  border-radius: 8px;
  color: #165f3c;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.catalog-card {
  margin-top: 18px;
  padding: 0;
  overflow: hidden;
}

.catalog-summary-card {
  display: grid;
  gap: 12px;
}

.catalog-summary-card h2,
.catalog-summary-card h3,
.catalog-summary-card p,
.catalog-summary-card ul {
  margin: 0;
}

.catalog-summary-card ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.catalog-summary-card li,
.catalog-summary-card p {
  color: var(--muted);
  line-height: 1.5;
}

.catalog-definition-list {
  display: grid;
  gap: 0;
}

.catalog-definition-list p {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1fr);
  padding: 10px 0;
}

.catalog-definition-list p:last-child {
  border-bottom: 0;
}

.catalog-definition-list strong {
  color: var(--ink);
}

.catalog-definition-list span {
  color: var(--muted);
}

.catalog-calendar-list {
  display: grid;
  gap: 8px;
}

.catalog-calendar-list details {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
}

.catalog-calendar-list summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.catalog-calendar-list ul {
  margin-top: 10px;
}

.catalog-program-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.catalog-program-grid article {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 7px;
  padding: 12px;
}

.catalog-program-grid h3 {
  color: var(--brand-dark);
  font-size: 16px;
  line-height: 1.2;
}

.catalog-frame {
  border: 0;
  display: block;
  height: min(980px, calc(100vh - 230px));
  min-height: 620px;
  width: 100%;
}

.feature-shell {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 260px;
}

.feature-grid {
  column-count: 3;
  column-gap: 14px;
}

.feature-group {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  break-inside: avoid;
  display: inline-block;
  margin: 0 0 14px;
  overflow: hidden;
  width: 100%;
}

.feature-group header {
  align-items: center;
  background: #f8fafb;
  border-bottom: 1px solid #e8eef3;
  display: flex;
  gap: 10px;
  padding: 12px 14px;
}

.feature-group header span {
  align-items: center;
  background: var(--brand-dark);
  border-radius: 6px;
  color: white;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  width: 38px;
}

.feature-group h2,
.feature-rail h2 {
  font-size: 16px;
  line-height: 1.2;
  margin: 0;
}

.feature-list {
  display: grid;
}

.feature-list a,
.feature-quick-list a {
  align-items: center;
  border-bottom: 1px solid #eef3f6;
  color: var(--ink);
  display: flex;
  font-size: 13px;
  font-weight: 650;
  justify-content: space-between;
  line-height: 1.35;
  min-height: 34px;
  padding: 8px 14px;
}

.feature-list a:last-child,
.feature-quick-list a:last-child {
  border-bottom: 0;
}

.feature-list a::after,
.feature-quick-list a::after {
  color: #8a98a5;
  content: ">";
  font-size: 13px;
  font-weight: 900;
  margin-left: 10px;
}

.feature-list a:hover,
.feature-quick-list a:hover {
  background: #f5fafb;
  color: var(--brand-dark);
  text-decoration: none;
}

.feature-rail {
  position: sticky;
  top: 96px;
}

.feature-rail-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(23, 33, 43, 0.07);
  overflow: hidden;
}

.feature-rail-card h2 {
  padding: 14px 14px 0;
}

.feature-rail-card p {
  font-size: 13px;
  line-height: 1.45;
  margin: 8px 14px 12px;
}

.feature-quick-list {
  border-top: 1px solid #eef3f6;
  max-height: calc(100vh - 230px);
  overflow: auto;
}

.module-placeholder p,
.module-placeholder li {
  color: var(--muted);
  line-height: 1.65;
}

.module-placeholder ul {
  margin: 0;
  padding-left: 20px;
}

.course-canvas-mode {
  background: white;
  color: #2d3b45;
  font-family: Lato, "Helvetica Neue", Arial, sans-serif;
}

.canvas-root {
  padding: 0;
}

.canvas-course-shell {
  display: grid;
  grid-template-columns: 52px 214px minmax(0, 1fr) 280px;
  grid-template-rows: 54px 1fr;
  min-height: 100vh;
  position: relative;
  transition: grid-template-columns 180ms ease;
}

.student-course-shell {
  grid-template-columns: 90px 214px minmax(0, 1fr) 280px;
  grid-template-rows: 78px 1fr;
}

.canvas-global-rail {
  align-items: center;
  background: #17375c;
  display: flex;
  flex-direction: column;
  gap: 18px;
  grid-row: 1 / -1;
  padding: 8px 0;
}

.student-canvas-rail {
  gap: 10px;
  padding: 6px 0 0;
}

.canvas-global-rail img {
  background: white;
  border-radius: 2px;
  display: block;
  height: 42px;
  object-fit: contain;
  padding: 2px;
  width: 42px;
}

.student-canvas-rail img {
  height: 74px;
  width: 74px;
}

.student-canvas-rail nav {
  display: grid;
  width: 100%;
}

.student-canvas-rail a {
  align-items: center;
  color: white;
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 9px 4px;
  text-align: center;
}

.student-canvas-rail a.active {
  background: white;
  color: #b4b92d;
}

.student-canvas-rail a:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.student-canvas-rail a.active:hover {
  background: white;
}

.canvas-global-rail span {
  align-items: center;
  background: white;
  border-radius: 999px;
  color: #17375c;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.student-canvas-rail a span {
  background: transparent;
  border: 2px solid currentColor;
  color: inherit;
  font-size: 18px;
  height: 30px;
  width: 30px;
}

.student-canvas-rail a strong {
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.15;
}

.canvas-global-rail i {
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 4px;
  display: block;
  height: 24px;
  width: 24px;
}

.canvas-populi-bar {
  align-items: center;
  border-bottom: 1px solid #dce3e8;
  display: flex;
  gap: 4px;
  grid-column: 2 / -1;
  min-width: 0;
  overflow-x: auto;
  padding: 8px 24px;
}

.student-canvas-topbar {
  min-height: 78px;
  padding: 10px 18px 16px;
}

.student-canvas-topbar > strong {
  color: #2d3b48;
  font-size: 20px;
  font-weight: 500;
  padding-left: 4px;
}

.canvas-crumbs {
  align-items: center;
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.canvas-crumbs a,
.canvas-crumbs strong,
.canvas-crumbs span {
  color: #2d3b48;
  font-size: 20px;
  font-weight: 500;
  padding: 0;
}

.canvas-crumbs a {
  color: #2d7fd4;
}

.canvas-crumbs span {
  color: #8794a1;
}

.canvas-menu-button {
  color: #2d7fd4;
  font-size: 28px;
  font-weight: 400;
}

.canvas-sidebar-toggle,
.lesson-sidebar-toggle {
  align-items: center;
  background: #eef6f7;
  border: 1px solid #cddfe4;
  border-radius: 4px;
  color: var(--brand-dark);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 850;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
}

.canvas-sidebar-toggle {
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
  height: 28px;
  left: calc(52px + 214px - 14px);
  line-height: 1;
  min-height: 28px;
  padding: 0;
  position: absolute;
  top: 78px;
  width: 28px;
  z-index: 8;
}

.student-course-shell .canvas-sidebar-toggle {
  left: calc(90px + 214px - 14px);
  top: 104px;
}

.student-course-home .canvas-course-main {
  padding-top: 38px;
}

.canvas-sidebar-toggle:hover,
.lesson-sidebar-toggle:hover {
  background: #dceff2;
}

.canvas-populi-bar a {
  border-radius: 4px;
  color: #2a3947;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 750;
  padding: 9px 12px;
}

.canvas-populi-bar a:first-child {
  color: var(--brand-dark);
  margin-right: 8px;
}

.canvas-populi-bar a:hover {
  background: #edf6f7;
  text-decoration: none;
}

.canvas-top-spacer {
  flex: 1 1 auto;
}

.canvas-populi-bar .canvas-top-button {
  background: #f1f3f5;
  border: 1px solid #dce3e8;
  color: #2d3b48;
}

.canvas-course-nav {
  border-right: 1px solid #dfe5ea;
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  padding: 22px 0 26px 24px;
  transition: opacity 160ms ease, padding 180ms ease;
}

.canvas-course-nav a {
  border-left: 3px solid transparent;
  color: #005eb8;
  display: block;
  font-size: 16px;
  line-height: 1.25;
  padding: 8px 12px 8px 8px;
}

.canvas-course-nav a.active {
  border-left-color: #28313b;
  color: #28313b;
  font-weight: 800;
}

.course-outline-panel {
  background: #f7f7fb;
  border-right: 1px solid #dfe5ea;
  display: none;
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  overflow: auto;
  padding: 16px 14px;
}

.course-outline-card {
  background: white;
  border: 1px solid #e4e8ed;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(23, 33, 43, 0.08);
  margin-bottom: 14px;
  padding: 16px;
}

.course-outline-head {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.course-outline-head h2 {
  color: #151d25;
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.course-outline-icon {
  background: #ffffff;
  border: 1px solid #d6dee5;
  border-radius: 6px;
  color: #2a3947;
  font-size: 16px;
  font-weight: 900;
  height: 28px;
  min-height: 28px;
  padding: 0;
  width: 28px;
}

.course-outline-card p {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  margin: 8px 0 0;
}

.course-outline-card p span {
  color: #2a3947;
  font-weight: 850;
}

.course-outline-list {
  display: grid;
  gap: 12px;
}

.course-outline-list section {
  background: white;
  border: 1px solid #e4e8ed;
  border-radius: 10px;
  padding: 13px 14px;
}

.course-outline-list h3 {
  color: #151d25;
  font-size: 15px;
  line-height: 1.3;
  margin: 0 0 10px;
}

.course-outline-list a {
  align-items: center;
  border-radius: 6px;
  color: #2a3947;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  font-size: 13px;
  line-height: 1.35;
  padding: 7px 6px;
}

.course-outline-list a:hover,
.course-outline-list a.active {
  background: #edf6f7;
  color: var(--brand-dark);
  text-decoration: none;
}

.outline-dot {
  background: #d9dde1;
  border-radius: 999px;
  height: 14px;
  width: 14px;
}

.course-outline-list a.active .outline-dot {
  background: var(--brand);
}

.canvas-course-main {
  grid-column: 3;
  min-width: 0;
  padding: 38px clamp(28px, 5vw, 68px) 36px;
}

.course-canvas-mode.course-nav-collapsed .canvas-course-shell {
  grid-template-columns: 52px 320px minmax(0, 1fr) 280px;
}

.course-canvas-mode.course-nav-collapsed .canvas-lesson-shell {
  grid-template-columns: 52px 320px minmax(0, 1fr);
}

.course-canvas-mode.course-nav-collapsed .canvas-course-nav {
  border-right: 0;
  opacity: 0;
  padding-left: 0;
  padding-right: 0;
  pointer-events: none;
}

.course-canvas-mode.course-nav-collapsed .course-outline-panel {
  display: block;
}

.course-canvas-mode.course-nav-collapsed .canvas-sidebar-toggle {
  left: calc(52px + 320px - 14px);
}

.canvas-mini-head {
  align-items: center;
  border-bottom: 1px solid #dfe5ea;
  display: flex;
  gap: 22px;
  margin: -38px calc(clamp(28px, 5vw, 68px) * -1) 40px;
  min-height: 54px;
  padding: 0 clamp(28px, 5vw, 68px);
}

.canvas-mini-head span {
  background: #2d7fd4;
  display: block;
  height: 2px;
  width: 22px;
}

.canvas-mini-head strong {
  color: #2d3742;
  font-size: 18px;
}

.canvas-course-main > h1 {
  color: #666;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.1;
  margin: 0 0 48px;
}

.canvas-rule {
  background: var(--brand-dark);
  height: 9px;
  margin: 0 auto 30px;
  max-width: 830px;
}

.canvas-rule.thin {
  height: 3px;
  margin: 10px 0 18px;
  max-width: none;
}

.canvas-home-card {
  margin: 0 auto 34px;
  max-width: 850px;
}

.canvas-home-card h2 {
  color: #103f56;
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 500;
  margin: 0 0 12px;
}

.canvas-home-card p {
  color: #2d4052;
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 12px;
}

.preview-ribbon {
  align-items: center;
  background: #f1f8f9;
  border: 1px solid #cfe3e8;
  border-radius: 6px;
  color: #244757;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin: 0 0 24px;
  padding: 12px 14px;
}

.preview-ribbon span {
  color: var(--muted);
  flex: 1 1 260px;
  font-size: 13px;
}

.canvas-start {
  margin: 0 auto 34px;
  max-width: 850px;
}

.canvas-start h2,
.canvas-modules h2 {
  color: #103f56;
  font-size: 24px;
  font-weight: 500;
  margin: 0;
}

.start-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.start-tile {
  border: 2px solid #174b61;
  color: white;
  display: grid;
  grid-template-rows: 116px 88px;
  margin-left: -2px;
  overflow: hidden;
  text-align: center;
}

.start-tile:first-child {
  border-radius: 6px 0 0 6px;
  margin-left: 0;
}

.start-tile:last-child {
  border-radius: 0 6px 6px 0;
}

.start-tile span {
  align-items: center;
  background: white;
  display: flex;
  font-size: 38px;
  justify-content: center;
}

.start-tile .book::before {
  content: "▤";
}

.start-tile .brain::before {
  content: "●";
}

.start-tile .check::before {
  content: "✓";
}

.start-tile .question::before {
  content: "?";
}

.student-course-home .start-tile .book::before {
  content: "📖";
}

.student-course-home .start-tile .brain::before {
  content: "🧠";
}

.student-course-home .start-tile .check::before {
  color: #f2b700;
  content: "✓";
}

.student-course-home .start-tile .question::before {
  color: #d10000;
  content: "?";
}

.start-tile strong {
  align-items: center;
  background: #174b61;
  display: flex;
  font-size: 15px;
  font-weight: 500;
  justify-content: center;
  line-height: 1.35;
  padding: 12px;
}

.start-tile:hover {
  text-decoration: none;
}

.canvas-modules {
  margin: 0 auto;
  max-width: 850px;
}

.canvas-modules article {
  align-items: center;
  border-bottom: 1px solid #dfe5ea;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 13px 0;
}

.canvas-modules span {
  color: var(--muted);
  font-size: 13px;
}

.canvas-footer {
  border-top: 2px solid var(--brand-dark);
  color: #435768;
  font-size: 12px;
  margin: 34px auto 0;
  max-width: 850px;
  padding-top: 16px;
  text-align: center;
}

.canvas-modules-main {
  grid-column: 3 / -1;
  padding: 38px clamp(22px, 4vw, 52px) 46px;
}

.canvas-modules-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 52px;
}

.canvas-modules-toolbar > span {
  flex: 1 1 auto;
}

.canvas-modules-toolbar button,
.canvas-modules-toolbar a {
  background: #f2f4f6;
  border: 1px solid #e0e4e8;
  border-radius: 4px;
  color: #2d3b48;
  font-size: 14px;
  font-weight: 500;
  min-height: 36px;
  padding: 8px 13px;
}

.canvas-modules-toolbar a:hover {
  text-decoration: none;
}

.canvas-modules-toolbar .canvas-module-add {
  background: #b1b329;
  border-color: #a2a426;
  color: white;
}

.canvas-published-dot {
  align-items: center;
  background: #078a43;
  border-radius: 999px;
  color: white;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.canvas-published-dot::before {
  content: "✓";
}

.canvas-module-list {
  display: grid;
  gap: 64px;
}

.canvas-module-block {
  border: 1px solid #e1e5e8;
  border-left: 4px solid #008a43;
}

.canvas-module-header {
  align-items: center;
  background: #f0f1f2;
  border-bottom: 1px solid #d9dee2;
  color: #2d3b48;
  display: flex;
  font-size: 16px;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 16px 0 10px;
}

.canvas-module-header > div,
.canvas-module-row {
  align-items: center;
  display: grid;
}

.canvas-module-header > div:first-child {
  gap: 8px;
  grid-template-columns: auto auto minmax(0, 1fr);
}

.canvas-module-header > div:last-child {
  display: flex;
  gap: 12px;
}

.module-drag,
.module-caret,
.module-menu {
  color: #576675;
  font-weight: 800;
}

.canvas-module-items {
  display: grid;
}

.canvas-module-row {
  background: white;
  border-bottom: 1px solid #edf0f2;
  color: #2d3b48;
  gap: 12px;
  grid-template-columns: 18px 24px minmax(0, 1fr) 22px 18px;
  min-height: 64px;
  padding: 10px 16px 10px 10px;
}

.canvas-module-row:first-child {
  background: #eef8ff;
}

.canvas-module-row:last-child {
  border-bottom: 0;
}

.canvas-module-row:hover {
  background: #f7fbff;
  text-decoration: none;
}

.module-type {
  color: #2fad66;
  font-size: 18px;
  text-align: center;
}

.module-title {
  min-width: 0;
}

.module-title strong,
.module-title small {
  display: block;
}

.module-title strong {
  color: #2d3b48;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.module-title small {
  color: #6f7d89;
  font-size: 12px;
  margin-top: 3px;
}

.canvas-module-row.empty {
  pointer-events: none;
}

.canvas-page-main {
  padding-bottom: 0;
}

.canvas-page-content {
  margin: 0 auto;
  max-width: 1080px;
}

.canvas-page-breadcrumb {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 8px;
  margin: 0 0 22px;
}

.canvas-page-content h1 {
  color: #6d6d6d;
  font-size: clamp(34px, 3.1vw, 44px);
  font-weight: 300;
  line-height: 1.2;
  margin: 0 0 26px;
}

.canvas-page-content h2 {
  color: #2d3b45;
  font-size: clamp(25px, 2.25vw, 34px);
  font-weight: 400;
  line-height: 1.25;
  margin: 22px 0 14px;
}

.canvas-page-copy {
  color: #2d3b45;
  font-size: 16px;
  line-height: 1.55;
  max-width: 920px;
}

.canvas-page-copy p {
  color: #2d3b45;
  margin: 0 0 18px;
}

.canvas-page-copy strong {
  color: #2d3b45;
  font-weight: 700;
}

.canvas-page-copy h2,
.canvas-page-copy h3,
.canvas-page-copy h4,
.canvas-source-html h2,
.canvas-source-html h3,
.canvas-source-html h4 {
  color: #2d3b45;
  font-weight: 400;
  line-height: 1.3;
}

.canvas-page-copy h2,
.canvas-source-html h2 {
  font-size: 28px;
  margin: 26px 0 14px;
}

.canvas-page-copy h3,
.canvas-source-html h3 {
  font-size: 23px;
  margin: 24px 0 12px;
}

.canvas-page-copy h4,
.canvas-source-html h4 {
  font-size: 19px;
  margin: 18px 0 10px;
}

.canvas-page-copy ul,
.canvas-page-copy ol,
.canvas-source-html ul,
.canvas-source-html ol {
  margin: 0 0 18px 28px;
  padding: 0;
}

.canvas-page-copy li,
.canvas-source-html li {
  line-height: 1.55;
  margin: 4px 0;
}

.canvas-page-copy a,
.canvas-source-html a {
  color: #0068b3;
  text-decoration: underline;
}

.canvas-page-copy img,
.canvas-source-html img {
  height: auto;
  max-width: 100%;
}

.canvas-lesson-image {
  margin: 18px 0 24px;
  max-width: 760px;
}

.canvas-lesson-image img {
  border: 1px solid #d9e1e8;
  display: block;
  max-height: 340px;
  object-fit: cover;
  width: 100%;
}

.canvas-lesson-visual img {
  aspect-ratio: 16 / 7;
}

.canvas-lesson-image figcaption {
  color: #596b78;
  font-size: 13px;
  margin-top: 7px;
}

.canvas-content-table-wrap,
.canvas-source-html table {
  margin: 16px 0 24px;
}

.canvas-content-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.canvas-content-table,
.canvas-source-html table {
  border-collapse: collapse;
  color: #2d3b45;
  font-size: 14px;
  line-height: 1.45;
  min-width: 520px;
  width: 100%;
}

.canvas-content-table th,
.canvas-content-table td,
.canvas-source-html th,
.canvas-source-html td {
  border: 1px solid #c7cdd1;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.canvas-content-table th,
.canvas-source-html th {
  background: #e8f1f5;
  color: #2d3b45;
  font-weight: 700;
}

.canvas-content-table tr:nth-child(even) td,
.canvas-source-html tr:nth-child(even) td {
  background: #fafafa;
}

.canvas-source-html {
  color: #2d3b45;
}

.canvas-source-html p {
  margin: 0 0 18px;
}

.canvas-complete-action {
  margin: 26px 0 0;
}

.canvas-page-actions {
  align-items: center;
  border-top: 1px solid #dfe5ea;
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding: 18px 0 0;
}

.canvas-syllabus-main {
  grid-column: 3 / 5;
  padding-right: clamp(28px, 4vw, 52px);
}

.canvas-syllabus-main .canvas-mini-head {
  justify-content: space-between;
}

.immersive-reader {
  background: #f8fafc;
  border-color: #d4dbe2;
  color: #2d3b48;
  min-height: 36px;
}

.syllabus-layout {
  align-items: start;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr) 280px;
}

.syllabus-content {
  display: grid;
  gap: 22px;
}

.syllabus-title-row {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.syllabus-title-row h1 {
  color: #2d3b48;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

.syllabus-card {
  border: 1px solid #d9e4ec;
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 24px 26px;
}

.syllabus-card h2,
.syllabus-card h3,
.syllabus-card p {
  margin: 0;
}

.syllabus-card h2 {
  color: #103f56;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
}

.syllabus-card h3 {
  color: #103f56;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 500;
}

.syllabus-card p {
  color: #2f4050;
  font-size: 18px;
  line-height: 1.5;
}

.syllabus-table {
  border-collapse: collapse;
  color: #2d3b48;
  font-size: 18px;
  width: 100%;
}

.syllabus-table th,
.syllabus-table td {
  border: 1px solid #c4ccd3;
  padding: 12px 14px;
}

.syllabus-table th {
  background: #e8f2f7;
  font-weight: 850;
  text-align: center;
}

.syllabus-table td:last-child,
.syllabus-table th:last-child {
  text-align: center;
  width: 150px;
}

.syllabus-details {
  display: grid;
  gap: 10px;
}

.syllabus-details p {
  border-bottom: 1px solid #e4eaf0;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-bottom: 10px;
}

.syllabus-side {
  display: grid;
  gap: 24px;
  padding-top: 50px;
}

.syllabus-calendar {
  border: 1px solid #dde4ea;
  border-radius: 4px;
  overflow: hidden;
}

.syllabus-calendar-head {
  align-items: center;
  border-bottom: 1px solid #dde4ea;
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
}

.syllabus-calendar-head span {
  color: #7c8995;
  font-size: 28px;
}

.syllabus-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 8px 10px 12px;
}

.syllabus-calendar-grid span {
  align-items: center;
  color: #4c5b68;
  display: flex;
  font-size: 16px;
  height: 28px;
  justify-content: center;
}

.syllabus-calendar-grid span.muted {
  color: #8a98a5;
}

.syllabus-calendar-grid span.shaded {
  background: #edf2f4;
  border-radius: 5px;
}

.syllabus-calendar-grid span.today {
  background: #f5d7de;
  border-radius: 5px;
  color: #5b2b35;
}

.syllabus-side-note {
  border-bottom: 1px solid #dde4ea;
  border-top: 1px solid #dde4ea;
  color: #2d3b48;
  padding: 18px 0;
}

.syllabus-side-note strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}

.syllabus-side-note p {
  color: var(--muted);
  line-height: 1.45;
  margin: 8px 0 0;
}

.canvas-rightbar {
  grid-column: 4;
  padding: 90px 26px 30px 18px;
}

.canvas-status {
  margin-bottom: 18px;
}

.canvas-status h2,
.coming-up h2 {
  color: #2d3b48;
  font-size: 16px;
  margin: 0 0 12px;
}

.canvas-status p {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
}

.canvas-status p span {
  border: 1px solid #2d3b48;
  border-radius: 999px;
  display: inline-block;
  height: 20px;
  width: 20px;
}

.canvas-status p span.published {
  background: var(--success);
  border-color: var(--success);
}

.canvas-status small {
  color: var(--muted);
  display: block;
  margin-top: 6px;
}

.canvas-action-stack {
  display: grid;
  gap: 7px;
  margin-bottom: 20px;
}

.canvas-action-stack a {
  background: #f1f3f5;
  border: 1px solid #e0e4e8;
  border-radius: 4px;
  color: #2d3b48;
  display: block;
  font-weight: 700;
  padding: 11px 12px;
}

.canvas-action-stack a:hover {
  background: #eaf1f5;
  text-decoration: none;
}

.student-actions {
  margin-top: 18px;
}

.canvas-task-panel {
  border-top: 1px solid #dfe5ea;
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
}

.canvas-task-panel h2,
.task-panel-head h2 {
  color: #2d3b48;
  font-size: 16px;
  margin: 0;
}

.canvas-global-dashboard-shell,
.canvas-global-calendar-shell {
  grid-template-columns: 90px minmax(0, 1fr) 300px;
  grid-template-rows: 78px 1fr;
}

.canvas-global-dashboard-shell .student-canvas-topbar,
.canvas-global-calendar-shell .student-canvas-topbar {
  grid-column: 2 / -1;
}

.canvas-global-dashboard-main,
.calendar-main {
  grid-column: 2;
  min-width: 0;
  padding: 34px clamp(34px, 7vw, 86px) 46px;
}

.global-dashboard-rightbar,
.calendar-sidebar {
  grid-column: 3;
  grid-row: 2;
  min-width: 0;
  padding: 34px 22px 36px 10px;
}

.dashboard-title-row {
  align-items: center;
  border-bottom: 1px solid #dfe5ea;
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 12px;
}

.dashboard-title-row h1 {
  color: #17212b;
  font-size: 34px;
  margin: 0;
}

.recent-activity {
  display: grid;
  gap: 18px;
  max-width: 930px;
}

.recent-activity > h2 {
  color: #2d3b48;
  font-size: 24px;
  font-weight: 500;
  margin: 0;
}

.activity-group {
  border-bottom: 1px solid #e6e9ec;
}

.activity-group header {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  padding: 16px 12px;
}

.activity-group.expanded header {
  background: #e5f1fa;
}

.activity-icon {
  align-items: center;
  border: 2px solid #c8d0d8;
  border-radius: 4px;
  color: #768595;
  display: flex;
  font-size: 18px;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.activity-group strong {
  color: #2d3b48;
  font-size: 18px;
}

.activity-group small {
  color: #4075b4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-group header a,
.activity-row {
  color: #1c75bc;
  font-weight: 700;
}

.activity-row {
  align-items: center;
  border-top: 1px solid #eef1f3;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 9px 12px 9px 62px;
}

.activity-row span,
.activity-row b {
  color: #54616e;
  font-weight: 500;
}

.announcements-main {
  grid-column: 3 / -1;
  padding-top: 40px;
}

.announcement-toolbar {
  align-items: center;
  border-bottom: 1px solid #e3e8ed;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(170px, 1fr) minmax(240px, 2fr) auto auto;
  margin-bottom: 18px;
  padding-bottom: 20px;
}

.announcement-toolbar input,
.announcement-toolbar select,
.announcement-form input,
.announcement-form textarea,
.calendar-event-form input,
.calendar-event-form select,
.calendar-event-form textarea {
  border: 1px solid #b9c4cf;
  border-radius: 4px;
  font: inherit;
  padding: 10px 12px;
  width: 100%;
}

.announcement-toolbar button,
.calendar-toolbar button,
.announcement-form button,
.calendar-event-form button {
  background: #f1f3f5;
  border: 1px solid #dce2e7;
  border-radius: 4px;
  color: #2d3b48;
  font: inherit;
  font-weight: 700;
  padding: 10px 12px;
}

.announcement-form,
.calendar-event-form {
  border: 1px solid #dfe5ea;
  border-radius: 6px;
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  max-width: 760px;
  padding: 16px;
}

.announcement-form h2,
.calendar-event-form h2 {
  color: #2d3b48;
  font-size: 18px;
  margin: 0;
}

.announcement-form button,
.calendar-event-form button,
.people-green-button,
.calendar-add-button {
  background: #a8ad22;
  border-color: #a8ad22;
  color: white;
}

.announcement-list {
  display: grid;
}

.announcement-row {
  align-items: start;
  border-top: 1px solid #edf0f2;
  display: grid;
  gap: 18px;
  grid-template-columns: auto 46px minmax(0, 1fr) 190px;
  padding: 20px 8px 20px 40px;
}

.announcement-avatar {
  align-items: center;
  background: #e7eef4;
  border-radius: 999px;
  color: #2d3b48;
  display: flex;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.announcement-row h2 {
  color: #2d3b48;
  font-size: 17px;
  margin: 0 0 4px;
}

.announcement-row small,
.announcement-row aside span {
  color: #596877;
  display: block;
}

.announcement-row p {
  color: #2d3b48;
  line-height: 1.45;
  margin: 8px 0;
}

.announcement-row aside {
  color: #2d3b48;
  display: grid;
  gap: 4px;
  justify-items: end;
}

.calendar-main {
  padding-right: 34px;
}

.calendar-toolbar {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto auto auto auto minmax(0, 1fr) auto auto auto auto;
  margin-bottom: 22px;
}

.calendar-toolbar h1 {
  color: #2d3b48;
  font-size: 18px;
  margin: 0;
  text-decoration: underline;
}

.calendar-toolbar button.active {
  background: #5d6d6d;
  color: white;
}

.calendar-add-button {
  align-items: center;
  border-radius: 4px;
  display: inline-flex;
  font-size: 22px;
  height: 42px;
  justify-content: center;
  text-decoration: none;
  width: 52px;
}

.calendar-month-grid {
  border-left: 1px solid #e3e8ed;
  border-top: 1px solid #e3e8ed;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  max-width: 980px;
}

.calendar-month-grid > strong {
  color: #596877;
  font-size: 13px;
  padding: 16px 8px;
  text-align: center;
}

.calendar-day {
  border-bottom: 1px solid #e3e8ed;
  border-right: 1px solid #e3e8ed;
  min-height: 118px;
  padding: 8px 6px;
}

.calendar-day > b {
  color: #2d3b48;
  display: block;
  font-size: 16px;
  margin-bottom: 7px;
  text-align: right;
}

.calendar-day.muted > b {
  color: #9aa5af;
}

.calendar-event {
  border: 1px solid #7fb077;
  border-radius: 3px;
  color: #4c8747;
  display: block;
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 4px;
  overflow: hidden;
  padding: 2px 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event.assignment,
.calendar-event.exam {
  border-color: #ef7770;
  color: #d95249;
}

.calendar-event span {
  font-weight: 900;
  margin-right: 3px;
}

.calendar-sidebar .syllabus-calendar {
  margin-bottom: 20px;
}

.calendar-list {
  border-top: 1px solid #e3e8ed;
  display: grid;
  gap: 8px;
  padding-top: 18px;
}

.calendar-list h2 {
  color: #2d3b48;
  font-size: 16px;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.calendar-list label {
  align-items: start;
  color: #2d3b48;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  line-height: 1.35;
}

.calendar-feed {
  color: #2d7fd4;
  display: inline-block;
  font-weight: 700;
  margin-top: 28px;
}

.help-page {
  display: grid;
  gap: 18px;
}

.help-reset-panel {
  align-items: center;
  background: #eef6f7;
  border: 1px solid #cfe3e8;
  border-radius: 6px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px;
}

.help-reset-panel h2 {
  color: #17212b;
  font-size: 22px;
  margin: 0 0 6px;
}

.help-reset-panel p {
  color: #52616f;
  margin: 0;
}

.help-reset-status {
  color: #0f6a3a;
  font-weight: 750;
  grid-column: 1 / -1;
}

.help-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.help-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
}

.help-card h2 {
  color: #17212b;
  font-size: 20px;
  margin: 0 0 12px;
}

.help-card ol,
.help-card ul {
  color: #2d3b45;
  line-height: 1.55;
  margin: 0 0 0 20px;
  padding: 0;
}

.help-card li {
  margin: 5px 0;
}

.help-source {
  color: #52616f;
  font-size: 14px;
}

.task-panel-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.task-panel-head a {
  color: #2d7fd4;
  font-size: 13px;
  font-weight: 750;
}

.canvas-task-item,
.canvas-upcoming-item {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.canvas-task-item > span,
.canvas-upcoming-item > span {
  align-items: center;
  background: #243e63;
  border-radius: 999px;
  color: white;
  display: flex;
  font-size: 12px;
  font-weight: 850;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.canvas-task-item a,
.canvas-upcoming-item a {
  color: #2d7fd4;
  display: block;
  font-weight: 750;
  line-height: 1.35;
}

.canvas-task-item small,
.canvas-upcoming-item small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 3px;
}

.canvas-task-item em,
.canvas-upcoming-item em {
  color: #4c5965;
  display: block;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.35;
  margin-top: 3px;
}

.canvas-task-item b {
  color: #2d3b48;
  font-size: 20px;
  font-weight: 650;
  line-height: 1;
}

.canvas-grades-main {
  align-items: start;
  display: grid;
  gap: 48px;
  grid-column: 3 / 5;
  grid-template-columns: minmax(0, 1fr) 260px;
  padding: 38px clamp(24px, 4vw, 54px) 34px;
}

.canvas-grades-content {
  min-width: 0;
  overflow-x: auto;
}

.grades-title-row {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 42px;
}

.grades-title-row h1 {
  color: #2d3b48;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

.canvas-print-button,
.grades-side-panel button {
  background: #f1f3f5;
  border: 1px solid #e0e4e8;
  border-radius: 4px;
  color: #2d3b48;
  font-size: 16px;
  font-weight: 500;
  min-height: 42px;
  padding: 10px 14px;
}

.grades-filter-row {
  align-items: end;
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.grades-filter-row label {
  color: #2d3b48;
  display: grid;
  gap: 10px;
  min-width: 260px;
}

.grades-filter-row select {
  appearance: none;
  background: white;
  border: 1px solid #bdc7d1;
  border-radius: 4px;
  color: #2d3b48;
  font-size: 16px;
  min-height: 42px;
  padding: 8px 42px 8px 12px;
}

.grades-filter-row button {
  background: #d9dda1;
  border: 0;
  border-radius: 4px;
  color: white;
  font-size: 16px;
  font-weight: 700;
  min-height: 42px;
  padding: 10px 16px;
}

.grades-tabs {
  border-bottom: 1px solid #e4e8ec;
  display: flex;
  gap: 0;
  margin-bottom: 34px;
}

.grades-tabs button {
  background: white;
  border: 0;
  border-radius: 0;
  color: #2d7fd4;
  font-size: 15px;
  min-height: 38px;
  padding: 9px 16px;
}

.grades-tabs button.active {
  border: 1px solid #e4e8ec;
  border-bottom-color: white;
  color: #2d3b48;
  margin-bottom: -1px;
}

.canvas-grades-table {
  border-collapse: collapse;
  color: #2d3b48;
  font-size: 15px;
  width: 100%;
}

.canvas-grades-table th {
  border-bottom: 1px solid #aeb8c2;
  color: #2d3b48;
  font-weight: 800;
  padding: 10px 14px;
  text-align: left;
}

.canvas-grades-table td {
  border-bottom: 1px solid #eceff2;
  padding: 15px 14px;
  vertical-align: top;
}

.canvas-grades-table tr.highlighted td {
  background: #dfeef8;
}

.canvas-grades-table td:first-child {
  width: 46%;
}

.canvas-grades-table td:nth-child(2) {
  min-width: 160px;
}

.canvas-grades-table td:nth-child(5) {
  min-width: 92px;
  white-space: nowrap;
}

.canvas-grades-table a {
  color: #2d7fd4;
  font-weight: 500;
}

.canvas-grades-table small {
  color: #2d3b48;
  display: block;
  font-size: 14px;
  margin-top: 3px;
}

.grade-status {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.grade-status.missing {
  border: 1px solid #ff6b6b;
  border-radius: 999px;
  color: #ff4e50;
  font-size: 13px;
  line-height: 1;
  padding: 5px 9px;
}

.grade-status.info {
  border: 2px solid #7c8995;
  border-radius: 999px;
  color: #7c8995;
  font-size: 13px;
  font-weight: 900;
  height: 20px;
  width: 20px;
}

.grade-summary-row td {
  border-bottom-color: #d5dce2;
  font-weight: 850;
}

.canvas-grades-table tbody tr:last-child td {
  border-bottom: 2px solid #6b7782;
}

.grades-side-panel {
  color: #2d3b48;
  display: grid;
  gap: 13px;
  line-height: 1.45;
  padding-top: 2px;
}

.grades-side-panel > strong {
  font-size: 18px;
  font-weight: 500;
}

.grades-side-panel p {
  border-top: 1px solid #e1e5e9;
  margin: 0;
  padding-top: 10px;
}

.grades-side-panel p:last-child {
  border-top: 0;
  color: #394957;
  font-size: 16px;
  padding-top: 0;
}

.grades-side-panel label {
  align-items: start;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
}

.grades-side-panel input {
  accent-color: #2d3b48;
  margin-top: 4px;
}

.instructor-gradebook-shell {
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: 76px 1fr;
}

.instructor-gradebook-shell .canvas-global-rail {
  gap: 14px;
}

.instructor-gradebook-shell .canvas-global-rail img {
  height: 54px;
  width: 54px;
}

.instructor-gradebook-main {
  grid-column: 2;
  min-width: 0;
  padding: 58px 28px 48px;
}

.instructor-gradebook-head {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.gradebook-switch {
  color: #2d7fd4;
  font-size: 16px;
  font-weight: 500;
}

.gradebook-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.gradebook-actions button,
.instructor-gradebook-filters > button {
  background: #f1f3f5;
  border: 1px solid #e0e4e8;
  border-radius: 4px;
  color: #2d3b48;
  font-size: 16px;
  min-height: 42px;
  padding: 9px 14px;
}

.gradebook-actions button:first-child {
  background: white;
  border-color: transparent;
  color: #2d7fd4;
}

.gradebook-actions button:last-child {
  font-size: 20px;
  min-width: 42px;
  padding: 8px;
}

.instructor-gradebook-filters {
  display: grid;
  gap: 12px 14px;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  margin-bottom: 12px;
}

.instructor-gradebook-filters label {
  color: #2d3b48;
  display: grid;
  gap: 10px;
}

.instructor-gradebook-filters label > span {
  align-items: center;
  border: 1px solid #bdc7d1;
  border-radius: 4px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 42px;
  padding: 0 12px;
}

.instructor-gradebook-filters b,
.instructor-gradebook-filters i {
  color: #5f6f7d;
  font-style: normal;
  font-weight: 500;
}

.instructor-gradebook-filters input {
  border: 0;
  color: #2d3b48;
  font-size: 16px;
  min-height: 38px;
  outline: 0;
}

.instructor-gradebook-filters input::placeholder {
  color: #7b8793;
}

.instructor-gradebook-filters > button {
  justify-self: start;
}

.instructor-gradebook-scroll {
  overflow: auto;
  width: 100%;
}

.instructor-gradebook-table {
  border-collapse: collapse;
  color: #2d3b48;
  font-size: 14px;
  min-width: 1680px;
  table-layout: fixed;
  width: 100%;
}

.instructor-gradebook-table th,
.instructor-gradebook-table td {
  border: 1px solid #edf0f2;
  height: 38px;
  padding: 8px 12px;
  text-align: center;
  vertical-align: middle;
}

.instructor-gradebook-table th {
  background: #f2f2f2;
  font-weight: 500;
}

.instructor-gradebook-table th:first-child,
.instructor-gradebook-table td:first-child {
  background: white;
  position: sticky;
  left: 0;
  text-align: left;
  width: 160px;
  z-index: 2;
}

.instructor-gradebook-table th:first-child {
  background: #f2f2f2;
  font-weight: 800;
  z-index: 3;
}

.instructor-gradebook-table th:not(:first-child) {
  width: 210px;
}

.instructor-gradebook-table th span {
  display: block;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.instructor-gradebook-table th small,
.instructor-gradebook-table th em {
  display: block;
  font-size: 12px;
  line-height: 1.15;
}

.instructor-gradebook-table th small {
  color: #4d5964;
}

.instructor-gradebook-table th em {
  color: #d12b2b;
  font-style: normal;
  font-weight: 900;
}

.instructor-gradebook-table tbody tr:nth-child(even) td {
  background: #f3f3f3;
}

.instructor-gradebook-table tbody tr:nth-child(even) td:first-child {
  background: #f3f3f3;
}

.instructor-gradebook-table td:not(:first-child) {
  background: #ededed;
  color: #63717d;
}

.instructor-gradebook-table a {
  color: #2d7fd4;
  font-weight: 500;
}

.canvas-people-main {
  grid-column: 3 / -1;
  min-width: 0;
  padding: 54px 28px 48px;
}

.people-toolbar-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.people-kebab,
.people-roster-table button {
  background: #f1f3f5;
  border: 1px solid #e0e4e8;
  border-radius: 4px;
  color: #2d3b48;
  font-size: 22px;
  min-height: 42px;
  min-width: 38px;
}

.people-tabs {
  border-bottom: 1px solid #e2e7eb;
  display: flex;
  gap: 0;
  margin-bottom: 16px;
}

.people-tabs a {
  border: 1px solid transparent;
  border-bottom: 0;
  color: #2d7fd4;
  padding: 12px 16px;
}

.people-tabs a.active {
  background: white;
  border-color: #dfe5ea;
  color: #2d3b48;
}

.people-actions-row {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.people-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.people-filter-form label {
  align-items: center;
  border: 1px solid #bdc7d1;
  border-radius: 4px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 42px;
  min-width: 244px;
  padding: 0 12px;
}

.people-filter-form b {
  color: #5f6f7d;
  font-size: 20px;
  font-weight: 400;
  padding-right: 10px;
}

.people-filter-form input,
.people-filter-form select {
  border: 0;
  color: #2d3b48;
  font-size: 16px;
  min-height: 38px;
  outline: 0;
}

.people-filter-form input::placeholder {
  color: #7b8793;
}

.people-filter-form select {
  border: 1px solid #bdc7d1;
  border-radius: 4px;
  min-width: 240px;
  padding: 0 12px;
}

.people-action-buttons {
  align-items: flex-end;
  display: grid;
  gap: 82px;
  justify-items: end;
}

.people-green-button {
  background: #a9ae25;
  border-radius: 4px;
  color: white;
  display: inline-flex;
  font-size: 18px;
  gap: 6px;
  min-height: 44px;
  padding: 10px 16px;
}

.people-green-button:hover {
  color: white;
  text-decoration: none;
}

.people-invite-note {
  color: #3f4d5a;
  margin: 0 0 18px;
}

.people-invite-note a,
.people-roster-table a {
  color: #2d7fd4;
}

.people-section-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin: 0 0 18px;
}

.people-section-summary article,
.people-groups-panel article {
  border: 1px solid #dfe5ea;
  border-radius: 4px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.people-section-summary strong,
.people-groups-panel strong {
  color: #2d3b48;
}

.people-section-summary span,
.people-groups-panel span {
  color: #5f6f7d;
}

.people-roster-card {
  overflow-x: auto;
}

.people-roster-table {
  border-collapse: collapse;
  color: #2d3b48;
  font-size: 14px;
  min-width: 1420px;
  width: 100%;
}

.people-roster-table th,
.people-roster-table td {
  border-top: 1px solid #e5eaee;
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}

.people-roster-table th {
  color: #2d3b48;
  font-weight: 800;
}

.people-roster-table tbody tr:nth-child(odd) {
  background: #f2f2f2;
}

.people-roster-table th:first-child,
.people-roster-table td:first-child {
  width: 64px;
}

.people-avatar {
  background:
    radial-gradient(circle at 50% 34%, #c9c9c9 0 25%, transparent 26%),
    radial-gradient(circle at 50% 86%, #b7b7b7 0 43%, transparent 44%),
    #eeeeee;
  border-radius: 999px;
  display: block;
  height: 40px;
  width: 40px;
}

.people-avatar.photo {
  align-items: center;
  background: #dfeaf4;
  color: #17375c;
  display: flex;
  font-weight: 900;
  justify-content: center;
}

.people-roster-table em {
  background: #2c8cb3;
  border-radius: 3px;
  color: white;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  margin-left: 4px;
  padding: 2px 5px;
}

.people-roster-table button {
  background: transparent;
  border-color: transparent;
  font-size: 20px;
  min-height: 30px;
}

.people-groups-panel {
  border-top: 1px solid #e2e7eb;
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
}

.people-groups-panel h2 {
  color: #2d3b48;
  font-size: 18px;
  margin: 0;
}

.people-groups-panel a {
  color: #2d7fd4;
  justify-self: start;
}

.canvas-settings-main {
  display: grid;
  gap: 76px;
  grid-column: 3 / -1;
  grid-template-columns: minmax(0, 1fr) 260px;
  min-width: 0;
  padding: 54px 28px 0;
}

.course-settings-content {
  min-width: 0;
}

.settings-tabs {
  align-items: end;
  border-bottom: 1px solid #aeb8c2;
  display: flex;
  gap: 0;
  margin-bottom: 26px;
  overflow-x: auto;
}

.settings-tabs a {
  border-bottom: 4px solid transparent;
  color: #2d3b48;
  flex: 0 0 auto;
  font-size: 16px;
  padding: 0 22px 14px;
}

.settings-tabs a:first-child {
  padding-left: 10px;
}

.settings-tabs a.active {
  border-bottom-color: #17375c;
  font-weight: 700;
}

.settings-title-row {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.settings-title-row h1 {
  color: #2d3b48;
  font-size: 30px;
  font-weight: 500;
  margin: 0;
}

.published-status {
  color: #1d8c45;
  font-weight: 700;
  white-space: nowrap;
}

.settings-details-form {
  display: grid;
  gap: 14px;
}

.settings-field {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 240px minmax(220px, 380px);
}

.settings-field label {
  color: #2d3b48;
  font-weight: 800;
}

.settings-field input,
.settings-field select,
.settings-field textarea {
  background: white;
  border: 1px solid #bdc7d1;
  border-radius: 4px;
  color: #2d3b48;
  font-size: 15px;
  min-height: 42px;
  padding: 9px 12px;
}

.settings-field input[readonly] {
  background: #f8fafb;
}

.settings-field textarea {
  min-height: 110px;
  resize: vertical;
}

.settings-field p {
  color: #4c5b67;
  grid-column: 2;
  line-height: 1.5;
  margin: 0;
}

.settings-field.checkbox-field span {
  align-items: center;
  color: #9aa5af;
  display: flex;
  gap: 8px;
}

.settings-field.checkbox-field input {
  min-height: 0;
  width: auto;
}

.settings-course-image {
  border: 1px solid #bdc7d1;
  display: inline-block;
  height: 160px;
  position: relative;
  width: 284px;
}

.settings-course-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.settings-course-image button {
  align-items: center;
  background: #a9ae25;
  border: 0;
  border-radius: 999px;
  color: white;
  display: flex;
  font-size: 22px;
  height: 34px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 8px;
  top: 8px;
  width: 34px;
}

.settings-submit-bar {
  background: #f4f4f4;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  padding: 12px;
  position: sticky;
  z-index: 4;
}

.settings-submit-bar button,
.settings-section-panel button {
  background: #a9ae25;
  border: 0;
  border-radius: 4px;
  color: white;
  font-size: 16px;
  min-height: 42px;
  padding: 10px 16px;
}

.settings-section-panel {
  border-top: 1px solid #e2e7eb;
  display: grid;
  gap: 14px;
  margin-top: 36px;
  padding-top: 22px;
}

.settings-section-panel h2 {
  color: #2d3b48;
  font-size: 22px;
  font-weight: 500;
  margin: 0;
}

.settings-section-panel p {
  color: #5f6f7d;
  margin: 0;
}

.settings-section-card {
  border: 1px solid #dfe5ea;
  border-radius: 4px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.settings-section-card span {
  color: #5f6f7d;
}

.settings-navigation-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.feature-option-list {
  display: grid;
  gap: 10px;
}

.feature-option-list label {
  align-items: center;
  border: 1px solid #dfe5ea;
  border-radius: 4px;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
}

.feature-option-list input {
  width: auto;
}

.settings-side-panel {
  color: #2d3b48;
  display: grid;
  align-content: start;
}

.settings-side-panel > a {
  border-bottom: 1px solid #e2e7eb;
  color: #2d3b48;
  display: block;
  font-size: 16px;
  padding: 15px 4px;
}

.settings-side-panel > a:hover {
  background: #f8fafb;
  text-decoration: none;
}

.settings-side-panel section {
  margin-top: 24px;
}

.settings-side-panel h2 {
  border-bottom: 1px solid #aeb8c2;
  font-size: 14px;
  margin: 0 0 6px;
  padding-bottom: 8px;
}

.settings-side-panel p {
  border-bottom: 1px solid #edf0f2;
  display: grid;
  grid-template-columns: 1fr auto;
  margin: 0;
  padding: 8px 4px;
}

.canvas-rightbar > a {
  background: #f1f3f5;
  border: 1px solid #e0e4e8;
  border-radius: 4px;
  color: #2d3b48;
  display: block;
  margin-bottom: 6px;
  padding: 11px 12px;
}

.canvas-rightbar > a:hover {
  background: #e8edf1;
  text-decoration: none;
}

.coming-up {
  border-top: 1px solid #dfe5ea;
  margin-top: 18px;
  padding-top: 14px;
}

.coming-up p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 12px;
}

.coming-up a {
  color: #005eb8;
  font-weight: 700;
}

.course-canvas {
  display: grid;
  gap: 24px;
}

.post-course {
  display: grid;
  gap: 24px;
}

.course-product-nav {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(23, 33, 43, 0.06);
  display: flex;
  justify-content: space-between;
  padding: 14px 22px;
}

.course-product-nav img {
  display: block;
  height: 42px;
  object-fit: contain;
  width: 190px;
}

.course-product-nav div {
  align-items: center;
  display: flex;
  gap: 18px;
}

.course-product-nav a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-dot {
  align-items: center;
  background: #162431;
  border-radius: 999px;
  color: white;
  display: flex;
  font-size: 13px;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.post-breadcrumbs {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 16px;
  gap: 8px;
  margin: 6px auto 0;
  max-width: 1240px;
  width: 100%;
}

.post-breadcrumbs a {
  color: var(--muted);
}

.post-breadcrumbs strong {
  color: var(--ink);
}

.post-breadcrumbs.compact {
  font-size: 15px;
  margin: 0 0 16px;
  max-width: none;
}

.post-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  margin: 0 auto;
  max-width: 1240px;
  width: 100%;
}

.post-player.embedded {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  margin: 0;
  max-width: none;
}

.post-video {
  background: #111820;
  min-width: 0;
}

.post-video-art {
  align-items: center;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(rgba(11, 65, 74, 0.16), rgba(11, 65, 74, 0.16)),
    url("/assets/bmhi-seal-large.jpeg") center / min(42%, 360px) no-repeat,
    linear-gradient(135deg, #dfe8eb, #f7fafb);
  display: flex;
  justify-content: center;
  min-height: 430px;
  overflow: hidden;
  position: relative;
}

.post-player.embedded .post-video-art {
  min-height: 360px;
}

.post-play {
  align-items: center;
  background: #21bfa8;
  border: 0;
  border-radius: 0;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  display: flex;
  height: 92px;
  justify-content: center;
  width: 150px;
  z-index: 2;
}

.post-play::before {
  border-bottom: 22px solid transparent;
  border-left: 32px solid white;
  border-top: 22px solid transparent;
  content: "";
  margin-left: 8px;
}

.post-video-caption {
  bottom: 62px;
  color: white;
  left: 34px;
  position: absolute;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
}

.post-video-caption span {
  color: #21bfa8;
  display: block;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.post-video-caption strong {
  display: block;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1;
  max-width: 680px;
}

.post-controls {
  align-items: center;
  background: rgba(33, 191, 168, 0.88);
  bottom: 0;
  color: white;
  display: grid;
  gap: 14px;
  grid-template-columns: auto auto 1fr auto auto;
  left: 0;
  min-height: 46px;
  padding: 0 18px;
  position: absolute;
  right: 0;
}

.post-controls i {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  display: block;
  height: 5px;
}

.post-playlist {
  background: #242424;
  color: white;
  min-width: 0;
}

.post-playlist header {
  align-items: start;
  background: #222222;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 28px 30px;
}

.post-playlist h2 {
  font-size: 18px;
  line-height: 1.45;
  margin: 0;
}

.post-playlist header span {
  color: #bfbfbf;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
}

.playlist-item {
  align-items: center;
  color: #e9e9e9;
  display: grid;
  gap: 14px;
  grid-template-columns: 26px 82px minmax(0, 1fr) 24px;
  min-height: 82px;
  padding: 12px 18px;
}

.playlist-item:hover {
  background: #353535;
  text-decoration: none;
}

.playlist-item.active {
  background: #444444;
}

.playlist-number {
  color: #21bfa8;
  font-weight: 900;
  text-align: center;
}

.playlist-thumb {
  background:
    linear-gradient(rgba(11, 65, 74, 0.22), rgba(11, 65, 74, 0.22)),
    url("/assets/bmhi-seal-blue.jpeg") center / cover no-repeat;
  display: block;
  height: 52px;
  width: 82px;
}

.playlist-title strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.playlist-title small {
  color: #bfbfbf;
  display: block;
  margin-top: 4px;
}

.playlist-check {
  align-items: center;
  background: #4a9b69;
  border-radius: 999px;
  color: white;
  display: flex;
  font-size: 13px;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.post-body-grid {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  margin: 14px auto 0;
  max-width: 1240px;
  width: 100%;
}

.post-body-grid.embedded {
  margin: 18px 0 0;
  max-width: none;
}

.post-body {
  background: white;
  border: 1px solid #edf1f4;
  border-radius: 2px;
  box-shadow: 0 12px 28px rgba(23, 33, 43, 0.05);
  padding: clamp(24px, 4vw, 42px);
}

.complete-box {
  margin-bottom: 34px;
}

.complete-box button {
  background: white;
  border: 3px solid #21bfa8;
  border-radius: 0;
  color: #21bfa8;
  font-size: 18px;
  min-height: 70px;
  width: 100%;
}

.post-body h1 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  margin: 0 0 18px;
}

.post-body h2 {
  color: #21bfa8;
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 28px;
}

.post-copy p {
  font-size: 18px;
  line-height: 1.75;
  margin: 0;
}

.external-lesson-callout {
  background: #f1f8f9;
  border: 1px solid #cfe3e8;
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  margin: 0 0 22px;
  padding: 18px;
}

.external-lesson-callout strong {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}

.external-lesson-callout p {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 14px;
}

.post-side {
  display: grid;
  gap: 18px;
}

.downloads-box {
  align-items: center;
  background: white;
  border: 3px dashed #d9d9d9;
  color: #7d7d7d;
  display: flex;
  font-size: 22px;
  justify-content: center;
  line-height: 1.4;
  min-height: 128px;
  padding: 22px;
  text-align: center;
}

.downloads-box a {
  color: var(--brand);
  font-weight: 850;
}

.course-hero {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(8, 26, 36, 0.88), rgba(8, 26, 36, 0.58)),
    url("/assets/bmhi-seal-large.jpeg") right 8% center / min(38vw, 360px) no-repeat,
    linear-gradient(135deg, #0b414a, #173f52);
  border-bottom: 12px solid #7a1f1f;
  border-radius: 8px;
  box-shadow: 0 20px 42px rgba(23, 33, 43, 0.16);
  color: white;
  display: flex;
  justify-content: space-between;
  min-height: 250px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 46px);
  position: relative;
}

.course-hero::before,
.course-hero::after {
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  content: "";
  height: 360px;
  position: absolute;
  width: 360px;
}

.course-hero::before {
  left: -150px;
  top: -160px;
}

.course-hero::after {
  bottom: -180px;
  right: -130px;
}

.course-hero > * {
  position: relative;
  z-index: 1;
}

.course-hero-logo {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  display: block;
  height: 54px;
  margin-bottom: 26px;
  object-fit: contain;
  padding: 8px 12px;
  width: 230px;
}

.course-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  margin: 0 0 14px;
  max-width: 900px;
  text-transform: uppercase;
}

.course-hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: 820px;
}

.course-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.course-hero-actions .button {
  min-width: 142px;
}

.course-hero-actions .ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.32);
  color: white;
}

.course-hero-meta {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-width: 168px;
  padding: 16px;
  text-align: right;
}

.course-hero-meta span,
.course-hero-meta small {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.course-hero-meta strong {
  color: #f6bd00;
  font-size: 22px;
}

.course-module-head {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.course-module-head h2 {
  font-size: 32px;
  margin: 0 0 6px;
}

.course-module-head p {
  color: var(--muted);
  margin: 0;
}

.module-board {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 8px solid #7a1f1f;
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(23, 33, 43, 0.08);
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(320px, 1.08fr);
  overflow: hidden;
}

.module-timeline {
  display: grid;
  gap: 0;
  padding: 26px 18px 26px 36px;
}

.timeline-module {
  align-items: center;
  color: #593333;
  display: grid;
  font-weight: 700;
  gap: 14px;
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 58px;
  position: relative;
}

.timeline-module:hover {
  text-decoration: none;
}

.timeline-module::before {
  background: #7a1f1f;
  content: "";
  height: 100%;
  left: 16px;
  position: absolute;
  top: 0;
  width: 5px;
  z-index: 0;
}

.timeline-module:first-child::before {
  top: 50%;
}

.timeline-module:last-child::before {
  height: 50%;
}

.timeline-pin {
  align-items: center;
  background: #7a1f1f;
  border: 5px solid #7a1f1f;
  border-radius: 999px;
  display: flex;
  height: 30px;
  justify-content: center;
  position: relative;
  width: 30px;
  z-index: 1;
}

.timeline-pin::after {
  background: white;
  border-radius: 999px;
  content: "";
  height: 8px;
  width: 8px;
}

.timeline-module.active {
  background: white;
  border: 2px solid #2e2e2e;
  border-radius: 4px;
  color: #151d25;
  margin: 4px 0;
  padding: 8px 10px 8px 0;
}

.timeline-module.active .timeline-pin {
  background: #111820;
  border-color: #111820;
}

.module-detail {
  border-left: 2px solid #6d6d6d;
  padding: 30px 34px;
}

.module-detail h3 {
  font-size: 24px;
  margin: 0 0 20px;
}

.module-item-list {
  display: grid;
  gap: 12px;
}

.module-item {
  align-items: center;
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 14px;
  grid-template-columns: 28px minmax(0, 1fr) 30px;
  padding: 12px 14px;
}

.module-item:hover {
  background: #f8fafb;
  text-decoration: none;
}

.module-item.active {
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px #e7c5b3;
}

.module-item-icon {
  color: var(--success);
  font-size: 18px;
}

.module-item strong {
  display: block;
  font-size: 17px;
  text-decoration: underline;
}

.module-item small {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.module-check {
  align-items: center;
  background: #3f9d65;
  border-radius: 999px;
  color: white;
  display: flex;
  font-size: 14px;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.lesson-focus {
  display: grid;
  gap: 18px;
}

.course-player {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(280px, 332px) minmax(0, 1fr);
}

.course-player.has-collapsible-sidebar {
  grid-template-columns: auto minmax(280px, 332px) minmax(0, 1fr);
}

.lesson-sidebar-toggle {
  align-self: start;
  left: 12px;
  position: sticky;
  top: 18px;
  writing-mode: vertical-rl;
}

.course-canvas-mode.course-nav-collapsed .course-player.has-collapsible-sidebar {
  grid-template-columns: auto 0 minmax(0, 1fr);
}

.course-sidebar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(23, 33, 43, 0.08);
  max-height: calc(100vh - 128px);
  overflow: auto;
  padding: 18px;
  position: sticky;
  top: 92px;
  transition: opacity 160ms ease, padding 180ms ease, border-width 180ms ease;
}

.course-canvas-mode.course-nav-collapsed .course-sidebar {
  border-width: 0;
  opacity: 0;
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
  pointer-events: none;
}

.course-back {
  margin-bottom: 14px;
  width: 100%;
}

.course-sidebar-head {
  background: linear-gradient(135deg, #f7fbfc, #ffffff);
  border: 1px solid #e6eef2;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 16px;
}

.course-sidebar-head h1 {
  font-size: 22px;
  line-height: 1.2;
  margin: 12px 0 8px;
}

.course-sidebar-head p {
  margin: 8px 0 0;
}

.module-list {
  display: block;
}

.module-group {
  border-bottom: 1px solid #edf1f4;
  padding: 14px 0;
}

.module-group:last-child {
  border-bottom: 0;
}

.module-group h2 {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 12px;
}

.lesson-link {
  border-left: 3px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 4px;
  min-height: 42px;
  margin-bottom: 7px;
  padding: 10px 12px;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.lesson-link:nth-of-type(4n + 1) {
  background: #f8fbfc;
}

.lesson-link:nth-of-type(4n + 2) {
  background: #fffaf2;
}

.lesson-link:nth-of-type(4n + 3) {
  background: #f7f9ff;
}

.lesson-link:nth-of-type(4n + 4) {
  background: #f8fcf7;
}

.lesson-link span {
  font-size: 15px;
  line-height: 1.25;
}

.lesson-link:hover {
  background: #edf6f7;
  box-shadow: 0 8px 18px rgba(23, 33, 43, 0.08);
  transform: translateY(-1px);
  text-decoration: none;
}

.lesson-link.active {
  background: linear-gradient(135deg, #e2f2f4, #f7fcfd);
  border-left-color: var(--brand);
  color: var(--brand-dark);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #c8e1e5;
}

.lesson-link small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.lesson-stage {
  min-width: 0;
}

.lesson-topbar {
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 33, 43, 0.06);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 20px 22px;
}

.lesson-topbar h1 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  margin: 0;
}

.eyebrow {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.progress-chip {
  align-items: end;
  background: #f8fafb;
  border: 1px solid #e3ebef;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: 76px auto;
  padding: 12px;
}

.progress-chip label {
  grid-column: 1 / -1;
}

.progress-chip input {
  min-height: 34px;
  padding: 7px 10px;
}

.lesson-video {
  align-items: center;
  aspect-ratio: 16 / 7;
  background:
    linear-gradient(120deg, rgba(215, 25, 32, 0.18), transparent 30%),
    radial-gradient(circle at 88% 20%, rgba(246, 189, 0, 0.24), transparent 18%),
    linear-gradient(135deg, #071e2f, #0b414a 56%, #12364a);
  border-radius: 8px;
  box-shadow: 0 22px 44px rgba(7, 30, 47, 0.24);
  color: white;
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 22px;
  min-height: 320px;
  overflow: hidden;
  padding: clamp(24px, 5vw, 56px);
  position: relative;
}

.lesson-video::selection {
  background: rgba(246, 189, 0, 0.35);
}

.lesson-video::before,
.lesson-video::after {
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  content: "";
  height: 360px;
  position: absolute;
  width: 360px;
}

.lesson-video::before {
  left: -130px;
  top: -150px;
}

.lesson-video::after {
  bottom: -190px;
  right: -120px;
}

.lesson-video > div {
  position: relative;
  z-index: 1;
}

.lesson-video span {
  color: #f6bd00;
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.lesson-video strong {
  display: block;
  font-size: clamp(30px, 5vw, 64px);
  line-height: 1;
  max-width: 920px;
}

.lesson-video p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  margin: 14px 0 0;
}

.play-button {
  align-items: center;
  background: #d71920;
  border-radius: 999px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
  display: flex;
  flex: 0 0 auto;
  height: 78px;
  justify-content: center;
  width: 78px;
}

.play-button::before {
  border-bottom: 15px solid transparent;
  border-left: 23px solid white;
  border-top: 15px solid transparent;
  content: "";
  margin-left: 6px;
}

.lesson-bottom {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.8fr) minmax(240px, 0.8fr);
}

.lesson-copy,
.lesson-info {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 33, 43, 0.06);
  padding: 22px;
}

.lesson-copy h2,
.lesson-info h2 {
  color: var(--brand-dark);
  font-size: 22px;
  margin: 0 0 12px;
}

.lesson-copy p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

.lesson-info dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.lesson-info div {
  border-bottom: 1px solid #edf1f4;
  padding-bottom: 10px;
}

.lesson-info div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.lesson-info dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.lesson-info dd {
  margin: 0;
}

.lesson-actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.empty {
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.empty.compact {
  padding: 8px 0;
  text-align: left;
}

.lock-panel {
  background: #fff7ed;
  border-color: #f1c8a8;
}

.lock-panel h2 {
  color: #8f4a13;
}

.credential-page {
  background: white;
}

.print-root {
  padding: 0;
}

.credential {
  align-items: center;
  border: 12px solid var(--brand);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 28px auto;
  min-height: 720px;
  padding: 48px;
  text-align: center;
  width: min(980px, calc(100vw - 32px));
}

.credential-logo {
  height: 118px;
  margin-bottom: 18px;
  object-fit: contain;
  width: 118px;
}

.credential h1 {
  font-size: 52px;
  margin: 10px 0;
}

.credential h2 {
  color: var(--brand-dark);
  font-size: 34px;
  margin: 18px 0;
}

.print-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 18px;
}

.message-workspace {
  align-items: start;
  margin-top: 18px;
}

.message-center {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(320px, 0.9fr) minmax(520px, 1.5fr);
  margin-top: 18px;
}

.message-sidebar,
.message-main {
  align-content: start;
  display: grid;
  gap: 14px;
  grid-auto-rows: max-content;
}

.message-toolbar {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 0.7fr 1fr auto;
  padding: 12px;
}

.message-toolbar input,
.message-toolbar select {
  min-width: 0;
}

.conversation-list {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  overflow: hidden;
}

.conversation-row {
  color: inherit;
  display: grid;
  gap: 10px;
  grid-template-columns: 16px 1fr auto;
  padding: 14px;
  text-decoration: none;
}

.conversation-row + .conversation-row {
  border-top: 1px solid var(--line);
}

.conversation-row:hover,
.conversation-row.active {
  background: #e9f5fb;
}

.conversation-row.unread {
  background: #fff8ed;
}

.conversation-row strong,
.conversation-row em,
.conversation-row small,
.conversation-row span span {
  display: block;
}

.conversation-row strong {
  font-size: 14px;
}

.conversation-row em {
  color: #283747;
  font-style: normal;
  font-weight: 700;
  margin-top: 4px;
}

.conversation-row small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.conversation-row span span {
  color: #5d6b77;
  font-size: 13px;
  margin-top: 6px;
}

.conversation-row b {
  align-self: start;
  background: #263746;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 5px 7px;
}

.message-compose {
  display: grid;
  gap: 10px;
}

.message-compose h2 {
  margin-bottom: 4px;
}

.message-list {
  display: grid;
  gap: 12px;
}

.message-item {
  background: #f9fbfc;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
}

.message-item.unread {
  background: #fff8ed;
  border-color: #e0b56f;
}

.message-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.message-badges {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.message-head h3 {
  align-items: center;
  display: flex;
  font-size: 16px;
  gap: 8px;
  margin: 0;
}

.message-head p {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 0;
}

.message-body {
  color: #293743;
  line-height: 1.55;
  margin-top: 12px;
  white-space: normal;
}

.message-error {
  background: #fff2f2;
  border: 1px solid #efc0c0;
  border-radius: 6px;
  color: var(--danger);
  font-size: 13px;
  margin: 12px 0 0;
  padding: 8px 10px;
}

.message-config-note {
  margin-top: 14px;
}

.conversation-detail {
  display: grid;
  gap: 16px;
}

.conversation-title {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-bottom: 12px;
}

.conversation-title h2 {
  margin: 0;
}

.thread-messages {
  display: grid;
  gap: 16px;
}

.thread-message {
  display: grid;
  gap: 12px;
  grid-template-columns: 44px 1fr;
}

.thread-message header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.thread-message header span,
.thread-meta {
  color: var(--muted);
  font-size: 13px;
}

.thread-message.mine .message-body {
  background: #f3f7f9;
}

.thread-avatar {
  align-items: center;
  background: #eef4f6;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #164558;
  display: flex;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.reply-box {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-top: 14px;
}

.unread-dot {
  background: var(--accent);
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  height: 9px;
  width: 9px;
}

@media (max-width: 1050px) {
  .message-center {
    grid-template-columns: 1fr;
  }

  .message-toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .message-toolbar {
    grid-template-columns: 1fr;
  }

  .conversation-title,
  .thread-message header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 820px) {
  .topbar,
  .sis-topbar,
  .sis-subbar,
  .student-topbar,
  .page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .sis-topbar {
    display: flex;
  }

  .sis-logo {
    align-self: flex-start;
  }

  .sis-search,
  .sis-tools {
    width: 100%;
  }

  .sis-app-nav,
  .sis-subnav {
    overflow-x: auto;
    padding-bottom: 2px;
    width: 100%;
  }

  .sis-app-nav {
    flex-wrap: nowrap;
  }

  .sis-app-nav a,
  .sis-subnav a {
    flex: 0 0 auto;
  }

  .sis-subbar {
    display: flex;
    gap: 8px;
    padding-bottom: 10px;
    padding-top: 10px;
  }

  .sis-session {
    padding-left: 0;
  }

  .student-topbar {
    gap: 10px;
    padding: 10px 14px;
    position: static;
  }

  .student-topbar > strong {
    font-size: 18px;
  }

  .student-top-actions {
    flex-wrap: wrap;
  }

  .student-sidebar {
    position: static;
    width: auto;
  }

  .student-sidebar nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .student-sidebar a {
    flex: 0 0 auto;
  }

  .student-shell {
    margin-left: 0;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    max-width: min(100%, 260px);
  }

  .student-dashboard,
  .student-course-row,
  .canvas-course-shell,
  .canvas-global-dashboard-shell,
  .canvas-global-calendar-shell,
  .canvas-modules article,
  .login-wrap,
  .admissions-hero,
  .admissions-layout,
  .feature-shell,
  .course-player,
  .module-board,
  .post-player,
  .post-body-grid,
  .lesson-bottom,
  .registrar-workbench,
  .osv-detail-form,
  .osv-upload,
  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .registrar-overview {
    position: static;
  }

  .osv-detail-form .span-2,
  .osv-upload label {
    grid-column: auto;
  }

  .osv-item-head,
  .osv-section-head,
  .osv-file {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-program-grid {
    grid-template-columns: 1fr;
  }

  .catalog-definition-list p {
    grid-template-columns: 1fr;
  }

  .canvas-course-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .course-canvas-mode.course-nav-collapsed .canvas-course-shell,
  .course-canvas-mode.course-nav-collapsed .course-player.has-collapsible-sidebar,
  .course-player.has-collapsible-sidebar {
    grid-template-columns: 1fr;
  }

  .canvas-global-rail,
  .canvas-populi-bar,
  .canvas-course-nav,
  .course-outline-panel,
  .canvas-course-main,
  .canvas-modules-main,
  .canvas-global-dashboard-main,
  .calendar-main,
  .canvas-rightbar {
    grid-column: auto;
    grid-row: auto;
  }

  .canvas-global-rail {
    flex-direction: row;
    overflow-x: auto;
    padding: 8px 12px;
  }

  .canvas-populi-bar {
    padding: 8px 12px;
  }

  .canvas-course-nav {
    border-bottom: 1px solid #dfe5ea;
    border-right: 0;
    display: flex;
    overflow-x: auto;
    padding: 8px 12px;
  }

  .course-canvas-mode.course-nav-collapsed .canvas-course-nav {
    border-bottom: 0;
    display: none;
    padding: 0;
  }

  .course-outline-panel {
    border-right: 0;
    padding: 12px;
  }

  .canvas-sidebar-toggle,
  .course-canvas-mode.course-nav-collapsed .canvas-sidebar-toggle {
    height: 34px;
    left: auto;
    margin: 8px 12px;
    position: static;
    top: auto;
    width: 34px;
  }

  .canvas-course-nav a {
    flex: 0 0 auto;
  }

  .canvas-course-main {
    padding: 24px 16px;
  }

  .canvas-global-dashboard-main,
  .calendar-main,
  .global-dashboard-rightbar,
  .calendar-sidebar,
  .announcements-main {
    grid-column: 1;
    grid-row: auto;
    padding: 24px 16px;
  }

  .announcement-toolbar,
  .calendar-toolbar,
  .activity-group header,
  .announcement-row,
  .help-reset-panel,
  .help-grid {
    grid-template-columns: 1fr;
  }

  .announcement-row {
    padding-left: 8px;
  }

  .activity-row {
    grid-template-columns: 1fr;
    padding-left: 12px;
  }

  .calendar-main {
    overflow-x: auto;
  }

  .calendar-month-grid {
    min-width: 760px;
  }

  .canvas-modules-main {
    padding: 24px 12px;
  }

  .canvas-modules-toolbar {
    justify-content: flex-start;
    margin-bottom: 24px;
  }

  .canvas-module-list {
    gap: 28px;
  }

  .canvas-module-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .canvas-module-row {
    grid-template-columns: 14px 22px minmax(0, 1fr);
  }

  .canvas-module-row > .canvas-published-dot,
  .canvas-module-row > .module-menu {
    display: none;
  }

  .canvas-syllabus-main {
    grid-column: auto;
    padding: 24px 16px;
  }

  .canvas-grades-main {
    gap: 24px;
    grid-column: auto;
    grid-template-columns: 1fr;
    padding: 24px 16px;
  }

  .instructor-gradebook-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .instructor-gradebook-main {
    grid-column: auto;
    padding: 24px 16px;
  }

  .canvas-people-main {
    grid-column: auto;
    padding: 24px 16px;
  }

  .canvas-settings-main {
    gap: 24px;
    grid-column: auto;
    grid-template-columns: 1fr;
    padding: 24px 16px 0;
  }

  .settings-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-field {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .settings-field p {
    grid-column: auto;
  }

  .settings-course-image {
    max-width: 100%;
  }

  .settings-side-panel {
    grid-row: auto;
  }

  .instructor-gradebook-head,
  .gradebook-actions,
  .people-actions-row {
    align-items: stretch;
    flex-direction: column;
  }

  .instructor-gradebook-filters,
  .people-filter-form {
    grid-template-columns: 1fr;
  }

  .people-filter-form,
  .people-filter-form label,
  .people-filter-form select,
  .people-action-buttons,
  .people-green-button {
    min-width: 0;
    width: 100%;
  }

  .people-action-buttons {
    gap: 10px;
    justify-items: stretch;
  }

  .grades-title-row,
  .grades-filter-row {
    align-items: stretch;
    flex-direction: column;
  }

  .grades-filter-row label {
    min-width: 0;
  }

  .canvas-syllabus-main .canvas-mini-head,
  .syllabus-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .syllabus-layout {
    gap: 22px;
    grid-template-columns: 1fr;
  }

  .syllabus-card {
    padding: 18px 16px;
  }

  .syllabus-card p,
  .syllabus-table {
    font-size: 16px;
  }

  .syllabus-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .syllabus-side {
    padding-top: 0;
  }

  .lesson-sidebar-toggle {
    position: static;
    writing-mode: horizontal-tb;
    width: 100%;
  }

  .canvas-mini-head {
    margin: -24px -16px 28px;
    padding: 0 16px;
  }

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

  .start-tile,
  .start-tile:first-child,
  .start-tile:last-child {
    border-radius: 6px;
    margin: 0;
  }

  .canvas-rightbar {
    padding: 0 16px 28px;
  }

  .student-welcome,
  .notice-panel,
  .student-alert-panel,
  .subject-panel,
  .class-panel,
  .homework-panel,
  .courses-panel,
  .compact-panel,
  .profile-card,
  .profile-summary,
  .profile-wide,
  .financial-section,
  .financial-wide {
    grid-column: auto;
  }

  .student-welcome,
  .profile-hero,
  .student-alert-panel,
  .financial-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-grid,
  .financial-grid,
  .profile-table,
  .summary-stats {
    grid-template-columns: 1fr;
  }

  .financial-actions,
  .financial-actions select {
    width: 100%;
  }

  .profile-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .profile-tabs a {
    flex: 0 0 auto;
  }

  .span-2 {
    grid-column: auto;
  }

  .course-sidebar {
    max-height: none;
    position: static;
  }

  .feature-grid {
    column-count: 1;
  }

  .feature-rail {
    position: static;
  }

  .feature-quick-list {
    max-height: none;
  }

  .course-hero,
  .course-module-head,
  .course-product-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .course-product-nav div {
    justify-content: space-between;
  }

  .post-video-art {
    min-height: 340px;
  }

  .course-hero-meta {
    text-align: left;
  }

  .module-detail {
    border-left: 0;
    border-top: 2px solid #6d6d6d;
  }

  .lesson-topbar {
    flex-direction: column;
  }

  .progress-chip {
    width: 100%;
  }

  .lesson-video {
    aspect-ratio: auto;
    flex-direction: column;
    min-height: 360px;
    text-align: center;
  }
}

@media print {
  .print-actions,
  .topbar,
  .flash {
    display: none;
  }

  .credential {
    border-width: 10px;
    margin: 0;
    min-height: 100vh;
    width: 100%;
  }
}
