:root {
  --ink: #18383d;
  --muted: #607277;
  --teal: #185b5d;
  --mint: #e8f1ed;
  --paper: #f7f8f5;
  --line: #d9e2de;
  --amber: #956227;
  --white: #fff;
  --red: #a94435;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--teal);
  text-underline-offset: 4px;
}
button,
input,
select {
  font: inherit;
}
button,
a.button {
  cursor: pointer;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 7px;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: white;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button:hover,
a.button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.secondary,
a.button.secondary {
  background: white;
  color: var(--teal);
  border-color: var(--line);
}
button.quiet {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
  padding-left: 0;
}
button.danger {
  color: var(--red);
  background: white;
  border-color: var(--line);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #ce9b48;
  outline-offset: 3px;
}
input,
select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #bacbc5;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  min-height: 46px;
}
input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  min-height: 20px;
  accent-color: var(--teal);
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  line-height: 1.5;
  margin: 12px 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -1.2px;
  line-height: 1.14;
  margin-bottom: 18px;
}
h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.35px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.7;
}
.muted,
.small {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 2px;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 15px;
}
.site-header {
  min-height: 92px;
  border-bottom: 1px solid var(--line);
  padding: 18px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 2px;
}
.brand-icon {
  font-family: Georgia, serif;
  font-size: 30px;
  letter-spacing: -2px;
  background: var(--teal);
  color: white;
  padding: 5px 10px 9px;
  border-radius: 5px;
}
.brand-icon span {
  color: #e4b26a;
}
.brand-sub {
  display: block;
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 500;
  margin-top: 5px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
}
.site-header nav a {
  text-decoration: none;
}
.pilot-label {
  font-size: 9px;
  letter-spacing: 1px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
}
main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 28px 72px;
  min-height: calc(100vh - 156px);
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  gap: 16px;
}
.welcome {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 30px 0 45px;
}
.welcome h1 {
  font-size: 54px;
  max-width: 500px;
}
.welcome .intro {
  font-size: 17px;
  max-width: 435px;
  color: var(--muted);
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
}
.access-card {
  padding: 38px;
  box-shadow: 0 14px 45px #18383d07;
}
.access-card input {
  text-transform: uppercase;
  font-size: 19px;
  letter-spacing: 1.3px;
}
.access-card button {
  width: 100%;
  margin-top: 18px;
}
.rule {
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.feature {
  padding: 22px 0;
  border-top: 2px solid var(--line);
}
.feature strong {
  display: block;
  font-size: 14px;
  margin: 8px 0;
}
.number {
  font-family: Georgia, serif;
  color: var(--amber);
  font-size: 22px;
}
.error {
  color: var(--red);
  font-size: 14px;
  margin: 12px 0;
  line-height: 1.6;
}
.success {
  color: var(--teal);
  background: var(--mint);
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.toolbar h1 {
  font-size: 36px;
  margin-bottom: 8px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.metric {
  padding: 22px 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.metric strong {
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  display: block;
  margin-bottom: 5px;
}
.metric span {
  font-size: 13px;
  color: var(--muted);
}
.columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
.stack > * + * {
  margin-top: 20px;
}
.field {
  margin-bottom: 18px;
}
.field-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
}
.inline-note {
  border-left: 3px solid #cda469;
  padding: 8px 16px;
  background: #fbf6ed;
  font-size: 13px;
  line-height: 1.7;
}
.list-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.list-row:last-child {
  border: 0;
}
.list-row strong {
  font-size: 14px;
  display: block;
  margin-bottom: 5px;
}
.pill {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 11px;
  line-height: 1.5;
  padding: 4px 10px;
  white-space: nowrap;
  background: #f7f8f5;
}
.pill.good {
  background: var(--mint);
  color: var(--teal);
  border-color: #cfdfd7;
}
.pill.warn {
  background: #fbf0df;
  color: #88571c;
  border-color: #ecd9b9;
}
.pill.review {
  background: #f9e9e5;
  color: #973e32;
  border-color: #efd2ca;
}
.empty {
  padding: 25px 0;
  color: var(--muted);
  font-size: 14px;
}
.session-shell {
  max-width: 810px;
  margin: auto;
}
.session-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.timer {
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px 18px;
  text-align: center;
  min-width: 112px;
}
.timer strong {
  font-size: 24px;
  display: block;
  font-weight: 500;
}
.timer span {
  font-size: 10px;
  color: var(--muted);
}
.question-card {
  padding: 38px 42px;
  min-height: 390px;
}
.question-card h2 {
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1.5;
  font-weight: 400;
}
.question-number {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.question-math {
  font-size: 1.35rem;
  margin: 30px 0;
}
.katex-display {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 5px 0;
}
.options {
  display: grid;
  gap: 12px;
  margin: 26px 0;
}
.option {
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 400;
  margin: 0;
  min-height: 60px;
}
.option:has(input:checked) {
  border-color: var(--teal);
  background: #f0f7f3;
  box-shadow: inset 0 0 0 1px var(--teal);
}
.option .katex-display {
  margin: 0;
  text-align: left;
}
.option-letter {
  color: var(--muted);
  font-size: 12px;
}
.answer-input {
  font-size: 23px;
  font-family: Georgia, serif;
  letter-spacing: 0.3px;
}
.math-preview {
  min-height: 52px;
  padding: 5px 12px;
  background: #f7f9f6;
  border-radius: 5px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
}
.math-preview .katex-display {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}
.mathpad {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}
.mathpad button {
  min-height: 40px;
  min-width: 44px;
  padding: 7px 13px;
  background: white;
  border-color: var(--line);
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 17px;
}
.session-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 25px;
}
.graph {
  display: block;
  width: 310px;
  max-width: 100%;
  margin: 12px auto;
  font-size: 11px;
  font-family: system-ui;
}
.complete {
  text-align: center;
  max-width: 650px;
  margin: 45px auto;
}
.complete-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: var(--mint);
  font-size: 30px;
  margin-bottom: 24px;
}
.complete h1 {
  font-size: 42px;
}
.report-intro {
  display: flex;
  justify-content: space-between;
  gap: 22px;
}
.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.skill-card {
  padding: 22px;
}
.skill-card h3 {
  margin-bottom: 8px;
}
.skill-card .counts {
  font-size: 12px;
  color: var(--muted);
  margin-top: 13px;
}
.evidence summary {
  cursor: pointer;
  padding: 18px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.evidence {
  border-bottom: 1px solid var(--line);
}
.evidence-body {
  padding: 8px 0 22px;
}
.evidence .katex-display {
  text-align: left;
}
.response {
  background: #f5f7f4;
  padding: 12px 16px;
  border-radius: 5px;
  font-size: 14px;
  white-space: pre-wrap;
}
.code-output {
  padding: 20px;
  background: var(--mint);
  border-radius: 7px;
  margin: 18px 0;
}
.code-output strong {
  display: block;
  font-size: 21px;
  letter-spacing: 1.5px;
  font-family: monospace;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.login {
  max-width: 460px;
  margin: 35px auto;
}
.loading {
  padding: 40px;
  color: var(--muted);
}
#notice {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 22px;
  background: var(--ink);
  color: white;
  border-radius: 7px;
  box-shadow: 0 6px 24px #0002;
  font-size: 14px;
  z-index: 20;
}
#notice:empty {
  display: none;
}
.feedback-item {
  margin-bottom: 22px;
}
.feedback-item h3 {
  line-height: 1.6;
}
.print-sheet {
  max-width: 820px;
  margin: auto;
  background: white;
  padding: 36px;
  color: #17242a;
}
.print-sheet h1 {
  font-size: 28px;
  margin: 15px 0;
}
.print-question {
  break-inside: avoid;
  padding: 22px 0;
  border-top: 1px solid #aaa;
}
.print-question h3 {
  font-weight: 500;
  line-height: 1.5;
}
.print-question .graph {
  width: 240px;
}
.print-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.print-options > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.working-space {
  height: 95px;
}
.print-sheet .katex-display {
  text-align: left;
}
@media (max-width: 780px) {
  .site-header {
    padding: 14px 22px;
  }
  .site-header nav {
    gap: 12px;
    font-size: 11px;
  }
  .pilot-label {
    display: none;
  }
  .brand {
    font-size: 12px;
  }
  .brand-sub {
    font-size: 8px;
  }
  .welcome {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0;
  }
  .welcome h1 {
    font-size: 42px;
  }
  .welcome .intro {
    max-width: none;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .features {
    gap: 14px;
  }
  .access-card {
    padding: 26px;
  }
  .skill-grid {
    grid-template-columns: 1fr;
  }
  .question-card {
    padding: 26px 22px;
  }
  .question-card h2 {
    font-size: 23px;
  }
  main {
    padding: 30px 18px 48px;
  }
  .toolbar {
    align-items: flex-start;
  }
  .toolbar h1 {
    font-size: 30px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 17px;
  }
  .metric strong {
    font-size: 29px;
  }
  .site-footer {
    flex-direction: column;
    font-size: 10px;
  }
  .report-intro {
    display: block;
  }
  .actions button {
    padding: 10px 13px;
  }
  .session-head h2 {
    font-size: 18px;
  }
  .timer {
    padding: 8px 12px;
  }
  .timer strong {
    font-size: 21px;
  }
}
@media (max-width: 430px) {
  .site-header {
    align-items: start;
    gap: 12px;
  }
  .site-header nav {
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
  }
  .brand-icon {
    font-size: 24px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric:last-child {
    grid-column: 1/-1;
  }
  .features {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .feature {
    display: none;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .session-actions {
    flex-wrap: wrap;
  }
  .question-math {
    font-size: 1.1rem;
  }
}
@media print {
  body {
    background: white;
  }
  .print-sheet {
    padding: 0;
    max-width: none;
  }
  .site-header,
  .site-footer,
  button,
  nav,
  #notice {
    display: none !important;
  }
  main {
    padding: 0;
  }
  .card {
    box-shadow: none;
    border-color: #aaa;
  }
  .question-card,
  .feedback-item {
    break-inside: avoid;
  }
  .working-space {
    height: 90px;
  }
  @page {
    size: letter;
    margin: 16mm;
  }
}

[hidden] {
  display: none !important;
}
