@font-face {
  font-family: Geist;
  src: url("/fonts/geist.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: oklch(98.5% 0.004 92);
  --panel: #fff;
  --ink: oklch(22% 0.022 275);
  --muted: oklch(46% 0.019 262);
  --line: oklch(89.8% 0.008 268);
  --brand: oklch(44% 0.193 270);
  --tint: oklch(94.6% 0.032 274);
  --rail: oklch(97.4% 0.006 88);
  --curve: 12px;
  color-scheme: light;
  font-family: Geist, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
}
svg {
  flex: none;
  vertical-align: middle;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
p {
  overflow-wrap: anywhere;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
select,
summary {
  cursor: pointer;
}
button {
  background: none;
  border: 0;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a,
button,
input,
textarea,
select,
summary,
[data-vertex] {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
select,
summary {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
select:focus-visible,
textarea:focus-visible,
input:focus-visible,
[data-vertex]:focus-visible {
  outline: 3px solid #6377e7;
  outline-offset: 3px;
}
::selection {
  background: #d0d8ff;
  color: #172467;
}
input,
textarea {
  caret-color: var(--brand);
}
input::placeholder,
textarea::placeholder {
  color: #6a6c78;
}
a,
button,
summary {
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s;
}
a:hover,
button:hover {
  color: var(--brand);
}
.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 10;
  top: 5px;
  left: 5px;
  padding: 8px 16px;
  background: white;
}
.boot {
  display: grid;
  place-content: center;
  justify-items: center;
  min-height: 100dvh;
  gap: 16px;
  padding: 28px;
  text-align: center;
}
.boot h1 {
  font-size: 1.5rem;
}
.shell {
  display: grid;
  grid-template-columns: 223px minmax(0, 1fr);
  min-height: 100dvh;
}
.rail {
  background: var(--rail);
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 32px 16px 17px;
  border-right: 1px solid var(--line);
  z-index: 3;
  overflow: auto;
}
.brandrow {
  padding: 0 10px;
}
.brand,
.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand span,
.mobile-brand {
  font-size: 2.08rem;
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1;
}
.brand img {
  border-radius: 10px;
}
.rail-course {
  font-size: 0.77rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 29px 12px 15px;
  color: var(--muted);
}
.course-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--brand);
}
.rail-divider {
  color: #a2a4ad;
}
.navlink {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  margin: 3px 0;
  width: 100%;
  border-radius: 8px;
  text-align: left;
  font-size: 0.918rem;
  font-weight: 485;
  color: #464953;
}
.navlink:hover,
.who:hover {
  background: #eaeaf0;
}
.navlink.is-active {
  background: var(--tint);
  color: #3442b0;
  font-weight: 620;
}
.navrule {
  height: 1px;
  margin: 15px 9px;
  background: var(--line);
}
.rail-foot {
  margin-top: auto;
  padding-top: 32px;
}
.who {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 16px 4px 1px;
  text-align: left;
}
.who > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.who b,
.who small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.who b {
  font-size: 0.89rem;
}
.who small {
  color: var(--muted);
  font-size: 0.76rem;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: #e4e7ed;
  color: #4b5377;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-weight: 650;
}
.avatar.small {
  width: 32px;
  height: 32px;
}
.mobile,
.mobclose,
.shade {
  display: none !important;
}
.main {
  width: 100%;
  max-width: 1420px;
  min-width: 0;
  margin: 0 auto;
  padding: 40px clamp(24px, 4.2vw, 76px) 70px;
  outline: none;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 27px;
}
.heading h1 {
  font-size: 2.3rem;
  line-height: 1.13;
  letter-spacing: -0.04em;
  font-weight: 620;
}
.heading p {
  color: var(--muted);
  font-size: 0.953rem;
  margin-top: 7px;
  max-width: 68ch;
}
.semester,
.tag,
.duration,
.topic-count,
.toolbar,
.challenge-meta > span:first-child,
.course-code,
.goal,
.daily,
.textlink,
.back,
.btn,
.subhead,
.chat-context,
.chat-context > b,
.feedback h3,
.worked h2,
.file-icon {
  display: flex;
  align-items: center;
}
.semester,
.tag {
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.77rem;
  font-weight: 520;
  background: var(--panel);
  padding: 4px 9px;
  color: var(--muted);
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: white;
  background: oklch(38% 0.17 271);
  border-radius: 15px;
  min-height: 265px;
}
.hero-text {
  padding: 28px 36px 30px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.course-code {
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 650;
  letter-spacing: 0.09em;
  color: #d8e3ff;
  gap: 8px;
}
.course-code span {
  width: 7px;
  height: 7px;
  background: #b9eba4;
  border-radius: 2px;
}
.course-code i,
.course-art i {
  font-style: normal;
  color: #92a6e0;
}
.hero h2 {
  font-size: 3.55rem;
  line-height: 0.99;
  font-weight: 520;
  letter-spacing: -0.04em;
  margin: 21px 0 24px;
}
.hero h2 span {
  color: #c4f5a9;
}
.hero-action {
  margin-top: auto;
}
.btn,
.chip {
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  border: 1px solid var(--line);
  font-size: 0.87rem;
  font-weight: 570;
  line-height: 1.3;
  background: white;
  padding: 10px 15px;
  min-height: 39px;
  display: inline-flex;
  align-items: center;
}
.btn:hover,
.chip:hover {
  background: #f0f1f6;
  border-color: #c9cbd9;
}
.btn.primary,
.send {
  background: var(--brand);
  border: 1px solid var(--brand);
  color: white;
}
.btn.primary:hover,
.send:hover {
  background: #2837a2;
  color: white;
}
.btn.hero-btn {
  background: #f8fcff;
  border-color: transparent;
  color: #202c64;
  padding: 10px 16px;
}
.btn.hero-btn:hover {
  background: #dce4ff;
}
.course-art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, transparent calc(100% - 1px), #c3cdff14 1px),
    linear-gradient(transparent calc(100% - 1px), #c3cdff14 1px);
  background-size: 25px 25px;
  mask-image: linear-gradient(90deg, transparent, #000 13%);
}
.course-art:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#c8cfed66 1px, transparent 1px);
  background-size: 25px 25px;
  background-position: -0.5px -0.5px;
}
.hypercube {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 285px;
  overflow: visible;
}
.course-art .hypercube {
  transform: scale(1.06);
}
.course-art > span {
  position: absolute;
  bottom: 12px;
  right: 17px;
  font-family: ui-monospace, monospace;
  font-size: 0.71rem;
  letter-spacing: 0.035em;
  color: #d0dcff;
  background: #273894ed;
  padding: 1px 5px;
}
.edges line {
  stroke: #a9bafe;
  stroke-width: 1.25;
}
.edges .lit {
  stroke: #cbff9d;
  stroke-width: 2.7;
}
.nodes circle {
  fill: #dae3ff;
  stroke: #3544a0;
  stroke-width: 1.3;
}
.nodes .selected,
.nodes .neighbor {
  fill: #d1ffad;
}
.nodes .selected {
  stroke: #c6ff9d;
  stroke-width: 4;
  paint-order: stroke;
}
.nodes .hit {
  fill: transparent;
  stroke: none;
  cursor: pointer;
}
.nodes [role="button"] {
  cursor: pointer;
}
.nodes [role="button"]:focus-visible {
  outline: none;
}
.nodes [role="button"]:focus-visible .hit {
  stroke: white;
  stroke-width: 2;
}
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(215px, 1fr);
  gap: 26px;
}
.subhead {
  margin: 28px 0 11px;
  gap: 12px;
  justify-content: space-between;
}
.subhead h2,
.lab-copy h2,
.chat-empty h2,
.empty h2,
.worked h2 {
  font-size: 1.15rem;
  letter-spacing: -0.025em;
  font-weight: 620;
  line-height: 1.3;
}
.textlink,
.back {
  display: inline-flex;
  gap: 6px;
  color: #3747b5;
  font-size: 0.84rem;
  font-weight: 560;
}
.textlink:hover,
.back:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.panel,
.topic-list,
.timeline,
.resources,
.chat-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--curve);
}
.session,
.topic-row,
.resource,
.plan-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 18px;
  min-width: 0;
}
.sessions,
.topic-list,
.timeline,
.resources,
.challenge-links {
  overflow: hidden;
}
.session + .session,
.topic-row + .topic-row,
.resource + .resource,
.plan-row + .plan-row {
  border-top: 1px solid var(--line);
}
.session:hover,
.topic-row:hover,
.resource:hover,
.plan-row:hover,
.challenge-link:hover {
  background: #f5f6fc;
}
.session-icon,
.file-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.tone0 {
  background: #ebedff;
  color: #4751ac;
}
.tone1 {
  background: #eaf2e3;
  color: #506b39;
}
.tone2 {
  background: #f5ece2;
  color: #876040;
}
.row-title {
  flex: 1;
  min-width: 0;
}
.row-title strong,
.ex-top strong,
.resource strong,
.profile-list b {
  font-weight: 590;
  font-size: 0.94rem;
  line-height: 1.35;
}
.row-title strong,
.row-title span,
.row-title small,
.ex-top small {
  display: block;
}
.row-title span,
.ex-top small,
.row-title small,
.duration,
.row-level {
  font-size: 0.81rem;
  color: var(--muted);
  margin-top: 2px;
}
.session > svg,
.topic-row > svg,
.resource > svg,
.plan-row > svg {
  color: #696d7b;
}
.exam {
  padding: 19px 18px 13px;
}
.ex-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.date-tile {
  display: grid;
  justify-items: center;
  background: #eef0fb;
  border: 1px solid #d9def6;
  border-radius: 7px;
  width: 45px;
  color: #35459d;
  overflow: hidden;
}
.date-tile span {
  font-size: 0.62rem;
  font-weight: 680;
  letter-spacing: 0.09em;
  line-height: 1.55;
  background: #e2e6f9;
  display: block;
  width: 100%;
  text-align: center;
}
.date-tile b {
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}
.exam-bot {
  border-top: 1px solid var(--line);
  margin-top: 17px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--muted);
}
.exam-bot b {
  color: #303c87;
  font-weight: 620;
}
.goal {
  font-size: 0.835rem;
  gap: 8px;
  padding: 14px 2px;
  text-align: left;
  color: var(--muted);
}
.goal svg:last-child {
  margin-left: auto;
}
.daily {
  gap: 5px 10px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 15px 2px;
}
.daily b {
  margin-left: auto;
  color: var(--ink);
  font-weight: 570;
}
progress {
  border: 0;
  overflow: hidden;
  border-radius: 4px;
  width: 100%;
  height: 5px;
  background: #e2e4ed;
  color: #5261c4;
  appearance: none;
}
progress::-webkit-progress-bar {
  background: #e2e4ed;
}
progress::-webkit-progress-value {
  background: #5261c4;
  border-radius: 4px;
}
progress::-moz-progress-bar {
  background: #5261c4;
}
.topic-num {
  font:
    500 0.83rem ui-monospace,
    monospace;
  color: #626775;
  flex: none;
  min-width: 26px;
}
.topic-row {
  padding: 16px 19px;
}
.topic-row .row-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topic-count {
  gap: 9px;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 4px 0 16px;
}
.topic-count span {
  color: #9a9ea8;
}
.back {
  margin-bottom: 16px;
}
.toolbar,
.plan-meta,
.lab-tabs,
.suggest {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.plan-meta {
  margin: 0 0 18px;
}
.timeline {
  margin: 0 0 20px;
}
.plan-row {
  gap: 18px;
}
.day-cell {
  color: #303b81;
  line-height: 1.2;
  text-align: center;
  min-width: 43px;
  font-size: 0.77rem;
}
.day-cell b {
  display: block;
  font-size: 1.35rem;
  font-weight: 580;
}
.duration {
  gap: 5px;
  white-space: nowrap;
}
.empty {
  text-align: center;
  padding: 45px 24px;
  color: var(--muted);
}
.empty h2 {
  margin: 12px 0 7px;
  color: var(--ink);
}
.empty p,
.chat-empty p {
  margin: 0 auto 16px;
  max-width: 46ch;
  font-size: 0.93rem;
}
.field,
.form-split {
  display: grid;
  gap: 6px;
}
.field,
.inline {
  font-size: 0.85rem;
  font-weight: 560;
}
.field textarea,
.field input,
.field select,
.library-filters select,
.search,
.lab-copy select {
  color: var(--ink);
  border: 1px solid #cfd2dd;
  border-radius: 7px;
  background: white;
  padding: 9px 11px;
  font-weight: 410;
  font-size: 0.95rem;
  width: 100%;
  line-height: 1.5;
}
.field.inline {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 20px;
}
.field.inline select {
  width: auto;
  max-width: 100%;
}
.field textarea {
  resize: vertical;
  min-height: 64px;
}
.form-split {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lesson-layout,
.practice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 216px;
  gap: 24px;
  align-items: start;
}
.prose {
  font-size: 1rem;
  line-height: 1.72;
  overflow-wrap: anywhere;
  min-width: 0;
}
.prose p + p,
.prose h3 + p {
  margin-top: 12px;
}
.prose h3 {
  font-size: 1rem;
  margin-top: 18px;
  letter-spacing: -0.015em;
}
.prose pre,
.prose .katex-display {
  overflow: auto hidden;
  padding: 3px 0;
  max-width: 100%;
}
.prose code {
  font-size: 0.86em;
  background: #f0f1f5;
  border-radius: 3px;
  padding: 1px 4px;
}
.lesson {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--curve);
  padding: 25px 28px;
  max-width: 84ch;
}
.lesson > h3:first-child,
.worked h3:first-child {
  margin-top: 0;
}
.worked {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 25px;
}
.worked h2,
.feedback h3 {
  gap: 8px;
  margin-bottom: 10px;
  color: #354193;
}
.lesson-aside .subhead,
.practice-side .subhead {
  margin-top: 0;
}
.lesson-aside .btn {
  width: 100%;
  margin: 0 0 9px;
  justify-content: flex-start;
}
.challenge {
  padding: 23px;
}
.challenge h2 {
  font-size: 1.36rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 15px 0 12px;
}
.challenge-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}
.challenge-meta > span:first-child {
  gap: 7px;
}
.prompt {
  margin: 10px 0 19px;
}
.challenge details {
  border-block: 1px solid var(--line);
  padding: 12px 0;
  font-size: 0.9rem;
}
.challenge details summary {
  font-weight: 540;
  color: #3847a2;
}
.challenge details[open] .prose {
  margin-top: 10px;
}
.answer {
  margin-top: 22px;
}
.answer .btn {
  margin-top: 12px;
}
.feedback {
  background: #f3f5fd;
  border-radius: 8px;
  padding: 15px;
  margin: 22px 0 0;
}
.feedback h3 {
  font-size: 0.99rem;
}
.feedback .textlink {
  margin-top: 10px;
}
.challenge-links {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  margin-bottom: 15px;
}
.challenge-link {
  display: block;
  padding: 11px 13px;
  font-size: 0.86rem;
}
.challenge-link + .challenge-link {
  border-top: 1px solid var(--line);
}
.challenge-link.active {
  color: #374596;
  background: var(--tint);
  font-weight: 610;
}
.chat-panel {
  overflow: hidden;
}
.chat-context {
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0 18px;
  color: var(--muted);
  font-size: 0.86rem;
}
.chat-log {
  max-height: 53dvh;
  min-height: 260px;
  overflow: auto;
  padding: 22px;
  scrollbar-color: #bfc5db transparent;
}
.bubble {
  margin: 0 0 18px;
  max-width: 93%;
}
.bubble > b {
  font-size: 0.78rem;
  font-weight: 650;
  color: #4a56a4;
}
.bubble .prose {
  font-size: 0.95rem;
}
.bubble.learner {
  background: #f0f1fa;
  border-radius: 10px;
  padding: 12px 16px;
  margin-left: auto;
  width: fit-content;
}
.bubble.learner > b {
  color: var(--muted);
}
.thinking {
  color: var(--brand);
  font-size: 0.86rem;
}
.chat-empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  align-content: center;
  min-height: 235px;
}
.chat-empty > span {
  color: var(--brand);
}
.chat-empty p {
  margin-bottom: 5px;
  color: var(--muted);
}
.suggest {
  justify-content: center;
}
.chip {
  padding: 6px 10px;
  font-size: 0.78rem;
  min-height: 32px;
  font-weight: 480;
}
.composer {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: flex-end;
  padding: 14px;
  background: white;
}
.composer textarea {
  resize: vertical;
  border: 0;
  flex: 1;
  min-width: 0;
  padding: 6px;
  min-height: 44px;
}
.send {
  width: 39px;
  height: 39px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
}
.library-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}
.search {
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 450px;
}
.search input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: none;
  outline: none !important;
}
.search:focus-within {
  outline: 3px solid #6377e7;
  outline-offset: 2px;
}
.library-filters select {
  width: auto;
  max-width: 45%;
}
.result-count {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.resource strong {
  flex: 1;
  overflow-wrap: anywhere;
}
.file-icon {
  background: #f1f2f8;
  color: #596294;
}
.resource small {
  color: var(--muted);
  font-size: 0.78rem;
}
.resources + .btn {
  margin-top: 13px;
}
.lab-tabs {
  margin-bottom: 16px;
}
.lab-tabs button {
  font-size: 0.85rem;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: white;
  padding: 8px 12px;
}
.lab-tabs button.active {
  background: var(--tint);
  color: var(--brand);
  border-color: #bdc6f4;
  font-weight: 560;
}
.lab-work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
}
.cube-canvas,
.light-canvas,
.triangle,
.truth {
  min-height: 300px;
  justify-content: center;
  align-content: center;
  display: grid;
  padding: 14px;
  background: #f1f2fc;
  min-width: 0;
}
.cube-canvas {
  background: #293a94;
  background-image:
    linear-gradient(90deg, transparent calc(100% - 1px), #bfc4f01f 1px),
    linear-gradient(transparent calc(100% - 1px), #bfc4f01f 1px);
  background-size: 24px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cube-canvas .hypercube {
  max-height: 310px;
}
.lab-copy {
  padding: 24px;
  align-self: center;
}
.lab-copy p,
.lab-copy small {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 10px 0 16px;
  display: block;
}
.lab-copy small {
  font-size: 0.8rem;
  margin-bottom: 0;
}
.values {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 9px 14px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding: 14px 0 2px;
  margin-top: 16px;
  font-size: 0.85rem;
}
.values span {
  color: var(--muted);
}
.values b {
  font-weight: 570;
}
.wheel {
  width: 100%;
  max-width: 370px;
}
.light-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
}
.wheel text {
  font:
    13px Geist,
    sans-serif;
  text-anchor: middle;
  fill: #262c55;
}
.triangle {
  padding: 12px 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.triangle > div {
  display: flex;
  justify-content: center;
  gap: 3px;
}
.triangle span {
  background: white;
  color: #394078;
  display: grid;
  place-items: center;
  width: clamp(22px, 2.2vw, 32px);
  height: 27px;
  font-size: 0.8rem;
  border: 1px solid #d4d8eb;
  border-radius: 4px;
}
.triangle .selected span {
  background: #d4dcff;
  border-color: #9ca9eb;
}
.truth table {
  border-collapse: collapse;
  background: white;
}
.truth caption {
  font-size: 0.85rem;
  margin: 0 0 10px;
}
.truth th,
.truth td {
  padding: 7px 18px;
  border: 1px solid #d8daea;
  text-align: center;
}
.truth th {
  background: #e4e8fa;
}
.truth .true {
  color: #305621;
  background: #e8f1e4;
}
.truth .false {
  color: #88402d;
  background: #f5e6e0;
}
dialog {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: min(440px, calc(100vw - 28px));
  width: 440px;
  max-height: 88dvh;
  color: var(--ink);
  box-shadow: 0 24px 70px #171d4e30;
}
dialog::backdrop {
  background: #131a3290;
}
dialog h2 {
  letter-spacing: -0.03em;
  font-size: 1.5rem;
  font-weight: 620;
  margin: 0 32px 5px 0;
}
dialog p.muted {
  font-size: 0.89rem;
  color: var(--muted);
  margin-bottom: 19px;
}
#profile-form {
  display: grid;
  gap: 14px;
}
#profile-form > .btn {
  justify-self: start;
}
.form-error {
  color: #9b292b;
  font-size: 0.85rem;
}
.form-error:empty {
  display: none;
}
.profile-list {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
}
.profile-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px;
  text-align: left;
}
.profile-list button:hover {
  background: var(--tint);
}
.profile-list button > svg {
  margin-left: auto;
}
.dialog-close {
  position: absolute;
  right: 14px;
  top: 14px;
}
.iconbtn {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 7px;
  color: var(--muted);
}
.iconbtn:hover {
  background: #edeef4;
}
#notices {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  display: grid;
  gap: 8px;
  pointer-events: none;
  width: max-content;
  max-width: 90vw;
}
.notice {
  border-radius: 9px;
  color: white;
  background: #262b40;
  padding: 10px 16px;
  box-shadow: 0 5px 18px #171b3326;
  font-size: 0.88rem;
}
@media (min-width: 1550px) {
  .main {
    padding-top: 52px;
  }
  .hero {
    min-height: 312px;
  }
  .hero-text {
    padding: 36px 42px;
  }
  .hero h2 {
    font-size: 4.1rem;
  }
  .session {
    padding-block: 18px;
  }
}
@media (max-width: 1080px) {
  .shell {
    grid-template-columns: 188px minmax(0, 1fr);
  }
  .rail {
    padding-inline: 11px;
  }
  .main {
    padding: 30px 24px 55px;
  }
  .hero {
    min-height: 250px;
  }
  .hero-text {
    padding: 25px;
  }
  .hero h2 {
    font-size: 3.1rem;
  }
  .dash-grid {
    gap: 17px;
    grid-template-columns: minmax(0, 1.45fr) minmax(195px, 1fr);
  }
  .exam,
  .session {
    padding-inline: 13px;
  }
  .lesson-layout,
  .practice-layout {
    grid-template-columns: minmax(0, 1fr) 175px;
    gap: 16px;
  }
  .lab-copy {
    padding: 18px;
  }
}
@media (max-width: 790px) {
  .mobile {
    height: 52px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding: 0 15px;
    background: var(--rail);
  }
  .mobile-brand {
    font-size: 1.5rem;
    gap: 7px;
  }
  .shell {
    display: block;
    min-height: calc(100dvh - 52px);
  }
  .rail {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100dvh;
    width: min(260px, 85vw);
    transform: translateX(-102%);
    visibility: hidden;
    padding: 23px 16px;
    transition:
      transform 0.18s,
      visibility 0.18s;
  }
  .rail.open {
    transform: none;
    visibility: visible;
  }
  .brandrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .mobclose {
    display: grid !important;
  }
  .shade {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 2;
    background: #17203a69;
  }
  .main {
    padding: 24px 20px 44px;
  }
  .heading h1 {
    font-size: 1.95rem;
  }
  .hero {
    min-height: 240px;
  }
  .course-art .hypercube {
    max-height: 245px;
  }
  .semester {
    font-size: 0.72rem;
  }
  .heading {
    margin-bottom: 20px;
  }
  .dash-grid {
    grid-template-columns: 1.45fr 1fr;
  }
  .lab-work {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 580px) {
  .main {
    padding: 23px 15px 40px;
  }
  .heading {
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
  }
  .heading h1 {
    font-size: 1.85rem;
  }
  .heading p {
    font-size: 0.88rem;
    margin-top: 4px;
  }
  .semester {
    padding: 3px 6px;
    gap: 4px;
    font-size: 0.68rem;
  }
  .hero {
    min-height: 211px;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    border-radius: 11px;
  }
  .hero-text {
    padding: 18px 0 20px 18px;
  }
  .hero h2 {
    font-size: 2.13rem;
    line-height: 1.05;
    margin: 23px 0;
  }
  .course-code {
    font-size: 0.67rem;
    gap: 5px;
  }
  .hero-btn.btn {
    font-size: 0.76rem;
    padding: 9px 10px;
    gap: 6px;
    min-height: 34px;
  }
  .course-art .hypercube {
    width: 125%;
    max-width: none;
    transform: translateX(-2%) scale(1.03);
    max-height: 190px;
  }
  .course-art > span {
    bottom: 7px;
    right: 5px;
    font-size: 0.56rem;
    letter-spacing: 0;
  }
  .dash-grid {
    display: block;
  }
  .subhead {
    margin-top: 23px;
  }
  .subhead h2 {
    font-size: 1.05rem;
  }
  .exam {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 12px;
  }
  .exam-bot {
    border: 0;
    margin: 0;
    padding: 0;
    flex-direction: column-reverse;
    text-align: right;
  }
  .exam-bot span {
    font-size: 0.71rem;
  }
  .goal,
  .daily {
    padding-top: 9px;
    padding-bottom: 0;
  }
  .row-title strong,
  .ex-top strong,
  .resource strong {
    font-size: 0.89rem;
  }
  .session {
    padding: 11px 13px;
  }
  .topic-row,
  .plan-row,
  .resource {
    padding: 13px 11px;
    gap: 10px;
  }
  .topic-num {
    min-width: 21px;
  }
  .lesson-layout,
  .practice-layout {
    display: flex;
    flex-direction: column;
  }
  .lesson-aside,
  .practice-side {
    width: 100%;
  }
  .lesson,
  .challenge {
    padding: 17px;
    width: 100%;
  }
  .lesson-aside .btn {
    width: auto;
    margin: 0 5px 8px 0;
  }
  .prose {
    font-size: 0.94rem;
  }
  .plan-row .duration {
    font-size: 0.72rem;
  }
  .plan-row .duration svg,
  .plan-row > svg {
    display: none;
  }
  .day-cell {
    min-width: 34px;
  }
  .lab-work {
    grid-template-columns: 1fr;
  }
  .cube-canvas,
  .light-canvas,
  .triangle,
  .truth {
    min-height: 230px;
  }
  .cube-canvas .hypercube {
    height: 230px;
  }
  .wheel {
    height: 230px;
  }
  .lab-tabs {
    gap: 6px;
  }
  .lab-tabs button {
    padding: 7px 8px;
    font-size: 0.77rem;
  }
  .resource small {
    max-width: 70px;
    overflow-wrap: anywhere;
  }
  .resource > svg {
    width: 13px;
  }
  .file-icon {
    height: 30px;
    width: 30px;
  }
  .library-filters {
    flex-wrap: wrap;
    gap: 8px;
  }
  .library-filters select {
    max-width: 100%;
    font-size: 0.85rem;
  }
  .chat-log {
    padding: 15px;
    max-height: 49dvh;
  }
  .topic-row .row-title span {
    max-width: 95%;
  }
  .back {
    margin-bottom: 10px;
  }
  .lesson-aside .daily {
    max-width: 240px;
  }
  .toolbar .btn {
    min-height: 33px;
    padding: 7px 10px;
    font-size: 0.78rem;
  }
  .truth th,
  .truth td {
    padding: 4px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.day-item + .day-item {
  border-top: 1px solid var(--line);
}
.day-item summary {
  list-style: none;
}
.day-item summary::-webkit-details-marker {
  display: none;
}
.day-item[open] summary > svg:last-child {
  transform: rotate(180deg);
}
.day-blocks {
  margin: 0 18px 14px 76px;
  border-top: 1px solid var(--line);
}
.day-blocks a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 2px;
  font-size: 0.82rem;
}
.day-blocks b {
  font-weight: 580;
  color: #445194;
  min-width: 42px;
}
.day-blocks a > div {
  flex: 1;
}
.day-blocks strong,
.day-blocks span {
  display: block;
}
.day-blocks strong {
  font-weight: 580;
}
.day-blocks span {
  font-size: 0.78rem;
  color: var(--muted);
}
.personal-note {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--tint);
  border-radius: 8px;
}
.personal-note summary {
  font-size: 0.94rem;
  font-weight: 590;
  color: var(--brand);
}
.personal-note summary > svg {
  margin-inline: 3px 6px;
}
.personal-note .prose {
  margin: 12px 0;
}
.extra-labs {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
@media (max-width: 580px) {
  .day-blocks {
    margin-left: 18px;
  }
}
.course-art .hypercube {
  transform: scale(0.88);
}
.resource-item + .resource-item {
  border-top: 1px solid var(--line);
}
.source-outline,
.exam-rules {
  font-size: 0.87rem;
  color: var(--muted);
}
.source-outline summary,
.exam-rules summary {
  font-weight: 540;
  color: #3c4795;
}
.resource-item .source-outline {
  padding: 0 15px 13px 67px;
}
.source-outline .prose,
.exam-rules .prose {
  font-size: 0.91rem;
  margin: 9px 0;
  line-height: 1.65;
}
.exam-rules {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  padding: 13px 15px;
  margin: 0 0 14px;
}
.source-links {
  display: grid;
  justify-items: start;
  gap: 6px;
  margin-top: 8px;
}
.source-links a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #37479e;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.84rem;
}
.course-terms {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.course-terms h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 560;
}
.course-terms h3 + p {
  margin: 3px 0 12px;
  font-size: 0.91rem;
}
@media (max-width: 580px) {
  .course-art .hypercube {
    transform: translateX(4%) scale(0.82);
  }
  .resource-item .source-outline {
    padding-left: 51px;
  }
}
.diagnostic-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 560;
  font-size: 0.85rem;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero + .diagnostic-link {
  margin-top: 13px;
}
.plan-meta .diagnostic-link {
  margin-right: 6px;
}
.diagnostic {
  padding: 24px;
  max-width: 720px;
}
.diagnostic h2 {
  font-size: 1.32rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin: 0 0 13px;
}
.diagnostic > progress {
  margin: 12px 0 19px;
}
.diagnostic > p.muted {
  color: var(--muted);
}
.diagnostic-choices,
.result-list {
  display: grid;
  gap: 7px;
}
.diagnostic-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 10px 13px;
  min-height: 43px;
  text-align: left;
}
.diagnostic-choice span {
  font-size: 0.95rem;
}
.diagnostic-choice small {
  font-size: 0.77rem;
  flex: none;
  font-weight: 580;
}
.diagnostic-choice:hover:enabled {
  border-color: #a1ade6;
  background: var(--tint);
}
.diagnostic-choice:disabled {
  color: var(--muted);
  opacity: 0.85;
  cursor: default;
}
.diagnostic-choice.good {
  border-color: #91b692;
  background: #f1f8eb;
  color: #305c32;
}
.diagnostic-choice.picked {
  border-color: #b6bedb;
  background: #eef0f7;
  color: #343e61;
}
.diagnostic > .btn {
  margin-top: 14px;
}
.result-list {
  gap: 0;
  margin: 16px 0;
}
.result-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding: 11px 2px;
  font-size: 0.87rem;
}
.result-list span {
  flex: 1;
}
.result-list b {
  font-size: 0.8rem;
  color: var(--muted);
}
@media (max-width: 580px) {
  .diagnostic {
    padding: 16px;
  }
  .diagnostic .challenge-meta {
    align-items: baseline;
  }
  .diagnostic .challenge-meta > span:last-child {
    text-align: right;
  }
  .diagnostic h2 {
    font-size: 1.14rem;
  }
}
