:root {
  --navy: #102136;
  --navy-2: #172e45;
  --ink: #172738;
  --muted: #6e7e8d;
  --soft: #f4f7f8;
  --line: #e3e9eb;
  --white: #fff;
  --teal: #42c9b8;
  --teal-dark: #0e8c80;
  --teal-pale: #e7f8f4;
  --blue-pale: #edf2fb;
  --gold: #d4a354;
  --coral: #dc816b;
  --shadow: 0 12px 32px rgba(19, 42, 61, 0.06);
  --radius: 18px;
  --sidebar: 258px;
  font-family: Tahoma, Arial, sans-serif;
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* {
  box-sizing: border-box;
}
html {
  background: #f7f9fa;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  background: #f7f9fa;
  font-family: Tahoma, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.7;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--navy);
  color: #eff7fb;
  padding: 24px 16px 18px;
  display: flex;
  flex-direction: column;
  z-index: 12;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 2px 8px 22px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #ffffff19;
}
.brand-mark {
  width: 45px;
  height: 45px;
  border-radius: 15px;
  background: linear-gradient(145deg, #8ce8d6, #37c5b3);
  color: #0b2636;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  font-weight: 700;
  font-size: 22px;
  box-shadow: 0 7px 18px #2ad1bb33;
}
.brand-mark span {
  position: relative;
  z-index: 1;
}
.brand-mark i {
  position: absolute;
  width: 38px;
  height: 2px;
  background: #13354a;
  transform: rotate(-35deg);
  bottom: 13px;
  right: 7px;
  opacity: 0.55;
}
.brand-copy {
  display: grid;
  line-height: 1.4;
}
.brand-copy strong {
  font-size: 14px;
  letter-spacing: -0.2px;
}
.brand-copy small {
  color: #a4b8c9;
  font-size: 11px;
  margin-top: 4px;
}
.sidebar-caption {
  font-size: 10px;
  letter-spacing: 0.1px;
  color: #8299ad;
  padding: 21px 11px 7px;
}
.sidebar-caption-spaced {
  padding-top: 22px;
}
.primary-nav {
  display: grid;
  gap: 4px;
}
.nav-item {
  height: 43px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #c1cfdb;
  text-align: right;
  padding: 0 11px;
  font-size: 12px;
  transition:
    background 0.18s,
    color 0.18s;
}
.nav-item:hover {
  background: #ffffff0e;
  color: #fff;
}
.nav-item.active {
  background: #ffffff14;
  color: #fff;
  box-shadow: inset -3px 0 #51d4c2;
}
.nav-item b {
  margin-right: auto;
  font-size: 9px;
  font-weight: 500;
  color: #9db1c0;
}
.nav-icon {
  width: 20px;
  text-align: center;
  font-size: 17px;
  color: #8fa8bb;
}
.nav-item.active .nav-icon {
  color: #5de0cb;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 14px 8px 3px;
}
.privacy-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 9px;
  border: 1px solid #ffffff1a;
  border-radius: 11px;
  color: #d0e1e9;
  font-size: 10px;
}
.privacy-dot,
.pulse-dot,
.top-grade-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #51d6c4;
  box-shadow: 0 0 0 4px #51d6c41b;
}
.sidebar-brand-note {
  margin-top: 14px;
  padding: 0 9px;
  color: #718ba0;
  font-size: 10px;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffffed;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 3vw, 44px);
}
.topbar-start,
.topbar-end {
  display: flex;
  align-items: center;
  gap: 18px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 11px;
  color: #82909b;
}
.breadcrumb i {
  font-style: normal;
  color: #bac4cb;
}
.breadcrumb strong {
  color: #25384a;
  font-weight: 700;
}
.topbar-end {
  gap: 12px;
}
.top-grade {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: #314759;
  border-radius: 30px;
  padding: 7px 12px;
  font-size: 10px;
}
.top-grade-dot {
  width: 6px;
  height: 6px;
  box-shadow: none;
}
.chevron {
  font-size: 16px;
  color: #81909a;
}
.profile-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  text-align: right;
  color: var(--ink);
  padding: 0 2px;
}
.profile-chip span:last-child {
  display: grid;
  line-height: 1.25;
}
.profile-chip strong {
  font-size: 10px;
}
.profile-chip small {
  margin-top: 4px;
  font-size: 9px;
  color: #80909d;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9f6f3;
  color: #197f75;
  font-weight: 700;
  font-size: 13px;
}
.main-content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px clamp(17px, 3vw, 44px) 0;
  outline: 0;
}
.view {
  display: none;
  animation: fade-in 0.32s ease both;
}
.view.active {
  display: block;
}
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-panel {
  min-height: 325px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 14% 12%, #26516b 0, transparent 35%),
    linear-gradient(118deg, #102136 5%, #19364e 65%, #16525c);
  color: #fff;
  padding: 36px 42px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  box-shadow: 0 18px 50px #10213616;
}
.hero-panel:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b5f8e74f, transparent);
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a7d9d2;
  font-size: 10px;
  letter-spacing: 0.2px;
}
.pulse-dot {
  width: 6px;
  height: 6px;
}
.hero-copy h1 {
  font-size: clamp(27px, 3.2vw, 40px);
  line-height: 1.35;
  letter-spacing: -1px;
  margin: 17px 0 11px;
  font-weight: 700;
}
.hero-copy h1 em {
  font-style: normal;
  color: #70ddcb;
}
.hero-copy > p {
  max-width: 480px;
  color: #c5d2dc;
  font-size: 12px;
  line-height: 1.9;
  margin: 0 0 21px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0 17px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    background 0.18s;
}
.button:hover {
  transform: translateY(-1px);
}
.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}
.button-primary {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 7px 18px #142c4118;
}
.button-primary:hover {
  background: #1d3a52;
}
.button-accent {
  background: #59d7c1;
  color: #123545;
  box-shadow: 0 9px 20px #37d2bc2b;
}
.button-accent:hover {
  background: #79e8d3;
}
.button-glass {
  background: #ffffff12;
  color: #edf7fa;
  border-color: #ffffff30;
}
.button-secondary {
  background: #fff;
  color: #30475b;
  border-color: #dfe8eb;
}
.button-secondary:hover {
  background: #f3f8f8;
}
.button-small {
  min-height: 35px;
  padding: 0 12px;
  font-size: 10px;
}
.hero-proof {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9eb4c4;
  font-size: 9px;
  line-height: 1.6;
}
.hero-proof b {
  color: #ecf7f6;
  font-weight: 600;
}
.proof-mark {
  width: 32px;
  height: 32px;
  border: 1px solid #ffffff30;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #6ae0cb;
  font-size: 20px;
}
.hero-art {
  position: relative;
  min-height: 250px;
  display: grid;
  place-items: center;
}
.hero-art svg {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  overflow: visible;
}
.hero-art svg circle {
  fill: #b4f4e4;
  stroke: #1b5c62;
  stroke-width: 3;
}
.hero-art svg text {
  fill: #afece2;
  font:
    italic 17px Georgia,
    serif;
}
.graph-line {
  fill: none;
  stroke: url(#curve);
  stroke-width: 4;
  stroke-linecap: round;
  filter: drop-shadow(0 4px 12px #61dec344);
}
.graph-shadow {
  fill: none;
  stroke: #62decc;
  stroke-opacity: 0.12;
  stroke-width: 18;
  stroke-linecap: round;
  filter: blur(10px);
}
.axis {
  position: absolute;
  z-index: 0;
  background: #ffffff24;
}
.axis-x {
  width: 87%;
  height: 1px;
  right: 0;
  top: 58%;
}
.axis-y {
  height: 83%;
  width: 1px;
  top: 5%;
  right: 48%;
}
.orbit {
  position: absolute;
  border: 1px solid #b2e6e31b;
  border-radius: 50%;
  transform: rotate(-19deg);
}
.orbit-one {
  width: 72%;
  height: 67%;
}
.orbit-two {
  width: 57%;
  height: 91%;
  transform: rotate(36deg);
}
.equation-float {
  position: absolute;
  z-index: 2;
  top: 16%;
  right: 9%;
  border: 1px solid #ffffff27;
  background: #10213672;
  backdrop-filter: blur(5px);
  padding: 8px 12px;
  border-radius: 10px;
  color: #c9f8ed;
  direction: ltr;
  font:
    12px "Courier New",
    monospace;
}
.hero-sticker {
  position: absolute;
  bottom: 7%;
  left: 7%;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 9px;
  background: #f7ffff0f;
  color: #d4e9e9;
  font-size: 9px;
  letter-spacing: 0.2px;
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 16px;
}
.metric-card {
  min-height: 78px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 15px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 14px #12253b05;
}
.metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 17px;
  flex: 0 0 auto;
}
.metric-teal {
  background: #e8f8f4;
  color: #148d80;
}
.metric-gold {
  background: #fbf3e6;
  color: #b57e28;
}
.metric-blue {
  background: #edf3fc;
  color: #5273a1;
}
.metric-card div {
  display: grid;
  line-height: 1.35;
}
.metric-card small {
  font-size: 9px;
  color: #7b8a95;
}
.metric-card strong {
  margin-top: 5px;
  font-size: 19px;
  letter-spacing: -0.3px;
}
.metric-card strong i {
  font-style: normal;
  color: #8a99a4;
  font-size: 10px;
  font-weight: 400;
}
.metric-trend {
  margin-right: auto;
  color: #8899a2;
  font-size: 9px;
  text-align: left;
}
.section-block {
  margin-top: 31px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
}
.eyebrow {
  display: block;
  color: #168b80;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.section-heading h2,
.strip-head h2 {
  margin: 3px 0 3px;
  font-size: 19px;
  letter-spacing: -0.4px;
}
.section-heading p {
  margin: 0;
  color: #7c8a95;
  font-size: 10px;
}
.text-button,
.inline-button,
.link-button {
  border: 0;
  background: transparent;
  color: #138d80;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 2px;
}
.text-button span {
  margin-right: 5px;
}
.home-lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.spotlight-card {
  min-height: 206px;
  padding: 16px 17px 14px;
  border: 1px solid #e5ecec;
  border-radius: 16px;
  background: white;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.spotlight-card:after {
  content: "";
  width: 100px;
  height: 100px;
  border-radius: 50%;
  position: absolute;
  top: -53px;
  left: -28px;
  background: #48c8b015;
}
.spotlight-card.lavender:after {
  background: #647ac314;
}
.spotlight-card.peach:after {
  background: #dba35a17;
}
.spotlight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.spotlight-icon {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  background: #e5f7f3;
  color: #16897d;
  display: grid;
  place-items: center;
  font:
    17px Georgia,
    serif;
}
.lavender .spotlight-icon {
  background: #eff1fc;
  color: #536aa3;
}
.peach .spotlight-icon {
  background: #fbf0e5;
  color: #aa7441;
}
.spotlight-count {
  color: #82929d;
  font-size: 9px;
}
.spotlight-meta {
  margin-top: 14px;
  color: #738590;
  font-size: 9px;
}
.spotlight-meta span {
  color: #c2cbd0;
  padding: 0 3px;
}
.spotlight-card h3 {
  font-size: 14px;
  margin: 3px 0 4px;
  line-height: 1.5;
}
.spotlight-card p {
  margin: 0 0 10px;
  color: #758590;
  font-size: 10px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-link {
  margin-top: auto;
  align-self: flex-start;
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: #158f82;
  font-weight: 700;
  font-size: 10px;
}
.card-link span {
  margin-right: 5px;
}
.learning-strip {
  margin-top: 28px;
  padding: 19px 22px 21px;
  border-radius: 17px;
  background: #edf5f5;
  border: 1px solid #e0ecea;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.strip-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.strip-symbol {
  width: 41px;
  height: 41px;
  border-radius: 13px;
  background: #fff;
  display: grid;
  place-items: center;
  color: #179587;
  font-size: 20px;
  box-shadow: 0 3px 10px #174a3910;
}
.strip-head h2 {
  font-size: 14px;
}
.learning-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.learning-steps > div {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 8px;
  align-items: center;
}
.learning-steps > div > b {
  grid-row: span 2;
  color: #159386;
  font-size: 10px;
}
.learning-steps strong {
  font-size: 10px;
}
.learning-steps span {
  font-size: 9px;
  color: #768891;
}
.source-footnote {
  margin: 15px 2px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #758793;
}
.source-footnote > span {
  width: 17px;
  height: 17px;
  flex: none;
  border-radius: 50%;
  border: 1px solid #aac7c5;
  color: #388d83;
  display: grid;
  place-items: center;
  font-size: 9px;
}
.source-footnote p {
  margin: 0;
  font-size: 9px;
}
.site-footer {
  min-height: 60px;
  border-top: 1px solid var(--line);
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 17px;
  color: #94a1a8;
  font-size: 9px;
}
.site-footer span:first-child {
  color: #637883;
  font-weight: 700;
}
.site-footer button {
  margin-right: auto;
  border: 0;
  background: transparent;
  color: #728891;
  font-size: 9px;
}
.page-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 8px 0 22px;
}
.page-intro h1 {
  font-size: 27px;
  line-height: 1.35;
  letter-spacing: -0.7px;
  margin: 4px 0 5px;
}
.page-intro p {
  max-width: 700px;
  color: #74848e;
  font-size: 11px;
  margin: 0;
}
.curriculum-total {
  text-align: left;
  display: grid;
}
.curriculum-total strong {
  font-size: 25px;
  color: #148e80;
  line-height: 1;
}
.curriculum-total span {
  font-size: 9px;
  color: #7d8d96;
  margin-top: 6px;
}
.curriculum-controls {
  display: grid;
  grid-template-columns: minmax(200px, 1.1fr) minmax(175px, 0.8fr) minmax(
      230px,
      1.4fr
    );
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.select-wrap {
  display: grid;
  gap: 5px;
}
.select-wrap > span,
.teacher-form > label,
.graph-presets > label {
  font-size: 9px;
  color: #70828d;
}
.input {
  width: 100%;
  min-height: 39px;
  border-radius: 10px;
  border: 1px solid #dfe7e9;
  background: #fff;
  color: #263c4e;
  padding: 0 11px;
  font-size: 10px;
  outline: none;
  transition:
    border 0.15s,
    box-shadow 0.15s;
}
.input:focus {
  border-color: #4cc7b7;
  box-shadow: 0 0 0 3px #4cc7b71b;
}
.select-input {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #81949e 50%),
    linear-gradient(135deg, #81949e 50%, transparent 50%);
  background-position:
    15px 17px,
    10px 17px;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  padding-left: 25px;
}
.search-field {
  position: relative;
  align-self: end;
}
.search-field > span {
  position: absolute;
  right: 12px;
  top: 5px;
  z-index: 1;
  font-size: 18px;
  color: #82949c;
}
.search-field .input {
  padding-right: 34px;
}
.curriculum-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0 19px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #eef7f4;
  color: #647a7e;
}
.banner-symbol {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d7f0e8;
  color: #168b80;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 10px;
  font-weight: 700;
}
.curriculum-banner p {
  margin: 0;
  font-size: 9px;
  line-height: 1.7;
}
.curriculum-banner p b {
  color: #31595b;
}
.curriculum-banner .inline-button {
  margin-right: auto;
  white-space: nowrap;
}
.unit-block {
  margin: 0 0 21px;
}
.unit-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 2px 9px;
  border-bottom: 1px solid #e3e9ea;
}
.unit-number {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #eaf6f3;
  color: #168d80;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.unit-heading > div:nth-child(2) {
  display: grid;
  line-height: 1.4;
}
.unit-heading > div:nth-child(2) > span {
  font-size: 8px;
  color: #7c8d96;
}
.unit-heading > div:nth-child(2) > span i {
  font-style: normal;
  color: #bec8cc;
  padding: 0 4px;
}
.unit-heading h3 {
  font-size: 13px;
  margin: 1px 0 0;
}
.unit-heading > small {
  margin-right: auto;
  color: #87959d;
  font-size: 9px;
}
.lesson-list {
  border: 1px solid #e4eaeb;
  border-radius: 14px;
  background: #fff;
  margin-top: 8px;
  overflow: hidden;
}
.lesson-row {
  min-height: 62px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid #edf0f1;
}
.lesson-row:last-child {
  border-bottom: 0;
}
.lesson-state {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
  color: #328e83;
  background: #edf7f4;
  font-size: 13px;
}
.lesson-state.is-done {
  background: #e4f5e9;
  color: #288347;
}
.lesson-row-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.lesson-row-copy strong {
  font-size: 10px;
}
.lesson-row-copy span {
  font-size: 8px;
  color: #81909a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lesson-time {
  margin-right: auto;
  white-space: nowrap;
  color: #80909a;
  font-size: 8px;
}
.lesson-open {
  border: 0;
  background: transparent;
  color: #128d80;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  padding: 6px 4px;
}
.lesson-open span {
  margin-right: 4px;
}
.empty-state {
  min-height: 200px;
  border: 1px dashed #d7e2e4;
  border-radius: 16px;
  background: #fff;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  padding: 20px;
}
.empty-state > span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #eef7f5;
  color: #168c80;
  display: grid;
  place-items: center;
  font-size: 21px;
}
.empty-state h3 {
  margin: 9px 0 2px;
  font-size: 14px;
}
.empty-state p {
  margin: 0;
  color: #81909a;
  font-size: 10px;
}
.small-empty {
  min-height: 165px;
  border: 0;
  background: transparent;
}
.back-link {
  border: 0;
  background: transparent;
  color: #67818c;
  padding: 0 0 9px;
  font-size: 10px;
}
.lesson-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  margin-bottom: 14px;
  border-radius: 17px;
  background: linear-gradient(110deg, #eaf6f2, #eef3fa);
  border: 1px solid #e4eeed;
}
.lesson-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.lesson-tags span {
  padding: 4px 8px;
  border-radius: 20px;
  background: #ffffffc9;
  color: #5b7782;
  font-size: 8px;
}
.lesson-hero h1 {
  font-size: 23px;
  margin: 8px 0 4px;
  line-height: 1.45;
}
.lesson-hero p {
  margin: 0;
  color: #6f838c;
  font-size: 10px;
}
.lesson-progress-badge {
  width: 55px;
  height: 55px;
  border: 1px solid #cce4df;
  border-radius: 17px;
  background: #ffffffb5;
  display: grid;
  place-content: center;
  text-align: center;
  color: #168d80;
  flex: none;
}
.lesson-progress-badge > span {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}
.lesson-progress-badge small {
  font-size: 7px;
  margin-top: 4px;
}
.lesson-progress-badge.completed {
  background: #e2f7e9;
  border-color: #c2e9cf;
  color: #26814a;
}
.lesson-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(225px, 0.74fr);
  gap: 13px;
  align-items: start;
}
.lesson-main-column,
.lesson-side-column {
  display: grid;
  gap: 13px;
}
.content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 16px #11263b04;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-heading h2 {
  font-size: 15px;
  margin: 2px 0 0;
}
.card-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #ecf7f4;
  color: #188d80;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.experiment-prompt {
  margin: 13px 0;
  padding: 11px 12px;
  background: #f7faf9;
  border-right: 3px solid #4cc9b7;
  border-radius: 8px;
  color: #49646f;
  font-size: 10px;
}
.graph-shell {
  border: 1px solid #e2e9eb;
  border-radius: 13px;
  overflow: hidden;
}
.graph-shell-head {
  min-height: 49px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #e8edef;
  background: #fff;
}
.desmos-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #1975d2;
  color: #fff;
  font:
    bold 15px Georgia,
    serif;
}
.graph-shell-head > div {
  display: grid;
  line-height: 1.35;
}
.graph-shell-head > div strong {
  font-size: 9px;
}
.graph-shell-head > div small {
  font-size: 8px;
  color: #82929b;
  margin-top: 2px;
}
.quiet-button {
  margin-right: auto;
  border: 1px solid #e2e9eb;
  background: #fff;
  border-radius: 8px;
  padding: 6px 8px;
  color: #657d87;
  font-size: 8px;
}
.lesson-graph {
  height: 325px;
  min-height: 270px;
  position: relative;
  background: #fff;
}
.graph-placeholder {
  height: 100%;
  min-height: 270px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 35%, #eef8f6, transparent 53%), #fff;
}
.placeholder-curve {
  width: 49px;
  height: 49px;
  border-radius: 15px;
  background: #e6f6f2;
  color: #1c9a8c;
  display: grid;
  place-items: center;
  font-size: 29px;
  margin-bottom: 9px;
}
.graph-placeholder h3 {
  font-size: 12px;
  margin: 0 0 4px;
}
.graph-placeholder p {
  max-width: 360px;
  margin: 0 0 11px;
  font-size: 9px;
  color: #7a8991;
}
.graph-placeholder .link-button {
  margin-top: 6px;
}
.graph-loading,
.graph-error {
  height: 100%;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 25px;
  color: #74858e;
  font-size: 10px;
}
.loader {
  width: 27px;
  height: 27px;
  border: 3px solid #dcece9;
  border-top-color: #23a997;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 10px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.graph-error strong {
  color: #a04e40;
}
.graph-error p {
  max-width: 350px;
}
.experiment-steps {
  display: grid;
  gap: 0;
  margin-top: 12px;
}
.experiment-step {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 1px;
}
.experiment-step > span {
  color: #168f81;
  font:
    10px "Courier New",
    monospace;
  margin-top: 1px;
}
.experiment-step p {
  margin: 0;
  color: #72838d;
  font-size: 9px;
}
.reflection-card {
  padding-bottom: 16px;
}
.quiz-question {
  font-size: 11px;
  font-weight: 700;
  margin: 14px 0 10px;
}
.quiz-options {
  display: grid;
  gap: 7px;
}
.quiz-choice {
  min-height: 42px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
  background: #fff;
  border: 1px solid #e2e9eb;
  border-radius: 10px;
  padding: 7px 9px;
  color: #415665;
  font-size: 9px;
  transition: 0.15s;
}
.quiz-choice:hover {
  border-color: #9ad9ce;
  background: #f8fcfb;
}
.choice-letter {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #f1f5f5;
  color: #778991;
  display: grid;
  place-items: center;
  flex: none;
  font:
    bold 9px Arial,
    sans-serif;
}
.quiz-choice.selected {
  border-color: #55cbbc;
  background: #f0faf7;
}
.quiz-choice.correct {
  border-color: #68c993;
  background: #f0fbf4;
}
.quiz-choice.correct .choice-letter {
  background: #d8f1e1;
  color: #217d46;
}
.quiz-choice.incorrect {
  border-color: #e4a097;
  background: #fff7f5;
}
.quiz-choice.incorrect .choice-letter {
  background: #fde5e0;
  color: #b25345;
}
.feedback-box {
  display: none;
  border-radius: 10px;
  margin-top: 10px;
  padding: 9px 11px;
  font-size: 9px;
}
.feedback-box.visible {
  display: grid;
  gap: 3px;
}
.feedback-box b {
  font-size: 9px;
}
.feedback-box span {
  line-height: 1.6;
}
.feedback-box.success {
  background: #edf8f0;
  color: #38744a;
}
.feedback-box.try-again {
  background: #fff5ed;
  color: #9b6944;
}
.complete-button {
  margin-top: 12px;
  width: 100%;
}
.objective-card {
  background: linear-gradient(160deg, #fff, #f6faf9);
}
.objective-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #e6f7f3;
  color: #189587;
  display: grid;
  place-items: center;
  margin: 14px 0 7px;
  font-size: 18px;
}
.objective-card > p {
  font-size: 10px;
  color: #526a75;
  margin: 0 0 13px;
}
.goal-divider {
  height: 1px;
  background: #e6eded;
  margin: 12px 0;
}
.goal-row {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: #87959c;
  font-size: 8px;
}
.goal-row b {
  color: #485e6b;
  font-weight: 600;
}
.formula-card .formula-preview {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}
.formula-preview code {
  display: block;
  direction: ltr;
  text-align: left;
  padding: 7px 8px;
  border-radius: 7px;
  background: #f4f7f9;
  color: #425d69;
  font:
    9px "Courier New",
    monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
.formula-card > p {
  color: #82919a;
  font-size: 8px;
  margin: 0;
}
.offline-note {
  display: flex;
  gap: 8px;
  padding: 11px;
  border: 1px solid #e9ece6;
  border-radius: 12px;
  background: #fcfbf6;
  color: #857a5f;
  font-size: 8px;
}
.offline-note span {
  font-size: 14px;
}
.offline-note p {
  margin: 0;
}
.graph-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.6fr);
  gap: 13px;
  align-items: start;
}
.graph-page-card {
  padding: 0;
  overflow: hidden;
}
.full-graph {
  height: 530px;
  min-height: 400px;
}
.full-graph .graph-placeholder {
  height: 100%;
}
.graph-presets > h2 {
  font-size: 15px;
  margin: 4px 0;
}
.graph-presets > p {
  margin: 0 0 15px;
  color: #7c8b94;
  font-size: 9px;
}
.graph-presets > label {
  display: block;
  margin-bottom: 5px;
}
.graph-presets .button {
  width: 100%;
  margin-top: 10px;
}
.graph-notice {
  display: grid;
  gap: 4px;
  margin: 15px 0;
  padding: 10px;
  border-radius: 9px;
  background: #f4f8f8;
  color: #627b82;
  font-size: 8px;
}
.graph-notice b {
  color: #3d6266;
}
.graph-presets > .inline-link {
  display: inline-block;
  margin-top: 7px;
}
.challenge-score {
  text-align: left;
  display: grid;
}
.challenge-score strong {
  font-size: 23px;
  color: #148d80;
}
.challenge-score span {
  font-size: 9px;
  color: #80909b;
}
.challenge-card {
  position: relative;
  overflow: hidden;
  padding: 29px 32px;
  border-radius: 19px;
  border: 1px solid #e2e9eb;
  background: #fff;
  box-shadow: var(--shadow);
  max-width: 850px;
  margin: 0 auto;
}
.challenge-deco {
  position: absolute;
  left: 18px;
  top: -38px;
  font-size: 150px;
  line-height: 1;
  color: #eaf7f4;
  font-weight: 700;
  pointer-events: none;
}
.challenge-label {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.challenge-label span {
  padding: 4px 8px;
  border-radius: 20px;
  background: #eff8f5;
  color: #4e807b;
  font-size: 8px;
}
.challenge-card h2 {
  position: relative;
  z-index: 1;
  font-size: 18px;
  line-height: 1.7;
  max-width: 640px;
  margin: 18px 0;
}
.challenge-options {
  max-width: 650px;
  position: relative;
  z-index: 1;
}
.challenge-options .quiz-choice {
  min-height: 48px;
}
.challenge-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #edf0f1;
  margin-top: 19px;
  padding-top: 14px;
  color: #7d8e97;
  font-size: 9px;
}
.challenge-footer .button {
  min-height: 36px;
}
.rank-badge {
  display: grid;
  text-align: center;
  padding: 9px 15px;
  border-radius: 12px;
  background: #f0f7f3;
  color: #168d80;
  font-size: 9px;
}
.rank-badge span {
  color: #7d8b91;
  font-size: 8px;
  margin-top: 3px;
}
.achievement-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  margin: 15px 0;
}
.rank-card {
  position: relative;
  overflow: hidden;
  min-height: 165px;
}
.rank-card .rank-orbit {
  position: absolute;
  left: 16px;
  top: 17px;
  width: 62px;
  height: 62px;
  border: 1px solid #b3ded0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #138b7e;
  font-size: 23px;
  background: radial-gradient(#dff4ea 40%, transparent 42%);
}
.rank-card h2 {
  font-size: 15px;
  margin: 4px 0;
}
.rank-card > p {
  font-size: 9px;
  color: #819099;
  margin: 0 0 12px;
}
.progress-track {
  height: 6px;
  border-radius: 10px;
  background: #eef1f1;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  background: #40c5ae;
  border-radius: 10px;
}
.rank-card > small {
  display: block;
  color: #819098;
  font-size: 8px;
  margin-top: 5px;
}
.stat-achievement {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 116px;
}
.stat-achievement > div {
  display: grid;
}
.stat-achievement small {
  color: #83919a;
  font-size: 8px;
}
.stat-achievement strong {
  font-size: 21px;
  margin: 2px 0;
}
.stat-achievement span:last-child {
  font-size: 8px;
  color: #8d9aa0;
}
.history-card {
  margin-top: 14px;
}
.section-heading.compact {
  margin: 0 0 10px;
}
.section-heading.compact h2 {
  font-size: 15px;
}
.history-list {
  border-top: 1px solid #edf0f1;
}
.history-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid #edf0f1;
}
.history-check {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: #eaf7ed;
  color: #34874b;
  display: grid;
  place-items: center;
}
.history-row > div {
  display: grid;
}
.history-row b {
  font-size: 9px;
}
.history-row small {
  font-size: 8px;
  color: #819098;
}
.xp-tag {
  margin-right: auto;
  padding: 4px 7px;
  border-radius: 20px;
  background: #fbf5e9;
  color: #a77b35;
  font-size: 8px;
}
.teacher-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 13px;
}
.teacher-form {
  display: grid;
  gap: 8px;
}
.teacher-form h2 {
  margin: 0 0 4px;
  font-size: 15px;
}
.teacher-form > label {
  margin-top: 4px;
}
.teacher-form .button {
  margin-top: 7px;
}
.field-hint {
  margin: 2px 0 0;
  font-size: 8px;
  color: #89969c;
  line-height: 1.65;
}
.demo-badge {
  padding: 7px 10px;
  border-radius: 25px;
  background: #fbf3e3;
  color: #9a7339;
  font-size: 9px;
}
.activity-count {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #edf7f4;
  color: #168d80;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.activity-list {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}
.activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 11px;
  background: #f8faf9;
}
.activity-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #fff;
  color: #168d80;
}
.activity-item > div {
  display: grid;
}
.activity-item b {
  font-size: 9px;
}
.activity-item small {
  color: #87959c;
  font-size: 8px;
}
.wide-warning {
  margin-top: 13px;
}
.guide-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.guide-card h2 {
  font-size: 15px;
  margin: 4px 0 9px;
}
.guide-card > p {
  font-size: 9px;
  color: #6e818b;
  line-height: 1.8;
  margin: 0 0 13px;
}
.guide-card .button {
  margin: 4px 0 8px;
}
.guide-card > .inline-link {
  display: block;
}
.full-width {
  grid-column: 1/-1;
}
.note-list {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}
.note-list p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 8px 9px;
  border-radius: 8px;
  background: #f7faf9;
  color: #72838c;
  font-size: 8px;
  line-height: 1.7;
}
.note-list p span {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #e6f4f1;
  color: #168d80;
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 700;
}
.references-list {
  display: grid;
  border-top: 1px solid #edf0f0;
}
.reference-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f0;
}
.reference-row > div {
  display: grid;
  gap: 3px;
}
.reference-row b {
  font-size: 9px;
}
.reference-row span,
.reference-row small {
  font-size: 8px;
  color: #7f8f97;
}
.reference-row a {
  margin-right: auto;
  white-space: nowrap;
  color: #168b80;
  font-size: 8px;
  text-decoration: none;
}
.reference-row a:hover {
  text-decoration: underline;
}
.local-warning {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  border-radius: 11px;
  background: #fff9eb;
  border: 1px solid #f1e8d4;
  color: #786844;
}
.local-warning > span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f5ebd3;
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 700;
  font-size: 10px;
}
.local-warning p {
  margin: 0;
  font-size: 8px;
  line-height: 1.7;
}
.scrim {
  display: none;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #101d2bb3;
  display: grid;
  place-items: center;
  padding: 18px;
  backdrop-filter: blur(3px);
}
.modal-backdrop[hidden] {
  display: none;
}
.settings-dialog {
  background: #fff;
  width: min(100%, 490px);
  max-height: 92vh;
  overflow: auto;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 28px 90px #0015234d;
  animation: fade-in 0.2s ease;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 15px;
}
.modal-head h2 {
  font-size: 19px;
  margin: 2px 0;
}
.icon-button {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  border: 1px solid #e1e8e9;
  background: #fff;
  color: #647986;
  display: grid;
  place-items: center;
  font-size: 16px;
}
.settings-section {
  margin: 15px 0;
}
.settings-section > label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 6px;
}
.settings-section .input {
  min-height: 42px;
  font-size: 10px;
}
.settings-section .field-hint {
  margin-top: 5px;
}
.key-row {
  display: flex;
  gap: 7px;
  align-items: center;
}
.key-row .input {
  flex: 1;
}
.inline-link {
  color: #168b80;
  text-decoration: none;
  font-size: 9px;
}
.inline-link:hover {
  text-decoration: underline;
}
.modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
}
.modal-actions .button:first-child {
  flex: 1;
}
.modal-actions .button-secondary {
  min-width: 105px;
}
.toast {
  position: fixed;
  z-index: 70;
  bottom: 20px;
  left: 20px;
  max-width: min(90vw, 400px);
  padding: 10px 15px;
  border-radius: 11px;
  background: #17364b;
  color: #fff;
  font-size: 10px;
  box-shadow: 0 10px 24px #0f253931;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.toast.visible {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu {
  display: none;
}
@media (max-width: 1100px) {
  :root {
    --sidebar: 225px;
  }
  .hero-panel {
    padding: 30px;
  }
  .hero-art {
    min-height: 215px;
  }
  .lesson-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(205px, 0.75fr);
  }
  .graph-page-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(230px, 0.7fr);
  }
}
@media (max-width: 850px) {
  :root {
    --sidebar: 0px;
  }
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    right: -280px;
    top: 0;
    width: 258px;
    height: 100dvh;
    transition: right 0.25s ease;
    box-shadow: -12px 0 35px #071a2926;
  }
  .sidebar.open {
    right: 0;
  }
  .scrim.visible {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 11;
    background: #071b2d66;
  }
  .mobile-menu {
    display: grid;
  }
  .topbar {
    height: 64px;
    padding: 0 16px;
  }
  .topbar-start {
    gap: 10px;
  }
  .topbar-end {
    gap: 8px;
  }
  .main-content {
    padding: 22px 17px 0;
  }
  .hero-panel {
    min-height: 295px;
    grid-template-columns: 1.05fr 0.85fr;
    padding: 27px 26px;
  }
  .hero-art {
    min-height: 190px;
  }
  .hero-copy h1 {
    font-size: 30px;
  }
  .learning-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .strip-head {
    align-items: center;
  }
  .strip-head h2 {
    margin: 1px 0;
  }
  .lesson-layout {
    grid-template-columns: 1fr;
  }
  .lesson-side-column {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .offline-note {
    grid-column: 1/-1;
  }
  .graph-page-grid {
    grid-template-columns: 1fr;
  }
  .full-graph {
    height: 430px;
  }
}
@media (max-width: 600px) {
  .topbar {
    padding: 0 12px;
  }
  .breadcrumb {
    font-size: 9px;
    gap: 7px;
  }
  .topbar-end {
    gap: 7px;
  }
  .top-grade {
    padding: 6px 9px;
    font-size: 9px;
  }
  .profile-chip span:last-child {
    display: none;
  }
  .avatar {
    width: 31px;
    height: 31px;
  }
  .main-content {
    padding: 16px 12px 0;
  }
  .hero-panel {
    display: block;
    min-height: 0;
    padding: 23px 20px 20px;
    border-radius: 18px;
  }
  .hero-copy h1 {
    font-size: 27px;
    margin-top: 14px;
  }
  .hero-copy > p {
    font-size: 10px;
    max-width: 100%;
  }
  .hero-proof {
    margin-top: 18px;
  }
  .hero-art {
    position: absolute;
    left: -72px;
    bottom: -44px;
    width: 210px;
    height: 170px;
    min-height: 0;
    opacity: 0.45;
  }
  .equation-float,
  .hero-sticker {
    display: none;
  }
  .metric-row {
    gap: 7px;
    margin-top: 10px;
  }
  .metric-card {
    min-height: 73px;
    padding: 9px 8px;
    gap: 7px;
    flex-wrap: wrap;
  }
  .metric-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 14px;
  }
  .metric-card small {
    font-size: 8px;
  }
  .metric-card strong {
    font-size: 15px;
    margin-top: 2px;
  }
  .metric-card strong i {
    font-size: 8px;
  }
  .metric-trend {
    display: none;
  }
  .section-block {
    margin-top: 25px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .section-heading p {
    font-size: 9px;
  }
  .home-lesson-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .spotlight-card {
    min-height: 173px;
    padding: 13px 14px;
  }
  .spotlight-meta {
    margin-top: 10px;
  }
  .spotlight-card p {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .learning-strip {
    padding: 15px;
  }
  .learning-steps {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .learning-steps > div {
    grid-template-columns: 27px 1fr;
  }
  .learning-steps span {
    grid-column: 2;
  }
  .site-footer {
    gap: 9px;
    font-size: 8px;
  }
  .site-footer span:nth-child(2) {
    display: none;
  }
  .page-intro {
    align-items: flex-start;
    margin: 4px 0 16px;
  }
  .page-intro h1 {
    font-size: 23px;
  }
  .page-intro p {
    font-size: 9px;
  }
  .curriculum-total {
    display: none;
  }
  .curriculum-controls {
    grid-template-columns: 1fr 1fr;
    padding: 9px;
    gap: 8px;
  }
  .search-field {
    grid-column: 1/-1;
  }
  .curriculum-banner {
    align-items: flex-start;
    padding: 9px;
  }
  .curriculum-banner .inline-button {
    font-size: 8px;
  }
  .lesson-row {
    gap: 7px;
    padding: 9px;
  }
  .lesson-row-copy {
    flex: 1;
  }
  .lesson-row-copy strong {
    font-size: 9px;
  }
  .lesson-row-copy span {
    font-size: 7px;
    max-width: 200px;
  }
  .lesson-time {
    display: none;
  }
  .lesson-open {
    font-size: 8px;
    padding: 5px 0;
  }
  .unit-heading {
    gap: 8px;
  }
  .lesson-hero {
    padding: 15px;
  }
  .lesson-hero h1 {
    font-size: 19px;
  }
  .lesson-hero p {
    font-size: 9px;
  }
  .lesson-progress-badge {
    width: 47px;
    height: 47px;
    border-radius: 14px;
  }
  .content-card {
    padding: 14px;
  }
  .lesson-side-column {
    grid-template-columns: 1fr;
  }
  .lesson-graph {
    height: 290px;
    min-height: 250px;
  }
  .graph-placeholder {
    min-height: 250px;
    padding: 14px;
  }
  .graph-shell-head {
    gap: 7px;
  }
  .graph-shell-head > div strong {
    font-size: 8px;
  }
  .quiet-button {
    font-size: 7px;
    padding: 5px;
  }
  .challenge-card {
    padding: 21px 16px;
  }
  .challenge-card h2 {
    font-size: 15px;
  }
  .challenge-footer {
    gap: 8px;
    font-size: 8px;
  }
  .achievement-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .rank-card {
    grid-column: 1/-1;
  }
  .stat-achievement {
    min-height: 95px;
    padding: 12px;
    gap: 8px;
  }
  .stat-achievement .metric-icon {
    width: 30px;
    height: 30px;
  }
  .stat-achievement strong {
    font-size: 17px;
  }
  .teacher-layout,
  .guide-layout {
    grid-template-columns: 1fr;
  }
  .full-width {
    grid-column: auto;
  }
  .reference-row {
    align-items: flex-start;
  }
  .reference-row a {
    font-size: 7px;
  }
  .graph-presets .button {
    width: 100%;
  }
  .full-graph {
    height: 350px;
    min-height: 300px;
  }
  .settings-dialog {
    padding: 17px;
  }
  .modal-actions {
    flex-wrap: wrap;
  }
  .modal-actions .button {
    min-height: 40px;
  }
  .toast {
    left: 10px;
    bottom: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

[hidden] {
  display: none !important;
}
.auth-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 26px;
  background:
    radial-gradient(circle at 15% 12%, #d8f4eb 0, transparent 28%),
    radial-gradient(circle at 90% 88%, #e3eafa 0, transparent 31%), #f4f7f8;
}
.auth-card {
  width: min(100%, 480px);
  padding: 34px;
  border: 1px solid #e1e9e8;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 70px #15324814;
}
.auth-brand {
  width: fit-content;
  margin: 0 0 31px;
  padding: 0 0 18px;
  border-color: #e8eeee;
  color: var(--ink);
}
.auth-card > .eyebrow {
  color: #0c9585;
  font-size: 10px;
}
.auth-card > h1 {
  margin: 7px 0 4px;
  font-size: 25px;
  letter-spacing: -0.4px;
}
.auth-intro {
  margin: 0 0 22px;
  color: #77868e;
  font-size: 11px;
}
.auth-form {
  display: grid;
  gap: 13px;
}
.auth-form > label,
.admin-form > label,
.admin-form-row > label {
  display: grid;
  gap: 6px;
  color: #344c5a;
  font-size: 10px;
  font-weight: 700;
}
.auth-form .input,
.admin-form .input {
  min-height: 44px;
  font-size: 12px;
}
.auth-form .button {
  width: 100%;
  min-height: 45px;
  margin-top: 4px;
  font-size: 11px;
}
.guest-form {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #e8eeee;
}
.guest-form .button-secondary {
  border-color: #dce9e8;
  background: #f7fbfa;
  color: #286c67;
}
.auth-card .field-hint {
  margin: 0;
  line-height: 1.8;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 17px 0;
  color: #91a0a5;
  font-size: 9px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e8eeee;
}
.auth-admin-button {
  width: 100%;
  min-height: 43px;
  border-color: #dfe8ea;
  font-size: 10px;
}
.auth-notice {
  min-height: 0;
  margin-top: 12px;
  color: #71818a;
  font-size: 10px;
  line-height: 1.7;
}
.auth-notice:empty {
  display: none;
}
.auth-notice.error {
  padding: 9px 11px;
  border: 1px solid #f3d4ce;
  border-radius: 9px;
  background: #fff6f4;
  color: #a94f40;
}
.auth-notice.success {
  padding: 9px 11px;
  border: 1px solid #d6eee4;
  border-radius: 9px;
  background: #f2faf5;
  color: #327560;
}
.first-password-form {
  margin-top: 14px;
}
.topbar-end {
  display: flex;
  align-items: center;
}
.logout-button {
  min-height: 34px;
  padding: 0 10px;
  color: #637884;
}
.admin-intro {
  align-items: center;
}
.admin-secure-pill {
  padding: 7px 11px;
  border: 1px solid #d9eee7;
  border-radius: 30px;
  background: #eff9f5;
  color: #267965;
  font-size: 9px;
  white-space: nowrap;
}
.admin-layout {
  display: grid;
  grid-template-columns: minmax(275px, 0.38fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.admin-create-card,
.admin-table-card {
  min-width: 0;
  padding: 18px;
}
.admin-form {
  display: grid;
  gap: 12px;
}
.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 9px;
}
.admin-form .button {
  min-height: 42px;
  width: 100%;
  font-size: 10px;
}
.roster-import {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #edf0f1;
}
.roster-import h3 {
  margin: 0;
  font-size: 11px;
}
.roster-import > p {
  margin: 4px 0 10px;
  color: #7d8b93;
  font-size: 9px;
  line-height: 1.7;
}
.roster-actions {
  display: grid;
  gap: 8px;
}
.roster-actions input[type="file"] {
  width: 100%;
  min-width: 0;
  padding: 8px;
  border: 1px dashed #cbd8d9;
  border-radius: 9px;
  color: #617680;
  font-size: 9px;
}
.roster-actions .button {
  min-height: 36px;
  font-size: 9px;
}
.roster-actions .text-button {
  justify-self: start;
  font-size: 9px;
}
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 12px 0;
}
.admin-filters label {
  display: grid;
  min-width: 125px;
  gap: 4px;
  color: #70818a;
  font-size: 9px;
}
.admin-filters .input {
  min-height: 35px;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e9eeee;
  border-radius: 11px;
}
.admin-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  text-align: right;
  font-size: 9px;
}
.admin-table th {
  padding: 10px 9px;
  background: #f5f8f8;
  color: #60737e;
  font-weight: 700;
  white-space: nowrap;
}
.admin-table td {
  padding: 10px 9px;
  border-top: 1px solid #edf0f1;
  color: #526671;
  white-space: nowrap;
}
.admin-table td strong {
  color: #213846;
}
.admin-table code {
  direction: ltr;
  unicode-bidi: plaintext;
  color: #178879;
  font-size: 9px;
}
.admin-table .quiet-button {
  min-height: 29px;
  padding: 0 8px;
  white-space: nowrap;
  font-size: 8px;
}
.admin-table-card > .field-hint {
  margin: 9px 1px 0;
  line-height: 1.8;
}
.issued-credentials {
  margin: 12px 0;
  padding: 13px;
  border: 1px solid #f0dfb8;
  border-radius: 12px;
  background: #fffbf1;
}
.issued-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}
.issued-actions {
  display: flex;
  flex: none;
  align-items: flex-start;
  gap: 6px;
}
.issued-actions .button {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 9px;
}
.issued-head strong {
  color: #6e531f;
  font-size: 10px;
}
.issued-head p {
  margin: 3px 0 0;
  color: #8b7955;
  font-size: 8px;
}
.issued-head .icon-button {
  flex: none;
  width: 30px;
  height: 30px;
}
.issued-list {
  display: grid;
  gap: 5px;
  max-height: 230px;
  margin-top: 10px;
  overflow: auto;
}
.issued-row {
  display: grid;
  grid-template-columns: minmax(100px, 1.5fr) minmax(90px, 1fr) minmax(
      110px,
      1fr
    );
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid #f2ecd9;
  border-radius: 8px;
  background: #fff;
  color: #65727a;
  font-size: 8px;
}
.issued-row code {
  direction: ltr;
  unicode-bidi: plaintext;
  color: #225d53;
  font-size: 9px;
  font-weight: 700;
}
@media (max-width: 1150px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-create-card {
    max-width: none;
  }
}
@media (max-width: 600px) {
  .auth-screen {
    padding: 13px;
  }
  .auth-card {
    padding: 23px 19px;
    border-radius: 18px;
  }
  .auth-card > h1 {
    font-size: 21px;
  }
  .admin-intro {
    align-items: flex-start;
  }
  .admin-secure-pill {
    margin-top: 8px;
  }
  .admin-create-card,
  .admin-table-card {
    padding: 13px;
  }
  .admin-form-row {
    grid-template-columns: 1fr 0.75fr;
  }
  .issued-row {
    grid-template-columns: 1fr 1fr;
  }
  .issued-row > span {
    grid-column: 1 / -1;
  }
  .logout-button {
    min-height: 31px;
    padding: 0 7px;
    font-size: 8px;
  }
}
