@import url("/vendor/katex/katex.min.css");
#sidebar {
  overflow-y: auto;
}
@media (max-height: 1000px) {
  .teacher-note {
    display: none;
  }
  .sidebar-bottom {
    padding-top: 15px;
  }
  nav a {
    padding-top: 9px;
    padding-bottom: 9px;
  }
}
:root {
  --bg: #f7f8f5;
  --panel: #fff;
  --ink: #253a36;
  --muted: #58665e;
  --line: #e3e8e0;
  --green: #244c45;
  --soft: #edf2e9;
  --accent: #d7e7bd;
  --shadow: 0 10px 30px #243e3110;
  color-scheme: light;
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
body.dark {
  --bg: #15221f;
  --panel: #1e302b;
  --ink: #eef3e9;
  --muted: #b3c1b5;
  --line: #3b5148;
  --green: #b6d5be;
  --soft: #2a3f34;
  --accent: #47603d;
  color-scheme: dark;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 16px;
  background: var(--panel);
  color: var(--ink);
}
button:hover {
  border-color: #83a08f;
  background: var(--soft);
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  background: var(--panel);
  color: var(--ink);
  max-width: 100%;
}
textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
}
label {
  display: grid;
  gap: 7px;
  font-weight: 600;
  font-size: 12px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -1.7px;
  font-size: 46px;
  line-height: 1.16;
  margin-bottom: 16px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  font-weight: 600;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 600;
  background: var(--soft);
  color: var(--green);
}
.primary {
  background: #244c45;
  color: white;
  border-color: #244c45;
}
.primary:hover {
  background: #37665a;
  color: white;
}
.quiet {
  background: transparent;
  border: 0;
  padding: 8px;
  color: var(--muted);
}
#sidebar {
  width: 244px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 32px 20px 18px;
  display: flex;
  flex-direction: column;
  z-index: 50;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 0 8px 43px;
}
.brand-light {
  font-weight: 400;
}
.brand small {
  display: block;
  font-size: 7px;
  letter-spacing: 2px;
  font-weight: 600;
  margin-top: 1px;
  color: var(--muted);
}
.brand-mark {
  background: #244c45;
  color: #fff;
  border-radius: 11px;
  width: 41px;
  height: 43px;
  display: grid;
  place-items: center;
  font: 42px Georgia;
  position: relative;
  line-height: 1;
}
.brand-mark span {
  position: absolute;
  font: 16px Georgia;
  top: -2px;
  right: 0;
  color: #e6b76c;
}
.workspace-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--muted);
  padding: 0 12px 16px;
}
.workspace-label span {
  float: right;
}
nav {
  display: grid;
  gap: 5px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}
nav a.active {
  background: var(--soft);
  color: var(--green);
  font-weight: 600;
}
nav a:hover {
  background: var(--soft);
}
nav a span {
  width: 20px;
  font-size: 18px;
  text-align: center;
}
nav .nav-divider {
  height: 1px;
  background: var(--line);
  margin: 13px 10px;
}
nav small {
  font-size: 9px;
  background: #eee7f8;
  color: #7752a5;
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 25px;
}
.teacher-note {
  padding: 19px 15px;
  border-radius: 10px;
  background: var(--bg);
  margin-bottom: 17px;
}
.teacher-note > span {
  color: #6e9262;
  font-size: 27px;
}
.teacher-note strong {
  display: block;
  font: 17px/1.35 Georgia;
  margin: 8px 0;
}
.teacher-note p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.sidebar-bottom > .quiet {
  font-size: 11px;
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 5px 0 18px;
}
.profile {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 18px 1px 0;
  width: 100%;
  text-align: left;
  background: transparent;
  font-size: 10px;
}
.avatar {
  width: 31px;
  height: 31px;
  background: #e7eddf;
  color: #496147;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
}
.profile small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  font-weight: 400;
}
.page {
  margin-left: 244px;
}
header {
  height: 77px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 44px;
  background: var(--panel);
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 13px;
  color: #b7c0b8;
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 500;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 10px;
}
.online {
  color: #54794d;
  font-size: 10px;
}
.header-actions button {
  font-size: 11px;
}
#mobile-menu {
  display: none;
}
main {
  padding: 35px 44px 55px;
  max-width: 1600px;
  margin: auto;
  min-height: calc(100vh - 140px);
}
.greeting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  font-size: 11px;
  color: var(--muted);
}
.greeting strong {
  color: var(--ink);
  font-weight: 500;
}
.greeting .date {
  font-size: 10px;
}
.hero {
  background: #eaf0e3;
  border: 1px solid #dfe7d6;
  position: relative;
  border-radius: 15px;
  padding: 35px 38px 32px;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: center;
  color: #263e32;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 58%;
}
.hero .eyebrow {
  color: #4f674b;
  font-size: 9px;
}
.hero p {
  font-size: 12px;
  line-height: 1.8;
  color: #506249;
  max-width: 410px;
  margin-bottom: 21px;
}
.hero h1 {
  font-size: 43px;
  max-width: 430px;
}
.hero h1 em {
  color: #638255;
  font-weight: 400;
}
.hero-art {
  position: absolute;
  width: 39%;
  height: 95%;
  right: 1%;
  bottom: 0;
}
.hero-buttons {
  display: flex;
  gap: 10px;
}
.hero-buttons button {
  font-size: 11px;
}
.hero-buttons .quiet {
  color: #3b5b38;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 32px 0 16px;
}
.section-top h2 {
  margin: 0;
  font-size: 19px;
}
.section-top p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 0;
}
.text-link {
  font-size: 11px;
  color: var(--green);
  border: 0;
  background: transparent;
  padding: 0;
}
.actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-top: 22px;
}
.action {
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 16px 13px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.action .action-icon {
  height: 36px;
  width: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 20px;
  background: var(--soft);
  color: #5e7850;
}
.action strong {
  font-size: 11px;
  display: block;
}
.action small {
  font-size: 9px;
  display: block;
  color: var(--muted);
  margin-top: 2px;
}
.action .arrow {
  margin-left: auto;
  color: #98a196;
  font-size: 14px;
}
.toolbar {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 16px 0 20px;
  flex-wrap: wrap;
}
.toolbar input {
  flex: 1;
  min-width: 180px;
  font-size: 11px;
}
.toolbar select {
  font-size: 11px;
}
.subject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.subject-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.subject-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.subject-art {
  height: 139px;
  position: relative;
  display: grid;
  place-items: center;
  background: var(--wash);
  overflow: hidden;
}
.subject-art svg {
  height: 100%;
  width: 100%;
  max-width: 330px;
}
.subject-art .grade-tag {
  position: absolute;
  top: 12px;
  left: 13px;
  color: var(--subject);
  font-size: 9px;
  font-weight: 600;
  background: #ffffffc9;
  border-radius: 5px;
  padding: 3px 7px;
}
.card-body {
  padding: 17px 18px 16px;
}
.card-body .category {
  font-size: 9px;
  color: var(--subject);
  font-weight: 600;
  margin-bottom: 6px;
}
.card-body h3 {
  font-size: 15px;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}
.card-body p {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  min-height: 34px;
  margin-bottom: 13px;
}
.card-bottom {
  border-top: 1px solid var(--line);
  padding-top: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: var(--muted);
}
.card-bottom a {
  color: var(--subject);
  font-weight: 600;
  font-size: 10px;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  margin-top: 29px;
}
.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.panel h2 {
  font-size: 17px;
}
.notice {
  background: #f5f1e7;
  border: 1px solid #e9ddc3;
  color: #725b2c;
  border-radius: 9px;
  padding: 12px 16px;
  font-size: 11px;
  margin: 18px 0;
}
.dark .notice {
  background: #3d3728;
  color: #e7d5ad;
}
.empty {
  padding: 30px 18px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 9px;
}
.list-row {
  display: flex;
  gap: 15px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.list-row:last-child {
  border: 0;
}
.list-row > div {
  flex: 1;
}
.list-row strong {
  font-size: 12px;
}
.list-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.list-row button {
  font-size: 10px;
  padding: 7px 10px;
}
.lab-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}
.lab-heading h1 {
  font-size: 36px;
  margin: 8px 0;
}
.lab-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 265px;
  gap: 20px;
  margin-top: 22px;
}
.lab-stage {
  min-height: 390px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 27px;
}
.lab-stage svg {
  width: 100%;
  max-height: 340px;
}
.control-stack {
  display: grid;
  gap: 17px;
}
.control-stack h3 {
  margin-bottom: 0;
}
.control-stack label input[type="range"] {
  width: 100%;
  padding: 0;
}
.result {
  font-size: 21px;
  color: var(--green);
  padding: 15px;
  background: var(--soft);
  border-radius: 8px;
}
.result small {
  font-size: 11px;
  display: block;
  color: var(--muted);
}
.fraction-bar {
  display: flex;
  height: 88px;
  border: 2px solid #4c70bf;
  border-radius: 6px;
  overflow: hidden;
  margin: 25px 0;
}
.fraction-bar button {
  flex: 1;
  border: 0;
  border-right: 2px solid #4c70bf;
  border-radius: 0;
  padding: 0;
  background: #eff3fc;
}
.fraction-bar button.selected {
  background: #7a9de4;
}
.fraction-bar button:last-child {
  border: 0;
}
.fraction-circle {
  width: 165px;
  height: 165px;
  margin: 20px auto;
  border: 2px solid #4c70bf;
  border-radius: 50%;
}
.numberline {
  position: relative;
  margin: 30px 10px 15px;
  border-top: 3px solid #4c70bf;
  display: flex;
  justify-content: space-between;
}
.numberline span {
  border-left: 1px solid #4c70bf;
  padding: 5px;
  font-size: 11px;
}
.numberline i {
  position: absolute;
  top: -9px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #244c45;
  transform: translateX(-50%);
}
#map {
  height: 400px;
  border-radius: 10px;
  background: #edf0df;
}
.robot-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  max-width: 400px;
  margin: auto;
  border: 1px solid var(--line);
  background: var(--soft);
}
.robot-cell {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 26px;
}
.robot-cell.wall {
  background: #9ba98d;
}
.robot-cell.target {
  background: #e4d2ac;
}
.program {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 6px;
}
.program li {
  padding: 8px;
  border-radius: 6px;
  background: #eee6f7;
  color: #65488d;
  display: flex;
  justify-content: space-between;
}
.program button {
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: inherit;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.full {
  grid-column: 1/-1;
}
.block {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 12px 0;
}
.block .toolbar {
  margin: 0 0 10px;
}
.block textarea {
  min-height: 85px;
}
.block select {
  flex: 1;
}
.tabs {
  display: flex;
  gap: 7px;
  margin: 20px 0;
}
.tabs button.active {
  background: var(--green);
  color: var(--panel);
}
.source-card {
  padding: 20px;
  border-left: 3px solid #bf9f5d;
  background: var(--bg);
  margin: 15px 0;
}
.source-card h3 {
  margin-bottom: 8px;
}
.source-card p {
  font-size: 13px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th,
td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 10px;
  color: var(--muted);
}
.scroll {
  overflow: auto;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  color: var(--ink);
  max-width: 620px;
  width: calc(100% - 40px);
  padding: 30px;
  box-shadow: 0 30px 100px #142a3838;
}
dialog::backdrop {
  background: #112d2766;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font: 29px Georgia;
}
.close {
  display: block;
  margin: 20px 0 0 auto;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #244c45;
  color: white;
  max-width: 90vw;
  padding: 13px 23px;
  border-radius: 9px;
  z-index: 1000;
  display: none;
  font-size: 12px;
  box-shadow: var(--shadow);
}
#toast.show {
  display: block;
}
.skip {
  position: fixed;
  left: 10px;
  top: -100px;
  z-index: 1001;
  background: var(--panel);
  padding: 10px;
}
.skip:focus {
  top: 10px;
}
footer {
  margin: 0 44px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
}
.dot {
  padding: 0 7px;
}
.presentation #sidebar,
.presentation header,
.presentation footer {
  display: none;
}
.presentation .page {
  margin: 0;
}
.presentation main {
  max-width: 1500px;
}
.presentation .lab-stage {
  min-height: 60vh;
}
.present-exit {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 100;
}
.offline-banner {
  background: var(--soft);
  padding: 10px;
  border-radius: 8px;
}
.field-error {
  color: #a23a38;
}
.metric {
  font: 36px Georgia;
}
.literacy-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}
.literacy-steps p {
  font-size: 12px;
  color: var(--muted);
}
.lesson-preview > section {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.trace {
  font: 11px monospace;
  max-height: 120px;
  overflow: auto;
  white-space: pre-wrap;
}
@media (min-width: 1500px) {
  main {
    padding-top: 40px;
  }
  .hero {
    min-height: 290px;
  }
  .subject-art {
    height: 160px;
  }
}
@media (max-width: 1150px) {
  #sidebar {
    width: 210px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .page {
    margin-left: 210px;
  }
  main {
    padding: 28px;
  }
  header {
    padding: 0 28px;
  }
  .actions {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero h1 {
    font-size: 37px;
  }
  .subject-grid {
    gap: 12px;
  }
  .card-body {
    padding: 14px;
  }
  .lab-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
  }
  footer {
    margin: 0 28px;
  }
}
@media (max-width: 850px) {
  #sidebar {
    width: 190px;
  }
  .page {
    margin-left: 190px;
  }
  .brand {
    font-size: 22px;
  }
  .brand-mark {
    width: 35px;
  }
  .subject-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    padding: 28px;
    min-height: 270px;
  }
  .hero-copy {
    max-width: 75%;
  }
  .hero-art {
    opacity: 0.35;
    width: 44%;
    right: -5%;
  }
  .hero h1 {
    font-size: 34px;
  }
  .bottom-grid,
  .lab-layout {
    grid-template-columns: 1fr;
  }
  .control-stack {
    grid-template-columns: 1fr 1fr;
  }
  .header-actions {
    gap: 12px;
  }
  .header-actions .quiet {
    font-size: 0;
  }
  .header-actions .quiet:first-letter {
    font-size: 18px;
  }
  .teacher-note {
    display: none;
  }
}
@media (max-width: 620px) {
  #sidebar {
    transform: translateX(-100%);
    width: 244px;
    transition: transform 0.2s;
  }
  body.menu-open #sidebar {
    transform: translateX(0);
    box-shadow: 0 0 0 100vw #162b2566;
  }
  .page {
    margin: 0;
  }
  header {
    height: 63px;
    padding: 0 20px;
  }
  main {
    padding: 22px 19px 35px;
  }
  .greeting .date {
    display: none;
  }
  .hero {
    padding: 25px 23px;
    min-height: 270px;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero-art {
    display: none;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero p {
    font-size: 11px;
  }
  .hero-buttons button {
    padding: 9px;
    font-size: 10px;
  }
  .actions {
    gap: 9px;
  }
  .action {
    padding: 12px 10px;
    gap: 8px;
  }
  .action .action-icon {
    width: 28px;
    height: 30px;
    font-size: 16px;
  }
  .action strong {
    font-size: 10px;
  }
  .action small {
    font-size: 8px;
  }
  .action .arrow {
    display: none;
  }
  .subject-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .subject-art {
    height: 110px;
  }
  .card-body {
    padding: 12px;
  }
  .card-body h3 {
    font-size: 13px;
  }
  .card-body p {
    font-size: 9px;
    min-height: 47px;
  }
  .card-bottom {
    font-size: 8px;
  }
  .card-bottom a {
    font-size: 9px;
  }
  .card-bottom > span {
    display: none;
  }
  .section-top h2 {
    font-size: 18px;
  }
  .section-top .text-link {
    font-size: 9px;
  }
  .control-stack,
  .form-grid,
  .literacy-steps {
    grid-template-columns: 1fr;
  }
  .lab-stage {
    padding: 18px;
    min-height: 300px;
  }
  .lab-heading h1 {
    font-size: 29px;
  }
  .lab-heading {
    display: block;
  }
  #mobile-menu {
    display: block;
    padding: 4px 8px;
  }
  footer {
    margin: 0 20px;
    font-size: 8px;
    gap: 15px;
  }
  .toolbar select {
    max-width: 49%;
  }
  .panel {
    padding: 19px;
  }
  .source-card {
    padding: 15px;
  }
  .bottom-grid {
    gap: 14px;
  }
  h1 {
    font-size: 35px;
  }
}
@media print {
  #sidebar,
  header,
  footer,
  .toolbar,
  .hero-buttons,
  .close,
  .present-exit,
  #toast {
    display: none !important;
  }
  .page {
    margin: 0;
  }
  main {
    padding: 0;
  }
  .panel,
  .lab-stage {
    border: 0;
    box-shadow: none;
  }
  .lab-layout {
    display: block;
  }
  .control-stack {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
  .notice {
    border: 0;
  }
  .subject-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.card-body .category,
.card-bottom a,
.subject-art .grade-tag {
  color: color-mix(in srgb, var(--subject), black 23%);
}
.dark .card-body .category,
.dark .card-bottom a {
  color: color-mix(in srgb, var(--subject), white 48%);
}
@media (max-height: 1000px) {
  .teacher-note {
    display: none;
  }
  .sidebar-bottom {
    padding-top: 15px;
  }
  nav a {
    padding-top: 9px;
    padding-bottom: 9px;
  }
}
