:root {
  --paper:#f5f5f8;
  --white:#fff;
  --ink:#171c35;
  --muted:#62677b;
  --green:#39318c;
  --green-dark:#282268;
  --mint:#efedff;
  --mint-strong:#b9adfa;
  --gold:#d7fa69;
  --gold-light:#f2fad9;
  --red:#a03139;
  --red-light:#fff0ee;
  --line:#e0e1ea;
  --line-dark:#b9bdcd;
  --shadow:0 8px 28px #171c3506;
  --radius:20px;
  --font:Inter,Arial,Helvetica,sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  min-width: 0;
  background: var(--paper);
}
body {
  margin: 0;
  color: var(--ink);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
  outline-offset: 4px;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: .45;
}
:focus-visible {
  outline: 3px solid #7764d8;
}
a {
  color: var(--green);
  text-underline-offset: 4px;
}
img,
svg {
  max-width: 100%;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1,
h2,
h3,
h4 {
  line-height: 1.15;
}
h2 {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -.7px;
}
h3 {
  font-size: 18px;
  letter-spacing: -.3px;
}
h4 {
  font-size: 15px;
}
p:last-child {
  margin-bottom: 0;
}
small {
  font-size: 12px;
}
em {
  font-style: normal;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
::selection {
  background: #e0d9ff;
  color: var(--ink);
}
.muted,
.subtext {
  color: var(--muted);
}
.subtext {
  max-width: 700px;
  font-size: 15px;
}
.mono {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: -70px;
  left: 16px;
  padding: 12px 20px;
  background: var(--ink);
  color: white;
  border-radius: 10px;
}
.skip-link:focus {
  top: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  background: var(--ink);
  color: white;
  border-radius: 13px;
  font: bold 43px/.8 Arial, sans-serif;
  padding-bottom: 9px;
  letter-spacing: -3px;
}
.brand-mark span {
  position: absolute;
  color: var(--gold);
  right: 5px;
  bottom: 5px;
  font-size: 23px;
}
.brand-text {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.6px;
  line-height: 1.2;
}
.brand-text small {
  display: block;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.4px;
  color: var(--muted);
  margin-top: 5px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition:
    background .16s,
    transform .16s,
    border-color .16s;
}
.btn:not(:disabled):hover {
  background: var(--mint);
  border-color: #9484d9;
}
.btn:not(:disabled):active {
  transform: translateY(1px);
}
.btn.primary {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}
.btn.primary:not(:disabled):hover {
  background: #343857;
  border-color: #343857;
}
.btn.secondary {
  background: transparent;
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--green);
}
.btn.ghost:not(:disabled):hover {
  background: var(--mint);
}
.btn.small {
  font-size: 12px;
  min-height: 44px;
  padding: 9px 13px;
}
.btn.danger {
  color: var(--red);
  background: var(--red-light);
  border-color: #e3b2b7;
}
.page-actions,
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.badge.neutral {
  color: #565b70;
  background: #f0f0f6;
  border-color: #e4e4ee;
}
.badge.green {
  color: #315639;
  background: #eef6e3;
  border-color: #dce8cd;
}
.badge.amber {
  color: #7c4c11;
  background: #fff1d8;
  border-color: #f1deba;
}
.badge.red {
  color: var(--red);
  background: var(--red-light);
  border-color: #efcbd0;
}
.input,
.select,
.textarea,
input:not([type=checkbox]):not([type=radio]),
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-dark);
  border-radius: 11px;
  padding: 12px 14px;
  color: var(--ink);
  background: white;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color .15s, box-shadow .15s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #7764d8;
  box-shadow: 0 0 0 3px #b9adfa28;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}
.field small {
  font-weight: 400;
  color: var(--muted);
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  margin: 18px 0;
}
.checkbox-row input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--green);
}
.chip {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.chip.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.form-error {
  color: var(--red);
  font-size: 13px;
  margin-top: 12px;
}
.auth-note {
  font-size: 12px !important;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 18px;
}
.form-row {
  display: flex;
  gap: 16px;
}
.form-row > * {
  flex: 1;
  min-width: 0;
}
summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 700;
  min-height: 44px;
  padding: 10px 0;
}
details {
  font-size: 14px;
}
details[open] > summary {
  margin-bottom: 10px;
}
.plain-list {
  padding-left: 20px;
  margin-bottom: 0;
}
.plain-list li {
  padding-left: 4px;
  margin-bottom: 10px;
}
.shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: 244px;
  padding: 32px 20px 22px;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: white;
}
.sidebar .brand {
  color: white;
  margin: 0 0 52px 5px;
}
.sidebar .brand-mark {
  background: var(--gold);
  color: var(--ink);
}
.sidebar .brand-mark span {
  color: var(--ink);
}
.sidebar .brand-text small {
  color: #babdd0;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav > .eyebrow {
  color: #b5b8d0;
  font-size: 10px;
  padding: 0 12px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 47px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 11px;
  text-align: left;
  background: transparent;
  color: #c9ccdd;
  font-size: 13px;
  font-weight: 650;
  transition: background .15s;
}
.nav-link:hover {
  background: #292e49;
  color: white;
}
.nav-link.active {
  background: var(--mint-strong);
  color: var(--ink);
}
.nav-icon {
  font-size: 19px;
  min-width: 20px;
  text-align: center;
}
.nav-count {
  font-size: 10px;
  margin-left: auto;
  background: #303550;
  color: #d9dbea;
  padding: 2px 6px;
  border-radius: 5px;
}
.nav-link.active .nav-count {
  background: #ffffff60;
  color: var(--ink);
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-note {
  border-top: 1px solid #3a3e57;
  padding: 23px 12px;
}
.sidebar-note .eyebrow {
  color: #c3c7dc;
  font-size: 10px;
}
.sidebar-note p {
  font-size: 21px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -.5px;
  color: var(--gold);
  margin: 0;
}
.workspace {
  margin-left: 244px;
  min-width: 0;
}
.topbar {
  height: 77px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.breadcrumb {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}
.avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
}
.main {
  max-width: 1480px;
  margin: 0 auto;
  padding: 36px 40px 44px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.page-heading .subtext {
  margin-bottom: 0;
}
.page-title {
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -1.6px;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.app-footer {
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 22px 40px 28px;
  margin-top: 24px;
}
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 1fr);
  min-height: 330px;
  background: var(--ink);
  color: white;
  border-radius: 24px;
  margin-bottom: 26px;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 36px 40px;
}
.hero h2 {
  font-size: clamp(36px, 3.8vw, 58px);
  font-weight: 800;
  letter-spacing: -2.2px;
  line-height: 1.05;
  margin: 22px 0 20px;
}
.hero h2 em {
  color: var(--gold);
}
.hero p {
  font-size: 14px;
  line-height: 1.8;
  color: #d0d2e2;
  max-width: 490px;
  margin-bottom: 25px;
}
.hero .badge {
  background: #ffffff0c;
  border-color: #73768e;
  color: #e1e3ef;
  font-size: 10px;
}
.hero .btn.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.hero .btn.primary:hover {
  background: #e4ff96;
  border-color: #e4ff96;
}
.hero .btn.secondary {
  color: white;
  border-color: #73768e;
}
.hero .btn.secondary:hover {
  background: #343955;
}
.hero-footnote {
  font-size: 11px;
  line-height: 1.8;
  color: #c7cadd;
  margin-top: 20px;
}
.hero-metrics {
  display: flex;
  gap: 32px;
  margin: 20px 0 26px;
}
.hero-metrics > span {
  display: flex;
  flex-direction: column;
}
.hero-metrics strong {
  font-size: 31px;
  letter-spacing: -1px;
  line-height: 1.3;
}
.hero-metrics small {
  font-size: 12px;
  color: #d0d2e2;
  font-weight: 400;
  letter-spacing: 0;
}
.hero-metrics strong small {
  font-size: 17px;
  color: white;
}
.studio-art {
  position: relative;
  align-self: center;
  justify-self: center;
  width: 290px;
  height: 310px;
  isolation: isolate;
  flex-shrink: 0;
}
.art-orbit {
  position: absolute;
  inset: 45px 25px;
  border: 1px solid #676a83;
  border-radius: 50%;
  transform: rotate(-25deg);
}
.art-orbit:before {
  content: "";
  position: absolute;
  inset: 20px -18px;
  border: 1px solid #4d526c;
  border-radius: 50%;
}
.art-core {
  position: absolute;
  inset: 79px 59px 70px;
  background: var(--mint-strong);
  color: var(--ink);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
  box-shadow: 9px 11px 0 #0e1329;
}
.art-core > span {
  font: 700 105px/1 Arial, sans-serif;
  letter-spacing: -8px;
  padding-right: 8px;
}
.art-core small {
  font-size: 9px;
  letter-spacing: 1.4px;
  font-weight: 800;
  margin-top: 6px;
}
.art-skill {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 57px;
  height: 59px;
  border: 1px solid #ffffff14;
  border-radius: 14px;
  font-size: 27px;
  line-height: 1;
  font-weight: 700;
  box-shadow: 5px 6px 0 #0e132950;
}
.art-skill-1 {
  top: 23px;
  left: 30px;
  background: var(--gold);
  color: var(--ink);
  transform: rotate(-12deg);
}
.art-skill-2 {
  top: 35px;
  right: 14px;
  background: #ff987e;
  color: var(--ink);
  transform: rotate(13deg);
}
.art-skill-3 {
  top: 137px;
  right: 0;
  background: #383e60;
  color: white;
  transform: rotate(-8deg);
  font-size: 38px;
}
.art-skill-4 {
  bottom: 19px;
  right: 29px;
  background: #d1eaf3;
  color: var(--ink);
  transform: rotate(12deg);
}
.art-skill-5 {
  bottom: 34px;
  left: 3px;
  background: #3d4160;
  color: #dfd9ff;
  transform: rotate(-13deg);
}
.art-spark {
  position: absolute;
  left: 4px;
  top: 117px;
  font-size: 49px;
  line-height: 1;
  color: var(--gold);
}
.art-caption {
  position: absolute;
  bottom: 0;
  left: 48px;
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #c5c8db;
  transform: rotate(-7deg);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 32px;
}
.stat-card {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 21px 23px;
}
.stat-value {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -1px;
}
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.stat-icon {
  position: absolute;
  right: 19px;
  top: 23px;
  font-size: 19px;
  color: var(--green);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 20px;
}
.section-heading h2 {
  font-size: 22px;
  margin: 0;
}
.section-heading .eyebrow {
  margin-bottom: 8px;
}
.section-heading > .muted {
  font-size: 12px;
}
.section-grid,
.journey-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}
.section-card,
.journey-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 21px 18px;
  text-align: left;
  transition:
    transform .16s,
    border-color .16s,
    box-shadow .16s;
}
.section-card:hover {
  transform: translateY(-3px);
  border-color: #a596df;
  box-shadow: 0 8px 20px #171c3509;
}
.section-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: var(--muted);
  font-size: 12px;
}
.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #e5e0ff;
  color: #41376e;
  font-size: 19px;
  font-weight: 750;
  flex-shrink: 0;
}
.si-1,
.section-card:nth-child(2) .section-icon {
  background: #edf5cf;
  color: #4d5925;
}
.si-2,
.section-card:nth-child(3) .section-icon {
  background: #ffdfd5;
  color: #7d3c2f;
}
.si-3,
.section-card:nth-child(4) .section-icon {
  background: #d9edf6;
  color: #305c72;
}
.si-4,
.section-card:nth-child(5) .section-icon {
  background: #f7e2f0;
  color: #754263;
}
.section-card h3,
.journey-card h3 {
  font-size: 15px;
  line-height: 1.4;
  margin: 18px 0 9px;
  min-height: 42px;
  letter-spacing: -.3px;
}
.section-card p,
.journey-card p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 20px;
}
.section-bottom,
.journey-meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: auto;
  font-size: 11px;
  color: var(--muted);
}
.journey-meta strong {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.journey-number {
  font: 12px ui-monospace, monospace;
  color: var(--muted);
}
.journey-break {
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
}
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}
.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 27px;
}
.panel p {
  font-size: 14px;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.panel-header h2,
.panel-header h3 {
  margin-bottom: 0;
  font-size: 19px;
}
.panel-header .eyebrow {
  margin-bottom: 8px;
}
.panel + .two-col,
.panel + .section-heading,
.class-grid + .section-heading {
  margin-top: 30px;
}
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
  font-size: 13px;
}
.list-row:first-child {
  padding-top: 0;
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row small {
  display: block;
  font-size: 12px;
  margin-top: 5px;
}
.review-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0 12px;
  font-size: 12px;
  color: var(--muted);
}
.progress-bar {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 10px;
  background: #ededf5;
}
.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: #8170ce;
  transition: width .2s;
}
.panel > .progress-bar + .btn {
  margin-top: 23px;
}
.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 40px 20px;
}
.empty-state h3 {
  color: var(--ink);
  margin: 16px 0 12px;
}
.empty-state p {
  max-width: 460px;
  margin: 0 auto 22px;
  font-size: 14px;
}
.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  background: var(--mint);
  color: var(--green);
  border-radius: 17px;
  font-size: 26px;
}
.table-wrap {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td {
  padding: 17px 14px;
  border-bottom: 1px solid var(--line);
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover {
  background: #faf9ff;
}
.cell-title {
  font-weight: 700;
}
.data-table small {
  display: block;
}
.class-grid {
  display: grid;
  gap: 20px;
}
.class-card .roster {
  margin-top: 23px;
}
.info-banner,
.warning-banner,
.success-banner,
.diagnostic-notice {
  border: 1px solid #d9d2f0;
  border-radius: 13px;
  background: #f5f2ff;
  color: #4c436c;
  padding: 17px 20px;
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.75;
}
.info-banner,
.diagnostic-notice {
  display: flex;
  align-items: center;
  gap: 14px;
}
.info-banner > div,
.diagnostic-notice > div {
  flex: 1;
}
.info-banner p,
.diagnostic-notice p {
  margin: 0;
}
.warning-banner {
  background: #fff4e3;
  border-color: #eedec3;
  color: #78531a;
}
.success-banner {
  background: #f0f6e3;
  border-color: #dbe6c5;
  color: #485d2c;
}
.diagnostic-notice h2 {
  font-size: 24px;
  margin-bottom: 8px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.toolbar > input {
  flex: 0 1 260px;
}
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.review-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.question-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  padding-right: 5px;
}
.question-list-item {
  text-align: left;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.question-list-item:hover {
  border-color: #ac9cdd;
}
.question-list-item.active {
  border-color: #8270c8;
  background: #f2eeff;
  box-shadow: inset 3px 0 0 #8270c8;
}
.question-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.question-list-meta .mono {
  font-size: 11px;
  color: var(--muted);
}
.question-list-item strong {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}
.question-list-item small {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b5b8c7;
}
.status-dot.approved {
  background: #5b7b39;
}
.status-dot.flagged {
  background: #b2523c;
}
.question-detail {
  padding: 30px;
}
.question-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.question-tag .eyebrow {
  margin: 0;
}
.question-prompt {
  font: 500 22px/1.6 Georgia, serif;
  margin: 20px 0 27px;
  white-space: pre-line;
  overflow-wrap: break-word;
}
.question-diagram svg {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 350px;
  margin: 20px auto;
}
.options {
  display: grid;
  gap: 11px;
  margin: 20px 0;
}
.option {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  width: 100%;
  min-height: 58px;
  padding: 13px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: white;
  font-size: 15px;
  line-height: 1.6;
}
.option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  color: var(--muted);
  font: 700 12px var(--font);
}
button.option:hover {
  background: #f7f5ff;
  border-color: #8f7dd5;
}
.option.selected {
  border: 2px solid #7762c9;
  padding: 12px 15px;
  background: #f0ecff;
}
.option.selected .option-letter {
  color: white;
  background: #6650b1;
  border-color: #6650b1;
}
.answer-tick {
  margin-left: auto;
  color: #514093;
  font-size: 18px;
}
.option.correct {
  background: #f0f7e5;
  border-color: #99b27c;
}
.option.correct .option-letter {
  background: #466831;
  border-color: #466831;
  color: white;
}
.option.correct .answer-tick {
  color: #466831;
}
.explanation {
  padding: 20px 23px;
  margin: 24px 0;
  background: #f5f3fc;
  border-left: 3px solid #a191db;
  border-radius: 0 12px 12px 0;
  font-size: 14px;
  line-height: 1.8;
}
.explanation p {
  font-size: 14px;
}
.passage {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 28px;
  margin: 0 0 25px;
  font-family: Georgia, serif;
  line-height: 1.9;
}
.passage h3 {
  font-family: var(--font);
  font-size: 18px;
  margin: 0 0 22px;
}
.passage .eyebrow {
  font-family: var(--font);
  font-size: 11px;
  line-height: 1.5;
}
.passage p {
  font-size: 17px;
  line-height: 1.9;
}
.paragraph-number {
  display: inline-block;
  color: var(--muted);
  font: 11px var(--font);
  margin-right: 9px;
}
.review-controls {
  border-top: 1px solid var(--line);
  padding-top: 23px;
  margin-top: 26px;
}
.comparison-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: center;
  margin: 25px 0 30px;
}
.comparison-table th {
  font: 700 12px/1.5 var(--font);
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 13px;
  border-bottom: 1px solid var(--line);
}
.comparison-table td {
  font: 22px/1.6 Georgia, serif;
  padding: 23px 15px;
  vertical-align: middle;
  overflow-wrap: break-word;
}
.comparison-table th + th,
.comparison-table td + td {
  border-left: 1px solid var(--line);
}
.login-page {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  min-height: 100vh;
  background: white;
}
.login-art {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: white;
  padding: 36px 52px 27px;
}
.login-art .brand {
  color: white;
}
.login-art .brand-mark {
  background: var(--gold);
  color: var(--ink);
}
.login-art .brand-mark span {
  color: var(--ink);
}
.login-art .brand-text small {
  color: #c9cce0;
}
.login-intro {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 230px;
}
.login-intro .eyebrow {
  color: #c4b9f2;
  font-size: 10px;
}
.login-intro h1 {
  font-size: clamp(50px, 5.9vw, 86px);
  font-weight: 800;
  letter-spacing: -4px;
  line-height: 1.01;
  margin: 8px 0 25px;
  z-index: 1;
}
.login-intro h1 em {
  color: var(--gold);
}
.login-intro > p:not(.eyebrow) {
  color: #c9cce0;
  font-size: 14px;
  line-height: 1.8;
  z-index: 1;
}
.login-intro .studio-art {
  position: absolute;
  bottom: -2px;
  right: 0;
  transform: scale(.85);
  transform-origin: bottom right;
}
.login-art > .auth-note {
  font-size: 11px !important;
  color: #bdc2d6;
  z-index: 1;
}
.login-card {
  width: 100%;
  max-width: 460px;
  align-self: center;
  justify-self: center;
  padding: 58px 28px;
}
.entry-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 53px;
  height: 53px;
  background: var(--mint);
  color: var(--ink);
  border-radius: 16px;
  font-size: 34px;
  margin-bottom: 27px;
}
.login-card h2 {
  font-size: clamp(30px, 3.3vw, 44px);
  letter-spacing: -1.8px;
  line-height: 1.1;
  margin-bottom: 18px;
}
.login-card > .muted {
  font-size: 14px;
}
.login-tabs {
  display: flex;
  padding: 5px;
  gap: 5px;
  border-radius: 13px;
  background: var(--paper);
  margin: 28px 0;
}
.login-tabs .chip {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.login-tabs .chip.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 2px 7px #171c3512;
}
.login-card form > .btn {
  width: 100%;
  justify-content: space-between;
  padding: 15px 20px;
}
.login-card .info-banner {
  padding: 15px;
  font-size: 12px;
  margin-top: 24px;
}
.login-card .info-banner p {
  margin-bottom: 10px;
}
.student-shell {
  min-height: 100vh;
}
.student-main {
  max-width: 1240px;
  padding-top: 40px;
}
.student-home .page-heading {
  margin-bottom: 26px;
}
.student-home .page-title {
  font-size: 38px;
}
.student-hero {
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
  min-height: 405px;
  margin-bottom: 40px;
}
.student-hero .hero-content {
  padding: 37px 42px;
}
.student-hero h2 {
  font-size: clamp(39px, 4.3vw, 60px);
}
.student-hero .studio-art {
  transform: scale(1.13);
}
.ready-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.ready-list li {
  position: relative;
  padding: 0 0 15px 30px;
  color: var(--muted);
  font-size: 14px;
}
.ready-list li:before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  width: 21px;
  height: 21px;
  text-align: center;
  line-height: 21px;
  border-radius: 50%;
  color: #4a5930;
  background: #ecf3d8;
  font-size: 12px;
  font-weight: 700;
}
.test-rules {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.test-rules .plain-list {
  color: var(--muted);
  font-size: 13px;
}
.history-empty {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 23px 0;
}
.history-empty > span {
  font-size: 44px;
  color: #9e91cd;
}
.history-empty p {
  color: var(--muted);
}
.student-alias {
  font-size: 13px;
  font-weight: 700;
  max-width: 240px;
  overflow-wrap: anywhere;
}
.step-label {
  font-weight: inherit;
}
.step-short {
  display: none;
}
.test-shell {
  min-height: 100vh;
}
.test-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 79px;
  padding: 14px max(28px, calc((100vw - 1220px)/2));
  background: white;
  border-bottom: 1px solid var(--line);
}
.test-topbar .brand {
  flex-shrink: 0;
}
.timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  white-space: nowrap;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f3f2fa;
  color: var(--ink);
  font: 700 17px/1.4 ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}
.timer.urgent {
  color: #922d28;
  background: #fff0eb;
  border-color: #e9b5a8;
}
.section-strip {
  display: flex;
  gap: 8px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 28px 22px;
}
.section-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  background: #f9f9fb;
}
.section-step > span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  background: #e9e9f1;
  color: #575b70;
}
.section-step.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
  font-weight: 700;
}
.section-step.active > span {
  background: var(--gold);
  color: var(--ink);
}
.section-step.complete {
  border-color: #d2d9bf;
  background: #f3f6ea;
  color: #4e6139;
}
.section-step.complete > span {
  background: #e0ebc7;
  color: #465e2e;
}
.test-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px 40px;
  align-items: start;
}
.test-content {
  min-width: 0;
}
.test-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 5px 0 22px;
}
.test-header .eyebrow {
  margin-bottom: 9px;
}
.test-header h1 {
  font-size: 28px;
  letter-spacing: -1px;
  margin: 0;
}
.test-question {
  min-height: 410px;
  padding: 32px 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow);
}
.test-question .question-prompt {
  font-size: 23px;
}
.test-question .options {
  margin-bottom: 3px;
}
.test-navigator {
  position: sticky;
  top: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 23px 20px;
  margin-top: 5px;
}
.test-navigator h3 {
  font-size: 16px;
  letter-spacing: -.4px;
  margin-bottom: 16px;
}
.test-navigator p {
  font-size: 12px;
  color: var(--muted);
}
.test-navigator > .eyebrow {
  font-size: 10px;
  color: var(--green);
  margin-top: 0;
}
.session-progress {
  margin-bottom: 22px;
}
.question-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  max-height: 390px;
  overflow-y: auto;
  padding: 3px;
}
.question-number {
  position: relative;
  min-height: 44px;
  border: 1px solid #c7c9d7;
  border-radius: 8px;
  background: #fafafd;
  color: #5a5f72;
  font-size: 12px;
  font-weight: 650;
}
.question-number.answered {
  background: #eae6fa;
  border-color: #b2a7da;
  color: #43356f;
}
.question-number.answered:before {
  content: "\2713";
  position: absolute;
  bottom: 0;
  right: 3px;
  font-size: 8px;
}
.question-number.current {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 800;
}
.question-number.flagged:after {
  content: "\2691";
  position: absolute;
  right: 1px;
  top: -2px;
  font-size: 13px;
  color: #8a4c05;
  line-height: 1.2;
}
.test-navigator > .btn {
  width: 100%;
  margin-top: 8px;
}
.test-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}
.save-status {
  font-size: 12px;
  color: #536b40;
}
.save-status:before {
  content: "\2022";
  margin-right: 7px;
}
.essay-editor {
  min-height: 380px;
  font: 17px/1.9 Georgia, serif;
  padding: 20px;
  border-color: var(--line);
}
.word-count {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.break-page {
  max-width: 760px;
  text-align: center;
  padding-top: 48px;
}
.break-symbol {
  display: block;
  font-size: 85px;
  color: #7c68bd;
  line-height: 1.1;
  margin-bottom: 24px;
}
.break-page h1 {
  font-size: clamp(36px, 4.8vw, 58px);
  letter-spacing: -2px;
}
.break-page > p:not(.eyebrow) {
  color: var(--muted);
}
.break-clock {
  display: flex;
  width: max-content;
  font-size: 56px;
  margin: 28px auto 36px;
  padding: 20px 35px;
  border-radius: 20px;
  background: var(--gold);
  border-color: #c1dc69;
}
.break-page .panel {
  margin-top: 30px;
}
.break-page .panel h2 {
  font-size: 23px;
}
.result-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 32px 38px;
  margin-bottom: 25px;
  border: 1px solid #d9d2ed;
  border-radius: 22px;
  background: #eeebf8;
}
.result-hero h2 {
  font-size: 40px;
  letter-spacing: -1.5px;
  margin: 13px 0 17px;
}
.result-hero h2 > span {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.6px;
}
.result-hero p {
  font-size: 13px;
  max-width: 610px;
  color: #5e5875;
}
.result-score {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
  background: conic-gradient(#6554a6 var(--score,0%), #d9d2ea 0);
  border-radius: 50%;
  padding: 9px;
}
.score-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 50%;
  background: #eeebf8;
}
.score-inner strong {
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: -1.5px;
}
.score-inner span {
  font-size: 10px;
  margin-top: 7px;
  color: #5e5875;
}
.result-sections {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}
.result-section {
  padding: 22px;
}
.result-section h3 {
  font-size: 15px;
  min-height: 42px;
  line-height: 1.4;
  margin: 17px 0 0;
}
.result-section .review-progress strong {
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -.7px;
  color: var(--ink);
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
}
.answer-review.panel {
  padding: 13px 22px;
  margin: 12px 0;
}
.answer-review summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}
.answer-summary {
  display: flex;
  align-items: center;
  gap: 12px;
}
.answer-status {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f4ebe5;
  color: #87552e;
}
.answer-status.correct {
  background: #ebf3de;
  color: #45612e;
}
.answer-detail {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.answer-detail .question-prompt {
  font-size: 20px;
}
.answer-detail .passage {
  background: #faf9fd;
}
.essay-response {
  white-space: normal;
  border: 1px solid var(--line);
  background: #fbfaff;
  border-radius: 13px;
  padding: 25px;
  font: 17px/1.9 Georgia, serif;
  margin: 22px 0;
}
.feedback {
  background: #f4f1fb;
  padding: 22px;
  border-radius: 13px;
  margin-top: 23px;
}
.feedback p {
  white-space: pre-wrap;
}
.answer-review + .panel {
  margin-top: 28px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 21px;
  padding: 0;
  max-width: min(540px, calc(100vw - 32px));
  width: 100%;
  color: var(--ink);
  background: white;
  box-shadow: 0 30px 90px #15193230;
}
dialog::backdrop {
  background: #15193270;
  backdrop-filter: blur(4px);
}
dialog.student-import-dialog {
  max-width: min(860px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
}
.import-paste {
  min-height: 210px;
  font: 14px/1.6 ui-monospace, monospace;
  resize: vertical;
}
.import-table-wrap {
  overflow: auto;
  max-height: 360px;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.import-table-wrap .data-table {
  min-width: 540px;
}
.import-table-wrap th {
  position: sticky;
  top: 0;
  background: var(--paper);
}
.import-table-wrap code {
  white-space: nowrap;
  user-select: all;
}
.import-errors {
  background: var(--red-light);
  color: var(--red);
  padding: 16px;
  border-radius: 12px;
  margin: 16px 0;
}
.import-errors ul {
  margin: 8px 0 0;
  padding-left: 20px;
  max-height: 180px;
  overflow: auto;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 22px 27px;
  border-bottom: 1px solid var(--line);
}
.modal-header h2 {
  font-size: 22px;
  margin: 0;
}
.modal-body {
  padding: 25px 27px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 27px;
  border-top: 1px solid var(--line);
}
.modal-body .modal-footer {
  padding: 20px 0 0;
  border: 0;
}
.code-display {
  background: var(--mint);
  padding: 22px;
  border-radius: 12px;
  font: 700 22px ui-monospace, monospace;
  letter-spacing: 1px;
  text-align: center;
  margin: 20px 0;
  overflow-wrap: anywhere;
}
.loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  color: var(--muted);
}
#toast {
  position: fixed;
  z-index: 100;
  bottom: 24px;
  left: 50%;
  max-width: min(520px, calc(100vw - 32px));
  padding: 13px 22px;
  border-radius: 13px;
  background: var(--ink);
  color: white;
  box-shadow: 0 10px 40px #171c3530;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .16s, transform .16s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.error {
  background: #902f3b;
}
@media (min-width: 1200px) {
  .test-layout:has(.test-content > .passage) {
    max-width: 1540px;
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 24px;
  }
  .test-content:has(> .passage) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 22px;
    align-items: start;
  }
  .test-content:has(> .passage) > .test-header {
    grid-column: 1/-1;
  }
  .test-content > .passage {
    grid-column: 1;
    grid-row: 2/4;
    max-height: calc(100vh - 275px);
    overflow-y: auto;
    margin: 0;
    padding: 25px;
  }
  .test-content:has(> .passage) > .test-question {
    grid-column: 2;
    grid-row: 2;
    padding: 26px;
  }
  .test-content:has(> .passage) > .test-footer {
    grid-column: 2;
    grid-row: 3;
  }
  .test-layout:has(.passage) .test-navigator {
    padding: 23px 12px;
  }
  .test-content:has(> .passage) .test-footer .page-actions {
    width: 100%;
    justify-content: space-between;
  }
  .test-content:has(> .passage) .test-footer .btn {
    font-size: 12px;
    padding: 10px 13px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 218px;
    padding: 28px 15px;
  }
  .sidebar .brand-text {
    font-size: 14px;
  }
  .workspace {
    margin-left: 218px;
  }
  .main {
    padding: 30px;
  }
  .topbar {
    padding: 0 30px;
  }
  .hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(215px, 1fr);
  }
  .hero-content {
    padding: 30px;
  }
  .hero h2 {
    font-size: 42px;
  }
  .hero > .studio-art {
    transform: scale(.84);
  }
  .section-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .section-card h3 {
    min-height: 0;
  }
  .section-card p {
    margin-bottom: 16px;
  }
  .stat-card {
    padding: 19px 17px;
  }
  .stat-icon {
    display: none;
  }
  .stat-value {
    font-size: 28px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .review-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .login-art {
    padding: 32px;
  }
  .login-intro h1 {
    font-size: 64px;
    letter-spacing: -3px;
  }
  .login-card {
    padding: 40px 32px;
  }
  .journey-grid {
    gap: 10px;
  }
  .journey-card {
    padding: 18px 14px;
  }
  .journey-card h3 {
    font-size: 14px;
  }
  .journey-meta {
    flex-wrap: wrap;
  }
  .student-hero .studio-art {
    transform: scale(1);
  }
  .student-hero .hero-content {
    padding: 34px;
  }
  .student-home .two-col {
    grid-template-columns: 1fr 1fr;
  }
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 850px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 20px 24px 15px;
  }
  .sidebar .brand {
    margin: 0 0 22px;
  }
  .nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 7px;
    padding: 3px;
  }
  .nav > .eyebrow,
  .sidebar-bottom,
  .nav-count {
    display: none;
  }
  .nav-link {
    width: auto;
    flex-shrink: 0;
    font-size: 12px;
    padding: 11px 13px;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 62px;
    padding: 0 24px;
  }
  .main {
    padding: 28px 24px;
  }
  .hero h2 {
    font-size: 42px;
  }
  .hero > .studio-art {
    transform: scale(.9);
  }
  .page-title {
    font-size: 36px;
  }
  .section-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .login-art {
    padding: 27px;
  }
  .login-intro h1 {
    font-size: 52px;
  }
  .login-intro .studio-art {
    transform: scale(.75);
  }
  .login-card {
    padding: 40px 25px;
  }
  .login-card h2 {
    font-size: 34px;
  }
  .journey-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .journey-card h3 {
    min-height: 0;
  }
  .student-home .two-col {
    grid-template-columns: 1fr;
  }
  .student-hero .studio-art {
    transform: scale(.87);
  }
  .test-topbar {
    padding: 15px 22px;
    gap: 12px;
  }
  .test-topbar .topbar-actions {
    gap: 8px;
  }
  .test-topbar .topbar-actions > .badge {
    display: none;
  }
  .test-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 20px;
    padding: 0 22px 30px;
  }
  .test-question {
    padding: 26px;
  }
  .test-navigator {
    padding: 20px 12px;
  }
  .test-header h1 {
    font-size: 24px;
  }
  .section-strip {
    padding: 20px 22px;
    gap: 6px;
  }
  .section-step {
    display: block;
    font-size: 10px;
    padding: 10px;
  }
  .section-step > span {
    margin-bottom: 9px;
  }
  .result-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .student-alias {
    max-width: 160px;
  }
  .app-footer {
    padding: 22px 24px;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 14px;
  }
  .main {
    padding: 26px 20px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .page-title,
  .student-home .page-title {
    font-size: 32px;
    letter-spacing: -1.2px;
  }
  .subtext {
    font-size: 14px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .hero,
  .student-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .hero-content,
  .student-hero .hero-content {
    padding: 29px 26px;
  }
  .hero h2,
  .student-hero h2 {
    font-size: 42px;
    letter-spacing: -1.8px;
    margin-top: 23px;
  }
  .hero > .studio-art {
    position: absolute;
    right: -34px;
    bottom: -40px;
    transform: scale(.45);
    transform-origin: bottom right;
    opacity: .9;
  }
  .hero .hero-content {
    padding-bottom: 40px;
  }
  .hero .hero-content > * {
    position: relative;
    z-index: 1;
  }
  .hero-footnote {
    max-width: 85%;
    font-size: 11px;
  }
  .hero-actions {
    max-width: 100%;
    gap: 10px;
  }
  .hero p {
    font-size: 13px;
  }
  .hero-metrics {
    gap: 29px;
  }
  .hero-metrics strong {
    font-size: 29px;
  }
  .hero-metrics small {
    font-size: 11px;
  }
  .student-hero {
    margin-bottom: 30px;
  }
  .student-hero .hero-footnote {
    max-width: 90%;
  }
  .section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }
  .section-heading h2 {
    font-size: 21px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .stat-icon {
    display: block;
    font-size: 16px;
  }
  .stat-label {
    font-size: 11px;
  }
  .section-grid,
  .journey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .section-card,
  .journey-card {
    padding: 19px 16px;
  }
  .journey-card h3,
  .section-card h3 {
    font-size: 14px;
    min-height: 40px;
  }
  .journey-meta {
    font-size: 11px;
  }
  .journey-grid > .journey-card:last-child {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .journey-grid > .journey-card:last-child .section-meta {
    grid-column: 1/-1;
    margin-bottom: 5px;
  }
  .journey-grid > .journey-card:last-child h3 {
    min-height: 0;
    margin-bottom: 10px;
  }
  .journey-grid > .journey-card:last-child p {
    grid-column: 1;
    margin-bottom: 0;
  }
  .journey-grid > .journey-card:last-child .journey-meta {
    grid-column: 2;
    grid-row: 2/4;
    align-self: center;
  }
  .two-col {
    gap: 17px;
  }
  .panel {
    padding: 22px;
  }
  .panel p {
    font-size: 13px;
  }
  .panel-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .review-layout {
    grid-template-columns: 1fr;
  }
  .question-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 220px;
  }
  .question-detail {
    padding: 23px;
  }
  .question-prompt {
    font-size: 21px;
  }
  .question-tag {
    gap: 6px;
  }
  .toolbar > input {
    flex-basis: 100%;
  }
  .filter-tabs {
    gap: 5px;
  }
  .chip {
    font-size: 12px;
    padding: 10px 12px;
  }
  .info-banner,
  .diagnostic-notice {
    flex-wrap: wrap;
  }
  .diagnostic-notice h2 {
    font-size: 21px;
  }
  .form-row {
    display: block;
  }
  .login-page {
    display: block;
    background: white;
  }
  .login-art {
    min-height: 0;
    padding: 25px 25px 22px;
  }
  .login-art .brand {
    position: relative;
    z-index: 2;
  }
  .login-art .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 37px;
    border-radius: 10px;
  }
  .login-intro {
    padding: 27px 0 0;
    display: block;
    min-height: 175px;
  }
  .login-intro > .eyebrow {
    display: none;
  }
  .login-intro h1 {
    font-size: 39px;
    line-height: 1.05;
    letter-spacing: -1.7px;
    position: relative;
    margin: 0 0 14px;
    max-width: 230px;
  }
  .login-intro > p:not(.eyebrow),
  .login-art > .auth-note {
    display: none;
  }
  .login-intro .studio-art {
    right: -19px;
    bottom: -12px;
    transform: scale(.53);
  }
  .login-card {
    max-width: 500px;
    padding: 29px 25px 35px;
  }
  .login-card > .entry-symbol {
    display: none;
  }
  .login-card > .eyebrow {
    margin-bottom: 12px;
  }
  .login-card h2 {
    font-size: 31px;
    letter-spacing: -1px;
  }
  .login-card > .muted {
    margin-bottom: 19px;
  }
  .login-tabs {
    margin: 22px 0;
  }
  .login-card > .auth-note {
    font-size: 12px !important;
  }
  .test-topbar {
    padding: 13px 18px;
    min-height: 73px;
  }
  .test-topbar .brand-text {
    font-size: 13px;
  }
  .test-topbar .brand-text small {
    font-size: 8px;
  }
  .test-topbar .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 36px;
    border-radius: 10px;
  }
  .test-topbar .brand-mark span {
    font-size: 20px;
  }
  .test-shell .test-topbar .brand-text {
    display: none;
  }
  .timer {
    font-size: 14px;
    padding: 10px;
    min-height: 44px;
  }
  .test-topbar .btn {
    font-size: 11px;
    padding: 10px;
  }
  .test-layout {
    display: flex;
    flex-direction: column;
    padding: 0 18px 30px;
    gap: 24px;
  }
  .test-content,
  .test-navigator {
    width: 100%;
  }
  .test-header {
    margin: 4px 0 19px;
    gap: 10px;
    align-items: flex-start;
  }
  .test-header h1 {
    font-size: 24px;
  }
  .test-header .btn {
    font-size: 11px;
    padding: 10px;
    flex-shrink: 0;
  }
  .test-header .eyebrow {
    font-size: 9px;
  }
  .section-strip {
    padding: 18px;
    gap: 5px;
  }
  .section-step {
    padding: 9px 7px;
    font-size: 9px;
    line-height: 1.4;
    border-radius: 9px;
    overflow-wrap: normal;
  }
  .section-step > span {
    width: 22px;
    height: 22px;
    font-size: 10px;
    margin-bottom: 7px;
  }
  .test-question {
    padding: 24px;
    min-height: 360px;
    border-radius: 17px;
  }
  .test-question .question-prompt {
    font-size: 22px;
  }
  .option {
    min-height: 58px;
    padding: 13px;
    font-size: 14px;
    gap: 12px;
  }
  .option.selected {
    padding: 12px;
  }
  .test-navigator {
    position: static;
    margin: 0;
    padding: 22px;
  }
  .question-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-height: none;
    gap: 8px;
  }
  .question-number {
    min-height: 44px;
    font-size: 12px;
  }
  .test-footer {
    gap: 14px;
  }
  .test-footer .page-actions {
    margin-left: auto;
  }
  .test-footer .btn {
    padding: 11px 14px;
    font-size: 12px;
  }
  .save-status {
    font-size: 11px;
  }
  .passage {
    padding: 23px;
  }
  .passage p {
    font-size: 16px;
  }
  .passage h3 {
    font-size: 17px;
  }
  .essay-editor {
    font-size: 17px;
    min-height: 380px;
    padding: 16px;
  }
  .result-hero {
    padding: 25px;
    gap: 20px;
  }
  .result-hero h2 {
    font-size: 34px;
  }
  .result-hero h2 > span {
    font-size: 19px;
    display: block;
    margin-top: 8px;
  }
  .result-score {
    width: 124px;
    height: 124px;
    padding: 7px;
  }
  .score-inner strong {
    font-size: 30px;
  }
  .score-inner span {
    font-size: 9px;
  }
  .result-section {
    padding: 19px;
  }
  .result-section h3 {
    font-size: 14px;
  }
  .topic-grid {
    grid-template-columns: 1fr;
  }
  .answer-review.panel {
    padding: 12px 17px;
  }
  .answer-review summary {
    font-size: 12px;
    gap: 10px;
  }
  .answer-review summary > span:last-child {
    display: none;
  }
  .answer-summary {
    gap: 9px;
  }
  .essay-response {
    padding: 19px;
  }
  .break-page {
    padding-top: 35px;
  }
  .break-symbol {
    font-size: 70px;
  }
  .break-page h1 {
    font-size: 38px;
  }
  .break-clock {
    font-size: 48px;
  }
  .student-alias {
    max-width: 130px;
  }
  .class-card .list-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .class-card .list-row .page-actions {
    gap: 6px;
  }
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 20px 22px;
  }
  .modal-footer {
    flex-wrap: wrap;
  }
  .modal-header h2 {
    font-size: 20px;
  }
  .code-display {
    font-size: 19px;
  }
  .app-footer {
    font-size: 10px;
    padding: 20px;
  }
  .nav-link {
    font-size: 11px;
  }
  .nav-icon {
    font-size: 17px;
  }
}
@media (max-width: 380px) {
  .main {
    padding: 23px 16px;
  }
  .hero-content,
  .student-hero .hero-content {
    padding: 25px 21px 37px;
  }
  .hero h2,
  .student-hero h2 {
    font-size: 36px;
  }
  .hero-footnote,
  .student-hero .hero-footnote {
    max-width: 100%;
  }
  .hero-metrics {
    gap: 22px;
  }
  .hero > .studio-art {
    display: none;
  }
  .section-card,
  .journey-card {
    padding: 17px 13px;
  }
  .section-card h3,
  .journey-card h3 {
    font-size: 13px;
  }
  .journey-meta {
    font-size: 10px;
  }
  .journey-card p {
    font-size: 11px;
  }
  .journey-break {
    font-size: 9px;
  }
  .section-heading h2 {
    font-size: 20px;
  }
  .login-art {
    padding: 23px;
  }
  .login-intro h1 {
    font-size: 35px;
  }
  .login-intro .studio-art {
    transform: scale(.44);
    right: -28px;
  }
  .login-card {
    padding: 27px 23px;
  }
  .login-card h2 {
    font-size: 28px;
  }
  .section-strip {
    padding: 15px 12px;
    gap: 4px;
  }
  .section-step {
    font-size: 8px;
    padding: 8px 4px;
  }
  .test-layout {
    padding: 0 14px 26px;
  }
  .test-header h1 {
    font-size: 21px;
  }
  .test-question {
    padding: 20px;
  }
  .test-question .question-prompt {
    font-size: 20px;
  }
  .test-navigator {
    padding: 20px;
  }
  .question-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .test-footer .page-actions {
    width: 100%;
    justify-content: space-between;
  }
  .test-footer .btn {
    font-size: 11px;
    padding: 11px 12px;
  }
  .result-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .result-score {
    align-self: center;
  }
  .test-topbar {
    padding: 12px 14px;
  }
  .topbar-actions {
    gap: 7px;
  }
  .student-alias {
    max-width: 100px;
  }
  .student-shell .test-topbar .brand-text {
    font-size: 11px;
  }
  .student-shell .test-topbar .brand-text small {
    font-size: 7px;
  }
  .student-shell .test-topbar {
    flex-wrap: wrap;
  }
  .student-shell .test-topbar .topbar-actions {
    margin-left: auto;
  }
  .break-page .panel h2 {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .test-topbar,
  .page-actions,
  .btn,
  #toast,
  .app-footer,
  dialog,
  .studio-art {
    display: none !important;
  }
  .workspace {
    margin: 0;
  }
  .main {
    max-width: none;
    padding: 0;
  }
  .panel,
  .result-section,
  .question-detail {
    box-shadow: none;
    break-inside: avoid;
  }
  .hero {
    background: white;
    color: black;
    border: 1px solid #ccc;
  }
  .hero * {
    color: black !important;
  }
  .result-score {
    background: none;
    border: 2px solid #555;
  }
  .score-inner {
    background: white;
  }
  html,
  body {
    background: white;
  }
}
@media (min-width: 641px) and (max-width: 850px) {
  .question-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .result-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .result-score {
    align-self: center;
  }
  .step-full {
    display: none;
  }
  .step-short {
    display: inline;
  }
  .section-step {
    font-size: 10px;
  }
  .hero > .studio-art {
    display: none;
  }
}
.break-clock.untimed {
  max-width: 100%;
  white-space: normal;
  font-size: clamp(20px, 4.5vw, 56px);
  overflow-wrap: anywhere;
}

/* Passwordless entry and distinct role workspaces. */
.account-name {
  font-size: 17px !important;
  line-height: 1.4 !important;
  margin: 8px 0 4px !important;
}
.sidebar-note > small {
  display: block;
  color: #d0d4e5;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.login-success {
  padding: 23px;
  margin: 22px 0;
  border: 1px solid #d6e4c5;
  border-radius: 18px;
  background: #f4f9ed;
}
.login-success > span {
  color: #466831;
  font-size: 28px;
}
.login-success h3 { margin: 8px 0 13px; }
.login-success p { font-size: 14px; line-height: 1.65; }
.login-success .btn { white-space: normal; text-align: left; }
.demo-roles {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
}
.demo-roles summary { cursor: pointer; color: var(--ink); font-weight: 700; }
.demo-roles p { line-height: 1.65; font-size: 12px; }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.demo-grid .btn { justify-content: center; }
.management-hero { min-height: 300px; }
.management-hero .hero-content { max-width: 590px; }
.management-hero .hero-content > p { max-width: 450px; }
.email-cell { overflow-wrap: anywhere; }
.class-card .roster .list-row { gap: 12px; align-items: flex-start; }
.class-card .roster .list-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.class-card .roster .page-actions { justify-content: flex-end; flex-wrap: wrap; }
.login-card .form-error { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .topbar { gap: 12px; flex-wrap: wrap; }
  .topbar .breadcrumb { overflow-wrap: anywhere; }
  .topbar .topbar-actions { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .class-card .roster .list-row { flex-direction: column; align-items: stretch; }
  .class-card .roster .page-actions { justify-content: flex-start; }
  .management-hero .hero-content { padding-right: 0; }
  .management-hero .hero-content h2 { font-size: 34px; }
  .demo-grid .btn { font-size: 12px; padding: 10px; }
  .login-success { padding: 18px; }
}
