:root {
  --ink: #1f2925;
  --muted: #68736d;
  --canvas: #f5f3ec;
  --paper: #fffef9;
  --line: #deded5;
  --soft-line: #ebe9df;
  --nav: #17251f;
  --nav-panel: #20362d;
  --nav-active: #2a4338;
  --nav-muted: #9dac9f;
  --green: #2e7d5b;
  --green-dark: #205b43;
  --green-soft: #dfeee6;
  --lime: #d8ef72;
  --orange: #ee945d;
  --orange-soft: #fff0e4;
  --blue: #4976a8;
  --red: #b74e45;
  --shadow: 0 12px 32px rgba(40, 50, 43, 0.09);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --custom-brightness-overlay: #fff;
  --custom-brightness-opacity: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html::after {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  background: var(--custom-brightness-overlay);
  content: "";
  opacity: var(--custom-brightness-opacity);
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
}

button,
textarea,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(46, 125, 91, 0.27);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
}

.index-about {
  margin-left: 294px;
  padding: 54px max(32px, calc((100vw - 294px - 1210px) / 2));
  color: var(--paper);
  background: var(--nav);
}

.index-about h1 {
  margin: 3px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.05;
}

.index-about p:not(.section-kicker) {
  max-width: 680px;
  margin: 0 0 18px;
  color: #dce7e0;
}

.index-about a {
  color: var(--lime);
  font-weight: 800;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 294px;
  flex-direction: column;
  overflow-y: auto;
  background: var(--nav);
  color: white;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 27px 24px 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: white;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  color: var(--nav);
  background: var(--lime);
  border-radius: 10px;
}

.brand-mark svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.brand-mark img {
  display: block;
  width: 37px;
  height: 37px;
  border-radius: 10px;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.icon-button:hover {
  background: rgba(23, 37, 31, 0.06);
}

.icon-button svg,
.button svg,
.text-button svg,
.breadcrumb svg,
.streak svg,
.console-label svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.sidebar-close {
  display: none;
  color: white;
}

.sidebar-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.course-summary {
  margin: 0 16px 14px;
  padding: 20px;
  background: var(--nav-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.lesson-search {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 0 16px 14px;
  padding: 9px 10px;
  color: #809187;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.desktop-download-card {
  margin: 0 16px 14px;
  padding: 12px;
  color: #c8d3cc;
  background: var(--nav-panel);
  border: 1px solid rgba(216, 239, 114, 0.18);
  border-radius: 9px;
}

.desktop-download-heading {
  display: flex;
  gap: 9px;
  align-items: center;
}

.desktop-download-heading svg {
  width: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--lime);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.desktop-download-heading strong,
.desktop-download-heading span {
  display: block;
}

.desktop-download-heading strong {
  color: white;
  font-size: 11px;
}

.desktop-download-heading span {
  margin-top: 1px;
  color: #8fa097;
  font-size: 9px;
}

.desktop-download-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}

.desktop-download-actions a {
  padding: 6px 5px;
  color: var(--nav);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  background: var(--lime);
  border: 1px solid var(--lime);
  border-radius: 5px;
}

.desktop-download-actions a:last-child {
  color: #d8e1db;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.17);
}

.lesson-search:focus-within {
  color: var(--lime);
  border-color: rgba(216, 239, 114, 0.45);
}

.lesson-search svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.lesson-search input {
  min-width: 0;
  padding: 0;
  color: white;
  font-size: 11px;
  background: transparent;
  border: 0;
}

.lesson-search input::placeholder {
  color: #7f9187;
}

.lesson-search input:focus-visible {
  outline: 0;
}

.lesson-search kbd {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #8fa097;
  font-family: var(--mono);
  font-size: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 4px;
}

.micro-label,
.section-kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.course-summary .micro-label {
  color: var(--lime);
}

.course-summary h2 {
  margin: 5px 0 17px;
  font-size: 16px;
  line-height: 1.3;
}

.course-picker {
  display: grid;
  gap: 4px;
  margin-bottom: 15px;
}

.course-picker > span {
  color: #92a299;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-picker select {
  width: 100%;
  min-width: 0;
  padding: 7px 26px 7px 8px;
  color: white;
  font-size: 10px;
  background: var(--nav-panel);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  cursor: pointer;
}

.progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--nav-muted);
  font-size: 12px;
}

.progress-copy strong {
  color: white;
}

.progress-track {
  height: 5px;
  margin-top: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--lime);
  border-radius: inherit;
  transition: width 300ms ease;
}

.lesson-nav {
  display: grid;
  gap: 4px;
  padding: 0 12px;
}

.nav-module {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 12px 5px;
  color: #7f9187;
}

.nav-module span {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.nav-module strong {
  overflow: hidden;
  color: #b8c5bc;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lesson-search-empty {
  display: grid;
  gap: 3px;
  margin: 8px 4px;
  padding: 18px 14px;
  color: #93a49a;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.lesson-search-empty strong {
  color: white;
  font-size: 12px;
}

.lesson-search-empty span {
  font-size: 10px;
  line-height: 1.45;
}

.lesson-nav-button {
  display: grid;
  grid-template-columns: 34px 1fr 18px;
  gap: 11px;
  align-items: center;
  width: 100%;
  padding: 12px;
  color: var(--nav-muted);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.lesson-nav-button:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.lesson-nav-button.active {
  color: white;
  background: var(--nav-active);
}

.nav-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #c3cec5;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.lesson-nav-button.active .nav-number {
  color: var(--nav);
  background: var(--lime);
  border-color: var(--lime);
}

.lesson-nav-button.completed .nav-number {
  color: #c8efda;
  background: rgba(78, 173, 124, 0.2);
  border-color: rgba(78, 173, 124, 0.3);
}

.nav-copy strong,
.nav-copy small {
  display: block;
}

.nav-copy strong {
  color: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.nav-copy small {
  margin-top: 1px;
  color: #7f9187;
  font-size: 11px;
}

.nav-state {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.completed .nav-state {
  color: var(--nav);
  background: var(--lime);
  border-color: var(--lime);
}

.nav-state svg {
  width: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

.sidebar-note {
  display: flex;
  gap: 11px;
  margin: auto 24px 24px;
  padding-top: 26px;
  color: #b4c0b8;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.sidebar-note > svg {
  width: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--lime);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sidebar-note strong {
  color: white;
  font-size: 12px;
}

.sidebar-note p {
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.5;
}

.main-content {
  min-width: 0;
  margin-left: 294px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  background: rgba(245, 243, 236, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.topbar-left,
.topbar-actions,
.breadcrumb,
.streak {
  display: flex;
  align-items: center;
}

.menu-button {
  display: none;
  margin-right: 8px;
}

.breadcrumb {
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb strong {
  color: var(--ink);
  font-weight: 650;
}

.breadcrumb svg {
  width: 14px;
}

.topbar-actions {
  gap: 18px;
}

.leaderboard-link,
.app-maker-link,
.tutorials-link,
.forum-link,
.customization-link,
.helper-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  color: #59655f;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #d8d9d1;
  border-radius: 6px;
}

.leaderboard-link:hover,
.app-maker-link:hover,
.tutorials-link:hover,
.forum-link:hover,
.customization-link:hover,
.helper-link:hover {
  color: var(--green-dark);
  background: var(--paper);
}

.leaderboard-link svg,
.app-maker-link svg,
.tutorials-link svg,
.forum-link svg,
.customization-link svg,
.helper-link svg {
  width: 16px;
  fill: none;
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.streak {
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.streak svg {
  color: var(--orange);
  fill: #ffdcc6;
}

.streak strong {
  color: var(--ink);
}

.avatar-button {
  width: 34px;
  height: 34px;
  color: white;
  font-size: 11px;
  font-weight: 800;
  background: var(--green);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.account-wrap {
  position: relative;
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: 245px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 16px 38px rgba(32, 42, 36, 0.16);
}

.account-menu[hidden] {
  display: none;
}

.account-summary {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
  padding: 10px;
  border-bottom: 1px solid var(--soft-line);
}

.account-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  font-size: 9px;
  font-weight: 850;
  background: var(--green);
  border-radius: 50%;
}

.account-summary strong,
.account-summary div > span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.account-summary strong {
  max-width: 155px;
  font-size: 11px;
}

.account-summary div > span {
  max-width: 155px;
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
}

.account-menu > a,
.account-menu > button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  color: #536058;
  font-size: 10px;
  font-weight: 650;
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.account-menu > a:hover,
.account-menu > button:hover {
  color: var(--green-dark);
  background: #edf4ef;
}

.account-menu > [hidden] {
  display: none;
}

#signOutButton {
  color: #a3423b;
}

.lesson-page {
  width: min(1210px, calc(100% - 64px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.lesson-heading {
  max-width: 790px;
  margin-bottom: 42px;
}

.eyebrow-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.lesson-number,
.lesson-time {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.lesson-number {
  color: var(--green);
}

.lesson-time {
  padding-left: 10px;
  color: #89918c;
  border-left: 1px solid #bdc1bc;
}

.lesson-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.lesson-heading > p {
  max-width: 670px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.lesson-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.lesson-tag {
  padding: 4px 9px;
  color: #4e5c55;
  font-family: var(--mono);
  font-size: 10px;
  background: #ebe9df;
  border: 1px solid #dbd9ce;
  border-radius: 5px;
}

.learning-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(490px, 1.18fr);
  gap: clamp(36px, 5vw, 74px);
  align-items: start;
}

.lesson-content {
  min-width: 0;
}

.content-section {
  margin-bottom: 36px;
}

.section-kicker {
  color: var(--green);
}

.content-section h2,
.challenge-box h2,
.quiz-panel h2 {
  margin: 7px 0 12px;
  font-size: 22px;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.content-section p {
  margin: 0 0 12px;
  color: #56615b;
}

.content-section code,
.coach-note code,
.challenge-box code {
  padding: 2px 5px;
  color: #176043;
  font-family: var(--mono);
  font-size: 0.9em;
  background: #e3eee7;
  border-radius: 4px;
}

.coach-note {
  display: flex;
  gap: 14px;
  margin: 38px 0;
  padding: 19px 20px;
  background: var(--green-soft);
  border-left: 3px solid var(--green);
  border-radius: 0 9px 9px 0;
}

.coach-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  background: var(--green);
  border-radius: 50%;
}

.coach-icon svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.coach-note .micro-label {
  color: var(--green-dark);
}

.coach-note p:last-child {
  margin: 4px 0 0;
  color: #355244;
  font-size: 13px;
  line-height: 1.55;
}

.key-points {
  display: grid;
  gap: 14px;
  margin-top: 19px;
}

.key-point {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 11px;
  align-items: start;
}

.key-point > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  background: var(--green-soft);
  border-radius: 7px;
}

.key-point strong,
.key-point p {
  display: block;
}

.key-point strong {
  margin-bottom: 2px;
  font-size: 13px;
}

.key-point p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.lesson-reference {
  margin: 44px 0;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.reference-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.reference-heading h2 {
  margin: 7px 0 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.reference-heading > span {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: var(--green-dark);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--green-soft);
  border-radius: 5px;
}

.reference-summary {
  margin: 14px 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.reference-card {
  min-width: 0;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.reference-card-heading {
  display: flex;
  gap: 8px;
  align-items: center;
}

.reference-card-heading > span {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 900;
  background: var(--green-soft);
  border-radius: 6px;
}

.reference-card h3,
.lesson-glossary h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.reference-card > p {
  margin: 9px 0 13px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.reference-items {
  display: grid;
  gap: 9px;
}

.reference-item {
  min-width: 0;
  padding-top: 9px;
  border-top: 1px solid var(--soft-line);
}

.reference-item code,
.lesson-glossary dt {
  color: #176043;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.reference-item p {
  margin: 4px 0 0;
  color: #65716a;
  font-size: 10px;
  line-height: 1.5;
}

.reference-flow {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.reference-flow li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 7px;
  align-items: start;
}

.reference-flow span {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  color: white;
  font-size: 8px;
  font-weight: 800;
  background: var(--green);
  border-radius: 50%;
}

.reference-flow p {
  margin: 1px 0 0;
  color: #65716a;
  font-size: 10px;
  line-height: 1.45;
}

.lesson-glossary {
  margin-top: 14px;
  padding: 17px;
  background: #f4f5ef;
  border: 1px solid var(--soft-line);
  border-radius: 10px;
}

.lesson-glossary > dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin-top: 10px;
}

.lesson-glossary dl,
.lesson-glossary div,
.lesson-glossary dd {
  margin: 0;
}

.lesson-glossary > dl > div {
  padding: 9px 0;
  border-top: 1px solid #e0e3dc;
}

.lesson-glossary dd {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.code-walkthrough {
  margin-top: 14px;
  background: #17251f;
  border-radius: 10px;
  overflow: hidden;
}

.code-walkthrough summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  color: white;
  cursor: pointer;
  list-style: none;
}

.code-walkthrough summary::-webkit-details-marker {
  display: none;
}

.code-walkthrough summary > span:first-child {
  display: grid;
  gap: 3px;
}

.code-walkthrough summary strong {
  font-size: 12px;
}

.code-walkthrough summary small {
  color: #9fafa5;
  font-size: 9px;
}

.code-walkthrough summary > span:last-child {
  color: var(--lime);
  font-size: 21px;
  transition: transform 160ms ease;
}

.code-walkthrough[open] summary > span:last-child {
  transform: rotate(45deg);
}

.code-walkthrough ol {
  display: grid;
  gap: 0;
  max-height: 660px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
  border-top: 1px solid #31443a;
}

.code-walkthrough li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 15px 11px 0;
  border-bottom: 1px solid #2a3b33;
}

.walkthrough-line {
  color: #71857a;
  font-family: var(--mono);
  font-size: 9px;
  text-align: right;
}

.code-walkthrough li code {
  display: block;
  color: #d8ef72;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.code-walkthrough li p {
  margin: 5px 0 0;
  color: #aebdb4;
  font-size: 10px;
  line-height: 1.5;
}

.challenge-box {
  margin: 40px 0;
  padding: 22px;
  background: var(--orange-soft);
  border: 1px solid #f0d7c6;
  border-radius: 12px;
}

.challenge-heading {
  display: flex;
  gap: 12px;
  align-items: center;
}

.challenge-heading .micro-label {
  color: #9a4d24;
}

.challenge-heading h2 {
  margin: 2px 0 0;
  font-size: 17px;
}

.challenge-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  color: #a9572b;
  background: #ffd7bc;
  border-radius: 9px;
}

.challenge-icon svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.challenge-box > p {
  margin: 13px 0 16px;
  color: #6d574a;
  font-size: 13px;
}

.challenge-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  color: #7e6b60;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 5px;
}

.challenge-status.success {
  color: #256144;
  background: #dff0e6;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #bf8d70;
  border-radius: 50%;
}

.success .status-dot {
  background: #3c9165;
}

.quiz-panel {
  margin: 40px 0;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.quiz-intro > p:last-child {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.quiz-progress {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.quiz-question {
  padding: 18px 0;
  border-top: 1px solid var(--soft-line);
}

.quiz-question h3 {
  margin: 0 0 11px;
  font-size: 14px;
}

.quiz-options {
  display: grid;
  gap: 7px;
}

.quiz-option {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 9px 11px;
  color: #56615b;
  font-size: 12px;
  border: 1px solid var(--soft-line);
  cursor: pointer;
}

.quiz-option:hover {
  background: #f6f7f3;
}

.quiz-option input {
  accent-color: var(--green);
}

.quiz-option.correct {
  color: var(--green-dark);
  background: var(--green-soft);
  border-color: #8bb79f;
}

.quiz-option.wrong {
  color: #88462f;
  background: #fff0e8;
  border-color: #d9a08b;
}

.quiz-actions {
  display: flex;
  gap: 10px;
}

.quiz-result {
  margin-top: 12px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 650;
}

.quiz-result.incorrect {
  color: #88462f;
}

.quiz-result span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 500;
}

.quiz-summary {
  padding: 26px 0 18px;
  text-align: center;
  border-top: 1px solid var(--soft-line);
}

.quiz-summary strong {
  color: var(--green-dark);
  font-family: Georgia, serif;
  font-size: 38px;
}

.quiz-summary p {
  margin: 8px 0 0;
  color: var(--muted);
}

.lesson-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  font-size: 12px;
  font-weight: 750;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-primary,
.button-run {
  color: white;
  background: var(--green);
}

.button-primary:hover,
.button-run:hover {
  background: var(--green-dark);
}

.button-dark {
  color: white;
  background: var(--nav);
}

.button-ghost {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}

.button-ghost:hover {
  color: var(--ink);
  background: var(--paper);
}

.button[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.create-lesson-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  color: white;
  font-size: 11px;
  font-weight: 750;
  background: var(--green);
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

.create-lesson-button svg {
  width: 15px;
}

.create-lesson-button[disabled] {
  color: #d1d7d3;
  background: #77817c;
  cursor: not-allowed;
}

.lesson-creator {
  width: min(760px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(16, 28, 22, 0.35);
}

.lesson-creator::backdrop {
  background: rgba(13, 24, 19, 0.72);
  backdrop-filter: blur(3px);
}

.lesson-creator-card {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.lesson-creator-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.lesson-creator-heading h2 {
  margin: 5px 0 5px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
}

.lesson-creator-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.moderation-warning {
  padding: 12px 14px;
  color: #68392e;
  background: var(--orange-soft);
  border: 1px solid #efc7ae;
  border-radius: 8px;
}

.moderation-warning strong {
  font-size: 11px;
}

.moderation-warning p {
  margin: 3px 0 0;
  font-size: 10px;
  line-height: 1.5;
}

.creator-field {
  display: grid;
  gap: 6px;
}

.creator-field > span {
  color: #4e5b54;
  font-size: 10px;
  font-weight: 800;
}

.creator-field input,
.creator-field textarea {
  width: 100%;
  padding: 10px 11px;
  color: var(--ink);
  font: 12px/1.5 var(--sans);
  background: white;
  border: 1px solid #cfd2cc;
  border-radius: 7px;
  resize: vertical;
}

.creator-field textarea {
  min-height: 86px;
  font-family: var(--mono);
  font-size: 10px;
}

.creator-field:last-of-type textarea {
  min-height: 64px;
  font-family: var(--sans);
}

.lesson-creator-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.practice-column {
  min-width: 0;
}

.practice-sticky {
  position: sticky;
  top: 92px;
}

.workspace-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid #d8d9d1;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.code-card {
  background: #16211c;
  border-color: #16211c;
}

.workspace-toolbar {
  display: flex;
  height: 48px;
  align-items: stretch;
  justify-content: space-between;
  color: #a8b5ad;
  background: #202e27;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.file-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  color: #f2f5f3;
  font-family: var(--mono);
  font-size: 11px;
  background: #16211c;
  border-top: 2px solid var(--lime);
}

.file-tab svg {
  width: 15px;
  fill: none;
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 8px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 8px;
  color: #9daba3;
  font-size: 10px;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.text-button:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.text-button svg {
  width: 14px;
}

.editor-shell {
  display: grid;
  grid-template-columns: 46px 1fr;
  height: 355px;
  background: #16211c;
}

.line-numbers {
  overflow: hidden;
  padding: 17px 11px 17px 0;
  color: #53635a;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
  text-align: right;
  user-select: none;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

#codeEditor {
  width: 100%;
  height: 100%;
  resize: none;
  padding: 17px 18px;
  overflow: auto;
  color: #dfe9e3;
  line-height: 1.65;
  tab-size: 4;
  caret-color: var(--lime);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 12px;
  white-space: pre;
}

#codeEditor:focus-visible {
  outline: 0;
}

.run-bar {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 8px 17px;
  background: #202e27;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.run-bar p {
  margin: 0;
  color: #78877f;
  font-size: 9px;
}

.keyboard-key {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  margin-right: 3px;
  place-items: center;
  color: #9dac9f;
  border: 1px solid #46564d;
  border-radius: 4px;
}

.button-run {
  min-height: 38px;
}

.preview-card {
  margin-top: 18px;
}

.preview-heading {
  display: flex;
  height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: #f9f9f5;
  border-bottom: 1px solid var(--line);
}

.preview-heading > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-heading strong {
  font-size: 11px;
}

.preview-heading > span {
  color: #8c958f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: #40a56d;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #dff0e6;
}

.desktop-canvas {
  position: relative;
  display: grid;
  min-height: 260px;
  padding: 28px;
  place-items: center;
  background-color: #e7e9e4;
  border-bottom: 1px solid #d1d5d0;
}

.simulator-help-button {
  padding: 5px 7px;
  color: #7b8680;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  background: transparent;
  border: 1px solid #d8dbd6;
  border-radius: 5px;
  cursor: pointer;
}

.simulator-help-button:hover,
.simulator-help-button[aria-expanded="true"] {
  color: var(--green-dark);
  background: var(--green-soft);
  border-color: #bed9c9;
}

.simulator-help {
  padding: 12px 16px;
  color: #536159;
  background: #edf4ef;
  border-bottom: 1px solid #d4e2d8;
}

.simulator-help strong {
  display: block;
  margin-bottom: 2px;
  color: var(--green-dark);
  font-size: 11px;
}

.simulator-help p {
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
}

.swing-window {
  width: min(100%, 390px);
  overflow: hidden;
  color: #252a27;
  background: #f4f4f4;
  border: 1px solid #8f9691;
  border-radius: 7px;
  box-shadow: 0 15px 30px rgba(36, 43, 39, 0.2);
  font-family: Arial, sans-serif;
}

.sim-window-large {
  width: min(100%, 440px);
}

.swing-titlebar {
  position: relative;
  display: flex;
  height: 29px;
  align-items: center;
  justify-content: center;
  padding: 0 70px;
  overflow: hidden;
  color: #2d312f;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: #d7d9d8;
  border-bottom: 1px solid #b8bcba;
}

.window-controls {
  position: absolute;
  left: 9px;
  display: flex;
  gap: 5px;
}

.window-controls span {
  width: 8px;
  height: 8px;
  background: #8f9691;
  border-radius: 50%;
}

.window-controls span:first-child {
  background: #e06a5f;
}

.window-controls span:nth-child(2) {
  background: #d6a342;
}

.window-controls span:nth-child(3) {
  background: #64a668;
}

.swing-body {
  min-height: 130px;
  padding: 23px;
  background: #f3f3f3;
}

.sim-container {
  gap: 8px;
}

.sim-language-body {
  min-height: 150px;
  align-content: center;
}

.sim-language-panel {
  display: contents;
}

.sim-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.sim-grid-layout {
  display: grid;
  grid-template-columns: repeat(var(--sim-columns, 2), minmax(0, 1fr));
  align-items: stretch;
}

.sim-grid-layout > * {
  min-width: 0;
}

.sim-border-layout {
  display: grid;
  grid-template:
    "north north north" auto
    "west center east" minmax(72px, 1fr)
    "south south south" auto /
    auto minmax(0, 1fr) auto;
  align-items: center;
}

.sim-border-layout > :not(.sim-region-north, .sim-region-south, .sim-region-east, .sim-region-west) {
  grid-area: center;
}

.sim-region-north {
  grid-area: north;
}

.sim-region-south {
  grid-area: south;
}

.sim-region-east {
  grid-area: east;
}

.sim-region-west {
  grid-area: west;
}

.sim-stack-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.sim-card-layout > * {
  display: none;
}

.sim-card-layout > :first-child {
  display: block;
}

.sim-toolbar {
  padding: 5px;
  background: #e2e4e2;
  border: 1px solid #c4c8c5;
}

.sim-choice {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  cursor: pointer;
}

.sim-choice input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: #397a60;
}

.sim-select {
  width: auto;
  min-width: 110px;
}

.sim-textarea {
  min-height: 60px;
  resize: vertical;
}

.sim-range-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
}

.sim-range-wrap input {
  width: 120px;
  accent-color: #397a60;
}

.sim-range-wrap output {
  min-width: 22px;
  font-variant-numeric: tabular-nums;
}

.sim-spinner {
  width: 70px;
}

.sim-progress {
  position: relative;
  width: min(180px, 100%);
  height: 19px;
  overflow: hidden;
  background: #daddda;
  border: 1px solid #aeb4b0;
  border-radius: 3px;
}

.sim-progress > span {
  display: block;
  height: 100%;
  background: #4c9272;
  transition: width 220ms ease;
}

.sim-progress > strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #1d2b24;
  font-size: 9px;
}

.sim-list,
.sim-tree {
  min-width: 150px;
  max-height: 120px;
  margin: 0;
  padding: 3px;
  overflow: auto;
  list-style: none;
  background: white;
  border: 1px solid #aeb4b0;
}

.sim-list li,
.sim-tree li {
  padding: 4px 7px;
  font-size: 10px;
  cursor: default;
}

.sim-list li:hover,
.sim-list li.selected {
  color: white;
  background: #477b64;
}

.sim-tree ul {
  padding-left: 13px;
  list-style: none;
}

.sim-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 9px;
}

.sim-table th,
.sim-table td {
  padding: 5px 7px;
  text-align: left;
  border: 1px solid #c8cdca;
}

.sim-table th {
  background: #e3e5e3;
}

.sim-separator {
  width: 100%;
  border: 0;
  border-top: 1px solid #b9bfbb;
}

.sim-themed {
  background: #e1eee6 !important;
}

.sim-accent-text {
  color: #205b43 !important;
}

.sim-emphasis {
  font-size: 15px !important;
  font-weight: 700 !important;
}

.sim-bordered {
  padding: 9px;
  border: 2px solid #6c977f;
}

.sim-painted-panel {
  position: relative;
  display: grid;
  min-height: 95px;
  place-items: center;
  overflow: hidden;
  color: #205b43;
  background: #dcebe2;
  border: 1px solid #8fb49f;
}

.sim-painted-panel span {
  position: absolute;
  width: 62px;
  height: 62px;
  background: #ee945d;
  border: 8px solid #fff0e4;
  border-radius: 50%;
}

.sim-painted-panel strong {
  position: relative;
  padding: 4px 7px;
  font-size: 10px;
  background: rgba(255, 255, 255, 0.84);
}

.sim-empty {
  display: grid;
  gap: 4px;
  padding: 18px;
  color: #66716b;
  text-align: center;
  border: 1px dashed #b9bfbb;
}

.sim-empty strong {
  color: #35433c;
  font-size: 11px;
}

.sim-empty span {
  font-size: 9px;
}

.sim-dialog-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(35, 43, 39, 0.38);
}

.sim-dialog {
  width: min(260px, 100%);
  padding: 18px;
  color: #282f2b;
  background: #f4f4f4;
  border: 1px solid #949b96;
  box-shadow: 0 12px 30px rgba(26, 32, 28, 0.25);
  font-family: Arial, sans-serif;
  text-align: center;
}

.sim-dialog strong {
  font-size: 12px;
}

.sim-dialog p {
  margin: 8px 0 15px;
  font-size: 10px;
}

.swing-flow,
.swing-stack,
.swing-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.swing-stack,
.swing-form {
  flex-direction: column;
}

.swing-label {
  font-size: 12px;
}

.swing-heading {
  margin: 0 0 4px;
  font-size: 15px;
}

.swing-subtext {
  margin: 0 0 12px;
  color: #666;
  font-size: 10px;
}

.swing-button,
.swing-input {
  min-height: 28px;
  font-family: Arial, sans-serif;
  font-size: 10px;
  border: 1px solid #9ba09d;
  border-radius: 3px;
}

.swing-button {
  padding: 4px 13px;
  color: #212421;
  background: #e5e6e5;
  cursor: pointer;
}

.swing-button:hover {
  background: #d7d9d8;
}

.swing-button.primary {
  color: white;
  background: #397a60;
  border-color: #2b654e;
}

.swing-input {
  width: 100%;
  padding: 4px 7px;
  background: white;
}

.swing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.swing-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.counter-number {
  color: #2d634d;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.task-list {
  display: grid;
  width: 100%;
  gap: 6px;
  margin-top: 8px;
}

.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 8px;
  font-size: 10px;
  background: white;
  border: 1px solid #d2d4d2;
}

.task-item button {
  color: #9d3f39;
  background: none;
  border: 0;
  cursor: pointer;
}

.console-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  min-height: 48px;
  padding: 11px 15px;
  color: #aebbb4;
  background: #17231d;
}

.console-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--lime);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.console-label svg {
  width: 14px;
}

.console-bar p {
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
}

.console-bar.error p {
  color: #ffaaa4;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  padding: 11px 15px;
  color: white;
  font-size: 12px;
  font-weight: 650;
  background: var(--nav);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  box-shadow: 0 12px 30px rgba(20, 31, 25, 0.2);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.completion-spark {
  position: fixed;
  z-index: 100;
  width: 8px;
  height: 8px;
  background: var(--lime);
  pointer-events: none;
  animation: spark 800ms ease-out forwards;
}

@keyframes spark {
  to {
    opacity: 0;
    transform: translate(var(--x), var(--y)) rotate(180deg);
  }
}

@media (max-width: 1050px) {
  .learning-grid {
    grid-template-columns: 1fr;
  }

  .practice-column {
    grid-row: 1;
  }

  .practice-sticky {
    position: static;
  }

  .lesson-heading {
    margin-bottom: 30px;
  }
}

@media (max-width: 1200px) {
  .topbar-actions {
    gap: 9px;
  }

  .forum-link span,
  .tutorials-link span,
  .app-maker-link span,
  .leaderboard-link span,
  .customization-link span,
  .helper-link span {
    display: none;
  }
}

@media (max-width: 800px) {
  .index-about {
    margin-left: 0;
    padding: 42px 24px;
  }

  .forum-link span,
  .tutorials-link span,
  .app-maker-link span,
  .leaderboard-link span,
  .customization-link span,
  .helper-link span,
  .streak span {
    display: none;
  }

  .sidebar {
    width: min(310px, 88vw);
    transform: translateX(-100%);
    transition: transform 220ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close,
  .menu-button {
    display: inline-grid;
  }

.sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 15;
    display: block;
    background: rgba(11, 20, 16, 0.48);
  }

  .sidebar-scrim[hidden] {
    display: none;
  }

  .main-content {
    margin-left: 0;
  }

  .topbar {
    padding: 0 18px;
  }

  .lesson-page {
    width: min(100% - 36px, 690px);
    padding-top: 36px;
  }
}

@media (max-width: 560px) {
  .reference-grid,
  .lesson-glossary > dl {
    grid-template-columns: 1fr;
  }

  .reference-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .lesson-reference {
    margin-top: 34px;
  }

  .create-lesson-button span {
    display: none;
  }

  .lesson-creator-card {
    padding: 18px;
  }

  .streak span {
    display: none;
  }

  .leaderboard-link span {
    display: none;
  }

  .app-maker-link span {
    display: none;
  }

  .forum-link span {
    display: none;
  }

  .topbar-actions {
    gap: 9px;
  }

  .breadcrumb > span,
  .breadcrumb svg {
    display: none;
  }

  .lesson-heading h1 {
    font-size: 40px;
  }

  .lesson-heading > p {
    font-size: 14px;
  }

  .editor-shell {
    grid-template-columns: 36px 1fr;
    height: 330px;
  }

  #codeEditor,
  .line-numbers {
    font-size: 10.5px;
  }

  .line-numbers {
    padding-right: 8px;
  }

  .run-bar p,
  .preview-heading > span {
    display: none;
  }

  .desktop-canvas {
    min-height: 230px;
    padding: 18px 12px;
  }

  .lesson-navigation {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .button {
    width: 100%;
  }

  .toolbar-actions .text-button {
    font-size: 0;
  }

  .toolbar-actions .text-button svg {
    width: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

html[data-explanation-level="concise"] #conceptBody p:nth-child(n + 2),
html[data-explanation-level="concise"] .coach-note,
html[data-explanation-level="concise"] .key-point p,
html[data-explanation-level="concise"] .lesson-reference,
html[data-explanation-level="concise"] .tutorial-step p,
html[data-explanation-level="concise"] .tutorial-tip,
html[data-explanation-level="concise"] .quiz-feedback span {
  display: none !important;
}

@media print {
  html::after {
    display: none;
  }
}

button {
  color: #ffdcc6;
  background-color: #a9572b;
}

/* Universal page switcher: available on every public Desktopcraft page. */
.site-pages {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  font-family: var(--sans);
}

.site-pages-toggle {
  display: inline-flex;
  min-width: 118px;
  min-height: 44px;
  padding: 9px 13px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--nav);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  box-shadow: 0 10px 28px rgba(17, 29, 24, 0.28);
  cursor: pointer;
}

.site-pages-toggle:hover {
  color: var(--nav);
  background: var(--lime);
}

.site-pages-toggle svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.site-pages-toggle span {
  font-size: 11px;
  font-weight: 800;
}

.site-pages-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(390px, calc(100vw - 28px));
  padding: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 55px rgba(17, 29, 24, 0.25);
}

.site-pages-menu[hidden] {
  display: none;
}

.site-pages-menu header {
  display: flex;
  padding: 2px 2px 12px;
  align-items: center;
  justify-content: space-between;
}

.site-pages-menu header strong,
.site-pages-menu header span {
  display: block;
}

.site-pages-menu header strong {
  font-size: 13px;
}

.site-pages-menu header span {
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
}

.site-pages-menu header button {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  background: #efeee7;
  border: 0;
  border-radius: 7px;
  font-size: 19px;
  cursor: pointer;
}

.site-pages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.site-pages-grid a {
  display: flex;
  min-height: 43px;
  padding: 8px 9px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: #47534c;
  font-size: 10px;
  font-weight: 780;
  line-height: 1.15;
  text-decoration: none;
  background: #f5f3ec;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
}

.site-pages-grid a:hover,
.site-pages-grid a:focus-visible {
  color: var(--green-dark);
  background: var(--green-soft);
  border-color: rgba(46, 125, 91, 0.2);
}

.site-pages-grid a.current {
  color: white;
  background: var(--green);
  border-color: var(--green);
}

.site-pages-grid a small {
  margin-top: 3px;
  color: inherit;
  font-size: 7px;
  font-weight: 650;
  opacity: 0.8;
}

@media (max-width: 560px) {
  .site-pages {
    right: 12px;
    bottom: 12px;
  }

  .site-pages-toggle {
    width: auto;
    min-width: 0;
  }

  .site-pages-toggle span {
    display: none;
  }

  .site-pages-menu {
    max-height: calc(100vh - 86px);
    overflow-y: auto;
  }

  .site-pages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media print {
  .site-pages {
    display: none !important;
  }
}

.shared-account-status {
  position: fixed;
  right: 146px;
  bottom: 18px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid rgba(216, 239, 114, .55);
  border-radius: 999px;
  background: #17251f;
  color: #fffef9;
  box-shadow: 0 12px 34px rgba(14, 24, 19, .24);
  font-size: .84rem;
}

.shared-account-status.signed-in {
  padding: 5px;
}

.shared-account-status a,
.shared-account-status button {
  color: #d8ef72;
  font: inherit;
}

.shared-account-status button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.shared-account-avatar {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: #d8ef72;
  color: #17251f;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
}

.shared-account-menu {
  position: absolute;
  right: calc(100% + 8px);
  bottom: 0;
  min-width: 112px;
  padding: 7px;
  border: 1px solid rgba(216, 239, 114, .45);
  border-radius: 10px;
  background: #17251f;
  box-shadow: 0 12px 28px rgba(14, 24, 19, .24);
}

.shared-account-menu[hidden] {
  display: none;
}

.shared-account-menu button {
  width: 100%;
  padding: 7px 9px;
  border-radius: 7px;
  text-align: left;
}

.shared-account-menu button:hover {
  background: rgba(216, 239, 114, .12);
}

@media (max-width: 560px) {
  .shared-account-status {
    right: 64px;
    bottom: 12px;
  }
}

@media print {
  .shared-account-status {
    display: none !important;
  }
}
