:root {
  color-scheme: light;
}
body {
  margin: 0;
  background: #f4f8fb;
  color: #153b4b;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.6;
}
main {
  max-width: 1140px;
  margin: auto;
  padding: 28px 20px 60px;
  min-width: 0;
}
h1 {
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  line-height: 1.2;
}
a {
  color: #005879;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #b6cdd7;
  border-radius: 10px;
  background: white;
  color: #123e50;
  padding: 10px 16px;
  min-height: 44px;
}
button:disabled {
  cursor: default;
  opacity: 0.6;
}
input,
select {
  box-sizing: border-box;
  max-width: 100%;
  padding: 10px;
  border: 1px solid #92b4c2;
  border-radius: 8px;
  background: white;
  color: #153b4b;
}
label {
  display: block;
  margin: 10px 0;
}
label > input:not([type="checkbox"]),
label > select {
  display: block;
  width: 100%;
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 10px;
}
fieldset {
  border: 1px solid #c5d8e0;
  border-radius: 10px;
}
summary {
  cursor: pointer;
  min-height: 44px;
  font-weight: 650;
  padding: 8px 0;
}
.learningCard {
  display: block;
  background: white;
  border: 1px solid #d6e4ea;
  border-radius: 18px;
  padding: 24px;
  margin: 18px 0;
  box-shadow: 0 6px 20px #0a354608;
  overflow-wrap: anywhere;
}
.learningCard h2 {
  font-size: 1.25rem;
  white-space: pre-wrap;
}
.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: end;
}
.actions > a {
  padding: 10px 0;
}
.eyebrow {
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: #356071;
  font-weight: 750;
}
.assignment {
  border-top: 1px solid #d6e4ea;
  padding: 16px 0;
}
.exerciseChoices {
  max-height: 230px;
  overflow: auto;
}
.choice {
  display: flex;
  align-items: center;
}
.joinCode {
  font-family: monospace;
  user-select: all;
}
.healthAlert {
  background: #fff1e3;
  border-left: 4px solid #a34400;
  padding: 12px;
  color: #713100;
}
#healthList {
  white-space: pre-line;
}
.skipLink {
  position: absolute;
  top: -100px;
  left: 16px;
  background: white;
  z-index: 10000;
  padding: 12px;
}
.skipLink:focus {
  top: 12px;
}
:focus-visible {
  outline: 3px solid #006b95 !important;
  outline-offset: 3px !important;
}
table {
  border-collapse: collapse;
  max-width: 100%;
  width: 100%;
}
th,
td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #d6e4ea;
  overflow-wrap: anywhere;
}
caption {
  text-align: left;
  font-weight: bold;
  padding: 8px;
}
pre,
textarea {
  max-width: 100%;
  box-sizing: border-box;
  tab-size: 4;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
textarea {
  font-family: ui-monospace, monospace !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  min-height: 240px;
  resize: vertical;
}
iframe {
  max-width: 100%;
}
.opt {
  white-space: pre-wrap;
  min-height: 44px;
}
#qtext {
  white-space: pre-wrap;
}
.chartAlternative {
  margin-top: 16px;
}
#draftState {
  font-size: 0.9rem;
  color: #294f60;
}
.head {
  flex-wrap: wrap;
}
.nav {
  flex-wrap: wrap;
}
.labSupport {
  margin-top: 16px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 720px) {
  main {
    padding: 20px 12px 40px;
  }
  .learningCard {
    padding: 16px;
  }
  .split,
  .workspace,
  .labGrid,
  .editorGrid,
  .cols,
  .two,
  .layout {
    grid-template-columns: 1fr !important;
  }
  .actions {
    align-items: stretch;
  }
  .actions > button {
    flex: 1;
  }
  .brand span {
    display: none !important;
  }
  .row {
    gap: 8px;
    font-size: 0.85rem;
  }
  th,
  td {
    padding: 7px;
    font-size: 0.85rem;
  }
  .labSupport .actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .chartBox {
    min-width: 0;
  }
  #console {
    overflow: auto;
    max-width: 100%;
  }
  .foot {
    grid-template-columns: 1fr !important;
  }
  .nav.open {
    max-height: 70vh;
    overflow: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.learningPage header{background:white;border-bottom:1px solid #d6e4ea}.learningPage .head{max-width:1200px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 20px}.learningPage .brandwrap{display:flex;align-items:center;gap:10px;text-decoration:none;color:#004f6e}.learningPage .mark{width:44px;height:44px;flex-shrink:0}.learningPage .brandLogo{width:44px;height:44px}.learningPage .brand{font-size:24px;font-weight:800}.learningPage .brand span{display:block;font-size:11px;font-weight:500}.learningPage .nav{display:flex;gap:16px;align-items:center}.learningPage .navlink{text-decoration:none;font-size:14px;font-weight:650}.learningPage .headerActions{display:flex;gap:16px;align-items:center}.learningPage .gh svg{width:22px;height:22px}.learningPage .menuToggle{display:none}.learningPage footer{background:#07394d;color:white}.learningPage .foot{max-width:1140px;margin:auto;padding:30px 20px;display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px}.learningPage .footbrand{display:flex;gap:12px;font-size:24px;font-weight:750}.learningPage .footbrand small{display:block;font-size:12px;font-weight:400}.learningPage .footcol a{display:block;color:#d9edf6;margin:7px 0}.learningPage .credit{font-size:12px;margin-top:10px}
@media(max-width:720px){.learningPage .head{gap:12px}.learningPage .menuToggle{display:block}.learningPage .nav{display:none;width:100%;order:3}.learningPage .nav.open{display:flex;flex-direction:column;align-items:start;padding:10px 0}.learningPage .gh{display:none}}
main .card,main .learningCard,main .layout>*{min-width:0}.example,.console{overflow-wrap:anywhere;white-space:pre-wrap!important}.stats,.toolbar{flex-wrap:wrap}main p{overflow-wrap:anywhere}
@media(max-width:720px){.split,.workspace,.labGrid,.editorGrid,.cols,.two,.layout{grid-template-columns:minmax(0,1fr)!important}.card{max-width:100%;box-sizing:border-box}.actions>*{min-width:0}.console{overflow-x:auto}}
@media(max-width:720px){.actions>button{flex:1 1 160px;overflow-wrap:anywhere}.actions>label{flex:1 1 140px}}
.primaryLink{display:inline-block;background:#005b79;color:white;border-radius:10px;padding:12px 20px!important;text-decoration:none;font-weight:700}
#languageToggle{font:inherit;padding:7px 12px;background:white;color:#004f6e;border:1px solid #9bbdca;border-radius:8px;min-height:40px;cursor:pointer}
html[dir=rtl] body{text-align:right}html[dir=rtl] th,html[dir=rtl] td,html[dir=rtl] caption{text-align:right}html[dir=rtl] .eyebrow{letter-spacing:0}html[dir=rtl] input[type=checkbox]{margin-right:0;margin-left:10px}
pre,code,.codeEditor,#editor,#code,#console,.console,#termText,.example{direction:ltr!important;text-align:left!important;unicode-bidi:plaintext}
#submissionForm textarea,#questionForm textarea{width:100%;min-height:100px;font-family:inherit!important}#submissionCode{min-height:280px!important;font-family:ui-monospace,monospace!important}#questionReport textarea{width:100%;min-height:90px;font-family:inherit!important}.learningCard form textarea{width:100%;min-height:100px}
#pathList{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:16px}#pathList .learningCard{margin:0}#pathSummary{padding:20px;border-inline-start:4px solid #1687a6;background:#e8f5fa;border-radius:8px}
.labSupport,.labSupport+section{box-sizing:border-box;max-width:100%;min-width:0}.labSupport+section label,.labSupport+section select,.labSupport+section input{min-width:0;max-width:100%;box-sizing:border-box}
@media(max-width:720px){header .head{flex-wrap:wrap!important;gap:10px}.headerActions{margin-inline-start:auto;flex-shrink:0}html[dir=rtl] .head>.nav a{text-align:start}}
/* Shared navigation occupies its own row, including on legacy pages. */
header .head {display:flex!important;flex-wrap:wrap!important;gap:12px!important}
header .head>.nav {order:3;width:100%;gap:6px 12px;position:static!important;transform:none!important;max-height:none!important}
header .headerActions {margin-inline-start:auto}
header .navlink {display:inline-flex;align-items:center;min-height:44px;padding:4px 8px;border-radius:8px;white-space:normal}
header .navlink[aria-current=page] {background:#dceff6;color:#003e56;font-weight:750;text-decoration:underline;text-underline-offset:5px}
header .navlink[data-instructor-link] {border:1px solid #b6cdd7}
main:focus {outline:none}
.learningCard pre, .learningCard textarea {box-sizing:border-box;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere}
.tableScroll {max-width:100%;overflow-x:auto}
.tableScroll table {min-width:420px}
.todayGrid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}
.todayGrid .learningCard {margin:0}
.primaryAction {display:inline-block;border-radius:10px;background:#005879;color:#fff;padding:12px 20px;text-decoration:none;min-height:44px;box-sizing:border-box}
.notificationUnread {border-inline-start:5px solid #005879}
.stateBadge {display:inline-block;padding:4px 10px;border-radius:8px;background:#e8f3f7;color:#143d50}
@media(max-width:720px){header .head>.nav{display:none!important}header .head>.nav.open{display:flex!important;flex-direction:row!important;align-items:stretch!important;max-height:65vh!important;overflow-y:auto;width:100%!important;inset:auto!important}header .navlink{flex:1 1 130px}header .head .menuToggle{display:block!important}.drawerBackdrop{display:none!important}body.drawerOpen{overflow:auto!important}input,select,textarea{font-size:16px!important}button,.navlink{min-height:44px}.todayGrid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:0.01ms!important;transition-duration:0.01ms!important}}

/* Resume Attempts Widget */
#resumeAttempts {
  margin: 28px 0 24px 0;
  width: 100%;
}
#resumeAttempts:empty {
  display: none !important;
}
.resumeWidget {
  background: #ffffff;
  border: 1px solid #d4e3eb;
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 6px 22px rgba(11, 44, 69, 0.05);
  box-sizing: border-box;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.resumeWidgetHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf4f7;
  gap: 12px;
}
.resumeWidgetTitle {
  display: flex;
  align-items: center;
  gap: 12px;
}
.resumeIcon {
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #eef7fb;
  border-radius: 12px;
  border: 1px solid #d0e5f0;
  flex-shrink: 0;
}
.resumeWidgetTitle h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 750;
  color: #0b2c45;
}
.resumeWidgetTitle p {
  margin: 3px 0 0 0;
  font-size: 0.88rem;
  color: #536f7d;
  line-height: 1.4;
}
.resumeDismissAllBtn {
  background: transparent;
  border: 1px solid #d0e1ea;
  color: #5a7482;
  font-size: 0.82rem;
  font-weight: 650;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.resumeDismissAllBtn:hover {
  background: #fde8e8;
  color: #b43d3d;
  border-color: #f7c5c5;
}
.resumeCardsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}
.resumeCard {
  background: #f8fafc;
  border: 1px solid #e1ecf1;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.resumeCard:hover {
  border-color: #9acde4;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(11, 44, 69, 0.07);
}
.resumeCardHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.resumeBadges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.resumeCode {
  font-size: 0.8rem;
  font-weight: 750;
  color: #004f6e;
  background: #e1f1f7;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.4px;
}
.resumeBadge {
  font-size: 0.76rem;
  font-weight: 650;
  padding: 3px 8px;
  border-radius: 6px;
}
.resumeBadgePractice {
  background: #e6f6ee;
  color: #147a54;
}
.resumeBadgeExam {
  background: #fef4e5;
  color: #b25e02;
}
.resumeBadgeExpired {
  background: #fde8e8;
  color: #b43d3d;
}
.resumeDismissBtn {
  background: transparent;
  border: none;
  color: #8c9ea6;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}
.resumeDismissBtn:hover {
  background: #fde8e8;
  color: #b43d3d;
}
.resumeCardBody {
  margin-bottom: 14px;
  flex-grow: 1;
}
.resumeName {
  margin: 0 0 8px 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #153b4b;
  line-height: 1.4;
}
.resumeMeta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: #637d8b;
  flex-wrap: wrap;
}
.resumeMeta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.resumeCardFooter {
  margin-top: auto;
}
.resumeBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
  min-height: 40px;
  box-sizing: border-box;
}
.resumeBtnPrimary {
  background: #004f6e;
  color: #ffffff !important;
}
.resumeBtnPrimary:hover {
  background: #003a52;
}
.resumeBtnExpired {
  background: #b43d3d;
  color: #ffffff !important;
}
.resumeBtnExpired:hover {
  background: #962f2f;
}
.resumeMoreDetails {
  margin-top: 14px;
  border-top: 1px dashed #d8e6ed;
  padding-top: 12px;
}
.resumeMoreSummary {
  font-size: 0.85rem;
  font-weight: 650;
  color: #005879;
  cursor: pointer;
  padding: 6px 0;
}
.resumeMoreSummary:hover {
  text-decoration: underline;
}
.resumeExtraGrid {
  margin-top: 12px;
}
@media (max-width: 600px) {
  .resumeWidget {
    padding: 16px;
    border-radius: 14px;
  }
  .resumeWidgetHead {
    flex-direction: column;
    align-items: flex-start;
  }
  .resumeDismissAllBtn {
    align-self: flex-end;
  }
  .resumeCardsGrid {
    grid-template-columns: 1fr;
  }
}

/* Review Mistakes View Toggle & Flashcards Mode */
.viewModeToggle {
  display: flex;
  gap: 10px;
  margin: 16px 0 20px;
}
.viewModeBtn {
  background: #ffffff;
  border: 1px solid #c4d7e0;
  border-radius: 10px;
  padding: 8px 16px;
  font-weight: 650;
  color: #173746;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
}
.viewModeBtn:hover {
  background: #f0f7fa;
  border-color: #28a9dc;
}
.viewModeBtn.active {
  background: #004f6e;
  color: #ffffff;
  border-color: #004f6e;
  box-shadow: 0 4px 12px rgba(0, 79, 110, 0.2);
}

.flashcardDeck {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 20px 0 40px;
  max-width: 720px;
  margin-inline: auto;
}
.fcHeader {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
#fcCounter {
  font-size: 14px;
  font-weight: 650;
  color: #486270;
}
.fcProgressBar {
  width: 100%;
  height: 6px;
  background: #dbe8ef;
  border-radius: 999px;
  overflow: hidden;
}
#fcProgressFill {
  height: 100%;
  background: #28a9dc;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.fcCardWrap {
  perspective: 1200px;
  width: 100%;
  min-height: 340px;
}
.flashcard {
  width: 100%;
  min-height: 340px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(11, 44, 69, 0.08);
}
.flashcard.flipped {
  transform: rotateY(180deg);
}
.fcSide {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 16px;
  padding: 28px 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1.5px solid #d4e3eb;
  background: #ffffff;
}
.fcFront {
  background: linear-gradient(180deg, #ffffff 0%, #f9fcfe 100%);
}
.fcBack {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  transform: rotateY(180deg);
  overflow-y: auto;
}
.fcMeta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.fcBadge {
  background: #e2eef3;
  color: #004f6e;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}
.fcQuestionText {
  font-size: 1.25rem;
  line-height: 1.5;
  color: #072735;
  margin: 20px 0;
}
.fcInstruction {
  font-size: 12px;
  font-weight: 600;
  color: #889fab;
  text-align: center;
}
.fcAnswerBlock {
  margin-bottom: 12px;
}
.fcLabel {
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #15803d;
  margin-bottom: 4px;
}
.fcAnswerText {
  font-size: 1.15rem;
  font-weight: 750;
  color: #14532d;
  background: #dcfce7;
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-block;
}
.fcExplanationBlock {
  font-size: 14px;
  color: #334e5c;
  line-height: 1.6;
}
.fcExplanationBlock p {
  margin: 4px 0 10px;
}
.fcControls {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
}
.fcBtn {
  min-width: 110px;
  font-weight: 650;
  border-radius: 10px;
  padding: 10px 18px;
}
.fcFlipBtn {
  background: #28a9dc;
  color: #ffffff;
  border-color: #28a9dc;
}
.fcFlipBtn:hover {
  background: #1e92c0;
}
.fcShortcutsHint {
  font-size: 12px;
  color: #637d8b;
  text-align: center;
}
