* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f4faf8;
  color: #0c1b2a;
  font:
    16px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.notice {
  background: #fff9e5;
  padding: 10px 24px;
  text-align: center;
  font-size: 13px;
  color: #0f4f46;
}
header {
  background: white;
  border-bottom: 1px solid #dcebe6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px max(24px, calc((100vw - 1120px) / 2));
  gap: 20px;
}
.brand {
  font-weight: 800;
  font-size: 25px;
  color: #0f4f46;
  text-decoration: none;
}
.brand span {
  display: block;
  font-weight: 400;
  font-size: 13px;
}
main {
  max-width: 1120px;
  margin: 36px auto;
  padding: 0 24px;
}
h1,
h2,
h3 {
  line-height: 1.2;
  color: #0f4f46;
}
h1 {
  font-size: 36px;
  letter-spacing: -1px;
}
p {
  max-width: 650px;
}
.muted {
  color: #506c63;
}
.paper {
  background: white;
  border: 1px solid #dcebe6;
  border-radius: 18px;
  padding: 32px;
  margin: 22px 0;
}
.welcome {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 28px;
}
.welcome img {
  width: 100%;
  max-height: 250px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 20px;
}
.course {
  margin: 0;
}
.course-icon {
  width: 64px;
  height: 64px;
}
.label {
  font-size: 13px;
  color: #0f4f46;
  background: #e6f9f2;
  border-radius: 20px;
  display: inline-block;
  padding: 4px 10px;
}
.primary,
.quiet {
  border-radius: 10px;
  padding: 11px 18px;
  min-height: 46px;
  font: inherit;
  cursor: pointer;
}
.primary {
  border: 0;
  background: #2563eb;
  color: white;
  font-weight: 650;
}
.quiet {
  background: white;
  color: #0f4f46;
  border: 1px solid #b9d6ca;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #0f4f46;
  outline-offset: 4px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 24px;
}
progress {
  width: 100%;
  height: 12px;
  accent-color: #00b397;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 6px;
  background: #dcebe6;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: #dcebe6;
  border-radius: 6px;
}
progress::-webkit-progress-value {
  background: #00b397;
  border-radius: 6px;
}
progress::-moz-progress-bar {
  background: #00b397;
  border-radius: 6px;
}
.lesson-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}
.lesson-nav {
  list-style: none;
  padding: 0;
}
.lesson-nav button {
  width: 100%;
  text-align: left;
  margin: 4px 0;
  border: 1px solid #dcebe6;
  background: white;
  border-radius: 10px;
  padding: 12px;
  color: #0f4f46;
  font: inherit;
  cursor: pointer;
}
.lesson-nav button[aria-current] {
  border: 2px solid #0f4f46;
  background: #e6f9f2;
}
.lesson-nav small {
  display: block;
}
.scenario {
  border: 0;
  padding: 0;
  margin: 24px 0;
}
.scenario legend {
  font-weight: 650;
  margin-bottom: 12px;
}
.scenario label {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid #bfd8ce;
  border-radius: 10px;
  margin: 10px 0;
  cursor: pointer;
}
.scenario input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.feedback {
  background: #e6f9f2;
  padding: 16px;
  border-radius: 10px;
  margin: 16px 0;
}
.error {
  background: #fff1ed;
  padding: 16px;
  border: 1px solid #b85f46;
  border-radius: 10px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid #dcebe6;
  padding: 12px 10px;
  font-size: 14px;
}
select {
  font: inherit;
  padding: 12px;
  max-width: 100%;
}
footer {
  max-width: 1120px;
  margin: 40px auto;
  padding: 0 24px;
  color: #506c63;
  font-size: 13px;
}
.help summary {
  cursor: pointer;
  font-weight: 650;
}
.help img {
  width: 32px;
  vertical-align: middle;
  margin-right: 8px;
}
.test-users {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
#account {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (max-width: 720px) {
  header {
    padding: 16px;
    align-items: flex-start;
  }
  #account {
    flex-direction: column;
    align-items: flex-end;
  }
  main {
    margin-top: 24px;
    padding: 0 16px;
  }
  .paper {
    padding: 22px;
  }
  .welcome,
  .lesson-layout {
    grid-template-columns: 1fr;
  }
  .welcome img {
    max-height: 210px;
  }
  h1 {
    font-size: 30px;
  }
  .lesson-nav {
    display: flex;
    overflow: auto;
    gap: 8px;
  }
  .lesson-nav li {
    min-width: 185px;
  }
  .lesson-nav button {
    height: 100%;
  }
}

.dashboard img {
  max-height: 170px;
}
.dashboard h1 {
  margin: 16px 0;
}
.dashboard p {
  margin: 10px 0;
}
.course h2 {
  margin: 14px 0;
}
.course-icon {
  width: 48px;
  height: 48px;
}
.course p {
  margin: 12px 0;
}
.course .primary {
  margin-top: 8px;
}
@media (max-width: 720px) {
  .dashboard {
    grid-template-columns: 1fr 82px;
    gap: 12px;
    padding: 20px;
  }
  .dashboard img {
    max-height: 115px;
  }
  .dashboard h1 {
    font-size: 28px;
  }
  .dashboard p {
    font-size: 14px;
  }
  .dashboard .label {
    font-size: 11px;
  }
  .dashboard .muted {
    font-size: 12px;
  }
  .course h2 {
    font-size: 23px;
  }
}

/* Keep the learning content high on the page; return navigation belongs with lessons. */
header {
  padding-top: 12px;
  padding-bottom: 12px;
}
main {
  margin-top: 24px;
}
.lesson-layout {
  align-items: start;
}
.lesson-layout > .paper {
  margin-top: 0;
}
.lesson-layout aside h2 {
  margin: 12px 0;
}
.lesson-layout aside > p {
  margin: 10px 0;
}
.lesson-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #0f4f46;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.lesson-back:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 720px) {
  header {
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  #account {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  #signout {
    padding: 8px 10px;
    min-height: 44px;
  }
  main {
    margin-top: 16px;
  }
  .lesson-layout {
    gap: 12px;
  }
  .lesson-layout aside h2 {
    margin: 4px 0;
    font-size: 20px;
  }
  .lesson-layout aside > p {
    margin: 4px 0;
    font-size: 14px;
  }
  .lesson-nav {
    margin: 8px 0 0;
  }
  .lesson-nav button {
    padding: 8px 10px;
    font-size: 13px;
  }
  .lesson-nav li {
    min-width: 165px;
  }
}
@media (max-width: 360px) {
  #account {
    font-size: 12px;
    gap: 6px;
  }
  .brand {
    font-size: 22px;
  }
  .brand span {
    font-size: 11px;
  }
}

/* One lesson panel, with status carried by labels and markers as well as colour. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.lesson-layout aside .lesson-course-name {
  font-size: 18px;
  line-height: 1.35;
  margin: 8px 0 12px;
}
.lesson-outline {
  margin-top: 16px;
}
.lesson-outline summary {
  font-size: 14px;
  font-weight: 650;
  color: #0f4f46;
  cursor: pointer;
  min-height: 36px;
}
.lesson-nav {
  display: block;
  overflow: hidden;
  margin: 4px 0 0;
  background: white;
  border: 1px solid #dcebe6;
  border-radius: 12px;
}
.lesson-nav li {
  min-width: 0;
}
.lesson-nav li + li {
  border-top: 1px solid #dcebe6;
}
.lesson-nav button.lesson-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  align-items: start;
  margin: 0;
  min-height: 48px;
  height: auto;
  border: 0;
  border-radius: 0;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.4;
  background: transparent;
  text-align: left;
}
.lesson-marker {
  font-size: 13px;
  text-align: center;
  font-weight: 700;
}
.lesson-nav button.completed {
  color: #0f4f46;
  background: #e6f9f2;
}
.lesson-nav button.upcoming {
  color: #65716d;
  background: #f6f8f7;
}
.lesson-nav button[aria-current] {
  border: 0;
  background: #fff9e5;
  color: #0f4f46;
  box-shadow: inset 3px 0 #0f4f46;
  font-weight: 650;
}
.lesson-nav button:hover {
  background: #eef7f3;
}
.lesson-nav button:focus-visible {
  outline-offset: -4px;
}
.lesson-outline summary:focus-visible {
  outline: 3px solid #0f4f46;
  outline-offset: 2px;
}
@media (max-width: 720px) {
  .lesson-layout aside .lesson-course-name {
    font-size: 17px;
    margin: 2px 0 6px;
  }
  .lesson-outline {
    margin-top: 8px;
  }
  .lesson-outline summary {
    min-height: 30px;
  }
  .lesson-nav li {
    min-width: 0;
  }
  .lesson-nav button.lesson-row {
    padding: 10px 12px;
  }
}

.item-position {
  font-size: 14px;
  color: #506c63;
  padding: 10px 0;
  border-bottom: 1px solid #dcebe6;
  margin-bottom: 24px;
}
.slide-title {
  font-size: 22px;
  line-height: 1.35;
}
.lesson-nav button.in-progress {
  color: #0f4f46;
  background: white;
}

#email-login {
  display: grid;
  gap: 12px;
  max-width: 420px;
  margin-top: 24px;
}
#email-login label {
  font-weight: 650;
  color: #0f4f46;
}
.email-input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #bfd8ce;
  border-radius: 10px;
  font: inherit;
  color: #0c1b2a;
  background: white;
}
#email-login .primary {
  justify-self: start;
  margin-top: 4px;
}

.admin-totals .paper {
  padding: 20px;
}
.admin-totals h2 {
  margin: 0;
}
.section-heading,
.draft-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.section-heading h2,
.section-heading p {
  margin: 0 0 8px;
}
.section-heading .actions {
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
  color: #0f4f46;
}
.form-grid input,
.form-grid select {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #bfd8ce;
  border-radius: 8px;
  font: inherit;
  background: white;
  color: #0c1b2a;
}
.form-grid input[readonly] {
  background: #f6f8f7;
  color: #506c63;
}
.staff-form {
  padding: 24px;
  margin: 20px 0;
  background: #f4faf8;
  border: 1px solid #dcebe6;
  border-radius: 12px;
}
.staff-form h3 {
  margin-top: 0;
}
.table-button {
  display: block;
  padding: 8px 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #0f4f46;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.file-label {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.draft-row {
  border-top: 1px solid #dcebe6;
  padding: 20px 0;
}
.draft-row h3,
.draft-row p {
  margin: 8px 0;
}
.review-note {
  background: #fff9e5;
  border-left: 3px solid #b38d24;
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
}
.video-player {
  position: relative;
  aspect-ratio: 16/9;
  margin: 24px 0 12px;
  background: #eef7f3;
  border-radius: 12px;
  overflow: hidden;
}
.video-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.preview-question {
  border-top: 1px solid #dcebe6;
  margin-top: 24px;
  padding-top: 12px;
}
.preview-question h3 {
  font-size: 18px;
  line-height: 1.5;
}
.answer-list {
  list-style: none;
  padding: 0;
}
.answer-list li {
  padding: 12px 14px;
  margin: 8px 0;
  border: 1px solid #dcebe6;
  border-radius: 8px;
}
.answer-list .source-answer {
  background: #e6f9f2;
}
.answer-list .label {
  display: block;
  width: fit-content;
  margin-top: 6px;
}
.source-details {
  margin-top: 30px;
}
.source-details summary {
  cursor: pointer;
  color: #0f4f46;
  font-weight: 650;
}
.preserve-lines {
  white-space: pre-line;
}
@media (max-width: 720px) {
  .section-heading,
  .draft-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .staff-form {
    padding: 16px;
  }
  .admin-totals {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .admin-totals .paper {
    padding: 14px;
  }
  .admin-totals p {
    font-size: 12px;
  }
  .admin-totals h2 {
    font-size: 24px;
  }
  .table-button {
    font-size: 13px;
  }
}
@media (max-width: 720px) {
  header {
    gap: 8px;
  }
  .brand {
    white-space: nowrap;
    font-size: 20px;
    line-height: 1.2;
  }
  .brand span {
    font-size: 11px;
  }
  #account > span {
    display: none;
  }
  #account {
    gap: 6px;
  }
  #account .quiet {
    padding: 7px 9px;
    font-size: 13px;
  }
}

.table-hint {
  display: none;
}
@media (max-width: 720px) {
  .table-hint {
    display: block;
    font-size: 12px;
    margin: 10px 0;
  }
}
.preview-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff9e5;
  color: #0f4f46;
  border: 1px solid #eadcaa;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 16px;
  font-size: 13px;
}
.feedback.incorrect {
  background: #fff1ed;
  color: #753a2a;
}
.batch-list {
  max-height: 320px;
  overflow: auto;
  border: 1px solid #dcebe6;
  border-radius: 10px;
  margin-top: 14px;
}
.batch-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #dcebe6;
}
.batch-row:last-child {
  border-bottom: 0;
}
.batch-row input {
  width: 18px;
  height: 18px;
}
.batch-row small {
  color: #506c63;
  margin-left: auto;
}
.batch-summary {
  font-weight: 650;
  color: #0f4f46;
}
.course-intro {
  background: #f4faf8;
  border-left: 3px solid #00b397;
  padding: 14px 16px;
  border-radius: 8px;
}
.admin-nav {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  flex-wrap: nowrap;
  border-bottom: 1px solid #d8e8e3;
  margin: 24px 0 28px;
}
.admin-nav .admin-tab {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 12px 0;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #506c63;
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  white-space: nowrap;
  cursor: pointer;
}
.admin-nav .admin-tab:hover {
  color: #0f4f46;
  border-bottom-color: #bfd8ce;
}
.admin-nav .admin-tab[aria-selected="true"] {
  color: #0f4f46;
  border-bottom-color: #00b397;
  font-weight: 700;
}
.admin-nav .admin-tab:focus-visible {
  outline: 2px solid #0f4f46;
  outline-offset: -3px;
}
.enrolment-form {
  margin-top: 24px;
}
@media (max-width: 720px) {
  .admin-nav {
    gap: 24px;
    margin: 20px 0 24px;
  }
  .admin-nav .admin-tab {
    font-size: 14px;
  }
}
[hidden] {
  display: none !important;
}
.site-card {
  border-top: 1px solid #d8e8e3;
  padding: 20px 0;
}
.site-notes {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #b9cec7;
  border-radius: 8px;
  padding: 12px;
  font: inherit;
}
.primary[href] {
  display: inline-block;
  text-decoration: none;
}
.site-card a {
  overflow-wrap: anywhere;
}
.admin-nav:focus-within {
  outline-offset: 4px;
}

.verify-record {
  display: grid;
  grid-template-columns: minmax(100px, 180px) minmax(0, 1fr);
  gap: 12px 20px;
}
.verify-record dt {
  font-weight: 700;
}
.verify-record dd {
  margin: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 500px) {
  .verify-record {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .verify-record dd {
    margin-bottom: 14px;
  }
}

.overview-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 8px 0 24px;
}
.overview-heading h2 {
  margin: 10px 0;
  font-size: 28px;
}
.overview-heading p {
  margin: 8px 0;
  color: #506c63;
}
.campus-filter {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
  color: #0f4f46;
  min-width: 180px;
}
.campus-filter select {
  background: white;
  border: 1px solid #bfd8ce;
  border-radius: 8px;
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.overview-stat {
  padding: 24px;
  min-width: 0;
}
.overview-stat h2 {
  font-size: 26px;
  line-height: 1.25;
  margin: 14px 0;
}
.overview-stat p {
  font-size: 14px;
  color: #506c63;
}
.overview-columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 20px;
}
.overview-columns .paper {
  min-width: 0;
}
.overview-columns a {
  overflow-wrap: anywhere;
}
.overview-task {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-top: 1px solid #dcebe6;
  padding: 16px 0;
}
.overview-task p {
  margin: 6px 0;
  font-size: 13px;
  color: #506c63;
}
.overview-task button {
  flex-shrink: 0;
  font-size: 13px;
}
.task-status {
  font-size: 13px;
  color: #506c63;
}
.task-status.attention {
  color: #8a4b1d;
}
.document-link {
  display: inline-block;
  text-decoration: none;
  white-space: nowrap;
}
.site-notes summary {
  cursor: pointer;
}
.site-notes {
  white-space: normal;
}
.site-notes p {
  white-space: pre-wrap;
}
@media (max-width: 720px) {
  .overview-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .campus-filter {
    width: 100%;
  }
  .overview-grid,
  .overview-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .overview-stat h2 {
    font-size: 24px;
  }
  .overview-task {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .overview-task button {
    min-height: 40px;
  }
  .overview-heading h2 {
    font-size: 25px;
  }
}

/* Team First Aid identity: modest header and footer; existing logo at sign-in. */
header .brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}
.signin-brand {
  display: block;
  width: fit-content;
  max-width: 100%;
  background: #0f4f46;
  padding: 14px 18px;
  border-radius: 8px;
  margin: 0 0 24px;
}
.welcome .signin-brand img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  max-height: none;
}
.footer-credit {
  font-size: 12px;
  color: #506c63;
}
footer .footer-credit {
  margin-bottom: 6px;
}
footer p {
  margin: 0;
}

.card-label {
  display: none;
}
@media (max-width: 719px) {
  #app,
  .paper,
  [role="tabpanel"] {
    min-width: 0;
  }
  .admin-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    overflow: visible;
  }
  .admin-nav .admin-tab {
    white-space: normal;
    text-align: left;
  }
  .admin-records {
    display: block;
    min-width: 0;
  }
  .admin-records thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .admin-records tbody {
    display: grid;
    gap: 16px;
  }
  .admin-records tr {
    display: block;
    border: 1px solid #dcebe6;
    border-radius: 12px;
    padding: 12px;
  }
  .admin-records td {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 12px;
    padding: 9px 0;
  }
  .admin-records td:last-child {
    border-bottom: 0;
  }
  .card-label {
    display: block;
    color: #506c63;
    font-weight: 600;
  }
  .card-value {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .card-value .table-button {
    margin: 4px 0;
  }
}
