:root {
  color-scheme: light;
  --blue: #1759d4;
  --blue-dark: #15439c;
  --ink: #172944;
  --muted: #66758c;
  --line: #e4eaf2;
  --paper: #fff;
  --bg: #f4f7fc;
  --pale: #eef4ff;
  --green: #146849;
  --red: #ab3444;
  --radius: 18px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--blue);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #89b1fb;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: -0.7px;
  margin-bottom: 12px;
}
h2 {
  font-size: 20px;
  line-height: 1.45;
  margin-bottom: 12px;
}
h3 {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 8px;
}
p {
  margin-bottom: 16px;
}
small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--blue);
  display: block;
  margin-bottom: 14px;
}
.skip {
  position: fixed;
  top: -60px;
  z-index: 99;
  background: white;
  padding: 10px;
}
.skip {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  top: 0;
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  padding: 36px 24px 26px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 1px;
}
.brand small {
  display: block;
  font-weight: 400;
  letter-spacing: 1px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -3px;
  padding-right: 3px;
  box-shadow: 0 5px 12px #1759d422;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  margin: 46px 12px 14px;
}
#navigation {
  display: grid;
  gap: 7px;
}
#navigation a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border-radius: 11px;
  font-size: 14px;
  color: #55667e;
}
#navigation a.active {
  color: var(--blue);
  background: var(--pale);
  font-weight: 700;
}
#navigation a:hover {
  background: var(--bg);
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.sidebar-foot {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
  padding: 20px 8px 0;
}
.sidebar-foot p {
  font-size: 11px;
  margin: 14px 0 20px;
  line-height: 1.9;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #428468;
  border-radius: 50%;
  margin-right: 5px;
}
.workspace {
  margin-left: 230px;
}
.topbar {
  height: 80px;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  gap: 14px;
  font-size: 13px;
}
.top-tools {
  display: flex;
  align-items: center;
  gap: 20px;
}
.level-pill,
.badge {
  display: inline-block;
  border-radius: 7px;
  background: var(--pale);
  color: var(--blue-dark);
  font-size: 12px;
  padding: 4px 10px;
  white-space: nowrap;
}
.badge.soft {
  color: var(--muted);
  background: #f1f4f8;
}
.badge.green {
  background: #eaf6ef;
  color: var(--green);
}
.badge.red {
  background: #fff0f2;
  color: var(--red);
}
main#main {
  max-width: 1370px;
  padding: 34px 42px;
  margin: auto;
  min-height: calc(100vh - 140px);
}
.page-foot {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding: 12px 20px 28px;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
}
.page-head p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.page-head h1 {
  font-size: 27px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, #174caa, #2568db);
  color: white;
  border: 0;
  padding: 32px 34px;
  min-height: 225px;
}
.hero .eyebrow {
  color: #d6e6ff;
}
.hero h1 {
  font-size: 31px;
  max-width: 550px;
}
.hero p {
  color: #e0ebff;
  max-width: 460px;
  font-size: 13px;
}
.hero .primary {
  background: #fff;
  color: var(--blue-dark);
  border-color: #fff;
}
.hero-orbit {
  position: absolute;
  right: 25px;
  top: 20px;
  width: 190px;
  height: 190px;
  border: 1px solid #ffffff22;
  border-radius: 50%;
  pointer-events: none;
}
.hero-orbit:before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid #ffffff33;
  border-radius: 50%;
}
.hero-orbit:after {
  content: "研习";
  position: absolute;
  inset: 42px;
  display: grid;
  place-items: center;
  background: #ffffff12;
  border: 1px solid #ffffff40;
  border-radius: 28px;
  transform: rotate(-12deg);
  font-size: 25px;
  letter-spacing: 4px;
  box-shadow: 18px 18px 0 #ffffff08;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 22px;
  margin-top: 24px;
}
.stack {
  display: grid;
  gap: 20px;
  align-content: start;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 22px 0;
}
.stat {
  padding: 19px 23px;
}
.stat small {
  color: var(--muted);
}
.stat strong {
  font-size: 27px;
  display: block;
  line-height: 1.4;
  margin: 6px 0 2px;
  font-weight: 700;
}
.stat span {
  font-size: 11px;
  color: var(--muted);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: 17px;
  margin: 0;
}
.text-link {
  font-size: 12px;
  color: var(--blue);
  background: transparent;
  border: 0;
  padding: 5px 0;
}
.primary,
.secondary,
.quiet,
.danger {
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 10px 17px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.5;
  min-height: 41px;
}
.primary {
  background: var(--blue);
  color: white;
}
.primary:hover {
  background: var(--blue-dark);
  color: white;
}
.secondary {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}
.secondary:hover {
  border-color: #a4bceb;
  background: var(--pale);
}
.quiet {
  background: var(--pale);
  color: var(--blue-dark);
}
.danger {
  background: #fff0f2;
  color: var(--red);
  border-color: #efc4cd;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.actions.right {
  justify-content: flex-end;
}
.full {
  width: 100%;
}
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.chapter-tile {
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.chapter-tile:hover {
  border-color: #9ebaf0;
  transform: translateY(-2px);
}
.chapter-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 42px;
  background: #f0f5ff;
  color: #4877c8;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
}
.chapter-tile h3 {
  font-size: 13px;
  margin: 0 0 4px;
}
.chapter-tile small {
  color: var(--muted);
  font-size: 10px;
}
.chapter-tile .arrow {
  margin-left: auto;
  color: #a0aec3;
}
.mini-rule {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 16px;
}
.plan-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 15px 0;
  font-size: 13px;
}
.plan-step b {
  border: 1px solid #d9e5fb;
  background: var(--pale);
  color: var(--blue);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  flex-shrink: 0;
}
.plan-step p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.exam-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0;
}
.exam-summary div {
  background: var(--bg);
  padding: 17px;
  text-align: center;
  border-radius: 12px;
}
.exam-summary strong {
  display: block;
  font-size: 24px;
  color: var(--blue);
}
.exam-summary small {
  color: var(--muted);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 22px;
}
.filters label {
  flex: 1;
  min-width: 130px;
  max-width: 350px;
}
.filters label.search {
  min-width: 220px;
  max-width: none;
  flex: 2;
}
label {
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin-bottom: 7px;
}
input:not([type="checkbox"]),
select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #dce3ee;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  min-height: 44px;
  min-width: 0;
}
label select,
label input {
  margin-top: 7px;
  font-weight: 400;
}
input::placeholder {
  color: #8a95a7;
}
input[type="checkbox"] {
  accent-color: var(--blue);
  width: 17px;
  height: 17px;
}
.inline-label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-weight: 400;
}
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  padding: 5px;
  background: #eaf0f8;
  border-radius: 11px;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}
.tabs button {
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  color: var(--muted);
}
.tabs button.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 2px 5px #1729440b;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.knowledge h2 {
  font-size: 18px;
  margin: 15px 0 8px;
}
.knowledge .recall {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.8;
  margin: 12px 0;
}
.knowledge ul,
.explanation ul {
  padding-left: 21px;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.9;
}
.knowledge li {
  margin: 5px 0;
}
.note {
  font-size: 12px;
  background: #f4f7fc;
  border-left: 3px solid #a7c2f2;
  padding: 12px 14px;
  margin: 14px 0;
  line-height: 1.9;
  color: #4e617d;
}
.source {
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0;
}
.card-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 16px;
}
.card-foot button {
  font-size: 12px;
  padding: 7px 10px;
}
.recall-hidden {
  padding: 20px;
  border: 1px dashed #c8d7ed;
  border-radius: 10px;
  text-align: center;
  background: #f8faff;
}
.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  grid-column: 1/-1;
}
.empty .icon {
  width: 36px;
  height: 36px;
  color: #7895c4;
  margin-bottom: 12px;
}
.empty h2 {
  color: var(--ink);
  font-size: 18px;
}
.empty p {
  font-size: 13px;
}
.loading {
  padding: 70px;
  text-align: center;
  color: var(--muted);
}
.record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.record:last-child {
  border: 0;
}
.record small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.wide-form {
  max-width: 820px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 23px 0;
}
.form-grid label {
  margin: 0;
}
.tip {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.alert {
  padding: 14px 17px;
  background: #fff7e8;
  border: 1px solid #f0dbb7;
  border-radius: 10px;
  font-size: 13px;
  color: #77521b;
  margin-bottom: 18px;
}
.error-text {
  color: var(--red);
  font-size: 13px;
  min-height: 22px;
  line-height: 1.8;
}
.error-card {
  max-width: 660px;
  margin: 30px auto;
}
.question-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 22px;
  align-items: start;
}
.question-card {
  padding: 29px;
}
.question-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.question-card h2 {
  font-size: 19px;
  line-height: 1.9;
  font-weight: 600;
  margin-bottom: 24px;
}
.option {
  width: 100%;
  display: flex;
  text-align: left;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 17px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.8;
  transition: background 0.1s;
}
.option-letter {
  display: grid;
  place-items: center;
  border: 1px solid #dde4f0;
  background: #f8faff;
  border-radius: 7px;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: #6f8099;
  font-size: 12px;
}
.option.selected {
  border-color: #80a8f1;
  background: #eff5ff;
}
.option.selected .option-letter {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}
.option.correct {
  border-color: #88c7ac;
  background: #f0faf4;
}
.option.wrong {
  border-color: #e6acb6;
  background: #fff2f4;
}
.option:disabled {
  opacity: 1;
  cursor: default;
}
.answer-nav {
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.explanation {
  background: #f5f8fd;
  border: 1px solid #e2eaf6;
  border-radius: 12px;
  padding: 20px;
  margin-top: 22px;
  font-size: 13px;
  line-height: 1.9;
}
.explanation h3 {
  color: var(--blue-dark);
}
.question-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  max-height: 400px;
  overflow: auto;
  padding: 3px;
}
.question-grid button {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 7px;
  font-size: 11px;
}
.question-grid button.filled {
  background: #e9f1ff;
  color: var(--blue);
  border-color: #c1d4f5;
}
.question-grid button.right {
  background: #ebf7f0;
  color: var(--green);
  border-color: #a7d5be;
}
.question-grid button.wrong {
  background: #fff0f2;
  color: var(--red);
  border-color: #eabfc6;
}
.question-grid button.current {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.session-sidebar {
  position: sticky;
  top: 20px;
}
.session-sidebar h3 {
  font-size: 14px;
}
.save-state {
  font-size: 11px;
  color: var(--muted);
  margin: 15px 0;
  overflow-wrap: anywhere;
}
.timer {
  font-variant-numeric: tabular-nums;
  font-size: 24px;
  color: var(--blue);
  font-weight: 650;
}
.result-score {
  font-size: 52px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.4;
}
.result-score small {
  font-size: 16px;
  color: var(--muted);
}
progress {
  width: 100%;
  height: 7px;
  accent-color: var(--blue);
  display: block;
  border: 0;
  border-radius: 5px;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: #e8edf5;
}
progress::-webkit-progress-value {
  background: var(--blue);
}
.onboarding {
  max-width: 750px;
  margin: 40px auto;
}
.level-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.level-option {
  padding: 24px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  text-align: left;
  color: var(--ink);
}
.level-option:hover {
  border-color: var(--blue);
  background: var(--pale);
}
.level-option strong {
  font-size: 21px;
  display: block;
  margin: 9px 0;
}
.level-option small {
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 28px;
  left: calc(50% + 100px);
  transform: translateX(-50%);
  z-index: 80;
  background: #17335a;
  color: #fff;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 13px;
  max-width: 90vw;
  box-shadow: 0 7px 30px #1236;
  display: none;
}
#toast.show {
  display: block;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  max-width: 500px;
  width: calc(100vw - 32px);
  color: var(--ink);
  box-shadow: 0 20px 100px #13284930;
}
dialog::backdrop {
  background: #10213e66;
  backdrop-filter: blur(3px);
}
dialog p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}
dialog .actions {
  margin-top: 25px;
}
.login-page {
  background: white;
}
.login-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}
.login-story {
  background: linear-gradient(145deg, #f0f6ff, #e6f0ff);
  padding: 55px 10%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 650px;
  position: relative;
  overflow: hidden;
}
.login-story:after {
  content: "";
  position: absolute;
  bottom: -180px;
  right: -170px;
  width: 500px;
  height: 500px;
  border: 70px solid #1759d407;
  border-radius: 50%;
  pointer-events: none;
}
.login-story h1 {
  font-size: 40px;
  line-height: 1.5;
  margin: 20px 0;
}
.login-story p {
  color: #617794;
  font-size: 15px;
  line-height: 2;
}
.login-story small {
  color: #7184a0;
}
.login-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}
.login-features span {
  font-size: 11px;
  background: #ffffffa0;
  color: #38609b;
  border: 1px solid #dbe7fb;
  padding: 7px 12px;
  border-radius: 7px;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-card {
  width: 100%;
  max-width: 380px;
}
.login-card h2 {
  font-size: 27px;
}
.login-card .muted {
  font-size: 13px;
  margin-bottom: 32px;
}
.login-card label {
  margin: 18px 0 8px;
}
.login-card input {
  padding: 13px;
  min-height: 48px;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 65px;
}
.password-field button {
  position: absolute;
  right: 9px;
  top: 7px;
  min-height: 34px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12px;
}
.login-submit {
  width: 100%;
  justify-content: space-between;
  min-height: 48px;
}
.login-note {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 22px;
}
.captcha-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.captcha-row img {
  max-width: 110px;
}
.captcha-row button {
  border: 0;
  background: none;
  white-space: nowrap;
  font-size: 11px;
}
.login-card .error-text {
  margin-top: 13px;
}
details summary {
  cursor: pointer;
  color: var(--blue);
  font-size: 12px;
}
details ul {
  color: var(--muted);
}
.session-link {
  overflow-wrap: anywhere;
}
.mobile-only {
  display: none;
}
@media (min-width: 1450px) {
  .hero-orbit {
    right: 65px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 205px;
    padding-inline: 18px;
  }
  .workspace {
    margin-left: 205px;
  }
  main#main {
    padding: 28px;
  }
  .topbar {
    padding-inline: 28px;
  }
  .home-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .hero-orbit {
    opacity: 0.5;
    right: -30px;
  }
  .stat {
    padding: 16px;
  }
  .question-layout {
    grid-template-columns: minmax(0, 1fr) 210px;
  }
  .session-sidebar {
    padding: 18px;
  }
}
@media (max-width: 950px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
  .home-grid > .stack {
    grid-template-columns: 1fr 1fr;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .question-layout {
    grid-template-columns: 1fr;
  }
  .session-sidebar {
    position: static;
  }
  .question-grid {
    grid-template-columns: repeat(10, 1fr);
    max-height: 180px;
  }
  .hero h1 {
    font-size: 27px;
  }
  .hero-orbit {
    display: none;
  }
  .chapter-grid {
    grid-template-columns: 1fr 1fr;
  }
  .login-story {
    padding: 40px 9%;
  }
  .login-story h1 {
    font-size: 31px;
  }
}
@media (max-width: 700px) {
  :root {
    font-size: 14px;
  }
  .sidebar {
    position: fixed;
    inset: auto 0 0;
    width: auto;
    height: 70px;
    height: calc(70px + env(safe-area-inset-bottom));
    padding: 5px 7px env(safe-area-inset-bottom);
    border: 0;
    border-top: 1px solid var(--line);
    background: #fffffff5;
    backdrop-filter: blur(15px);
  }
  .sidebar > .brand,
  .sidebar > .nav-label,
  .sidebar-foot {
    display: none;
  }
  #navigation {
    display: flex;
    justify-content: space-around;
    gap: 2px;
  }
  #navigation a {
    flex: 1;
    flex-direction: column;
    gap: 3px;
    font-size: 10px;
    padding: 7px 3px;
    border-radius: 8px;
  }
  #navigation a[data-route="stats"] {
    display: none;
  }
  #navigation .icon {
    width: 21px;
    height: 21px;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 61px;
    padding: 0 20px;
    font-size: 12px;
  }
  .top-tools {
    gap: 10px;
  }
  #network-status {
    font-size: 10px;
  }
  .level-pill {
    font-size: 10px;
    padding: 3px 7px;
  }
  main#main {
    padding: 23px 18px;
    min-height: calc(100vh - 160px);
  }
  .page-foot {
    padding: 5px 12px 100px;
    font-size: 10px;
  }
  .page-head {
    margin-bottom: 20px;
    gap: 10px;
  }
  .page-head h1 {
    font-size: 23px;
  }
  .page-head p {
    font-size: 12px;
  }
  .hero {
    padding: 25px;
    min-height: 220px;
    border-radius: 16px;
  }
  .hero h1 {
    font-size: 26px;
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1.4px;
  }
  .hero p {
    font-size: 12px;
  }
  .stats-row {
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
    margin: 16px 0;
  }
  .stat {
    padding: 16px 19px;
  }
  .stat strong {
    font-size: 25px;
  }
  .home-grid {
    gap: 17px;
    margin-top: 18px;
  }
  .home-grid > .stack {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 20px;
  }
  .chapter-grid {
    gap: 10px;
    grid-template-columns: 1fr;
  }
  .chapter-tile {
    padding: 14px;
  }
  .chapter-tile h3 {
    font-size: 14px;
  }
  .chapter-tile small {
    font-size: 11px;
  }
  .filters {
    gap: 10px;
  }
  .filters label {
    min-width: calc(50% - 10px);
    max-width: none;
  }
  .filters label.search {
    min-width: 100%;
  }
  .form-grid {
    gap: 14px;
  }
  .form-grid label {
    min-width: 0;
  }
  .level-options {
    gap: 10px;
    grid-template-columns: 1fr;
  }
  .level-option {
    padding: 17px;
  }
  .level-option strong {
    font-size: 18px;
    margin: 3px 0;
  }
  .onboarding {
    margin: 10px auto;
  }
  .question-card {
    padding: 20px;
  }
  .question-card h2 {
    font-size: 17px;
    margin-bottom: 20px;
  }
  .question-meta {
    margin-bottom: 17px;
    gap: 6px;
  }
  .question-meta .badge {
    font-size: 10px;
  }
  .option {
    padding: 13px 12px;
    gap: 11px;
    font-size: 13px;
  }
  .option-letter {
    width: 25px;
    height: 25px;
  }
  .question-grid {
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
  }
  .question-grid button {
    font-size: 10px;
    border-radius: 5px;
  }
  .answer-nav {
    gap: 7px;
  }
  .answer-nav button {
    padding: 10px 11px;
  }
  .session-head {
    flex-wrap: wrap;
  }
  .exam-summary div {
    padding: 13px 7px;
  }
  .exam-summary strong {
    font-size: 22px;
  }
  .exam-summary small {
    font-size: 10px;
  }
  .actions .primary,
  .actions .secondary {
    font-size: 12px;
  }
  #toast {
    left: 50%;
    bottom: 90px;
    min-width: 240px;
    text-align: center;
  }
  .login-layout {
    grid-template-columns: 1fr;
    min-height: 100vh;
  }
  .login-story {
    min-height: auto;
    padding: 28px 26px 23px;
  }
  .login-story .brand {
    font-size: 18px;
  }
  .login-story h1 {
    font-size: 25px;
    margin: 27px 0 0;
  }
  .login-story .eyebrow,
  .login-story p,
  .login-features,
  .login-story > small {
    display: none;
  }
  .login-story:after {
    width: 300px;
    height: 300px;
    right: -80px;
    bottom: -180px;
  }
  .login-panel {
    padding: 28px 26px 45px;
    align-items: start;
  }
  .login-card h2 {
    font-size: 24px;
  }
  .login-card > .eyebrow {
    display: none;
  }
  .login-card .muted {
    margin-bottom: 20px;
  }
  .login-card label {
    margin-top: 15px;
  }
  .mobile-only {
    display: block;
  }
  .record .secondary {
    padding: 7px 12px;
  }
  .source {
    font-size: 10px;
  }
  .question-layout {
    gap: 16px;
  }
  .topbar #breadcrumb {
    font-weight: 600;
  }
  .page-head > .secondary {
    padding: 8px 11px;
    font-size: 11px;
  }
  .cards-grid {
    gap: 14px;
  }
  .knowledge h2 {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
[hidden] {
  display: none !important;
}
