/* dm-sans-latin-ext-wght-normal */
@font-face {
  font-family: 'DM Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(./files/dm-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* dm-sans-latin-wght-normal */
@font-face {
  font-family: 'DM Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(./files/dm-sans-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  color-scheme: light;
  font-family: "DM Sans Variable", "DM Sans", Arial, sans-serif;
  background: #f7f4fb;
  color: #2f1c49;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline-offset: 3px; }

.setup-status {
  width: min(100% - 2rem, 32rem);
  margin: max(4rem, 14vh) auto 2rem;
  background: #fffefe;
  border: 1px solid #e3dbea;
  padding: clamp(1.4rem, 4vw, 2rem);
  border-radius: 1rem;
}
.setup-status h1 { margin: 0; line-height: 1.1; letter-spacing: -.04em; }
.setup-status p { margin: .75rem 0 0; line-height: 1.6; color: #6b6077; }
.setup-status a { display: inline-block; margin-top: 1.25rem; color: #6438a0; font-weight: 700; }

@font-face {
  font-family: "Inter";
  src: url("/assets/files/inter-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/files/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:is(.access-shell, .learning-shell) {
  --learner-ink: #111;
  --learner-muted: #5f5f5f;
  --learner-surface: #fff;
  --learner-background: #f4f4f4;
  --learner-line: #e6e6e6;
  --learner-input-line: #8c8c8c;
  --learner-coral: hsl(4 74% 57%);
  --learner-coral-hover: hsl(4 74% 65%);
  --learner-coral-ink: #9c3027;
  --learner-coral-tint: #fff2ef;
  --learner-radius: .25rem;
  --learner-heading: "Space Grotesk", "Inter", Arial, sans-serif;
  min-height: 100dvh;
  color: var(--learner-ink);
  background: var(--learner-background);
  font-family: "Inter", Arial, sans-serif;
}

:is(.access-shell, .learning-shell) :focus-visible {
  outline: 3px solid var(--learner-coral-ink);
  outline-offset: 3px;
}

.access-shell {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 2rem;
  padding: clamp(3rem, 11vh, 8rem) 1rem 3rem;
}

.access-brand {
  display: block;
  width: clamp(180px, 48vw, 264px);
  max-width: 100%;
  height: auto;
}

.access-card {
  width: min(100%, 36rem);
  box-sizing: border-box;
  background: var(--learner-surface);
  border: 1px solid var(--learner-line);
  border-top: 3px solid var(--learner-coral);
  border-radius: var(--learner-radius);
  padding: clamp(1.25rem, 5vw, 3rem);
  box-shadow: 0 18px 48px rgb(17 17 17 / 6%);
}

.access-card h1 {
  margin: 0 0 .7rem;
  font-size: clamp(1.9rem, 5vw, 2.55rem);
  letter-spacing: -.045em;
  line-height: 1.1;
  font-family: var(--learner-heading);
}

.access-card p {
  margin: 0 0 1.2rem;
  color: var(--learner-muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.access-card a { color: var(--learner-coral-ink); text-underline-offset: .2em; }
.access-card .access-learning-link { color: var(--learner-ink); text-decoration: none; }

.access-form { display: grid; gap: .85rem; }
.access-form label { font-weight: 650; font-size: .92rem; }

.access-form input,
.access-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.85rem;
  padding: .7rem .8rem;
  border: 1px solid var(--learner-input-line);
  border-radius: var(--learner-radius);
  background: var(--learner-surface);
  font: inherit;
  color: inherit;
}

.access-form textarea { min-height: 7rem; resize: vertical; }
.access-form input[type='text'][autocomplete='one-time-code'] { letter-spacing: .16em; }

.access-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: .65rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--learner-radius);
  background: var(--learner-coral);
  color: var(--learner-ink);
  font: inherit;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
}

.access-button:hover { background: var(--learner-coral-hover); }
.access-button:disabled { cursor: wait; opacity: .62; }
.access-button-secondary { background: transparent; border-color: var(--learner-input-line); }
.access-button-secondary:hover { background: var(--learner-coral-tint); }
.access-button-row { display: flex; flex-wrap: wrap; gap: .65rem; }
.access-sign-out { display: flex; justify-content: flex-end; margin-top: 1.5rem; }
.access-error { color: var(--learner-coral-ink); }
.access-field-hint { font-size: .9rem; }
.access-inline-notice { margin-bottom: .9rem; }
.access-quoted-note {
  margin: .9rem 0;
  padding: .75rem 1rem;
  border-left: 3px solid var(--learner-coral);
  background: var(--learner-coral-tint);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.access-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.35rem 0;
  padding: 1.1rem;
  background: var(--learner-background);
  border-radius: var(--learner-radius);
}

.access-details dt { color: var(--learner-muted); font-size: .81rem; margin-bottom: .25rem; }
.access-details dd { margin: 0; font-weight: 630; overflow-wrap: anywhere; }
.access-correction { margin: .9rem 0 0; }
.access-correction summary { cursor: pointer; font-size: .93rem; font-weight: 650; }
.access-correction form { margin-top: .8rem; }

@media (max-width: 420px) {
  .access-details { grid-template-columns: 1fr; gap: .8rem; }
}

.learning-header { display: flex; align-items: center; gap: clamp(1rem, 4vw, 4rem); padding: 16px clamp(18px, 5vw, 72px); border-bottom: 1px solid var(--learner-line); background: var(--learner-surface); }
.learning-brand { flex: 0 0 auto; width: clamp(120px, 15vw, 190px); }
.learning-brand img { display: block; width: 100%; height: auto; }
.learning-navigation { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); margin-left: auto; }
.learning-navigation a { color: var(--learner-muted); text-decoration: none; font-size: .88rem; font-weight: 620; }
.learning-navigation a:hover { color: var(--learner-coral-ink); }
.learning-navigation a[aria-current] { color: var(--learner-ink); text-decoration: underline; text-decoration-color: var(--learner-coral); text-underline-offset: .55rem; text-decoration-thickness: 2px; }
.learning-header .access-sign-out { margin: 0; }
.learning-main { max-width: 1120px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) 20px; }
.learning-main :is(h1, h2, h3) { font-family: var(--learner-heading); }
.learning-intro h1 { margin: 0; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.1; letter-spacing: -.05em; }
.learning-intro p { margin: 12px 0 30px; color: var(--learner-muted); }
.learning-course { border: 1px solid var(--learner-line); border-top: 3px solid var(--learner-coral); border-radius: var(--learner-radius); background: var(--learner-surface); overflow-wrap: anywhere; }
.learning-course > header { padding: clamp(22px, 4vw, 34px); }
.learning-status { display: inline-block; padding: 4px 9px; border-radius: var(--learner-radius); background: var(--learner-coral-tint); color: var(--learner-coral-ink); font-size: .77rem; font-weight: 650; }
.learning-course h2 { margin: 17px 0 6px; font-size: clamp(1.25rem, 3vw, 1.8rem); letter-spacing: -.03em; }
.learning-course header p { margin: 0; color: var(--learner-muted); }
.learning-empty { display: grid; align-content: center; justify-items: center; gap: 7px; min-height: 230px; padding: 26px; border-top: 1px solid var(--learner-line); text-align: center; }
.learning-empty h3 { margin: 0; font-size: 1.1rem; font-weight: 650; }
.learning-empty p { max-width: 400px; margin: 0; color: var(--learner-muted); line-height: 1.5; }

.learning-modules { border-top: 1px solid var(--learner-line); }
.learning-module, .learning-lesson-body, .learning-lesson-resource {
  padding: clamp(22px, 4vw, 34px);
}
.learning-module + .learning-module, .learning-lesson-resource { border-top: 1px solid var(--learner-line); }
.learning-module h3 { margin: 0 0 12px; font-size: 1.25rem; }
.learning-module-description { margin: 0 0 16px; color: var(--learner-muted); white-space: pre-wrap; }
.learning-module ul { margin: 0; padding: 0; list-style: none; }
.learning-module li + li { margin-top: 8px; }
.learning-module li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--learner-line);
  border-radius: var(--learner-radius);
  color: var(--learner-ink);
  font-weight: 600;
  text-decoration: none;
}
.learning-module li a:hover { border-color: var(--learner-coral); background: var(--learner-coral-tint); }
.learning-module a span { color: var(--learner-coral-ink); }
.learning-back { display: inline-block; margin-bottom: 18px; color: var(--learner-coral-ink); }
.learning-lesson h1 { margin: 10px 0 0; font-size: clamp(1.8rem, 4vw, 2.65rem); letter-spacing: -.04em; }
.learning-lesson-body { border-top: 1px solid var(--learner-line); white-space: pre-wrap; line-height: 1.7; }
.learning-lesson-resource a { color: var(--learner-coral-ink); font-weight: 650; }

@media (max-width: 570px) {
  .learning-header { flex-wrap: wrap; gap: 20px; }
  .learning-brand { width: 140px; margin-right: auto; }
  .learning-navigation { flex-basis: 100%; order: 2; justify-content: flex-start; }
}

.ba-dashboard {
  --ba-ink: #2f1c49;
  --ba-muted: #6b6077;
  --ba-line: #e3dbea;
  --ba-paper: #f7f4fb;
  --ba-white: #fffefe;
  --ba-columns: minmax(0, 1.2fr) minmax(0, .85fr) minmax(0, 1fr) minmax(6rem, .7fr);
  min-height: 100svh;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  background: var(--ba-paper);
  color: var(--ba-ink);
  font: 400 15px/1.45 "DM Sans Variable", "DM Sans", Arial, sans-serif;
}

.ba-dashboard *, .ba-dashboard *::before, .ba-dashboard *::after {
  box-sizing: border-box;
}
.ba-dashboard h1, .ba-dashboard h2, .ba-dashboard h3, .ba-dashboard p, .ba-dashboard dl, .ba-dashboard dd {
  margin: 0;
}
.ba-dashboard input, .ba-dashboard button, .ba-dashboard select {
  font: inherit;
}
.ba-dashboard button, .ba-dashboard select {
  cursor: pointer;
}
.ba-dashboard button:disabled {
  cursor: wait;
  opacity: .58;
}
.ba-dashboard :focus-visible {
  outline: 2px solid #9c73c1;
  outline-offset: 3px;
}
.ba-dashboard a {
  color: inherit;
  text-decoration: none;
}
.ba-dashboard svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.ba-dashboard [id] {
  scroll-margin-top: 1rem;
}

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

.ba-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 30px 16px 18px;
  background: #2f1c49;
  color: #f8f3fd;
}

.ba-sidebar :focus-visible {
  outline-color: #eee0ff;
}
.ba-brand {
  display: block;
  width: 100%;
  padding: 4px 9px;
  border-radius: 10px;
  background: var(--ba-white);
}
.ba-brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.ba-navigation {
  display: grid;
  margin-top: 46px;
  gap: 5px;
}
.ba-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 560;
}
.ba-nav-item:hover, .ba-nav-current {
  background: #4b2c6c;
}
.ba-nav-current {
  color: #fbf5ff;
}
.ba-nav-item svg {
  color: #ddcaef;
}

.ba-account {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 16px 3px 0;
  border-top: 1px solid #79628f;
}
.ba-account-avatar, .ba-student-avatar {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ece3f7;
  color: #5a3b77;
  font-weight: 700;
  font-size: .75rem;
}
.ba-account-text {
  min-width: 0;
  flex: 1;
}
.ba-account-text strong, .ba-account-text span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ba-account-text strong {
  font-size: .8rem;
  font-weight: 640;
}
.ba-account-text span {
  color: #d8c8e7;
  font-size: .69rem;
}
.ba-signout button {
  display: grid;
  min-width: 30px;
  min-height: 34px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #e6d8f2;
}
.ba-signout button:hover {
  background: #553571;
}
.ba-signout button svg {
  width: 16px;
  height: 16px;
}

.ba-main {
  width: 100%;
  max-width: 1570px;
  justify-self: center;
  min-width: 0;
  padding: 38px clamp(20px, 3.1vw, 54px) 56px;
}
.ba-page-header {
  margin-bottom: 23px;
}
.ba-page-header h1 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 725;
  line-height: 1.1;
  letter-spacing: -.057em;
}
.ba-page-header p {
  margin-top: 9px;
  color: var(--ba-muted);
}
.ba-dashboard .ba-preview-notice {
  margin-bottom: 18px;
  padding: 9px 12px;
  border: 1px solid #e1d9ee;
  border-radius: 8px;
  background: #f4eff8;
  color: #564274;
  font-size: .84rem;
}

.ba-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.ba-stat {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  min-height: 94px;
  padding: 15px;
  border: 1px solid var(--ba-line);
  border-radius: 12px;
  background: var(--ba-white);
}
.ba-stat-icon {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #efe5f9;
  color: #5c387e;
}
.ba-stat-icon svg {
  width: 21px;
  height: 21px;
}
.ba-stat-clock .ba-stat-icon {
  background: #f0e8f7;
  color: #604584;
}
.ba-stat-check .ba-stat-icon {
  background: #eee5f8;
  color: #603a89;
}
.ba-stat dt {
  color: var(--ba-muted);
  align-self: end;
  font-size: .77rem;
  font-weight: 620;
}
.ba-stat dd {
  color: var(--ba-ink);
  align-self: start;
  margin-top: 2px;
  font-size: 1.48rem;
  font-weight: 740;
  line-height: 1.2;
  letter-spacing: -.04em;
}

.ba-panels {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(284px, 1fr);
  grid-template-areas: "records create";
  align-items: start;
  gap: 20px;
  margin-top: 20px;
}
.ba-panel {
  min-width: 0;
  border: 1px solid var(--ba-line);
  border-radius: 14px;
  background: var(--ba-white);
  box-shadow: 0 2px 4px #351e4c10;
}
.ba-panel h2 {
  font-size: 1.17rem;
  font-weight: 720;
  letter-spacing: -.025em;
}
.ba-create {
  grid-area: create;
  padding: 19px 20px 21px;
}
.ba-create-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 19px;
}
.ba-section-icon, .ba-empty-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #633b8b;
  background: #efe6f8;
}

.ba-dashboard input, .ba-dashboard select {
  min-width: 0;
  width: 100%;
  height: 42px;
  padding: 0 11px;
  border: 1px solid #ddd1e8;
  border-radius: 8px;
  color: var(--ba-ink);
  background: #fff;
  font-size: .875rem;
}
.ba-dashboard input::placeholder {
  color: #71667c;
  opacity: 1;
}
.ba-dashboard input:focus, .ba-dashboard select:focus {
  border-color: #9c73c6;
}
.ba-student-form fieldset, .ba-edit-dialog fieldset {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.ba-student-form fieldset > label, .ba-edit-dialog fieldset > label {
  display: grid;
  gap: 6px;
  color: #47345d;
  font-size: .79rem;
  font-weight: 660;
}
.ba-course-field {
  display: grid;
  gap: 7px;
}
.ba-course-field label {
  display: grid;
  gap: 6px;
  color: #47345d;
  font-size: .79rem;
  font-weight: 660;
}
.ba-dashboard .ba-add-course {
  justify-self: start;
  min-height: 28px;
  padding: 1px 0;
  border: 0;
  background: transparent;
  color: #6638a5;
  font-size: .78rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ba-edit-dialog .ba-invite-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 10px 12px;
  border: 1px solid #e3dbea;
  border-radius: 8px;
  background: #f8f4fc;
}
.ba-invite-choice legend {
  padding-inline: 3px;
  color: #47345d;
  font-size: .79rem;
  font-weight: 650;
}
.ba-edit-dialog .ba-invite-choice label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .85rem;
}
.ba-invite-choice input[type="radio"] {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #6638a5;
}
.ba-dashboard .ba-primary-button {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #6638a5;
  background: #6638a5;
  color: #fff;
  font-size: .875rem;
  font-weight: 650;
}
.ba-primary-button:hover {
  background: #532b89;
}
.ba-primary-button svg {
  width: 15px;
  height: 15px;
}
.ba-live-notice:not(:empty) {
  margin-top: 12px;
}
.ba-notice {
  padding: 9px 10px;
  border-radius: 7px;
  background: #efe5fa;
  color: #55317d;
  font-size: .81rem;
}
.ba-notice-error {
  background: #f9ece8;
  color: #8a4034;
}

.ba-records {
  grid-area: records;
}
.ba-records-header {
  display: grid;
  gap: 14px;
  padding: 19px 19px 15px;
}
.ba-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ba-toolbar select, .ba-toolbar input {
  height: 39px;
  font-size: .82rem;
}
.ba-toolbar > label:last-child {
  flex: 0 1 160px;
}
.ba-search {
  position: relative;
  flex: 1;
  min-width: 0;
}
.ba-search svg {
  position: absolute;
  top: 50%;
  left: 11px;
  transform: translateY(-50%);
  color: var(--ba-muted);
  width: 17px;
  height: 17px;
  pointer-events: none;
}
.ba-search input {
  padding-left: 35px;
}
.ba-row-notice:not(:empty) {
  margin: 0 19px 14px;
}
.ba-student-columns, .ba-student-row {
  display: grid;
  grid-template-columns: var(--ba-columns);
  column-gap: 11px;
  padding-inline: 19px;
}
.ba-student-columns {
  background: #f2ebfa;
  padding-block: 9px;
  color: #766282;
  font-size: .73rem;
  font-weight: 680;
}
.ba-student-columns span:last-child, .ba-student-actions {
  text-align: right;
}
.ba-student-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ba-student-row {
  min-height: 89px;
  padding-block: 14px;
  border-bottom: 1px solid #ece5f2;
  align-items: start;
  font-size: .8rem;
}
.ba-student-row > div:not(.ba-student-actions), .ba-student-identity > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.ba-student-identity {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.ba-student-avatar {
  flex-basis: 28px;
  width: 28px;
  height: 28px;
  font-size: .65rem;
}
.ba-student-identity strong, .ba-student-course strong {
  font-size: .82rem;
  font-weight: 670;
}
.ba-student-identity div > span, .ba-student-course > span {
  display: block;
  margin-top: 2px;
  color: var(--ba-muted);
  font-size: .75rem;
}
.ba-student-course .ba-student-note {
  margin-top: 5px;
  color: #775136;
  font-size: .73rem;
}
.ba-student-note strong {
  display: block;
  font-size: inherit;
}
.ba-student-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  color: var(--ba-muted);
  font-size: .71rem;
}
.ba-student-status .ba-status-failed {
  color: #8a4034;
  font-weight: 650;
}
.ba-welcome-time {
  display: block;
  margin-top: 2px;
  font-weight: 400;
}
.ba-badge {
  display: inline-block;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 7px;
  color: #604a75;
  background: #f0e9f5;
  font-weight: 700;
  line-height: 1.3;
}
.ba-badge-active {
  color: #54307d;
  background: #eae0f8;
}
.ba-badge-onboarding {
  color: #684b27;
  background: #f7eddc;
}
.ba-badge-suspended {
  color: #793d36;
  background: #f7e9e7;
}
.ba-student-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}
.ba-student-actions button, .ba-dialog-cancel {
  border: 1px solid #e4d9ed;
  border-radius: 6px;
  min-height: 30px;
  padding: 4px 7px;
  background: #fff;
  color: #603c7e;
  font-size: .72rem;
  font-weight: 630;
}
.ba-student-actions button:hover, .ba-dialog-cancel:hover {
  border-color: #b99bd3;
  background: #f5effb;
}
.ba-student-actions .ba-action-approve, .ba-student-actions .ba-action-reinstate {
  background: #eee3f8;
  border-color: #dfccec;
  color: #58317f;
}
.ba-student-actions .ba-action-suspend {
  color: #7d423c;
}
.ba-record-count {
  padding: 11px 19px;
  color: var(--ba-muted);
  font-size: .75rem;
}

.ba-empty {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  min-height: 250px;
  padding: 26px;
  border-top: 1px solid #f2edf7;
}
.ba-empty-icon {
  width: 47px;
  height: 47px;
  margin-bottom: 9px;
  border-radius: 11px;
}
.ba-empty-icon svg {
  width: 22px;
  height: 22px;
}
.ba-empty h3 {
  font-size: 1rem;
  font-weight: 680;
}
.ba-empty p {
  margin-top: 6px;
  color: var(--ba-muted);
  font-size: .82rem;
}

.ba-edit-dialog {
  width: min(460px, calc(100% - 30px));
  max-height: min(650px, calc(100% - 30px));
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--ba-line);
  border-radius: 14px;
  background: var(--ba-white);
  color: var(--ba-ink);
  box-shadow: 0 10px 45px #2f1c4944;
}
.ba-edit-dialog::backdrop {
  background: #2f1c4969;
}
.ba-edit-dialog h2 {
  margin-bottom: 16px;
  font-size: 1.23rem;
}
.ba-edit-hint {
  color: var(--ba-muted);
  font-size: .78rem;
  line-height: 1.45;
}
.ba-dialog-actions {
  display: flex;
  gap: 9px;
  margin-top: 1px;
}
.ba-dashboard .ba-dialog-actions .ba-primary-button {
  width: auto;
  flex: 1;
}
.ba-dialog-cancel {
  min-width: 86px;
}

@media (max-width: 1210px) {
  .ba-dashboard {
    grid-template-columns: 124px minmax(0, 1fr);
  }
  .ba-sidebar {
    align-items: center;
    padding-inline: 12px;
  }
  .ba-brand {
    padding-inline: 6px;
  }
  .ba-nav-item {
    padding-inline: 0;
  }
  .ba-nav-item > span, .ba-account-text {
    display: none;
  }
  .ba-nav-item {
    width: 44px;
    justify-content: center;
  }
  .ba-account {
    width: 100%;
    flex-direction: column;
    padding-inline: 0;
  }
}

@media (max-width: 1035px) {
  .ba-panels {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "create" "records";
  }
  .ba-student-form fieldset {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ba-student-form fieldset > button {
    align-self: end;
  }
  .ba-records-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .ba-toolbar {
    flex: 0 1 365px;
  }
}

@media (max-width: 670px) {
  .ba-dashboard {
    grid-template-columns: minmax(0, 1fr);
  }
  .ba-sidebar {
    position: static;
    flex-direction: row;
    min-height: auto;
    gap: 12px;
    padding: 12px 15px;
  }
  .ba-brand {
    flex-shrink: 0;
    width: clamp(96px, 35vw, 146px);
  }
  .ba-navigation {
    display: flex;
    margin: 0 0 0 auto;
  }
  .ba-account {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .ba-account-avatar {
    display: none;
  }
  .ba-main {
    padding: 22px 15px 38px;
  }
  .ba-stats {
    gap: 7px;
  }
  .ba-stat {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    row-gap: 5px;
    min-height: 88px;
    padding: 9px;
  }
  .ba-stat-icon {
    grid-row: auto;
    width: 26px;
    height: 26px;
    border-radius: 6px;
  }
  .ba-stat-icon svg {
    width: 15px;
    height: 15px;
  }
  .ba-stat dt {
    font-size: .7rem;
  }
  .ba-stat dd {
    margin-top: 0;
    font-size: 1.2rem;
  }
  .ba-records-header {
    display: grid;
  }
}

@media (max-width: 530px) {
  .ba-student-form fieldset {
    grid-template-columns: minmax(0, 1fr);
  }
  .ba-student-columns {
    display: none;
  }
  .ba-student-list {
    border-top: 1px solid #ece5f2;
  }
  .ba-student-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, .75fr);
    grid-template-areas: "identity course" "status actions";
    align-items: start;
    gap: 9px;
    padding-inline: 14px;
  }
  .ba-student-identity {
    grid-area: identity;
  }
  .ba-student-course {
    grid-area: course;
  }
  .ba-student-status {
    grid-area: status;
    padding-left: 36px;
  }
  .ba-student-actions {
    grid-area: actions;
    justify-content: flex-start;
  }
  .ba-student-actions button {
    min-height: 36px;
  }
}

.ba-content-header p {
  max-width: 58ch;
}
.ba-course-content .ba-content-notice {
  margin-bottom: 16px;
}
.ba-content-course-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px 10px;
  padding: 17px 20px;
  margin-bottom: 18px;
}
.ba-content-course-picker > label {
  grid-column: 1 / -1;
  font-size: .83rem;
  font-weight: 680;
}
.ba-content-grid {
  display: grid;
  grid-template-columns: minmax(210px, .8fr) minmax(0, 1.7fr);
  align-items: start;
  gap: 18px;
}
.ba-content-panel {
  padding: 18px 20px 20px;
  overflow-wrap: anywhere;
}
.ba-content-module-list {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}
.ba-content-module-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 7px 9px;
  border: 1px solid var(--ba-line);
  border-radius: 8px;
  font-size: .86rem;
  font-weight: 620;
}
.ba-content-module-list a:hover, .ba-content-module-list a[aria-current] {
  border-color: #ba9bd9;
  background: #f1e8fb;
}
.ba-content-status {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 6px;
  background: #f0edf2;
  color: #605269;
  font-size: .71rem;
  font-weight: 680;
}
.ba-content-status-live {
  background: #eadcf8;
  color: #4e227a;
}
.ba-content-module-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.ba-content-module-header > div {
  flex: 1 1 220px;
}
.ba-content-module-header p, .ba-content-empty p {
  margin-top: 6px;
  color: var(--ba-muted);
  font-size: .87rem;
}
.ba-content-empty a {
  color: #6638a5;
  text-decoration: underline;
}
.ba-content-details {
  min-width: 0;
  margin-top: 10px;
  border: 1px solid var(--ba-line);
  border-radius: 8px;
}
.ba-content-details > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  padding: 8px 11px;
  border-radius: 7px;
  color: #47345d;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 670;
  list-style: none;
}
.ba-content-details > summary::-webkit-details-marker {
  display: none;
}
.ba-content-details > summary:hover, .ba-content-details[open] > summary {
  background: #f7f1fc;
}
.ba-content-details > summary::after {
  content: "";
  flex: 0 0 7px;
  height: 7px;
  margin-left: auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.ba-content-details[open] > summary::after {
  transform: translateY(2px) rotate(225deg);
}
.ba-content-details-body {
  padding: 12px;
  border-top: 1px solid var(--ba-line);
}
.ba-content-lessons {
  margin-top: 22px;
}
.ba-content-lessons h3 {
  font-size: .96rem;
  font-weight: 720;
}
.ba-content-form {
  display: grid;
  gap: 13px;
}
.ba-content-form label {
  display: block;
  min-width: 0;
  color: #47345d;
  font-size: .79rem;
  font-weight: 670;
}
.ba-content-form input:not([type="hidden"]), .ba-content-form textarea {
  display: block;
  margin-top: 5px;
}
.ba-content-form textarea {
  width: 100%;
  min-height: 78px;
  padding: 9px 11px;
  border: 1px solid #ddd1e8;
  border-radius: 8px;
  color: var(--ba-ink);
  background: #fff;
  font: inherit;
  font-size: .875rem;
  font-weight: 400;
  resize: vertical;
}
.ba-content-form input[type="file"] {
  height: auto;
  min-height: 43px;
  padding: 6px;
}
.ba-content-form input[type="file"]::file-selector-button {
  margin-right: 8px;
  padding: 6px 9px;
  border: 0;
  border-radius: 5px;
  background: #f1e8fb;
  color: #47345d;
  cursor: pointer;
  font: inherit;
}
.ba-content-position {
  max-width: 110px;
}
.ba-content-lesson-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  gap: 9px;
}
.ba-content-optional, .ba-content-current-file {
  color: var(--ba-muted);
  font-size: .77rem;
  font-weight: 450;
}
.ba-content-form input[type="file"] + .ba-content-optional {
  display: block;
  margin-top: 5px;
}
.ba-course-content .ba-content-submit {
  justify-self: start;
  width: auto;
}
.ba-content-secondary {
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid #ddd1e8;
  border-radius: 8px;
  background: #faf6fd;
  color: #4e2c72;
  font-size: .83rem;
  font-weight: 670;
}
.ba-course-content .ba-content-secondary:hover {
  border-color: #ba9bd9;
  background: #f1e8fb;
}
.ba-content-details-body > .ba-content-publish {
  padding-top: 12px;
  margin-top: 13px;
  border-top: 1px solid var(--ba-line);
}
@media (max-width: 900px) {
  .ba-content-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 440px) {
  .ba-content-panel, .ba-content-course-picker {
    padding: 14px;
  }
  .ba-content-lesson-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}
