.topics details {
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: white;
}
.topics summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}
.topics summary::-webkit-details-marker {
  display: none;
}
.topics summary b {
  display: block;
  font-size: 18px;
}
.topics summary small {
  display: block;
  margin-top: 3px;
  font:
    12px "DM Mono",
    monospace;
  color: #4c6369;
}
.topic-toggle {
  background: var(--mint);
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.topics details[open] .topic-toggle {
  background: var(--coral);
  color: white;
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 16px 16px;
  border-top: 1px solid #b5c4c6;
}
.topic-grid .chip {
  margin: 0;
  white-space: normal;
  text-align: left;
}
@media (max-width: 700px) {
  .topics summary {
    padding: 12px;
  }
  .topics summary b {
    font-size: 16px;
  }
  .topics summary small {
    max-width: 185px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .topic-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .topic-toggle {
    font-size: 12px;
    padding: 6px 8px;
  }
}
.form-note {
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  color: #49636a;
}
.recovery-link {
  margin-top: 14px;
  color: var(--teal);
}
.reset-error {
  background: #ffe1e6;
  border-left: 4px solid var(--coral);
  padding: 10px;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}
.admin,
.admin-login {
  max-width: 1072px;
  margin: 0 auto;
  padding: 34px 24px 56px;
}
.admin {
  max-width: 1120px;
}
.admin-login {
  max-width: 520px;
  padding-top: 80px;
}
.admin-login form {
  display: grid;
  gap: 14px;
}
.admin-login label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}
.admin-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.maintenance-card {
  display: grid;
  gap: 10px;
  padding: 22px;
}
.maintenance-card h2,
.maintenance-card p {
  margin: 0;
}
.maintenance-card p:not(.eyebrow) {
  line-height: 1.5;
  color: #365b60;
}
.maintenance-card .button,
.maintenance-card .delete-button {
  justify-self: start;
}
.admin-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: end;
  gap: 10px 8px;
  padding: 12px;
  border: 1px solid rgb(24 52 59 / 12%);
  border-radius: 14px;
  background: linear-gradient(180deg, #f7fbfb 0%, #eff9f7 100%);
}
.admin-quick-actions .button.secondary {
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.05;
  white-space: nowrap;
}
.warning-card {
  background: #fff0c8;
}
.admin-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
  margin-bottom: 18px;
}
.admin-heading-copy {
  display: grid;
  gap: 6px;
  align-content: start;
}
.admin-heading-copy .eyebrow {
  margin-bottom: 4px;
}
.admin-heading h1 {
  font-size: 28px;
  line-height: 0.95;
  max-width: 220px;
}
.button.secondary {
  box-shadow: inset 0 0 0 1px rgb(24 52 59 / 10%);
}
.admin-counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.admin-counts .panel {
  padding: 18px;
}
.admin-counts p {
  margin: 0 0 4px;
  font-weight: 800;
}
.admin-counts strong {
  font-size: 36px;
}
.admin-table {
  margin-top: 30px;
}
.admin-table h2 {
  margin-bottom: 10px;
}
.admin-pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.pagination-summary {
  font-weight: 800;
  color: #365b60;
}
.pagination-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-browser .browser-note {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: #fff0c8;
  border-left: 4px solid var(--sun);
  font-weight: 800;
  line-height: 1.45;
}
.browser-controls {
  margin-bottom: 18px;
}
.browser-controls .panel {
  display: grid;
  gap: 12px;
}
.browser-controls form {
  display: grid;
  gap: 12px;
}
.browser-controls label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}
.browser-controls select {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  font: inherit;
}
.admin-browser .quiz {
  max-width: 920px;
  margin-top: 0;
}
.question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--mint);
  font-size: 13px;
  font-weight: 800;
}
.answer:disabled {
  opacity: 1;
  cursor: default;
}
.table-scroll {
  overflow-x: auto;
  border: 2px solid var(--ink);
  background: white;
}
.admin table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin th,
.admin td {
  padding: 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #d6e1e0;
}
.admin th {
  background: var(--mint);
  white-space: nowrap;
}
.admin td {
  min-width: 88px;
}
.admin td:nth-child(4) {
  max-width: 360px;
}
@media (max-width: 700px) {
  .admin-heading {
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }
  .admin-quick-actions {
    grid-template-columns: 1fr;
    justify-content: flex-start;
    max-width: none;
    width: 100%;
  }
  .admin-actions {
    grid-template-columns: 1fr;
  }
  .admin-counts {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-heading h1 {
    font-size: 26px;
    max-width: none;
  }
  .browser-controls {
    grid-template-columns: 1fr;
  }
}
.delete-button {
  border: 1px solid #a91f3d;
  background: white;
  color: #a91f3d;
  border-radius: 4px;
  padding: 6px 10px;
  font:
    800 13px Nunito,
    sans-serif;
  cursor: pointer;
}
.delete-button:hover {
  background: #ffe1e6;
}
.topic-history {
  max-width: 1072px;
  margin: 0 auto 18px;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--mint);
  border-block: 1px solid var(--ink);
}
.topic-history p {
  margin: 0;
}
.topic-history div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.topic-history .button {
  padding: 8px 12px;
  font-size: 14px;
}
.assessment-panel {
  max-width: 1072px;
  margin: 0 auto 24px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border: 2px solid var(--ink);
  background: #f0e6c4;
}
.assessment-panel h2,
.assessment-panel p {
  margin: 0;
}
.assessment-panel h2 {
  margin-bottom: 6px;
}
.assessment-panel p:not(.eyebrow) {
  max-width: 600px;
  line-height: 1.45;
}
@media (max-width: 700px) {
  .assessment-panel {
    margin-inline: 16px;
    padding: 18px;
    align-items: flex-start;
    flex-direction: column;
  }
}
.answer.correct {
  background: #d7f3ee;
  border-color: #087e8b;
}
.answer.incorrect {
  background: #ffe1e6;
  border-color: #ef476f;
}
.answer-mark {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}
.answer.correct .answer-mark {
  color: #087e8b;
}
.answer.incorrect .answer-mark {
  color: #c52e4d;
}
@media (max-width: 700px) {
  .topic-history {
    align-items: flex-start;
    flex-direction: column;
  }
}
.hero.hero {
  min-height: 330px;
  padding: 34px 56px;
  margin-bottom: 34px;
}
.number-art.number-art strong {
  font-size: 220px;
  top: 28px;
}
.number-art.number-art i,
.number-art.number-art small {
  font-size: 64px;
}
@media (max-width: 700px) {
  .hero.hero {
    min-height: 0;
    padding: 32px 28px;
    margin-bottom: 30px;
  }
}
dialog {
  width: min(460px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  padding: 22px 28px;
  overflow-x: hidden;
  overflow-y: auto;
}
dialog h2 {
  margin: 0 34px 16px 0;
}
dialog form {
  min-width: 0;
  gap: 11px;
}
dialog label {
  min-width: 0;
  gap: 4px;
}
dialog input,
dialog select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 8px 10px;
}
dialog select {
  font-size: 15px;
  white-space: normal;
}
.form-note {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.3;
}
@media (max-width: 520px) {
  dialog {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    padding: 20px;
  }
  dialog h2 {
    font-size: 26px;
    margin: 0 34px 16px 0;
  }
  dialog form {
    gap: 10px;
  }
  dialog .button {
    width: 100%;
  }
}
footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 52px max(24px, calc((100% - 1072px) / 2));
  background: var(--ink);
  color: white;
  margin-top: 52px;
}
footer h2 {
  font-size: 30px;
  margin: 0 0 10px;
}
footer > div > p:not(.eyebrow) {
  line-height: 1.5;
  max-width: 460px;
}
.footer-links a {
  color: var(--sun);
  font-weight: 800;
}
footer .eyebrow {
  color: var(--sun);
}
footer form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
footer label {
  display: grid;
  gap: 5px;
  font-weight: 800;
}
footer label:last-of-type {
  grid-column: 1/-1;
}
textarea {
  min-height: 94px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 10px;
  font: inherit;
  resize: vertical;
}
footer .button {
  justify-self: start;
}
@media (max-width: 700px) {
  footer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 24px;
  }
  footer form {
    grid-template-columns: 1fr;
  }
}
@import url("https://fonts.googleapis.com/css2?family=DM+Mono&family=Nunito:wght@500;700;800;900&display=swap");
:root {
  --ink: #18343b;
  --teal: #087e8b;
  --sun: #ffd166;
  --coral: #ef476f;
  --paper: #fffdf6;
  --mint: #d7f3ee;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Nunito, sans-serif;
  user-select: none;
}
input,
select {
  user-select: auto;
}
header,
main {
  max-width: 1120px;
  margin: auto;
}
header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--paper);
  border-bottom: 1px solid #d6e1e0;
}
.brand {
  font-size: 23px;
  font-weight: 900;
  color: var(--ink);
  text-decoration: none;
}
.brand span {
  color: var(--coral);
  font-size: 30px;
}
.brand-mark {
  width: 30px;
  height: 30px;
  margin-right: 8px;
  vertical-align: -6px;
}
nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
nav a,
.link {
  color: var(--ink);
  border: 0;
  background: none;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.hero {
  min-height: 400px;
  background: var(--teal);
  margin: 12px 24px 46px;
  padding: 48px 56px;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  color: white;
  border-radius: 8px;
}
.eyebrow {
  font:
    12px "DM Mono",
    monospace;
  letter-spacing: 1px;
  font-weight: bold;
  color: var(--coral);
  margin: 0 0 12px;
}
.hero .eyebrow {
  color: var(--sun);
}
h1 {
  font-size: 58px;
  line-height: 1;
  margin: 0;
  max-width: 520px;
}
h1 em {
  color: var(--sun);
  font-style: normal;
}
.lead {
  font-size: 19px;
  line-height: 1.5;
  max-width: 470px;
}
.button {
  border: 0;
  background: var(--sun);
  color: var(--ink);
  font:
    800 16px Nunito,
    sans-serif;
  padding: 13px 20px;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  border-radius: 5px;
}
.button b {
  font-size: 20px;
  margin-left: 8px;
}
.secondary {
  background: var(--mint);
}
.number-art {
  position: relative;
  width: 300px;
}
.number-art strong {
  font-size: 260px;
  line-height: 0.8;
  color: var(--sun);
  position: absolute;
  right: 10px;
  top: 36px;
}
.number-art i,
.number-art small {
  font-style: normal;
  font-size: 78px;
  font-weight: 900;
  position: absolute;
}
.number-art i:first-child {
  top: 0;
  left: 10px;
}
.number-art i:nth-child(3) {
  bottom: 12px;
  left: 0;
  color: var(--coral);
}
.number-art small {
  top: 56px;
  right: 0;
  color: var(--coral);
}
.workspace,
.levels,
.topics,
.quiz {
  max-width: 1072px;
  margin: 0 auto 24px;
  padding: 0 24px;
}
.header-subject-switcher {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 4px 8px 4px 11px;
  border: 1px solid #77aeb3;
  border-radius: 5px;
  background: var(--mint);
  font-weight: 800;
  font-size: 13px;
}
.subject-label {
  color: #365b60;
  font: 11px "DM Mono", monospace;
  text-transform: uppercase;
}
.subject-menu {
  position: relative;
}
.subject-menu-button {
  width: 118px;
  min-height: 30px;
  padding: 4px 9px;
  border: 0;
  border-radius: 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.subject-menu-button:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}
.subject-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translateY(-2px);
}
.subject-menu-button[aria-expanded="true"] .subject-chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}
.subject-menu-list {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 20;
  width: 205px;
  padding: 6px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: white;
  box-shadow: 0 10px 20px rgb(24 52 59 / 18%);
}
.subject-menu-list button {
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.subject-menu-list button:hover,
.subject-menu-list button:focus-visible {
  background: var(--mint);
  outline: 0;
}
.subject-menu-list button[aria-selected="true"] {
  background: #e9f8f5;
}
.subject-menu-list small {
  color: #49636a;
  font: 11px "DM Mono", monospace;
}
.subject-coming-soon {
  max-width: 760px;
  margin: 64px auto;
  padding: 48px 24px;
  text-align: center;
}
.subject-coming-soon h1 {
  max-width: none;
}
.subject-coming-soon p:not(.eyebrow) {
  max-width: 540px;
  margin: 18px auto 28px;
  font-size: 19px;
  line-height: 1.5;
}
.english-page {
  max-width: 1120px;
  margin: 36px auto 72px;
  padding: 0 24px;
  display: grid;
  gap: 22px;
}
.english-intro {
  text-align: center;
}
.english-page .panel {
  border: 1px solid rgb(24 52 59 / 14%);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
  box-shadow: 0 14px 30px rgb(24 52 59 / 7%);
}
.english-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 42px 30px;
  background:
    radial-gradient(circle at top right, rgb(255 215 102 / 35%), transparent 34%),
    linear-gradient(135deg, #e5f8f5 0%, #f8fdfe 100%);
}
.english-hero::after {
  content: '';
  position: absolute;
  inset: auto -70px -84px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgb(11 164 177 / 10%);
  filter: blur(2px);
}
.english-hero > * {
  position: relative;
  z-index: 1;
}
.english-hero h1 {
  max-width: 620px;
  margin-inline: auto;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}
.english-intro p:not(.eyebrow) {
  max-width: 720px;
  margin: 14px auto 0;
  font-size: 17px;
  line-height: 1.6;
}
.english-stats {
  margin-top: 22px;
}
.english-stats .meta-pill {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
}
.english-levels {
  padding: 22px 22px 24px;
}
.english-levels h2,
.english-summary h2,
.english-quiz .quiz-top {
  margin-bottom: 12px;
}
.english-levels .level-grid {
  gap: 12px;
}
.english-levels .level {
  min-height: 118px;
  background: white;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}
.english-levels .level:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 18px rgb(24 52 59 / 8%);
}
.english-levels .level.active {
  background: linear-gradient(180deg, #ffe487 0%, #ffd75f 100%);
  box-shadow: 0 14px 24px rgb(24 52 59 / 10%);
}
.english-summary {
  padding: 22px 24px;
}
.english-summary p:not(.eyebrow) {
  margin-bottom: 0;
}
.english-quiz {
  padding: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fdfefe 100%);
}
.english-quiz .question-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfc 100%);
  border-radius: 14px;
  box-shadow: 0 12px 22px rgb(24 52 59 / 6%);
}
.english-quiz .quiz-top {
  padding-inline: 2px;
}
.english-quiz .quiz-navigation {
  margin-top: 10px;
}
.english-quiz .feedback {
  background: #fff6d9;
}
.english-answer-key {
  padding: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
}
.english-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.english-notes h2 {
  margin-bottom: 10px;
}
.english-notes ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.55;
}
.english-quiz {
  max-width: none;
  display: grid;
  gap: 14px;
}
.english-question p {
  margin-bottom: 16px;
  line-height: 1.55;
}
.english-answer-key {
  padding: 20px;
}
.english-answer-key h2 {
  margin-bottom: 12px;
}
.english-answer-key table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 14px;
}
.english-answer-key th,
.english-answer-key td {
  padding: 10px 12px;
  border-top: 1px solid #c3d4d8;
  vertical-align: top;
}
.english-answer-key th {
  background: #f3f8f6;
  text-align: left;
}
@media (max-width: 700px) {
  .header-subject-switcher {
    gap: 4px;
    padding-left: 7px;
  }
  .subject-label {
    font-size: 0;
  }
  .subject-menu-button {
    width: 108px;
    font-size: 13px;
  }
  .english-page {
    margin-top: 28px;
    padding-inline: 16px;
  }
  .english-hero {
    padding: 28px 20px 24px;
  }
  .english-hero h1 {
    font-size: clamp(34px, 10vw, 46px);
  }
  .english-levels,
  .english-summary,
  .english-quiz,
  .english-answer-key {
    padding: 18px;
  }
}
.workspace {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: start;
}
.panel {
  background: var(--mint);
  padding: 20px;
  border-radius: 7px;
}
.policy-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.policy-page h1 {
  max-width: none;
  font-size: 48px;
}
.policy-page section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}
.policy-page h2 {
  margin: 0 0 10px;
  font-size: 25px;
}
.policy-page p {
  max-width: 720px;
  line-height: 1.6;
}
.policy-page a {
  color: var(--teal);
  font-weight: 800;
}
.policy-intro {
  color: #49636a;
  font-family: "DM Mono", monospace;
}
.panel h2,
.levels h2,
.topics h2 {
  margin: 0 0 8px;
}
.panel p {
  margin: 0 0 14px;
}
.controls {
  background: #f0e6c4;
  padding: 20px;
}
.controls form {
  display: flex;
  gap: 15px;
}
.controls label,
dialog label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}
select,
input {
  border: 2px solid var(--ink);
  background: white;
  border-radius: 4px;
  padding: 10px;
  font: inherit;
}
.level-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.level {
  border: 2px solid var(--ink);
  padding: 13px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
  min-height: 112px;
}
.level span {
  display: block;
  font-weight: 900;
  font-size: 24px;
}
.level small {
  display: block;
  margin-top: 7px;
}
.level.active {
  background: var(--sun);
}
.level.locked {
  opacity: 0.48;
  pointer-events: none;
}
.topics > div {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: thin;
}
.chip {
  flex: 0 0 auto;
  background: #e7eef0;
  border: 1px solid var(--ink);
  padding: 8px 11px;
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}
.chip.active {
  background: var(--coral);
  color: white;
}
.quiz {
  max-width: 760px;
}
.admin-browser .quiz {
  max-width: 920px;
}
.quiz-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.quiz-top span {
  font:
    12px "DM Mono",
    monospace;
}
.question-card {
  border: 2px solid var(--ink);
  padding: 30px;
  background: white;
  border-radius: 7px;
}
.question-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
.question-card h2 {
  font-size: 27px;
  margin: 4px 0 24px;
}
.answers {
  display: grid;
  gap: 9px;
}
.browser-edit {
  margin-top: 16px;
  padding: 20px;
}
.browser-edit-form {
  display: grid;
  gap: 14px;
}
.browser-edit-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}
.browser-edit-form input,
.browser-edit-form textarea,
.browser-edit-form select {
  width: 100%;
  min-width: 0;
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 10px 12px;
  font: inherit;
}
.browser-edit-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.report-button {
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: white;
  color: var(--coral);
  padding: 8px 13px;
  font:
    800 13px Nunito,
    sans-serif;
  cursor: pointer;
}
.report-button:hover,
.report-button:focus-visible {
  background: #ffe1e6;
  outline: 0;
}
.quiz-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}
.quiz-navigation .link:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.answer {
  position: relative;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 13px 52px 13px 13px;
  text-align: left;
  font:
    700 16px Nunito,
    sans-serif;
  cursor: pointer;
  border-radius: 5px;
}
.answer:hover {
  background: var(--mint);
}
.answer b {
  color: var(--teal);
  margin-right: 12px;
}
.feedback {
  margin-top: 12px;
  padding: 16px;
  background: #fff0c8;
  border-left: 5px solid var(--sun);
  border-radius: 4px;
  font-weight: 700;
}
.notice {
  margin: 0 auto 20px;
  max-width: 700px;
  padding: 12px;
  background: #fff0c8;
  border-radius: 5px;
}
dialog {
  border: 0;
  border-radius: 8px;
  padding: 30px;
  width: min(420px, 90vw);
  color: var(--ink);
}
dialog::backdrop {
  background: #18343baa;
}
dialog form {
  display: grid;
  gap: 15px;
}
.report-summary {
  margin: -4px 0 2px;
  color: #49636a;
  font-size: 14px;
  line-height: 1.45;
}
.close {
  float: right;
  border: 0;
  background: none;
  font-size: 24px;
  cursor: pointer;
}
.learning .hero {
  display: none;
}
.learning .workspace {
  margin-top: 20px;
}
.learning .workspace .panel:first-child {
  display: none;
}
.learning .workspace {
  display: block;
  max-width: 760px;
}
.learning .controls form {
  justify-content: center;
}
@media (max-width: 700px) {
  header {
    height: auto;
    min-height: 108px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand subject"
      "nav nav";
    gap: 8px 10px;
    padding: 10px 16px 9px;
  }
  .brand {
    grid-area: brand;
    align-self: center;
    white-space: nowrap;
    font-size: 19px;
  }
  .header-subject-switcher {
    grid-area: subject;
    align-self: center;
  }
  .header-subject-switcher label {
    min-height: 34px;
  }
  nav {
    grid-area: nav;
    width: 100%;
    justify-content: flex-end;
    gap: 16px;
    white-space: nowrap;
    font-size: 13px;
  }
  .hero {
    padding: 35px 28px;
    min-height: 350px;
  }
  .hero h1 {
    font-size: 43px;
  }
  .number-art {
    display: none;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .level-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .controls form {
    flex-direction: column;
  }
  .learning .workspace {
    padding: 0 16px;
    margin-top: 10px;
  }
  .learning .controls {
    padding: 13px;
  }
  .learning .controls form {
    flex-direction: row;
    gap: 10px;
  }
  .learning .controls label {
    width: 50%;
    font-size: 13px;
  }
  .learning select {
    width: 100%;
    padding: 8px;
    font-size: 14px;
  }
  .topics,
  .quiz {
    padding: 0 16px;
    margin-bottom: 16px;
  }
  .english-quiz {
    padding: 18px;
  }
  .topics h2 {
    font-size: 23px;
  }
  .topics > div {
    padding-bottom: 7px;
  }
  .quiz-top {
    font-size: 13px;
  }
  .question-card {
    padding: 20px;
  }
  .question-card h2 {
    font-size: 25px;
    margin-bottom: 18px;
  }
  .browser-edit-options {
    grid-template-columns: 1fr;
  }
  .answer {
    padding: 11px;
  }
  .hero {
    margin: 0 0 35px;
  }
}
@media (max-width: 390px) {
  header {
    grid-template-columns: minmax(0, 1fr) 102px;
    padding-inline: 12px;
  }
  .brand {
    font-size: 17px;
  }
  .brand span {
    font-size: 24px;
  }
  .brand-mark {
    width: 24px;
    height: 24px;
    margin-right: 5px;
    vertical-align: -5px;
  }
  .header-subject-switcher {
    gap: 3px;
    padding: 3px 5px;
  }
  .header-subject-switcher .subject-label {
    display: none;
  }
  .subject-menu-button {
    width: 90px;
  }
  nav {
    justify-content: space-between;
    gap: 7px;
    font-size: 12px;
  }
}
