:root {
  --red: #d6083b;
  --blue: #3262a3;
  --white: #ffffff;
  --grey: #f5f5f5;
  --ink: #2e2a2a;
  --muted: #757171;
  --line: #e9e6e6;
  --softred: #fff0f3;
  --softblue: #eef3fa;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--grey);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button {
  border: 0;
}
a {
  color: var(--blue);
}
.shell {
  display: grid;
  grid-template-columns: 244px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: white;
  border-right: 1px solid var(--line);
  padding: 34px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}
.brand-crest {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand strong {
  font-size: 20px;
  letter-spacing: -0.7px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2.6px;
  margin-top: 4px;
  color: var(--muted);
}
.workspace {
  margin: 32px 8px 24px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.workspace span:first-child {
  background: var(--softblue);
  color: var(--blue);
  padding: 8px;
  border-radius: 6px;
  font-weight: 700;
}
.workspace small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: #969090;
  padding: 10px 14px;
  text-transform: uppercase;
}
nav {
  display: grid;
  gap: 5px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  text-align: left;
  border-radius: 6px;
  color: #696363;
  font-size: 13px;
  font-weight: 550;
  padding: 12px 14px;
}
.nav-item svg {
  width: 18px;
  height: 18px;
}
.nav-item.active {
  color: var(--red);
  background: var(--softred);
}
.nav-item:hover {
  background: var(--grey);
}
.nav-item.active:hover {
  background: var(--softred);
}
.side-bottom {
  margin-top: auto;
}
.support {
  margin: 24px 8px;
  padding: 18px 14px;
  background: var(--grey);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.7;
}
.support strong {
  display: block;
}
.support p {
  margin: 5px 0;
  color: var(--muted);
}
.user {
  border-top: 1px solid var(--line);
  padding: 20px 8px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  display: grid;
  place-items: center;
  background: var(--softblue);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.user strong {
  font-size: 12px;
  display: block;
}
.user small {
  font-size: 10px;
  color: var(--muted);
}
.icon-button {
  background: none;
  color: var(--muted);
  padding: 6px;
  margin-left: auto;
  display: grid;
  place-items: center;
}
.icon-button svg {
  width: 17px;
  height: 17px;
}
.main {
  min-width: 0;
}
.topbar {
  height: 77px;
  padding: 0 42px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.crumb {
  display: flex;
  align-items: center;
  gap: 14px;
}
.crumb b {
  color: var(--ink);
  font-weight: 500;
}
.top-right {
  display: flex;
  gap: 15px;
  align-items: center;
}
.pill {
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 10px;
  background: var(--softblue);
  color: var(--blue);
  font-weight: 650;
  white-space: nowrap;
}
.pill.red {
  background: var(--softred);
  color: var(--red);
}
.pill.neutral {
  background: #f0eeee;
  color: #686161;
}
.content {
  padding: 36px 42px 50px;
  max-width: 1500px;
  margin: auto;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 10px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
h1 {
  font-size: 29px;
  letter-spacing: -1px;
  margin: 0 0 10px;
  font-weight: 650;
}
p.sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 17px;
  border-radius: 5px;
  background: var(--red);
  color: white;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn.secondary {
  color: var(--ink);
  background: white;
  border: 1px solid #ddd7d7;
}
.btn.blue {
  background: var(--blue);
}
.btn.text {
  color: var(--blue);
  background: none;
  padding: 5px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero {
  padding: 30px 32px;
  background: var(--blue);
  border-radius: 9px;
  color: white;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.hero:after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border: 44px solid #ffffff08;
  border-radius: 50%;
  right: 40px;
  top: -80px;
  pointer-events: none;
}
.hero h2 {
  font-size: 24px;
  letter-spacing: -0.5px;
  margin: 8px 0 12px;
  font-weight: 550;
}
.hero .eyebrow {
  color: #c9daef;
  font-size: 9px;
}
.hero p {
  font-size: 12px;
  color: #d9e4f2;
  max-width: 440px;
  line-height: 1.8;
  margin: 0;
}
.hero .btn {
  background: white;
  color: var(--blue);
  z-index: 1;
}
.hero .big-num {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1;
}
.hero .big-num small {
  font-size: 11px;
  letter-spacing: 0;
  display: block;
  margin-top: 10px;
  color: #d9e4f2;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.stat-label svg {
  width: 17px;
  height: 17px;
  color: var(--blue);
}
.stat strong {
  display: block;
  font-size: 29px;
  font-weight: 550;
  margin: 15px 0 7px;
  letter-spacing: -1px;
}
.stat small {
  font-size: 10px;
  color: var(--muted);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
  gap: 14px;
}
.section-head h2 {
  font-size: 16px;
  letter-spacing: -0.3px;
  margin: 0;
  font-weight: 650;
}
.section-head small {
  font-size: 11px;
  color: var(--muted);
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}
.panel-padding {
  padding: 24px;
}
.panel-toolbar {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.panel-toolbar h2 {
  font-size: 14px;
  margin: 0;
}
.search {
  max-width: 260px;
  font-size: 12px;
  padding: 9px 12px !important;
  background: var(--grey) !important;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  background: #fcfbfb;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 22px;
  font-weight: 600;
  white-space: nowrap;
}
td {
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
td strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
td small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.person {
  display: flex;
  gap: 11px;
  align-items: center;
}
.progress {
  height: 4px;
  background: #edeff2;
  border-radius: 2px;
  width: 90px;
  margin-top: 7px;
  overflow: hidden;
}
.progress span {
  display: block;
  background: var(--blue);
  height: 100%;
}
.empty {
  padding: 50px 24px;
  text-align: center;
}
.empty svg {
  color: var(--blue);
  width: 30px;
  height: 30px;
}
.empty h3 {
  font-size: 16px;
  font-weight: 600;
}
.empty p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 22px;
}
.grid-two {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
}
.note {
  border-left: 2px solid var(--red);
  padding-left: 14px;
  font-size: 12px;
  line-height: 1.7;
}
.note p {
  color: var(--muted);
  margin: 6px 0;
}
.topic-line {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.topic-line:last-child {
  border: 0;
}
.question-row {
  padding: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.question-row p {
  font-size: 13px;
  line-height: 1.7;
  margin: 7px 0;
  white-space: pre-wrap;
}
.question-row small {
  font-size: 10px;
  color: var(--muted);
}
.q-number {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}
.q-body {
  flex: 1;
  min-width: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.practice-card {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.practice-card h3 {
  font-size: 18px;
  margin: 19px 0 12px;
  letter-spacing: -0.4px;
}
.practice-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.practice-card footer {
  border-top: 1px solid var(--line);
  margin-top: 23px;
  padding-top: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.practice-card footer small {
  font-size: 10px;
  color: var(--muted);
}
.practice-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.q-top {
  padding: 18px 24px;
  background: #fcfbfb;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.question-content {
  padding: 32px;
  max-width: 900px;
}
.question-content .prompt {
  font-family: Georgia, serif;
  font-size: 19px;
  line-height: 1.85;
  white-space: pre-wrap;
  margin: 8px 0 28px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #e3dede;
  border-radius: 6px;
  padding: 14px;
  margin: 10px 0;
  cursor: pointer;
  font-size: 14px;
}
.choice:has(input:checked) {
  border-color: var(--blue);
  background: var(--softblue);
}
.choice input {
  accent-color: var(--blue);
  width: 16px;
}
.choice b {
  font-size: 11px;
  color: var(--muted);
}
.question-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.q-grid {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.q-grid button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 4px;
  color: var(--muted);
  font-size: 11px;
}
.q-grid button.answered {
  background: var(--softblue);
  color: var(--blue);
}
.q-grid button.current {
  border: 2px solid var(--blue);
}
.save-status {
  font-size: 11px;
  color: var(--muted);
}
.timer {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  font-size: 17px;
  color: var(--blue);
}
.attachment {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.pdf {
  height: 460px;
}
.result-answer {
  background: var(--softblue);
  padding: 16px;
  border-radius: 5px;
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.7;
}
.result-answer p {
  white-space: pre-wrap;
}
dialog {
  border: 0;
  border-radius: 10px;
  padding: 0;
  max-width: 670px;
  width: calc(100% - 32px);
  box-shadow: 0 20px 100px #0003;
  color: var(--ink);
}
dialog::backdrop {
  background: #26212b66;
  backdrop-filter: blur(3px);
}
.modal-head {
  padding: 25px 28px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-head h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
  margin: 0;
}
.modal-body {
  padding: 24px 28px;
}
.modal-foot {
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.field {
  margin-bottom: 18px;
}
.field label,
.field-label {
  font-size: 11px;
  font-weight: 650;
  display: block;
  margin-bottom: 8px;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  background: white;
  border: 1px solid #ddd7d7;
  border-radius: 5px;
  color: var(--ink);
  font-size: 13px;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
input[type="checkbox"],
input[type="radio"] {
  width: auto;
}
input[type="file"] {
  font-size: 11px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.help {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 7px 0 0;
}
.error {
  font-size: 12px;
  color: var(--red);
  line-height: 1.7;
}
.steps {
  display: flex;
  gap: 25px;
  margin-bottom: 24px;
  font-size: 11px;
  color: var(--muted);
}
.steps b {
  color: var(--red);
}
.check-list {
  border: 1px solid var(--line);
  border-radius: 6px;
  max-height: 235px;
  overflow: auto;
}
.check-list label {
  display: flex;
  gap: 12px;
  padding: 13px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
}
.check-list input {
  accent-color: var(--blue);
}
.summary {
  background: var(--softblue);
  color: var(--blue);
  padding: 16px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 20px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 13px 20px;
  border-radius: 6px;
  font-size: 12px;
  z-index: 10;
  display: none;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.login-story {
  background: var(--blue);
  color: white;
  padding: 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-story:after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border: 75px solid #ffffff07;
  border-radius: 50%;
  right: -250px;
  bottom: 80px;
  pointer-events: none;
}
.login-story .brand {
  padding: 0;
}
.login-story .brand small {
  color: #d9e4f2;
}
.login-story h1 {
  font-size: 51px;
  font-weight: 450;
  line-height: 1.12;
  letter-spacing: -2px;
  max-width: 410px;
  margin-bottom: 24px;
}
.login-story p {
  color: #d9e4f2;
  font-size: 14px;
  line-height: 1.9;
  max-width: 360px;
}
.login-story .eyebrow {
  color: #c9daef;
}
.login-story footer {
  font-size: 10px;
  color: #d9e4f2;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-box {
  width: 340px;
}
.login-box h2 {
  font-size: 28px;
  letter-spacing: -1px;
  margin: 0 0 12px;
}
.login-box > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 30px;
}
.login-box .btn {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
}
.login-box .caption {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  margin-top: 22px;
  line-height: 1.7;
}
.mobile-brand {
  display: none;
}
.text-muted {
  color: var(--muted);
}
.loading {
  padding: 60px;
  text-align: center;
  font-size: 13px;
}
.file-link {
  font-size: 12px;
  display: inline-block;
  margin-bottom: 12px;
}
.hidden {
  display: none !important;
}
@media (min-width: 1550px) {
  .content {
    padding-top: 48px;
  }
  .hero {
    padding: 40px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    padding: 25px 12px;
  }
  .shell {
    grid-template-columns: 210px 1fr;
  }
  .content {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 25px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 40px;
  }
  .login-story h1 {
    font-size: 40px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: relative;
    padding: 18px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    padding: 0;
  }
  .workspace,
  .support,
  .side-bottom .user,
  .nav-label {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    margin-top: 20px;
    gap: 5px;
  }
  .nav-item {
    padding: 10px;
    font-size: 11px;
    white-space: nowrap;
  }
  .nav-item svg {
    width: 15px;
    height: 15px;
  }
  .topbar {
    height: 55px;
    padding: 0 20px;
  }
  .top-right > span {
    display: none;
  }
  .content {
    padding: 26px 20px;
  }
  h1 {
    font-size: 25px;
  }
  .page-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat strong {
    font-size: 25px;
  }
  .hero {
    align-items: flex-start;
    padding: 24px;
    flex-direction: column;
  }
  .hero h2 {
    font-size: 21px;
  }
  .hero .big-num {
    display: none;
  }
  .panel-toolbar {
    flex-wrap: wrap;
    padding: 16px;
  }
  .panel-toolbar input {
    max-width: 100%;
  }
  th,
  td {
    padding: 14px 16px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-head {
    padding: 20px;
  }
  .modal-foot {
    padding: 16px 20px;
  }
  .login {
    display: block;
  }
  .login-story {
    min-height: 210px;
    padding: 28px;
  }
  .login-story h1 {
    font-size: 29px;
    max-width: 300px;
    margin: 28px 0 0;
  }
  .login-story .story-copy p,
  .login-story .story-copy .eyebrow,
  .login-story footer {
    display: none;
  }
  .login-form {
    padding: 38px 24px;
  }
  .login-box {
    max-width: 380px;
    width: 100%;
  }
  .question-content {
    padding: 22px;
  }
  .question-content .prompt {
    font-size: 17px;
  }
  .question-footer {
    gap: 10px;
    flex-wrap: wrap;
  }
  .question-footer .save-status {
    order: 3;
    width: 100%;
  }
  .section-head {
    align-items: flex-start;
  }
  .top-right .btn {
    font-size: 10px;
    padding: 7px 10px;
  }
}
progress.progress {
  display: block;
  border: 0;
  appearance: none;
}
progress::-webkit-progress-bar {
  background: #edeff2;
  border-radius: 2px;
}
progress::-webkit-progress-value {
  background: var(--blue);
  border-radius: 2px;
}
progress::-moz-progress-bar {
  background: var(--blue);
}

/* Staff student mode, tutor review queue and question review status. */
.student-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #fff4f6;
  border-bottom: 2px solid #D6083B;
  color: #2E2A2A;
  padding: 10px 32px;
  font-size: 14px;
}
.question-row .review-pick {
  align-self: center;
  width: 18px;
  height: 18px;
  flex: none;
}
.question-row .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.review-note {
  display: block;
  color: #D6083B;
  margin-top: 4px;
}

.module-list {
  margin: 8px 0 0;
  padding-left: 18px;
}
.module-list li {
  margin: 3px 0;
}

/* Admin student profile bar, bug reports and the staff attempt report. */
.profile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #eef3fa;
  border-bottom: 2px solid #3262A3;
  color: #2E2A2A;
  padding: 10px 32px;
  font-size: 14px;
}
.bug-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.bug-row:last-child {
  border-bottom: 0;
}
.bug-row.is-fixed {
  opacity: 0.7;
}
.bug-main {
  min-width: 0;
  flex: 1;
}
.bug-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
  font-size: 13px;
}
.bug-message {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bug-context {
  margin: 0;
  display: grid;
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
}
.bug-context div {
  display: flex;
  gap: 8px;
}
.bug-context dt {
  flex: none;
  width: 110px;
  font-weight: 650;
}
.bug-context dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.bug-actions {
  flex: none;
}
.report-module {
  margin-bottom: 24px;
}
.report-table th,
.report-table td {
  text-align: left;
  vertical-align: top;
}
.report-table td.ok {
  color: #1b7a3d;
  font-weight: 700;
}
.report-table td.bad {
  color: #c4102f;
  font-weight: 700;
}
.report-table .report-part th {
  background: #f5f5f5;
  font-weight: 650;
}
.report-essay {
  padding: 22px 24px;
  border-top: 1px solid var(--line);
}
.report-essay-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: baseline;
}
.report-essay h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.essay-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f5f5f5;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 10px 0 18px;
  max-height: 420px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.7;
}
.mark-form h4 {
  margin: 0 0 10px;
  font-size: 14px;
}
.mark-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.mark-grid label {
  display: block;
  font-size: 12px;
  font-weight: 650;
}
.mark-grid select {
  display: block;
  margin-top: 6px;
  width: 100%;
}
.mark-band {
  margin: 4px 0 0;
  font-size: 14px;
}
@media (max-width: 760px) {
  .bug-row {
    flex-direction: column;
  }
  .profile-bar {
    padding: 10px 16px;
  }
}

.bug-shot { display: block; margin-top: 12px; max-width: 420px; border: 1px solid var(--line, #e2e2e2); border-radius: 8px; overflow: hidden; }
.bug-shot img { display: block; width: 100%; height: auto; }

/* Results row actions and the off-screen PDF sheet. */
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .btn + .btn { margin-left: 6px; }
.btn.small { padding: 6px 12px; font-size: 13px; min-height: 0; }
.pdf-sheet { position: absolute; left: 0; top: 0; z-index: -1; width: 760px; padding: 24px; background: #fff; color: #2e2a2a; pointer-events: none; }
.pdf-sheet .pdf-head h1 { margin: 0 0 4px; font-size: 22px; }
.pdf-sheet .pdf-head p { margin: 0 0 16px; color: #666; font-size: 13px; }
.pdf-sheet .stats { grid-template-columns: repeat(3, 1fr); }
.pdf-sheet .panel { box-shadow: none; }
.pdf-sheet .table-wrap { overflow: visible; }
.mark-summary { margin-top: 10px; padding: 10px 12px; background: #f5f5f5; border-radius: 6px; font-size: 14px; }
.mark-summary p { margin: 6px 0; white-space: pre-wrap; }
.mark-summary small { display: block; color: #666; }

/* ---------- SAT Question Bank ---------- */
.qb-page {
  max-width: 880px;
}
.qb-step {
  margin: 0 0 32px;
}
.qb-step h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 14px;
}
.qb-step h2 span {
  color: var(--blue);
}
.qb-select select {
  max-width: 360px;
}
.qb-modes {
  display: grid;
  gap: 12px;
}
.qb-mode {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}
.qb-mode.is-on {
  border-color: var(--blue);
  background: var(--softblue);
}
.qb-mode input,
.qb-check input {
  accent-color: var(--blue);
  margin-top: 3px;
}
.qb-mode strong {
  display: block;
  font-size: 15px;
}
.qb-mode small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.qb-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
}
.qb-fieldset legend {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  padding: 0;
}
.qb-checks {
  display: grid;
  gap: 8px;
}
.qb-checks.qb-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.qb-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  cursor: pointer;
}
.qb-check small {
  margin-left: 8px;
  color: var(--muted);
}
.qb-check.is-disabled {
  color: var(--muted);
  cursor: default;
}
.qb-tree {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  margin-bottom: 20px;
}
.qb-domain {
  border-bottom: 1px solid var(--line);
}
.qb-domain:last-child {
  border-bottom: 0;
}
.qb-domain-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
}
.qb-expand {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 6px;
  width: 30px;
  height: 30px;
  font-size: 18px;
  cursor: pointer;
  color: var(--blue);
}
.qb-skills {
  display: grid;
  gap: 8px;
  padding: 2px 14px 14px 38px;
}
.qb-count {
  font-size: 14px;
  color: var(--blue);
  font-weight: 600;
}
.qb-count.is-short {
  color: var(--red);
}
.qb-note {
  color: var(--muted);
  font-size: 13px;
}
.qb-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}
.qb-table td small {
  display: block;
  color: var(--muted);
}
.qb-viewer {
  max-width: 900px;
}
.qb-viewer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-bottom: 14px;
}
.qb-viewer-title {
  font-weight: 600;
  font-size: 14px;
}
.qb-question {
  padding: 24px;
}
.qb-text,
.qb-explanation,
.qb-choice-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.6;
}
.qb-prompt {
  margin-bottom: 20px;
}
.qb-choices {
  display: grid;
  gap: 10px;
}
.qb-choice {
  display: flex;
  gap: 14px;
  align-items: center;
  text-align: left;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  color: var(--ink);
}
.qb-choice:hover {
  border-color: var(--blue);
}
.qb-letter {
  flex: none;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}
.qb-choice.is-chosen {
  border: 2px solid var(--blue);
}
.qb-choice.is-chosen .qb-letter {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.qb-choice.is-correct {
  border: 2px solid #1f7a3d;
  background: #eef8f1;
}
.qb-choice.is-wrong {
  border: 2px solid var(--red);
  background: var(--softred);
}
.qb-numeric input {
  max-width: 220px;
}
.qb-numeric input.is-correct {
  border-color: #1f7a3d;
}
.qb-numeric input.is-wrong {
  border-color: var(--red);
}
.qb-reveal {
  margin-top: 22px;
  padding: 16px;
  border-radius: 8px;
  background: var(--grey);
}
.qb-verdict {
  display: block;
  margin: 4px 0 10px;
  font-size: 14px;
}
.qb-verdict.ok {
  color: #1f7a3d;
}
.qb-verdict.bad {
  color: var(--red);
}
.qb-viewer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 16px;
}
.exam-inline-image,
.qb-text img,
.qb-choice-text img,
.qb-explanation img {
  /* Source figures are high resolution; keep them at a readable test size. */
  display: block;
  width: auto;
  max-width: min(100%, 440px);
  max-height: 340px;
  height: auto;
  margin: 12px auto;
}
.qb-choice-text img {
  margin: 4px 0;
  max-height: 220px;
}
.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
}
.switch-label input {
  accent-color: var(--blue);
}
@media (max-width: 640px) {
  .qb-question {
    padding: 16px;
  }
  .qb-viewer-nav .btn {
    flex: 1 1 100%;
  }
}
/* SAT report blocks. Plain divs and borders only, so html2canvas renders them for the PDF. */
.sat-id { display: flex; gap: 16px; align-items: center; padding: 18px 22px; margin-bottom: 18px; }
.sat-id h2 { margin: 0 0 2px; font-size: 20px; }
.sat-id p { margin: 2px 0 0; font-size: 13px; color: #555; }
.sat-crest { width: 56px; height: 56px; object-fit: contain; flex: none; }
.report-content .panel, .sat-id + .panel, .panel.keep { margin-bottom: 18px; }
.sat-scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px 22px 6px; }
.sat-scores > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: #f5f5f5; border-radius: 8px; }
.sat-scores small { color: #666; font-size: 12px; }
.sat-scores strong { font-size: 26px; color: #2e2a2a; }
.sat-scores strong.rw { color: #3262a3; }
.sat-scores strong.math { color: #d6083b; }
.sat-note { margin: 0; padding: 8px 22px 14px; font-size: 12px; color: #666; }
.sat-guide { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 0 22px 16px; }
.sat-guide small { font-size: 12px; color: #666; }
.sat-guide a.btn { text-decoration: none; }
.sat-guide .in-pdf, .pdf-sheet .sat-guide .on-screen { display: none; }
.pdf-sheet .sat-guide .in-pdf { display: inline; }
.sat-total-row td { font-weight: 700; border-top: 2px solid #2e2a2a; }
.sat-cats, .sat-skills { padding: 8px 22px 16px; }
.sat-cat, .sat-time { display: grid; grid-template-columns: 220px 1fr 130px; gap: 14px; align-items: center; padding: 7px 0; border-bottom: 1px solid #e9e6e6; font-size: 14px; }
.sat-cat:last-child, .sat-time:last-child { border-bottom: 0; }
.sat-cat span small, .sat-time span small, .sat-time b small { display: block; color: #666; font-weight: 400; font-size: 11px; }
.sat-cat b, .sat-time b { text-align: right; }
.sat-bar { display: flex; gap: 2px; height: 14px; }
.sat-bar i { flex: 1; min-width: 3px; background: #e4e4e4; border-radius: 2px; }
.sat-bar.rw i.on { background: #3262a3; }
.sat-bar.math i.on { background: #d6083b; }
.sat-gauge { position: relative; display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: #e4e4e4; }
.sat-gauge[hidden] { display: flex; visibility: hidden; }
.sat-gauge u { display: block; height: 100%; text-decoration: none; background: #dbe5f2; }
.sat-gauge u.slow { background: #f5d68a; }
.sat-gauge u.very { background: #f0a0b0; }
.sat-gauge em { position: absolute; top: 0; width: 3px; height: 100%; margin-left: -1px; background: #2e2a2a; }
.sat-skills { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
.sat-skill-group h3 { margin: 10px 0 4px; font-size: 14px; }
.sat-skill { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid #e9e6e6; font-size: 13px; }
.sat-legend { margin: 0 0 14px; font-size: 12px; color: #555; }
.t-slow { background: #fff3d1; color: #7a5200; }
.t-very-slow { background: #ffe0e6; color: #b3002d; font-weight: 700; }
.sat-table td.t-slow, .sat-table td.t-very-slow { text-align: left; }
.sat-legend .t-slow, .sat-legend .t-very-slow { padding: 1px 6px; border-radius: 4px; }
.pdf-sheet .sat-scores strong { font-size: 22px; }
@media (max-width: 720px) {
  .sat-scores, .sat-skills { grid-template-columns: 1fr; }
  .sat-cat, .sat-time { grid-template-columns: 1fr; gap: 4px; }
  .sat-cat b, .sat-time b { text-align: left; }
}
/* Question picker: page controls under the list. */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.check-list .help {
  margin: 12px;
}
