:root {
  --ink: #243b35;
  --muted: #707b77;
  --green: #255345;
  --mint: #e8eeea;
  --line: #e5e9e7;
  --paper: #fff;
  --canvas: #f5f6f8;
  --orange: #d28a4b;
  --red: #ac6955;
  --shadow: 0 9px 36px #263b3010;
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #bb9a60;
  outline-offset: 4px;
}
button {
  color: inherit;
}
a {
  color: var(--green);
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(25px, 3vw, 37px);
  font-weight: 650;
  letter-spacing: -1.1px;
  line-height: 1.5;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.4px;
  font-weight: 650;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
p {
  line-height: 1.8;
}
small {
  font-size: 12px;
}
svg {
  display: block;
}
button svg {
  pointer-events: none;
}
.shell {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 28px 13px 20px;
  position: fixed;
  inset: 0 auto 0 0;
  width: 104px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
  margin: 0 0 30px;
  padding: 0;
  background: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  background: var(--green);
  color: #fff6b6;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  line-height: 1;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nav button {
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 13px 4px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 500;
  color: #77827d;
  transition:
    background 0.18s,
    color 0.18s;
}
.nav button.active {
  background: #255345;
  color: white;
  box-shadow: 0 5px 12px #25534518;
}
.nav .icon {
  width: 21px;
  height: 21px;
}
.sidebar-bottom {
  margin-top: auto;
}
.main {
  grid-column: 2;
  padding: 0 32px 35px;
  max-width: 1610px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
}
.topbar {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
}
.avatar {
  width: 40px;
  height: 40px;
  background: #ebd5ec;
  border: 3px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: #694b70;
}
.sound-btn {
  border: 1px solid var(--line);
  background: white;
  border-radius: 30px;
  padding: 9px 14px;
  font-size: 12px;
  color: #4e645b;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #6f8976;
  margin-bottom: 12px;
}
.muted {
  color: var(--muted);
}
.sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 9px;
  line-height: 1.8;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  border-radius: 10px;
  padding: 11px 19px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.btn.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn.primary:hover {
  background: #275740;
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
  padding-left: 8px;
  padding-right: 8px;
  color: var(--muted);
}
.btn.warm {
  background: #f4e8d8;
  color: #915c30;
  border-color: #eddac4;
}
.btn.small {
  min-height: 33px;
  padding: 6px 11px;
  font-size: 12px;
}
.btn.danger {
  color: #a45447;
  background: #fff7f4;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 25px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 21px;
  gap: 12px;
}
.section-title h2 {
  font-size: 18px;
}
.pill {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  background: #eef2e9;
  color: #597453;
  border-radius: 25px;
  padding: 5px 10px;
  font-size: 11px;
  white-space: nowrap;
}
.pill.warm {
  background: #f8ecdf;
  color: #a77944;
}
.pill.gray {
  background: #f0f1ed;
  color: #858c82;
}
.note {
  background: #f5f5ed;
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 12px;
  color: #7b856e;
  line-height: 1.8;
  margin-top: 18px;
}
.page-head {
  margin: 0 0 24px;
  padding: 29px 34px;
  border-radius: 23px;
  background: var(--green);
  color: white;
}
.page-head h1 {
  font-size: 30px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.domain-card {
  padding: 23px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  scroll-margin: 24px;
}
.domain-card .sub {
  font-size: 12px;
  min-height: 42px;
}
.skill-list {
  list-style: none;
  padding: 0;
  margin: 17px 0 0;
  display: grid;
  gap: 8px;
}
.skill-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  padding: 12px 10px;
  border-radius: 9px;
  background: #f8f9f5;
  text-align: left;
  font-size: 12px;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd0c5;
  display: inline-block;
  flex: none;
}
.status-dot.learning {
  background: #89a9d1;
}
.status-dot.growing {
  background: #86ae84;
}
.status-dot.mastered {
  background: #3f885b;
}
.status-dot.review {
  background: #d9a05d;
}
.skill-state {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.knowledge-header {
  background: #e9eeeb;
  padding: 23px;
  border-radius: 18px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.knowledge-header strong {
  font-size: 23px;
}
.legend {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}
.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.filter {
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 25px;
  padding: 8px 15px;
  background: #fff;
}
.filter.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.question-list {
  display: grid;
  gap: 11px;
}
.question-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px 21px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.question-row .q-icon {
  font-size: 21px;
  color: #789277;
  width: 32px;
}
.question-row h3 {
  font-size: 14px;
  margin-bottom: 5px;
}
.question-row p {
  font-size: 12px;
  color: var(--muted);
}
.question-row .grow {
  flex: 1;
  min-width: 0;
}
.empty {
  text-align: center;
  padding: 62px 24px;
  background: #fff;
  border: 1px dashed #d8dfcf;
  border-radius: 17px;
}
.empty .empty-icon {
  font-size: 42px;
  color: #a7b996;
  margin-bottom: 17px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  max-width: 450px;
  margin: 12px auto 20px;
}
.exam-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.exam-card {
  padding: 30px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.exam-year {
  font-size: 62px;
  letter-spacing: -3px;
  color: #d5dfca;
  font-weight: 700;
  line-height: 1;
  margin: 20px 0 16px;
}
.exam-card:last-child .exam-year {
  color: #e9d7bd;
}
.exam-meta {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
  margin: 18px 0 22px;
}
.work-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 23px;
}
.paper-card {
  padding: 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  min-width: 0;
}
.paper-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.q-title {
  font-size: 19px;
}
.q-source {
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
}
.question-images {
  margin: 20px 0 25px;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}
.question-images img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}
.question-images .question-text {
  font-size: 16px;
  line-height: 2;
  white-space: pre-line;
  padding: 10px;
}
.question-images .option-text {
  font-size: 15px;
  padding: 7px 12px;
}
.choices {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.choice {
  background: #fafbf7;
  border: 1.5px solid #e0e5d9;
  min-height: 55px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
}
.choice:hover {
  background: #edf3e8;
}
.choice.selected {
  border-color: #d4b33b;
  background: #f8dd77;
  color: #4c4119;
  box-shadow: 0 0 0 2px #f8dd7730;
}
.choice.tried {
  color: #a69d91;
  background: #f1eee9;
}
.answer-input {
  font-size: 23px;
  width: 180px;
  border: 1.5px solid #d6decd;
  background: #fafbf7;
  border-radius: 11px;
  padding: 14px;
  outline-offset: 3px;
}
.answer-label {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}
.answer-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.feedback {
  border-radius: 12px;
  padding: 16px 19px;
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.8;
  background: #f8f0e4;
  color: #98734c;
}
.feedback.correct {
  background: #eaf4e7;
  color: #477044;
}
.feedback strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}
.solution {
  background: #f4f7ee;
  border: 1px solid #e3e9d9;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}
.solution h3 {
  margin-bottom: 12px;
}
.solution p {
  font-size: 14px;
  line-height: 2;
}
.solution .answer-chip {
  display: inline-block;
  background: #dcebcf;
  border-radius: 7px;
  padding: 4px 12px;
  font-size: 15px;
  margin-bottom: 13px;
}
.work-aside {
  align-self: start;
  position: sticky;
  top: 22px;
}
.work-aside .card {
  padding: 20px;
}
.timer {
  font-size: 33px;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  margin: 12px 0 7px;
}
.timer.urgent {
  color: var(--red);
}
.progress-track {
  height: 5px;
  background: #e9ede3;
  border-radius: 9px;
  overflow: hidden;
  margin: 14px 0;
}
.progress-fill {
  height: 100%;
  background: #77a076;
  border-radius: 9px;
  transition: width 0.4s;
}
.q-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-top: 15px;
}
.q-grid button {
  min-height: 32px;
  border: 1px solid #e4e7de;
  background: #f8f9f4;
  border-radius: 7px;
  font-size: 11px;
}
.q-grid button.answered {
  background: #deead8;
  color: #456c43;
}
.q-grid button.current {
  outline: 2px solid #6c9165;
  outline-offset: 1px;
}
.q-grid button.flagged:after {
  content: "•";
  color: #d6953f;
  display: inline;
  margin-left: 2px;
}
.confidence {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 11px;
  color: var(--muted);
}
.confidence button {
  background: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 11px;
}
.confidence button.selected {
  background: #e6ecdf;
  border-color: #a5b99a;
  color: var(--green);
}
.result-hero {
  text-align: center;
  background: #e7edde;
  border-radius: 18px;
  padding: 38px 25px;
  margin-bottom: 25px;
}
.result-hero .score {
  font-size: 62px;
  line-height: 1.3;
  letter-spacing: -2px;
  font-weight: 650;
  margin: 12px;
}
.result-hero .score small {
  font-size: 18px;
  color: #849277;
  letter-spacing: 0;
}
.result-hero .row {
  justify-content: center;
  margin-top: 20px;
}
.domain-bars {
  display: grid;
  gap: 15px;
}
.bar-row {
  display: grid;
  grid-template-columns: 115px 1fr 55px;
  align-items: center;
  gap: 15px;
  font-size: 12px;
}
.bar-row .progress-track {
  margin: 0;
  height: 8px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field {
  margin-top: 20px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
}
.field input:not([type="checkbox"]),
.field select {
  width: 100%;
  background: #fafbf7;
  border: 1px solid #dce3d4;
  border-radius: 9px;
  padding: 11px;
  color: var(--ink);
}
.field p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.check-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}
.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}
.check-row label {
  font-size: 13px;
}
.report-card {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 13px;
}
.report-score {
  font-size: 30px;
  background: #eff3e9;
  width: 75px;
  height: 75px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  flex: none;
}
.report-card h3 {
  margin-bottom: 6px;
}
.report-card p {
  font-size: 12px;
  color: var(--muted);
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  background: #294637;
  color: #fff;
  border-radius: 12px;
  padding: 13px 22px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: 0.25s;
  max-width: 90%;
  line-height: 1.6;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  border: 1px solid #e0e5d8;
  border-radius: 21px;
  box-shadow: 0 22px 70px #19372b35;
  max-width: 620px;
  width: calc(100% - 35px);
  padding: 30px;
  color: var(--ink);
}
dialog::backdrop {
  background: #21352966;
  backdrop-filter: blur(3px);
}
dialog h2 {
  margin-bottom: 12px;
}
dialog p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}
dialog .row {
  margin-top: 22px;
  justify-content: flex-end;
}
dialog img {
  width: 100%;
  height: auto;
}
dialog.image-viewer {
  max-width: 1100px;
}
dialog .skill-detail {
  padding: 17px;
  background: #f4f7ee;
  border-radius: 12px;
  margin: 17px 0;
}
#celebration {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  overflow: hidden;
}
.confetti {
  position: absolute;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  animation: confetti-fall 1000ms ease-out forwards;
}
.celebrate-badge {
  position: absolute;
  left: 50%;
  top: 28%;
  transform: translateX(-50%);
  background: #fff9e9;
  border: 1px solid #e5d9b8;
  color: #846737;
  box-shadow: var(--shadow);
  border-radius: 20px;
  padding: 18px 28px;
  font-size: 21px;
  font-weight: 600;
  animation: badge-in 1.5s both;
  white-space: nowrap;
}
@keyframes confetti-fall {
  0% {
    transform: translate(0, 0) rotate(0);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) rotate(var(--dr));
    opacity: 0;
  }
}
@keyframes badge-in {
  0% {
    opacity: 0;
    transform: translate(-50%, 20px) scale(0.9);
  }
  20%,
  70% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -15px) scale(1);
  }
}
.storage-warning {
  background: #fff0dc;
  color: #8a5c2e;
  padding: 12px 17px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 15px;
}
.loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}
.loading p {
  color: var(--muted);
}
.footer-note {
  text-align: center;
  color: #929a8d;
  font-size: 11px;
  margin-top: 35px;
}
.mobile-brand {
  display: none;
}
.bookmark {
  background: none;
  font-size: 19px;
  color: #a9b19e;
  border: 0;
}
.bookmark.on {
  color: #d59a44;
}
.catalog-count {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 17px;
}
.badge {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 8px 12px;
  background: #f5f0e2;
  border: 1px solid #eee4cb;
  color: #a38750;
  border-radius: 9px;
  font-size: 12px;
}
.badge.locked {
  filter: grayscale(1);
  opacity: 0.5;
}
.review-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 15px;
  line-height: 1.9;
}
.answer-button-row {
  margin-top: 20px;
}
.paper-card .source-note {
  font-size: 11px;
  color: #9a835f;
  background: #faf5eb;
  border-radius: 7px;
  padding: 8px 12px;
  margin: 12px 0;
}
.inline-link {
  color: var(--green);
  background: none;
  font-size: 12px;
  padding: 0;
}
.completed-task {
  color: #5b8256;
  font-size: 12px;
  margin-top: 17px;
}

/* Learning space: colorful overview, quiet reading surfaces. */
.ui-icon {
  width: 21px;
  height: 21px;
  flex: none;
}
.btn .ui-icon {
  width: 17px;
  height: 17px;
}
.brand-mark .ui-icon {
  width: 27px;
  height: 27px;
}
.brand-word {
  font-size: 8px;
  letter-spacing: 1.2px;
  line-height: 1.55;
  font-weight: 700;
}
.sidebar-level {
  display: block;
  text-align: center;
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 1px;
  color: #7a8680;
  margin-bottom: 22px;
}
.sidebar-level b {
  letter-spacing: 0;
  font-size: 12px;
  color: var(--green);
}
.sidebar-settings {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  background: none;
  color: var(--muted);
  border-radius: 12px;
  padding: 12px;
}
.sidebar-settings.active {
  background: var(--mint);
  color: var(--green);
}
.nav button:hover:not(.active),
.sidebar-settings:hover {
  background: #eef2ef;
  color: var(--green);
}
.welcome > span {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1.4px;
}
.welcome h2 {
  font-size: 22px;
  margin-top: 4px;
  font-weight: 600;
}
.welcome-spark {
  color: #b896ce;
  margin-left: 7px;
}
.level-chip {
  font-size: 10px;
  letter-spacing: 1px;
  color: #7c8581;
  padding-right: 10px;
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 282px;
  gap: 26px;
  align-items: start;
}
.dashboard-main {
  min-width: 0;
}
.hero {
  background: #255345;
  color: white;
  min-height: 283px;
  border-radius: 24px;
  padding: 31px 32px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
}
.hero:after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -180px;
  top: -180px;
  border: 1px solid #ffffff0a;
  border-radius: 50%;
  box-shadow:
    0 0 0 45px #ffffff03,
    0 0 0 90px #ffffff02;
  z-index: -1;
}
.hero-content {
  z-index: 2;
  position: relative;
  max-width: 70%;
}
.hero h1 {
  font-size: clamp(26px, 2.55vw, 39px);
  font-weight: 550;
  line-height: 1.4;
  letter-spacing: -0.8px;
}
.hero .eyebrow {
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #c8dfcf;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
}
.hero-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #eed778;
}
.hero .sub {
  color: #cadbd2;
  font-size: 13px;
  margin-top: 12px;
}
.hero .row {
  margin-top: 22px;
  gap: 12px;
}
.hero .btn.primary {
  background: #f9df83;
  border-color: #f9df83;
  color: #2b4235;
  border-radius: 10px;
  font-size: 12px;
}
.hero .btn.primary:hover {
  background: #ffe8a2;
}
.hero-meta {
  font-size: 10px;
  color: #c1d3c9;
}
.hero-art {
  position: absolute;
  width: 275px;
  height: 270px;
  right: -10px;
  top: 9px;
  pointer-events: none;
}
.art-plus {
  position: absolute;
  color: #e2d58a;
  font-size: 29px;
  font-weight: 200;
  top: 27px;
  left: 15px;
  transform: rotate(15deg);
}
.art-label {
  position: absolute;
  right: 30px;
  bottom: 20px;
  font-size: 7px;
  line-height: 1.65;
  letter-spacing: 2px;
  color: #bfd2c380;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 19px 0 29px;
}
.stat {
  border-radius: 17px;
  padding: 17px 18px;
  background: #f7db77;
  color: #4c431f;
  overflow: hidden;
}
.stat:nth-child(2) {
  background: #a9ccec;
  color: #244965;
}
.stat:nth-child(3) {
  background: #c7b4e7;
  color: #503d70;
}
.stat-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  gap: 6px;
  margin-bottom: 11px;
}
.stat-heading > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-heading .ui-icon {
  width: 15px;
  height: 15px;
}
.stat-heading > .ui-icon {
  opacity: 0.5;
}
.stat .value {
  font-size: 32px;
  line-height: 1.15;
  font-weight: 550;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.stat .unit {
  font-size: 12px;
  margin-left: 7px;
}
.stat .foot {
  font-size: 11px;
  margin-top: 9px;
}
.section-title h2 {
  font-size: 17px;
  font-weight: 600;
}
.courses .section-title {
  margin-bottom: 14px;
}
.courses .pill {
  background: #e4eadf;
  font-size: 10px;
  padding: 4px 9px;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.course-card {
  display: block;
  width: 100%;
  min-width: 0;
  text-align: left;
  border: 1px solid #e9ecea;
  background: white;
  border-radius: 19px;
  padding: 17px 18px 14px;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
  overflow: hidden;
}
.course-card:hover {
  transform: translateY(-4px);
  border-color: #b7c9bc;
  box-shadow: 0 10px 25px #284c3e0c;
}
.course-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.course-top .ui-icon {
  width: 16px;
  height: 16px;
  color: #829187;
  transform: rotate(-35deg);
}
.course-number {
  font-size: 8px;
  letter-spacing: 0.8px;
  color: #7d8a83;
}
.course-card h3 {
  font-size: 16px;
  font-weight: 600;
}
.course-card > p {
  font-size: 12px;
  color: #78837d;
  margin-top: 4px;
}
.course-art {
  height: 115px;
  display: grid;
  place-items: center;
  position: relative;
  margin: 2px -10px 3px;
}
.course-art:before {
  content: "";
  width: 110px;
  height: 20px;
  background: radial-gradient(ellipse, #344c3a15, transparent 70%);
  position: absolute;
  bottom: 5px;
}
.course-art .sculpture {
  transform: scale(0.77);
}
.course-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10px;
  color: #74827a;
}
.course-progress b {
  font-weight: 500;
  color: #425d4e;
}
.course-card .progress-track {
  height: 4px;
  margin: 9px 0 5px;
  background: #eaf0eb;
}
.course-caption {
  font-size: 10px;
  color: #89948e;
}
.next-step {
  margin-top: 21px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 19px 20px;
  background: #eaf0ec;
  border: 1px solid #e0e9e1;
  border-radius: 18px;
}
.next-step > div {
  flex: 1;
}
.next-icon {
  background: white;
  width: 42px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #578271;
  flex: none;
}
.tiny-label {
  font-size: 8px;
  color: #7b8981;
  letter-spacing: 1.3px;
}
.next-step h3 {
  margin: 4px 0;
  font-size: 14px;
}
.next-step p {
  font-size: 11px;
  color: var(--muted);
}
.footer-note {
  font-size: 9px;
  letter-spacing: 0.7px;
  margin-top: 24px;
}
.learning-rail {
  background: white;
  border: 1px solid #e9ecea;
  border-radius: 24px;
  padding: 23px 21px;
}
.learning-rail .section-title {
  margin-bottom: 19px;
}
.learning-rail h2 {
  font-size: 14px;
}
.learning-rail .section-title > .ui-icon {
  width: 17px;
  height: 17px;
  color: #7f8d85;
}
.calendar-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 27px;
  font-weight: 400;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.calendar-date strong {
  font-size: 36px;
  font-weight: 500;
}
.calendar-date > span {
  margin-left: auto;
  letter-spacing: 0;
  font-size: 10px;
  line-height: 1.7;
  color: #829086;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px 1px;
  text-align: center;
}
.calendar-weekday {
  padding: 6px 0 10px;
  font-size: 10px;
  color: #89938c;
}
.calendar-day {
  position: relative;
  font-size: 12px;
  width: 28px;
  height: 28px;
  justify-self: center;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #5e6d64;
}
.calendar-day.today {
  background: #f8df85;
  color: #584616;
  font-weight: 700;
}
.calendar-day.studied:after {
  content: "";
  width: 3px;
  height: 3px;
  position: absolute;
  bottom: 2px;
  background: #3f745c;
  border-radius: 50%;
}
.calendar-day.exam-day {
  outline: 1px solid #9169b0;
  outline-offset: -2px;
}
.calendar-key {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  font-size: 9px;
  color: #7e8a81;
}
.calendar-key span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.calendar-key i {
  width: 5px;
  height: 5px;
  background: #3f745c;
  border-radius: 50%;
}
.calendar-key .today-key {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: #f8df85;
}
.exam-countdown {
  margin: 27px 0;
  padding: 18px;
  border-radius: 18px;
  background: #edf1e8;
  color: #40593d;
}
.exam-countdown .spread {
  font-size: 11px;
}
.exam-countdown .ui-icon {
  color: #7c9564;
}
.exam-countdown strong {
  display: inline-block;
  font-size: 43px;
  line-height: 1.2;
  font-weight: 500;
  margin: 12px 9px 5px 0;
  letter-spacing: -2px;
}
.exam-countdown strong + span {
  font-size: 11px;
}
.exam-countdown p {
  font-size: 10px;
  color: #6b7e61;
}
.exam-countdown .btn {
  color: #46653b;
  margin-top: 9px;
  padding-left: 0;
  font-size: 10px;
}
.daily-card .section-title {
  margin-bottom: 6px;
}
.daily-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f2ef;
}
.daily-row > div {
  flex: 1;
}
.daily-row b {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.daily-row p {
  font-size: 10px;
  color: #829087;
  margin-top: 4px;
}
.daily-row strong {
  font-size: 20px;
  font-weight: 500;
}
.daily-row small {
  font-size: 8px;
  color: #7e8c83;
  font-weight: 400;
}
.daily-icon {
  width: 31px;
  height: 35px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
}
.daily-icon .ui-icon {
  width: 17px;
  height: 17px;
}
.yellow {
  background: #fcf1c4;
  color: #977820;
}
.lavender {
  background: #ece4f7;
  color: #8b6ca9;
}
.review-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0 0;
  background: none;
  color: #56705f;
  font-size: 10px;
  text-align: left;
  gap: 5px;
}
.review-link > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.review-link .ui-icon {
  width: 14px;
  height: 14px;
}
.rail-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 29px;
  padding: 17px 0 2px;
  border-top: 1px solid #eef1ed;
  color: #8c9790;
}
.rail-note > .ui-icon {
  color: #bfa3d5;
  width: 24px;
  height: 24px;
}
.rail-note p {
  font-size: 10px;
  line-height: 1.9;
}
.page-head .sub {
  color: #cbded2;
  max-width: 680px;
}
.page-head .eyebrow {
  color: #bfd5c5;
  font-size: 9px;
}
.page-head h1 {
  font-weight: 500;
}
.domain-scene {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  height: 110px;
  margin-bottom: 12px;
  background: #f7f8f7;
  border-radius: 14px;
  padding: 10px;
  overflow: hidden;
}
.domain-scene .sculpture {
  transform: scale(0.65);
  transform-origin: top left;
  flex: none;
  width: 115px;
}
.domain-scene .pill {
  font-size: 9px;
  background: white;
  padding: 5px 8px;
}
.domain-card:focus {
  outline: 2px solid #9db7a8;
  outline-offset: 4px;
}
.skill-button:hover {
  background: #f7eab7;
}
.lesson-header {
  background: #255345;
  color: white;
  position: relative;
  overflow: hidden;
  padding: 26px 33px;
  border-radius: 23px;
  margin-bottom: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lesson-header > div:first-child {
  position: relative;
  z-index: 1;
  max-width: calc(100% - 170px);
}
.lesson-header .eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #c4d9ca;
  margin-bottom: 8px;
}
.lesson-header h1 {
  font-size: 28px;
  font-weight: 500;
}
.lesson-header p {
  font-size: 12px;
  color: #c7dacf;
  margin-top: 7px;
}
.lesson-meta {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 15px;
  font-size: 10px;
  color: #d3e1d7;
  flex-wrap: wrap;
}
.lesson-meta > span:first-child {
  padding: 5px 9px;
  background: #ffffff16;
  border-radius: 6px;
}
.lesson-meta .btn.ghost {
  color: #f5e39a;
  padding: 0;
  min-height: 25px;
  margin-left: 6px;
  font-size: 10px;
}
.paper-card {
  border-radius: 22px;
}
.work-aside .card {
  border-radius: 20px;
}
.q-grid button.current {
  background: #f7dd7b;
  color: #504721;
  border-color: #e3c45e;
}
.filter.active {
  background: #f8df86;
  color: #594a1d;
  border-color: #edd17a;
}
/* Original CSS sculptures: a light, tactile connection to shapes and numbers. */
.sculpture {
  position: relative;
  width: 160px;
  height: 150px;
  flex: none;
  pointer-events: none;
}
.sculpture i {
  position: absolute;
  display: block;
}
.sculpture-ring i:first-child {
  width: 133px;
  height: 133px;
  left: 18px;
  top: 4px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    transparent 27%,
    #a72e72 29%,
    #dc65a6 38%,
    #f497cb 52%,
    #f9b5dc 62%,
    #c44e90 73%
  );
  mask: radial-gradient(circle, transparent 27%, #000 29%);
  transform: rotate(-25deg) scaleY(0.86);
  filter: drop-shadow(5px 9px 3px #66264825);
}
.sculpture-ring i:nth-child(2) {
  width: 30px;
  height: 30px;
  left: 0;
  top: 95px;
  border: 8px solid #cc598d;
  border-top-color: transparent;
  border-right-color: #f18dbc;
  border-radius: 50%;
  transform: rotate(-28deg);
  filter: drop-shadow(3px 3px 1px #8a315829);
}
.sculpture-steps {
  transform: rotate(-12deg);
}
.sculpture-steps i {
  width: 82px;
  height: 26px;
  left: 28px;
  border-radius: 10px;
  background: linear-gradient(160deg, #ffbd81, #eb8b48 45%, #d26a32 85%);
  box-shadow:
    4px 7px 0 #b75b29,
    6px 11px 9px #97542b20;
  transform: skewY(-8deg);
}
.sculpture-steps i:nth-child(1) {
  top: 93px;
  left: 47px;
}
.sculpture-steps i:nth-child(2) {
  top: 68px;
  left: 40px;
}
.sculpture-steps i:nth-child(3) {
  top: 43px;
  left: 33px;
}
.sculpture-steps i:nth-child(4) {
  top: 18px;
  left: 26px;
}
.sculpture-arch i:first-child {
  width: 112px;
  height: 117px;
  top: 13px;
  left: 20px;
  border: 27px solid #76c1a5;
  border-bottom-color: #5bb494;
  border-left-color: #90d6bc;
  border-top: 0;
  border-radius: 15px 15px 65px 65px;
  transform: rotate(28deg);
  box-shadow:
    inset -5px -3px 4px #356f6540,
    4px 6px 5px #21473622;
}
.sculpture-arch i:nth-child(2) {
  width: 42px;
  height: 42px;
  left: 11px;
  top: 16px;
  background: radial-gradient(circle at 30% 25%, #b6efd9, #78bd9f 62%, #4a947c);
  border-radius: 50%;
}
.sculpture-stack i {
  width: 90px;
  height: 41px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 40% 25%,
    #d5c3f2,
    #a894d2 60%,
    #8d78b9
  );
  box-shadow:
    2px 10px 0 #8771b5,
    4px 13px 5px #5147661a;
  transform: rotate(-24deg);
  left: 38px;
}
.sculpture-stack i:nth-child(1) {
  top: 90px;
}
.sculpture-stack i:nth-child(2) {
  top: 63px;
  left: 32px;
}
.sculpture-stack i:nth-child(3) {
  top: 36px;
  left: 26px;
}
.sculpture-stack i:nth-child(4) {
  top: 9px;
  left: 20px;
}
.sculpture-spark i:first-child {
  width: 115px;
  height: 125px;
  left: 20px;
  top: 9px;
  background: conic-gradient(
    from 15deg at 48% 46%,
    #c9edf1,
    #80bcc9 24%,
    #c7f0f3 26%,
    #5da8b8 50%,
    #a2dce5 52%,
    #ddf8fa 73%,
    #6daebd 76%,
    #c9edf1
  );
  clip-path: polygon(
    50% 0,
    65% 28%,
    94% 20%,
    83% 50%,
    100% 72%,
    68% 78%,
    50% 100%,
    35% 75%,
    5% 82%,
    15% 53%,
    0 28%,
    32% 25%
  );
  transform: rotate(-17deg);
  filter: drop-shadow(3px 6px 3px #2e677c35);
}
.sculpture-beads i {
  width: 53px;
  height: 53px;
  background: radial-gradient(circle at 30% 25%, #f9e0a2, #e7b657 55%, #c89337);
  border-radius: 50%;
  box-shadow: 3px 5px 7px #8f762528;
}
.sculpture-beads i:nth-child(1) {
  top: 71px;
  left: 33px;
}
.sculpture-beads i:nth-child(2) {
  top: 66px;
  left: 78px;
}
.sculpture-beads i:nth-child(3) {
  top: 25px;
  left: 28px;
}
.sculpture-beads i:nth-child(4) {
  top: 18px;
  left: 76px;
}
.hero-art .hero-ring {
  position: absolute;
  top: 0;
  right: 9px;
  transform: rotate(12deg) scale(1.17);
}
.hero-art .hero-ring i:nth-child(2) {
  display: none;
}
.hero-art .hero-arch {
  position: absolute;
  bottom: -5px;
  right: 15px;
  transform: rotate(-5deg) scale(0.95);
}
.hero-art .hero-spark {
  position: absolute;
  bottom: 1px;
  left: -15px;
  transform: scale(0.69) rotate(-10deg);
}
.lesson-sculpture {
  margin-right: 45px;
  transform: scale(1.15) rotate(12deg);
}

@media (min-width: 1450px) {
  .main {
    padding-left: 40px;
    padding-right: 40px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 104px;
    padding: 28px 13px;
  }
  .shell {
    grid-template-columns: 104px minmax(0, 1fr);
  }
  .main {
    padding: 0 25px 40px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .work-area {
    grid-template-columns: minmax(0, 1fr) 200px;
  }
}
@media (max-width: 800px) {
  .shell {
    display: block;
  }
  .sidebar {
    inset: auto 0 0;
    width: 100%;
    height: 70px;
    padding: 7px 8px;
    background: #ffffffed;
    backdrop-filter: blur(12px);
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .nav {
    flex-direction: row;
    justify-content: space-around;
    gap: 0;
  }
  .nav button {
    font-size: 10px;
    gap: 3px;
    flex-direction: column;
    padding: 6px 9px;
    min-width: 48px;
  }
  .nav .icon {
    font-size: 19px;
  }
  .main {
    padding: 0 20px 95px;
  }
  .topbar {
    min-height: 76px;
    margin-bottom: 0;
  }
  .mobile-brand {
    display: block;
    font-size: 14px;
    font-weight: 650;
  }
  .top-actions {
    gap: 8px;
  }
  .top-actions .name {
    display: none;
  }
  .card {
    padding: 22px;
  }
  .work-area {
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
  }
  .work-aside {
    position: static;
    width: 100%;
  }
  .work-aside .card {
    padding: 14px 18px;
  }
  .work-aside .timer {
    font-size: 25px;
    margin: 0;
  }
  .work-aside .q-grid {
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
  }
  .work-aside .q-grid button {
    min-height: 26px;
    font-size: 10px;
  }
  .work-aside .progress-track {
    margin: 10px 0;
  }
  .work-aside .aside-note {
    display: none;
  }
  .paper-card {
    padding: 19px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .page-head h1 {
    font-size: 27px;
  }
  .exam-card {
    padding: 24px;
  }
  .exam-grid {
    gap: 14px;
  }
  .exam-year {
    font-size: 47px;
  }
  .exam-meta {
    gap: 8px;
    font-size: 11px;
    flex-wrap: wrap;
  }
  .question-images {
    margin: 16px -7px;
  }
  .q-title {
    font-size: 17px;
  }
  .knowledge-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .bar-row {
    grid-template-columns: 95px 1fr 42px;
    gap: 9px;
  }
  .question-row {
    padding: 16px 13px;
    gap: 10px;
  }
  .choices {
    gap: 7px;
  }
  .choice {
    min-height: 47px;
  }
  .result-hero {
    padding: 26px 18px;
  }
  .btn {
    padding: 10px 14px;
  }
  .topbar .btn.small {
    padding: 6px 9px;
  }
  .sound-btn {
    font-size: 11px;
  }
}
@media (max-width: 480px) {
  .main {
    padding-left: 13px;
    padding-right: 13px;
  }
  .grid-3,
  .exam-grid {
    grid-template-columns: 1fr;
  }
  .domain-card {
    padding: 20px;
  }
  .nav button {
    min-width: 42px;
    padding: 6px 5px;
  }
  .question-row p {
    font-size: 10px;
  }
  .question-row .btn {
    padding: 7px 10px;
    min-height: 34px;
    font-size: 11px;
  }
  .question-images .question-text {
    font-size: 14px;
  }
  .question-images .option-text {
    font-size: 13px;
  }
  .paper-head .pill {
    font-size: 10px;
  }
  .confidence {
    gap: 5px;
  }
  .confidence button {
    padding: 5px 8px;
  }
  .work-aside .q-grid {
    grid-template-columns: repeat(10, 1fr);
  }
  .q-grid button {
    padding: 0;
  }
  .report-card {
    gap: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .answer-actions,
  .work-aside {
    display: none;
  }
  .shell {
    display: block;
  }
  .main {
    padding: 0;
  }
  .paper-card {
    border: 0;
  }
}

.skill-list {
  border-left: 1px dashed #d4ddcb;
  padding-left: 12px;
}
.skill-list li {
  position: relative;
}
.skill-list li:before {
  content: "";
  position: absolute;
  width: 12px;
  left: -13px;
  top: 50%;
  border-top: 1px dashed #d4ddcb;
}

dialog.image-viewer {
  max-height: 90vh;
  overflow: auto;
}
dialog.image-viewer > img {
  width: auto;
  min-width: 100%;
  max-width: none;
}
dialog.image-viewer > .row {
  position: sticky;
  bottom: -30px;
  background: white;
  padding: 12px 0;
}

@media (max-width: 1250px) and (min-width: 801px) {
  .dashboard {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 20px;
  }
  .learning-rail {
    padding: 21px 15px;
  }
  .hero {
    padding: 27px;
  }
  .hero-art {
    right: -50px;
    transform: scale(0.88);
    transform-origin: right center;
  }
  .hero-content {
    max-width: 78%;
  }
  .hero-meta {
    display: none;
  }
  .course-card {
    padding: 15px 13px;
  }
  .course-card > p {
    font-size: 11px;
  }
  .stat {
    padding: 16px 12px;
  }
  .stat-heading {
    font-size: 10px;
  }
  .stat-heading > .ui-icon {
    display: none;
  }
  .level-chip {
    display: none;
  }
}
@media (max-width: 1050px) and (min-width: 801px) {
  .dashboard {
    grid-template-columns: minmax(0, 1fr);
  }
  .learning-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 23px;
  }
  .calendar-card {
    grid-row: span 2;
  }
  .exam-countdown {
    margin: 0;
  }
  .rail-note {
    display: none;
  }
  .hero-art {
    right: 10px;
    transform: none;
  }
  .hero-content {
    max-width: 68%;
  }
  .hero h1 {
    font-size: 34px;
  }
}
@media (max-width: 800px) {
  .welcome,
  .level-chip {
    display: none;
  }
  .sidebar .brand {
    display: none;
  }
  .sidebar .sidebar-bottom {
    display: none;
  }
  .nav .ui-icon {
    width: 19px;
    height: 19px;
  }
  .dashboard {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .hero {
    min-height: 270px;
    padding: 28px;
  }
  .hero-content {
    max-width: 75%;
  }
  .hero h1 {
    font-size: 33px;
  }
  .hero-art {
    right: -10px;
    top: 8px;
    transform: scale(0.84);
    transform-origin: right center;
  }
  .hero-meta {
    display: none;
  }
  .stats {
    gap: 10px;
    margin: 15px 0 24px;
  }
  .stat {
    padding: 16px 13px;
  }
  .stat-heading {
    font-size: 10px;
  }
  .stat-heading > .ui-icon {
    display: none;
  }
  .stat .value {
    font-size: 29px;
  }
  .stat .foot {
    font-size: 10px;
  }
  .course-grid {
    gap: 12px;
  }
  .course-card {
    padding: 15px;
  }
  .learning-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding: 22px;
  }
  .calendar-card {
    grid-row: span 2;
  }
  .exam-countdown {
    margin: 0;
  }
  .rail-note {
    display: none;
  }
  .page-head {
    padding: 25px;
  }
  .page-head h1 {
    font-size: 25px;
  }
  .lesson-header {
    padding: 24px;
    margin-bottom: 16px;
  }
  .lesson-header > div:first-child {
    max-width: calc(100% - 80px);
  }
  .lesson-header h1 {
    font-size: 24px;
  }
  .lesson-header .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .lesson-sculpture {
    position: absolute;
    right: -60px;
    top: 15px;
    transform: scale(0.7);
    margin: 0;
  }
  .lesson-meta {
    gap: 10px;
  }
}
@media (max-width: 580px) {
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    min-height: 278px;
    padding: 26px 23px;
  }
  .hero h1 {
    font-size: 29px;
  }
  .hero-content {
    max-width: 90%;
  }
  .hero .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .hero .sub {
    font-size: 11px;
  }
  .hero-art {
    right: -12px;
    top: 14px;
    transform: scale(0.6);
    transform-origin: right top;
    opacity: 0.85;
  }
  .hero-art .hero-arch {
    bottom: -115px;
    right: 16px;
  }
  .hero-art .hero-spark,
  .art-label,
  .art-plus {
    display: none;
  }
  .hero .row {
    margin-top: 22px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    border-radius: 13px;
    padding: 13px 10px;
  }
  .stat-heading {
    font-size: 10px;
    margin-bottom: 10px;
  }
  .stat-heading > span {
    gap: 3px;
  }
  .stat-heading .ui-icon {
    display: none;
  }
  .stat .value {
    font-size: 28px;
  }
  .stat .unit {
    font-size: 10px;
    margin-left: 3px;
  }
  .stat .foot {
    font-size: 10px;
    line-height: 1.6;
  }
  .courses .section-title .row {
    gap: 7px;
  }
  .courses .section-title h2 {
    font-size: 16px;
  }
  .courses .pill {
    font-size: 8px;
    padding: 3px 5px;
  }
  .courses .btn.small {
    font-size: 10px;
    padding: 5px 0;
  }
  .course-card {
    padding: 14px;
    border-radius: 16px;
  }
  .course-card h3 {
    font-size: 15px;
  }
  .course-card > p {
    font-size: 11px;
    line-height: 1.7;
    min-height: 38px;
  }
  .course-art {
    height: 105px;
  }
  .course-art .sculpture {
    transform: scale(0.7);
  }
  .course-progress {
    font-size: 10px;
  }
  .next-step {
    padding: 17px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .next-step .btn {
    margin-left: 54px;
  }
  .next-icon {
    width: 42px;
  }
  .learning-rail {
    display: block;
    padding: 23px;
  }
  .calendar-date {
    justify-content: flex-start;
  }
  .calendar-grid {
    gap: 8px 4px;
  }
  .calendar-day {
    width: 32px;
    height: 32px;
  }
  .exam-countdown {
    margin: 24px 0;
  }
  .rail-note {
    display: flex;
  }
  .daily-row b {
    font-size: 12px;
  }
  .daily-row p {
    font-size: 10px;
  }
  .lesson-header > div:first-child {
    max-width: 100%;
  }
  .lesson-header h1 {
    max-width: 85%;
    font-size: 22px;
  }
  .lesson-header p {
    font-size: 11px;
    max-width: 90%;
  }
  .lesson-sculpture {
    right: -90px;
    top: -10px;
    transform: scale(0.45);
  }
  .lesson-meta {
    gap: 7px;
  }
  .lesson-meta .btn.ghost {
    margin-left: 0;
  }
  .page-head h1 {
    font-size: 23px;
  }
  .page-head .sub {
    font-size: 12px;
  }
  .footer-note {
    font-size: 8px;
  }
}

/* Difficulty and completion are separate: stars describe the question, badges describe progress. */
.star-rating {
  display: inline-flex;
  align-items: center;
  color: #95630e;
  font-size: 17px;
  letter-spacing: 2px;
  white-space: nowrap;
  line-height: 1.4;
}
.empty-stars {
  color: #aaa596;
}
.question-row-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.question-row-heading h3 {
  margin: 0;
}
.question-row-heading .star-rating {
  font-size: 14px;
}
.question-row-progress,
.question-metadata {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.question-row-progress {
  margin-top: 9px;
}
.question-row-progress > span:first-child {
  font-size: 10px;
  color: var(--muted);
}
.question-metadata {
  margin: -2px 0 15px;
}
.question-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  font-size: 11px;
  line-height: 1.5;
  border-radius: 7px;
  padding: 4px 8px;
  color: #69756d;
  background: #f0f3f1;
}
.status-independent,
.status-consolidated {
  background: #e8f2e7;
  color: #356347;
}
.status-correct,
.status-submitted {
  background: #e9f1fa;
  color: #365f85;
}
.status-retry,
.status-review,
.status-guess {
  background: #fbf1d7;
  color: #85622d;
}
.status-pending {
  background: #f9e9e2;
  color: #8d533c;
}
.catalog-overview {
  background: white;
  border: 1px solid var(--line);
  padding: 25px;
  border-radius: 22px;
  margin-bottom: 25px;
}
.catalog-overview .section-title {
  margin-bottom: 18px;
}
.catalog-overview .sub {
  font-size: 12px;
}
.catalog-overview .sub strong {
  color: var(--green);
}
.star-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.star-progress-card {
  background: #faf4e3;
  border: 1.5px solid transparent;
  border-radius: 16px;
  padding: 18px 20px;
  text-align: left;
  min-width: 0;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.star-progress-card:nth-child(2) {
  background: #edf3fa;
}
.star-progress-card:nth-child(3) {
  background: #f2edf8;
}
.star-progress-card.selected {
  border-color: #537e67;
  box-shadow: 0 0 0 2px #537e6712;
}
.star-progress-card:hover {
  border-color: #90ad99;
}
.star-progress-card .spread {
  gap: 7px;
}
.star-progress-card .spread > span:last-child {
  font-size: 11px;
  color: #6f796f;
}
.star-progress-count {
  margin-top: 12px;
}
.star-progress-count strong {
  font-size: 31px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.star-progress-count > span {
  font-size: 12px;
  color: #6e7a70;
}
.star-progress-card .progress-track {
  height: 5px;
  margin: 13px 0 10px;
  background: #ffffffbf;
}
.star-progress-card p {
  font-size: 11px;
  color: #586e60;
  line-height: 1.6;
}
.catalog-help {
  font-size: 11px;
  color: var(--muted);
  margin-top: 16px;
}
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 19px;
  flex-wrap: wrap;
}
.catalog-tabs {
  display: flex;
  gap: 5px;
  background: #e9eeea;
  border-radius: 12px;
  padding: 4px;
}
.catalog-tabs button {
  background: none;
  border-radius: 9px;
  padding: 11px 18px;
  color: #65766a;
  font-size: 13px;
}
.catalog-tabs button.active {
  background: white;
  color: #315d43;
  box-shadow: 0 2px 6px #294d3510;
}
.catalog-filters {
  display: flex;
  align-items: end;
  gap: 13px;
  margin-bottom: 19px;
  flex-wrap: wrap;
}
.catalog-filters label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}
.catalog-filters select {
  min-width: 170px;
  max-width: 100%;
  border: 1px solid #dde4dd;
  border-radius: 10px;
  padding: 10px 30px 10px 12px;
  background: white;
  color: var(--ink);
  font-size: 12px;
}
.catalog-match {
  display: flex;
  align-items: center;
  min-height: 39px;
  font-size: 12px;
  color: #6e7c72;
  gap: 4px;
  margin-left: auto;
}
.catalog-match .star-rating {
  font-size: 14px;
}
.catalog-active {
  margin-bottom: 20px;
}
@media (max-width: 800px) {
  .catalog-overview {
    padding: 20px;
  }
  .star-progress-card {
    padding: 15px;
  }
  .star-progress-card .spread {
    flex-wrap: wrap;
  }
  .star-progress-card p {
    font-size: 10px;
  }
  .catalog-filters {
    gap: 11px;
  }
}
@media (max-width: 480px) {
  .catalog-overview {
    padding: 18px 13px;
  }
  .catalog-overview .section-title h2 {
    font-size: 16px;
  }
  .catalog-overview .sub {
    font-size: 11px;
  }
  .star-progress-grid {
    gap: 7px;
  }
  .star-progress-card {
    padding: 12px 9px;
    border-radius: 12px;
  }
  .star-progress-card .star-rating {
    font-size: 15px;
    letter-spacing: 1px;
  }
  .star-progress-card .spread > span:last-child {
    font-size: 10px;
  }
  .star-progress-count strong {
    font-size: 27px;
  }
  .star-progress-count > span {
    display: block;
    font-size: 10px;
  }
  .star-progress-card .progress-track {
    margin: 10px 0 8px;
  }
  .catalog-tabs {
    width: 100%;
  }
  .catalog-tabs button {
    flex: 1;
    font-size: 12px;
    padding: 10px;
  }
  .catalog-toolbar > .btn {
    margin-left: auto;
  }
  .catalog-filters label {
    flex: 1;
    min-width: 0;
  }
  .catalog-filters select {
    min-width: 0;
    width: 100%;
    padding-right: 20px;
    font-size: 11px;
  }
  .catalog-match {
    margin-left: 0;
  }
  .catalog-filters > .btn {
    margin-left: auto;
  }
  .question-row {
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .question-row .q-icon {
    width: 23px;
    padding-top: 3px;
  }
  .question-row .grow {
    flex-basis: calc(100% - 36px);
  }
  .question-row > .btn {
    margin-left: auto;
  }
  .question-row-heading {
    gap: 5px 10px;
  }
  .question-row-heading h3 {
    font-size: 14px;
  }
  .question-row p {
    font-size: 11px;
  }
  .question-status {
    font-size: 10px;
  }
}

/* Accounts use the same visual language; progress belongs to the server-side account. */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 24px;
  gap: 24px;
  max-width: 1600px;
  margin: auto;
}
.auth-story {
  background: #255345;
  border-radius: 28px;
  padding: 45px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 650px;
}
.auth-brand {
  font-size: 20px;
  letter-spacing: 1px;
}
.auth-brand span {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  margin: 7px 0 0 28px;
  color: #c5dacb;
}
.auth-story .eyebrow {
  color: #d2dfb4;
  font-size: 10px;
}
.auth-story h1 {
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 500;
  line-height: 1.5;
}
.auth-story p {
  color: #c5d9cf;
  font-size: 14px;
  margin-top: 22px;
}
.auth-story small {
  color: #b3cbbd;
  letter-spacing: 2px;
  font-size: 10px;
}
.auth-shapes {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 130px;
}
.auth-shapes span {
  font-size: 100px;
  line-height: 1;
  color: #c5b0e6;
  text-shadow: 4px 5px #7b679d;
  transform: rotate(-12deg);
}
.auth-shapes span:nth-child(2) {
  color: #f5d882;
  text-shadow: 4px 5px #b08d3d;
  font-size: 80px;
  transform: rotate(18deg);
}
.auth-shapes span:nth-child(3) {
  color: #d980b7;
  text-shadow: 4px 5px #984975;
}
.auth-content {
  display: grid;
  place-items: center;
  padding: 35px;
}
.auth-form-wrap {
  width: 100%;
  max-width: 380px;
}
.auth-form-wrap h2 {
  font-size: 26px;
}
.auth-form-wrap form {
  margin-top: 28px;
}
.auth-form-wrap form > .btn {
  width: 100%;
  margin-top: 15px;
}
.auth-form-wrap input {
  width: 100%;
}
.auth-error {
  color: #aa5140;
  font-size: 12px;
  min-height: 20px;
  line-height: 1.7;
}
.auth-help {
  font-size: 12px;
  color: #7f8b83;
  margin-top: 24px;
  line-height: 1.9;
}
.auth-back {
  margin-top: 15px;
}
.account-settings {
  margin-bottom: 22px;
}
.account-settings > .row {
  margin-top: 18px;
}
.account-logout {
  background: none;
  font-size: 11px;
  color: #63766a;
  padding: 8px;
  border: 1px solid #dce5de;
  border-radius: 9px;
}
.admin-space {
  display: grid;
  gap: 22px;
}
.admin-create-fields {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
}
.admin-space textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  font-size: 14px;
  resize: vertical;
}
.admin-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}
.admin-space table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.admin-space th {
  font-weight: 500;
  color: var(--muted);
}
.admin-space td,
.admin-space th {
  border-bottom: 1px solid var(--line);
  padding: 14px 12px;
  white-space: nowrap;
}
.issued-accounts {
  background: #faf5e6;
}
.issued-accounts code {
  user-select: all;
  font-size: 12px;
}
.storage-warning .row {
  margin-top: 10px;
}
@media (max-width: 800px) {
  .auth-shell {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }
  .auth-story {
    min-height: 230px;
    padding: 25px;
  }
  .auth-story h1 {
    font-size: 25px;
    margin-top: 20px;
  }
  .auth-story p,
  .auth-story .eyebrow,
  .auth-story small {
    display: none;
  }
  .auth-shapes {
    position: absolute;
    right: 15px;
    bottom: 18px;
    gap: 6px;
  }
  .auth-shapes span {
    font-size: 65px;
  }
  .auth-shapes span:nth-child(2) {
    font-size: 40px;
  }
  .auth-content {
    padding: 20px 14px;
  }
  .auth-form-wrap h2 {
    font-size: 23px;
  }
  .admin-create-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .nav button {
    min-width: 0;
  }
  .nav {
    width: 100%;
  }
  .nav .icon {
    flex: none;
  }
  .top-actions {
    gap: 5px;
  }
  .account-logout {
    font-size: 10px;
    padding: 7px;
  }
}
.admin-space,
.admin-space > .card {
  min-width: 0;
}
.admin-table-wrap {
  max-width: 100%;
}

@media (max-width: 800px) {
  .topbar { position: relative; }
  .topbar #sync-status { display: block; position: absolute; right: 0; bottom: 2px; max-width: 100%; font-size: 9px; letter-spacing: 0; padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Keep practice history readable when a phone cannot fit a horizontal report row. */
@media (max-width: 600px) {
  [data-practice-report] {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }
  [data-practice-report] .report-score {
    width: 56px;
    height: auto;
    min-height: 64px;
    font-size: 30px;
  }
  [data-practice-report] > .btn {
    grid-column: 2;
    justify-self: start;
  }
}
