:root {
  color-scheme: dark;
  --bg: #080c17;
  --panel: #0e1423;
  --panel2: #111a2c;
  --border: #202a3c;
  --text: #edf2fc;
  --muted: #8b98b2;
  --mint: #8aefd0;
  --violet: #aa9bff;
  --blue: #79a9ff;
  --font: "DM Sans", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 var(--font);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  transition:
    background 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}
button {
  color: inherit;
}
button:hover:not(:disabled) {
  filter: brightness(1.1);
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
.skip {
  position: fixed;
  top: -100px;
  background: var(--mint);
  color: #071915;
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  top: 8px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  background: #0b101c;
  border-right: 1px solid var(--border);
  padding: 31px 20px 18px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: Manrope, var(--font);
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -1px;
}
.brand-mark {
  border: 1px solid #465c68;
  box-shadow: inset 0 0 16px #76edcb12;
  width: 37px;
  height: 42px;
  border-radius: 10px;
  color: var(--mint);
  font: 27px/40px Georgia;
  text-align: center;
  position: relative;
}
.brand-mark span {
  position: absolute;
  right: 3px;
  bottom: 2px;
}
.brand-sub {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 600;
  margin-top: -3px;
}
.workspace {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 9px;
  margin: 30px 0 26px;
  font-size: 11px;
}
.workspace small,
.profile small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.workspace .muted {
  margin-left: auto;
}
.workspace-icon {
  background: #212c40;
  border-radius: 6px;
  color: #adc0e0;
  font: 22px Georgia;
  width: 31px;
  height: 32px;
  text-align: center;
}
.nav-label {
  color: #66748e;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  margin: 0 12px 10px;
}
nav > a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 13px;
  margin-bottom: 5px;
  border-radius: 7px;
  color: #94a1b9;
  font-size: 12px;
}
nav > a > span:first-child {
  font-size: 19px;
  width: 19px;
  line-height: 22px;
}
nav > a.active {
  color: var(--mint);
  background: #16322f;
  border: 1px solid #274941;
  padding: 10px 12px;
}
nav > a:hover {
  background: #162131;
}
nav .nav-label {
  margin-top: 25px;
}
.nav-tag {
  margin-left: auto;
  background: #213b38;
  color: var(--mint);
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 4px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 25px;
}
.build-note {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 10px;
  font-size: 10px;
}
.build-note p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
  margin: 8px 0 0;
}
.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--mint);
  border-radius: 50%;
  margin-right: 5px;
  box-shadow: 0 0 9px #8aefd066;
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 22px 2px 0;
  font-size: 11px;
}
.profile > .muted {
  margin-left: auto;
}
.avatar {
  width: 30px;
  height: 30px;
  border: 1px solid #504b76;
  background: #2a2446;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #c6b8fa;
  font-size: 11px;
}
.shell {
  margin-left: 232px;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 12px;
  color: #46546d;
}
.breadcrumb b {
  font-weight: 500;
  color: #d0d9ec;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 19px;
}
.local-status {
  font-size: 10px;
  color: var(--muted);
}
.local-status i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  margin-right: 6px;
}
.icon-button {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 7px;
  width: 31px;
  height: 31px;
  font-size: 15px;
}
.small-avatar {
  width: 28px;
  height: 28px;
}
.mobile-menu {
  display: none;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 34px 38px 25px;
  min-height: calc(100vh - 130px);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--mint);
  font-weight: 600;
  text-transform: uppercase;
}
.heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: Manrope, var(--font);
}
h1 {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -1px;
  margin-bottom: 5px;
}
h2 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
h3 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.2px;
  margin-bottom: 8px;
}
.muted,
.subtitle {
  color: var(--muted);
}
.subtitle {
  font-size: 12px;
  margin-bottom: 0;
}
.date-chip {
  font-size: 10px;
  color: #a8b5ca;
  border: 1px solid var(--border);
  padding: 7px 11px;
  border-radius: 7px;
  white-space: nowrap;
}
.hero {
  min-height: 322px;
  border: 1px solid #304355;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  padding: 32px;
  background:
    radial-gradient(ellipse at 85% 50%, #173147 0, transparent 55%),
    linear-gradient(115deg, #151e2e, #101b2c 60%, #122430);
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#84a4c305 1px, transparent 1px),
    linear-gradient(90deg, #84a4c305 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 53%;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #bfd3da;
  font-size: 9px;
  letter-spacing: 1.5px;
  border: 1px solid #3b515d;
  border-radius: 20px;
  padding: 5px 10px;
  margin-bottom: 16px;
}
.hero h2 {
  font-size: 37px;
  line-height: 1.2;
  letter-spacing: -1.7px;
  font-weight: 650;
  margin-bottom: 14px;
}
.hero h2 em {
  font-style: normal;
  color: var(--mint);
}
.hero p {
  font-size: 11px;
  line-height: 1.9;
  max-width: 335px;
  color: #a3b2c8;
  margin-bottom: 23px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  background: var(--mint);
  border: 1px solid var(--mint);
  color: #0a2623;
  padding: 10px 17px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 650;
  min-height: 38px;
}
.button.secondary {
  background: #182338;
  color: #d6deed;
  border-color: #334057;
}
.button.ghost {
  background: transparent;
  color: #b4c0d6;
  border-color: var(--border);
}
.button.small {
  padding: 7px 11px;
  min-height: 30px;
  font-size: 10px;
}
.button.violet {
  background: #b6a6ff;
  border-color: #b6a6ff;
  color: #1f1743;
}
.button-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero canvas {
  position: absolute;
  right: -1%;
  top: -7%;
  width: 55%;
  height: 112%;
  cursor: grab;
  z-index: 1;
}
.hero canvas:active {
  cursor: grabbing;
}
.orbit-note {
  position: absolute;
  right: 25px;
  bottom: 17px;
  font-size: 8px;
  letter-spacing: 1px;
  color: #95b1bf;
  z-index: 3;
}
.float-equation {
  position: absolute;
  color: #b4d6e5;
  font: italic 14px Georgia;
  z-index: 2;
  pointer-events: none;
}
.eq-one {
  top: 49px;
  right: 24px;
}
.eq-two {
  bottom: 48px;
  right: 33%;
}
.hero-foot {
  position: relative;
  z-index: 2;
  margin-top: 20px;
  color: #93a9b5;
  font-size: 9px;
  display: flex;
  gap: 18px;
}
.hero-foot span:before {
  content: "✦";
  color: var(--mint);
  margin-right: 6px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin: 18px 0 29px;
}
.stat {
  display: flex;
  gap: 13px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  background: #0d1422;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 9px;
  background: #1a2940;
  color: var(--blue);
  font: 21px Georgia;
}
.stat:nth-child(2) .stat-icon {
  background: #25213c;
  color: var(--violet);
}
.stat:nth-child(3) .stat-icon {
  background: #17312e;
  color: var(--mint);
}
.stat:nth-child(4) .stat-icon {
  background: #302b23;
  color: #e6c18b;
}
.stat strong {
  font-size: 20px;
  line-height: 1.1;
  display: block;
  font-weight: 550;
  letter-spacing: -0.5px;
}
.stat small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 5px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 27px 0 15px;
}
.section-heading h2 {
  margin: 0;
  font-size: 16px;
}
.text-link {
  font-size: 10px;
  color: var(--mint);
  background: transparent;
  border: 0;
  padding: 0;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 11px;
  padding: 21px;
  position: relative;
}
.exam-card {
  overflow: hidden;
}
.exam-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent, var(--mint));
  opacity: 0.6;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.exam-symbol {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid #34534f;
  background: #193430;
  color: var(--mint);
  border-radius: 10px;
  font: 22px Georgia;
}
.exam-symbol.purple {
  background: #28223d;
  color: #b9a5ff;
  border-color: #443858;
}
.exam-symbol.blue {
  background: #1b2b42;
  color: #82b3fd;
  border-color: #314766;
}
.badge {
  font-size: 8px;
  letter-spacing: 0.8px;
  padding: 4px 7px;
  border-radius: 4px;
  color: #abb8cc;
  border: 1px solid #2d3749;
  background: #151e2d;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge.mint {
  color: var(--mint);
  border-color: #2a5149;
  background: #122c28;
}
.badge.violet {
  color: #bfb2ff;
  border-color: #443b63;
  background: #28213a;
}
.card p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 17px;
}
.card-meta {
  font-size: 9px;
  display: flex;
  gap: 12px;
  color: #7d8ba5;
  margin-bottom: 17px;
}
.card-footer {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-footer span {
  font-size: 9px;
  color: #8b99b2;
}
.arrow-button {
  background: #1c293b;
  border: 1px solid #344157;
  border-radius: 6px;
  width: 30px;
  height: 28px;
  color: #bdc9db;
}
.lower-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  margin-top: 25px;
}
.topic-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.topic-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: #0d1524;
  text-align: left;
}
.topic-item:hover {
  border-color: #536686;
}
.topic-symbol {
  color: var(--blue);
  font: 19px Georgia;
  background: #1b2940;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 7px;
}
.topic-item strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
}
.topic-item small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}
.topic-item .right {
  margin-left: auto;
  color: #64748c;
}
.proof-card {
  background:
    radial-gradient(ellipse at right top, #302448 0, transparent 70%), #131725;
  padding: 21px;
  border: 1px solid #38304e;
  border-radius: 11px;
}
.proof-card h3 {
  font-size: 17px;
  margin-top: 13px;
}
.proof-card p {
  font-size: 11px;
  color: #a39db9;
  line-height: 1.9;
  margin-bottom: 20px;
}
.proof-line {
  font-family: Georgia;
  color: #bfb3df;
  border: 1px solid #39324e;
  border-radius: 7px;
  background: #12152288;
  padding: 11px;
  margin-bottom: 17px;
  font-size: 13px;
}
.proof-card .button {
  width: 100%;
}
footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #192233;
  padding: 21px 38px;
  color: #56637c;
  font-size: 8px;
  letter-spacing: 0.8px;
}
footer b {
  color: var(--mint);
  margin: 0 7px;
}
.filters {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter {
  border: 1px solid var(--border);
  background: #0e1625;
  color: #8fa1bb;
  padding: 7px 15px;
  border-radius: 7px;
  font-size: 11px;
}
.filter.active {
  color: var(--mint);
  border-color: #45635d;
  background: #18352f;
}
.search-input {
  margin-left: auto;
  width: 220px;
}
.field,
select,
input,
textarea {
  border: 1px solid #303c52;
  border-radius: 7px;
  background: #0b1220;
  color: #dce5f5;
  padding: 10px 12px;
  max-width: 100%;
}
select {
  width: 100%;
}
label {
  display: block;
  font-size: 11px;
  color: #a8b5cb;
  margin-bottom: 7px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.form-grid input {
  width: 100%;
}
.notice {
  font-size: 11px;
  color: #a4b5cb;
  background: #132237;
  border: 1px solid #28415c;
  border-radius: 8px;
  padding: 12px 15px;
  margin: 18px 0;
  line-height: 1.8;
}
.notice.warning {
  background: #2c251a;
  border-color: #5a4830;
  color: #d9c3a0;
}
.paper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.paper-card h3 {
  font-size: 14px;
}
.paper-card .badge {
  margin-bottom: 14px;
}
.paper-card .card-meta {
  margin-bottom: 14px;
}
.paper-card .button-group {
  margin-top: 12px;
}
.tagline {
  font-size: 10px;
  color: var(--muted);
  margin: 9px 0 0;
}
.question-box {
  border: 1px solid #34405c;
  border-radius: 12px;
  background: #10192b;
  padding: 25px;
  margin: 20px 0;
}
.question-statement {
  font:
    20px/1.8 Georgia,
    serif;
  color: #e2e9f7;
  white-space: pre-wrap;
  margin: 20px 0;
}
.question-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.question-top .badge {
  margin-right: 6px;
}
.solution {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.95;
  color: #becce3;
  padding: 17px 0;
}
.details {
  border-top: 1px solid var(--border);
  margin-top: 18px;
  padding-top: 15px;
}
summary {
  cursor: pointer;
  color: var(--mint);
  font-size: 12px;
}
.rubric-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: #a7b6cc;
}
.rubric-row input {
  width: 70px;
  padding: 6px;
}
.split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}
.form-card {
  padding: 24px;
}
.text-area {
  display: block;
  width: 100%;
  min-height: 220px;
  resize: vertical;
  font: 14px/1.9 var(--font);
}
.saved-text {
  font-size: 10px;
  color: #72928b;
  margin: 8px 0 16px;
}
.tiny {
  font-size: 10px;
  color: var(--muted);
}
.rubric-card {
  height: fit-content;
}
.rubric-card h3 {
  margin-bottom: 12px;
}
.empty {
  text-align: center;
  border: 1px dashed #35415a;
  border-radius: 12px;
  padding: 45px 25px;
  color: #8b9ab4;
}
.empty strong {
  display: block;
  font-size: 17px;
  color: #d6e2f3;
  margin-bottom: 8px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.table th {
  text-align: left;
  color: #7f8ea7;
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 500;
  padding: 11px;
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 15px 11px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.table td a {
  color: var(--mint);
}
.table-wrap {
  overflow-x: auto;
}
.session-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 15px;
}
.timer {
  font:
    22px/1.2 ui-monospace,
    monospace;
  color: var(--mint);
  letter-spacing: 2px;
}
.session-layout {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 22px;
}
.question-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 15px 0;
}
.question-nav button {
  border: 1px solid #303d54;
  background: #162034;
  border-radius: 6px;
  padding: 9px 0;
  color: #a5b4ce;
}
.question-nav button.current {
  border-color: var(--mint);
  color: var(--mint);
}
.question-nav button.answered {
  background: #1c4138;
}
.question-nav button.flagged {
  box-shadow: inset 0 -3px #dfb16a;
}
.session-layout .question-box {
  margin: 0;
}
.session-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}
.progress-bar {
  height: 4px;
  border-radius: 5px;
  background: #1c2940;
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  background: var(--mint);
}
.result-number {
  font-size: 38px;
  color: var(--mint);
  letter-spacing: -1px;
}
.sources-list a {
  color: var(--mint);
}
.sources-list li {
  margin: 14px 0;
  color: #a5b4cb;
  font-size: 12px;
}
dialog {
  background: #101827;
  border: 1px solid #3c4b65;
  border-radius: 15px;
  color: var(--text);
  padding: 30px;
  width: min(650px, 92vw);
  max-height: 88vh;
}
dialog::backdrop {
  background: #030812c9;
  backdrop-filter: blur(7px);
}
.close-modal {
  float: right;
}
.modal-title {
  padding-right: 30px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 116px);
  transform: translateX(-50%) translateY(80px);
  background: #243e38;
  border: 1px solid #507466;
  color: #d3f8e9;
  padding: 11px 20px;
  border-radius: 9px;
  z-index: 100;
  font-size: 12px;
  opacity: 0;
  transition: 0.3s;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.report-section {
  margin: 16px 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 9px;
}
.report-section h3 {
  margin: 0 0 9px;
}
.file-input {
  width: 100%;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.spacer {
  margin-top: 25px;
}
.compact-heading {
  margin: 25px 0 15px;
}
.score-field {
  display: flex;
  align-items: center;
  gap: 8px;
}
a.inline-link {
  color: var(--mint);
  text-decoration: underline;
}
.item-proof {
  color: var(--violet);
}
@media (min-width: 1550px) {
  main {
    padding-top: 42px;
  }
  .hero {
    min-height: 355px;
    padding: 38px;
  }
  .hero h2 {
    font-size: 45px;
  }
  .hero p {
    font-size: 13px;
  }
  .hero-foot {
    margin-top: 24px;
  }
  .stats {
    margin-top: 22px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding-inline: 15px;
  }
  .shell {
    margin-left: 205px;
  }
  main {
    padding: 28px 24px;
  }
  .topbar {
    padding-inline: 24px;
  }
  .hero h2 {
    font-size: 31px;
  }
  .hero {
    padding: 26px;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 13px 10px;
    gap: 8px;
  }
  .stat-icon {
    width: 29px;
    height: 29px;
  }
  .stat strong {
    font-size: 18px;
  }
  .paper-grid {
    grid-template-columns: 1fr 1fr;
  }
  .lower-grid {
    grid-template-columns: 1fr 1fr;
  }
  .topic-list {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .grid3 {
    gap: 11px;
  }
  .card {
    padding: 17px;
  }
  .session-layout {
    grid-template-columns: 1fr 180px;
  }
  #toast {
    left: calc(50% + 102px);
  }
}
@media (max-width: 800px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 235px;
    box-shadow: 12px 0 40px #0005;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .shell {
    margin-left: 0;
  }
  .mobile-menu {
    display: block;
    background: transparent;
    border: 0;
    font-size: 20px;
  }
  .topbar {
    height: 64px;
    padding-inline: 17px;
  }
  .breadcrumb {
    margin-right: auto;
    margin-left: 14px;
  }
  .top-actions {
    gap: 12px;
  }
  .local-status {
    display: none;
  }
  main {
    padding: 24px 18px;
  }
  .hero-copy {
    max-width: 66%;
  }
  .hero {
    min-height: 310px;
  }
  .hero canvas {
    right: -18%;
    width: 68%;
    opacity: 0.7;
  }
  .eq-one {
    display: none;
  }
  .eq-two {
    right: 13%;
  }
  .hero h2 {
    font-size: 33px;
  }
  .hero p {
    max-width: 285px;
  }
  .hero-foot {
    gap: 10px;
    font-size: 8px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .grid3 {
    grid-template-columns: 1fr;
  }
  .exam-card {
    padding: 20px;
  }
  .exam-card .card-head {
    margin-bottom: 13px;
  }
  .lower-grid,
  .split {
    grid-template-columns: 1fr;
  }
  .topic-list {
    grid-template-columns: 1fr 1fr;
  }
  .heading-row {
    align-items: start;
  }
  h1 {
    font-size: 25px;
  }
  .date-chip {
    display: none;
  }
  .session-layout {
    grid-template-columns: 1fr;
  }
  .session-layout aside {
    order: -1;
  }
  .session-layout aside .question-nav {
    grid-template-columns: repeat(8, 1fr);
  }
  .session-layout aside .tiny {
    display: none;
  }
  .question-statement {
    font-size: 18px;
  }
  .paper-grid {
    grid-template-columns: 1fr 1fr;
  }
  footer {
    padding: 20px 18px;
  }
  footer span:last-child {
    display: none;
  }
  #toast {
    left: 50%;
    max-width: 90%;
    width: max-content;
  }
  .search-input {
    width: 100%;
    margin-left: 0;
  }
}
@media (max-width: 480px) {
  .hero {
    padding: 23px 20px;
    min-height: 360px;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero h2 {
    font-size: 33px;
    max-width: 260px;
  }
  .hero p {
    max-width: 250px;
  }
  .hero canvas {
    opacity: 0.22;
    right: -25%;
    width: 100%;
  }
  .orbit-note {
    display: none;
  }
  .hero-foot {
    flex-wrap: wrap;
  }
  .paper-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .topic-list {
    gap: 7px;
  }
  .topic-item {
    padding: 10px 8px;
    gap: 8px;
  }
  .topic-symbol {
    width: 26px;
    height: 26px;
  }
  .topic-item .right {
    display: none;
  }
  .session-top h1 {
    font-size: 20px;
  }
  .timer {
    font-size: 18px;
  }
  .top-actions {
    gap: 7px;
  }
  .question-box {
    padding: 18px;
  }
  .button-group .button {
    font-size: 10px;
  }
  .question-top {
    align-items: start;
  }
  .question-top .badge {
    margin-bottom: 5px;
  }
  .stat small {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* The original problem library and the compiled arithmetic workspace. */
.sidebar {
  overflow-y: auto;
  scrollbar-width: thin;
}
.brand {
  flex-shrink: 0;
}
.workspace {
  flex-shrink: 0;
}
.sidebar-bottom {
  min-height: 170px;
}
nav > a {
  padding-block: 9px;
}
nav > a.active {
  padding-block: 8px;
}
nav .nav-label {
  margin-top: 19px;
}
.library-controls {
  display: grid;
  grid-template-columns: 1fr 0.85fr 0.85fr 1.5fr;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.library-controls input {
  width: 100%;
}
.library-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.problem-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.problem-card:hover {
  border-color: #435672;
  transform: translateY(-2px);
}
.problem-number {
  font:
    13px ui-monospace,
    monospace;
  color: #7388a9;
  margin-right: 12px;
}
.bookmark-button {
  background: transparent;
  border: 0;
  font-size: 24px;
  color: #8797b1;
  width: 32px;
  height: 32px;
}
.bookmark-button.selected {
  color: var(--mint);
}
.problem-card .eyebrow {
  font-size: 9px;
  margin-bottom: 9px;
}
.problem-card h2 {
  font-size: 18px;
  margin-bottom: 13px;
}
.problem-card p.problem-preview {
  font:
    16px/1.85 Georgia,
    serif;
  color: #b6c5db;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 25px;
}
.problem-card .card-footer {
  margin-top: auto;
}
.math-lab-hero {
  padding: 30px 34px;
  margin-bottom: 22px;
  border: 1px solid #344968;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 90% 30%, #22436170, transparent 55%),
    linear-gradient(115deg, #151b31, #13232e);
}
.lab-equation {
  font:
    34px/1.5 Georgia,
    serif;
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 21px 0 12px;
  flex-wrap: wrap;
}
.lab-equation b {
  font-weight: 400;
  color: #718ba1;
}
.lab-equation i {
  font: 13px var(--font);
  color: #90b6be;
  margin-left: auto;
}
.mint-text {
  color: var(--mint);
}
.math-lab-hero p {
  color: #95adc2;
  font-size: 12px;
  margin: 0;
}
.math-input {
  width: 100%;
  font:
    19px/1.7 ui-monospace,
    monospace;
  background: #081321;
  padding: 14px;
}
.example-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 22px;
}
.example-pills button {
  font-size: 10px;
  background: #1a273b;
  color: #9cbbd8;
  border: 1px solid #2c405b;
  border-radius: 20px;
  padding: 5px 10px;
}
.exact-result {
  border: 1px solid #2d5b4e;
  background: #122f28;
  border-radius: 9px;
  padding: 17px 20px;
}
.exact-result > span {
  font-size: 9px;
  color: #94b7a9;
  letter-spacing: 1.7px;
}
.exact-result strong {
  display: block;
  font:
    28px/1.5 ui-monospace,
    monospace;
  color: var(--mint);
  overflow-wrap: anywhere;
}
.calculation-steps {
  padding-left: 22px;
  margin-bottom: 0;
  color: #7d92ad;
  font-size: 11px;
}
.calculation-steps li {
  padding: 8px 0 8px 8px;
  border-bottom: 1px solid #1f2d44;
}
.calculation-steps code {
  color: #bdcfe3;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.calculation-steps b {
  font-weight: 400;
  color: #678ba2;
  margin: 0 5px;
}
.comparison-result {
  border: 1px solid #3c3f65;
  background: #211f38;
  border-radius: 9px;
  padding: 17px 20px;
}
.comparison-result.equal {
  border-color: #345a50;
  background: #142e29;
}
.comparison-result strong {
  color: #d0c5f8;
  font-size: 13px;
}
.comparison-result.equal strong {
  color: var(--mint);
}
.comparison-result > div {
  font:
    19px/1.7 ui-monospace,
    monospace;
  overflow-wrap: anywhere;
  margin: 11px 0;
}
.comparison-result p {
  font-size: 10px;
  margin: 0;
}
.math-toolbar {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 9px 0;
}
.math-toolbar button {
  min-width: 30px;
  height: 29px;
  border: 1px solid #2b3c54;
  background: #182338;
  color: #a9bed9;
  border-radius: 5px;
  font: 16px Georgia;
}
.arithmetic-claim {
  border-bottom: 1px solid var(--border);
  padding: 11px 0;
  font-size: 12px;
}
.arithmetic-claim code {
  display: block;
  color: #c8d8ea;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.arithmetic-claim .pass {
  color: var(--mint);
}
.arithmetic-claim .fail {
  color: #f0b191;
}
.engine-status {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  background: #122b2780;
  border: 1px solid #294f46;
  border-radius: 9px;
  font-size: 11px;
  color: #b2d8cc;
  margin-top: 18px;
}
.engine-status a {
  margin-left: auto;
  color: var(--mint);
}
.topic-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.topic-progress article {
  padding: 17px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
}
.topic-progress .progress-bar {
  margin: 13px 0 9px;
}
.topic-progress h3 {
  font-size: 12px;
  margin: 0;
}
.topic-progress small {
  color: var(--muted);
  font-size: 10px;
}
.history-note {
  color: #a4b6cf;
  font-size: 11px;
}
.print-only {
  display: none;
}
@media (max-width: 1100px) {
  .library-controls {
    grid-template-columns: 1fr 1fr;
  }
  .lab-equation {
    font-size: 28px;
    gap: 15px;
  }
  .topic-progress {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .library-grid {
    grid-template-columns: 1fr;
  }
  .library-controls {
    padding: 15px;
    gap: 10px;
  }
  .problem-card {
    padding: 20px;
  }
  .lab-equation {
    font-size: 24px;
    gap: 12px;
  }
  .lab-equation i {
    margin-left: 0;
    width: 100%;
  }
  .math-lab-hero {
    padding: 23px;
  }
  .math-input {
    font-size: 15px;
  }
  .engine-status {
    align-items: start;
    flex-wrap: wrap;
  }
  .engine-status a {
    margin-left: 0;
  }
}
@media print {
  .sidebar,
  .topbar,
  footer,
  button,
  .filters,
  .button-group,
  .saved-text,
  #toast,
  dialog {
    display: none !important;
  }
  .shell {
    margin: 0;
  }
  body,
  main,
  .card,
  .question-box,
  .report-section {
    background: white !important;
    color: #111 !important;
    border-color: #bbb !important;
  }
  .question-statement,
  .solution,
  .subtitle,
  p,
  h1,
  h2,
  h3,
  .tiny,
  .rubric-row {
    color: #111 !important;
  }
  main {
    padding: 0;
    max-width: none;
  }
  details {
    display: block;
  }
  details > * {
    display: block;
  }
  details > summary {
    display: none;
  }
  .report-section,
  .question-box {
    break-inside: avoid;
  }
  a {
    color: #111 !important;
  }
  .print-only {
    display: block;
  }
}
@media (max-width: 800px) {
  .sidebar {
    visibility: hidden;
  }
  .sidebar.open {
    visibility: visible;
  }
}

/* Keep the mathematics surface in its own panel so controls never cover the lesson links. */
.hero.hero-interactive {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 30px);
  align-items: center;
}
.hero-interactive .hero-copy {
  max-width: none;
}
.surface-lab {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: clamp(238px, 23vw, 305px);
  min-width: 0;
  margin: 0;
}
.surface-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.surface-switcher button {
  min-height: 32px;
  padding: 5px 9px;
  color: #b5c8d9;
  background: #152335;
  border: 1px solid #304456;
  border-radius: 20px;
  font-size: 10px;
}
.surface-switcher button[aria-pressed="true"] {
  color: var(--mint);
  border-color: #518f82;
  background: #193331;
}
.hero-interactive .surface-lab canvas {
  position: static;
  width: 100%;
  height: 100%;
  min-height: 0;
  opacity: 1;
  touch-action: none;
  border-radius: 7px;
}
.surface-lab canvas:focus-visible,
.surface-switcher button:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}
.surface-lab figcaption {
  text-align: center;
  color: #aabfd0;
  line-height: 1.4;
}
.surface-lab figcaption strong {
  display: block;
  color: #e1f1f5;
  font-size: 12px;
}
.surface-lab [data-surface-equation] {
  display: block;
  white-space: pre-line;
  font:
    13px/1.35 Georgia,
    serif;
}
.surface-lab figcaption small {
  display: block;
  margin-top: 4px;
  color: #9db1c1;
  font-size: 9px;
}
@media (max-width: 800px) {
  .hero.hero-interactive {
    grid-template-columns: 1fr;
  }
  .hero-interactive .surface-lab {
    height: 240px;
    width: 100%;
    border-top: 1px solid #314356;
    padding-top: 13px;
  }
  .surface-switcher button {
    min-height: 36px;
    padding-inline: 13px;
  }
}
@media (max-width: 480px) {
  .hero-interactive .surface-lab {
    height: 218px;
  }
}

#prose-model h3,.model-result h3{margin: .5rem 0;}
#prose-model [hidden]{display:none!important;}
.model-result{padding:1rem 0;border-top:1px solid var(--border, #283044);}
.model-result p{overflow-wrap:anywhere;}
.model-result .rubric-row>div{width:100%;}

.model-result h3 {font-size:clamp(1.15rem,2vw,1.55rem);margin-bottom:.35rem;}
.grade-criterion {padding:1rem 0;border-top:1px solid var(--border);}
.grade-criterion-head {display:flex;align-items:baseline;justify-content:space-between;gap:.8rem;}
.grade-criterion-head strong {font-size:.93rem;color:var(--text);}
.grade-tally {flex:none;white-space:nowrap;padding:.18rem .52rem;border-radius:.4rem;color:var(--violet);background:#211d35;font-size:.8rem;font-weight:700;}
.grade-tally.full {color:var(--mint);background:#132b29;}
.grade-tally.partial {color:#ffd38b;background:#332b20;}
.grade-criterion .tiny {margin:.35rem 0;}
.grade-criterion blockquote {border-left:2px solid #536883;margin:.5rem 0 0;padding:.15rem 0 .15rem .75rem;color:#c3ccdb;font-size:.88rem;white-space:pre-wrap;overflow-wrap:anywhere;}
.grade-gaps {padding:.75rem .95rem;border:1px solid #4b3c2c;border-radius:.6rem;background:#211d19;margin:.75rem 0;}
.grade-gaps strong {color:#ffd38b;font-size:.88rem;}
.grade-gaps ul {margin:.3rem 0 0;padding-left:1.1rem;font-size:.85rem;line-height:1.55;color:#e1d5c4;}

.brand {letter-spacing:-.035em;}
.brand-mark {flex-shrink:0;}
