:root {
  --background: #f2f3f7;
  --surface: #ffffff;
  --ink: #20243c;
  --muted: #666b80;
  --border: #dcdde7;
  --primary: #6250cc;
  --primary-dark: #5140b5;
  --sidebar: #23243f;
  --lavender: #daceff;
  --success: #397251;
  --warning: #886320;
  --focus: #8068eb;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button,
input,
summary,
label {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  font: inherit;
  cursor: pointer;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

label:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 1em;
  line-height: 1;
}

.loading-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
}

.topbar {
  max-width: 1440px;
  height: 90px;
  margin: auto;
  padding: 0 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.top-meta,
.top-meta > span:last-child {
  display: flex;
  align-items: center;
}

.brand {
  gap: 13px;
  color: #292842;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.brand > .icon {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  background: #ebe7ff;
  color: var(--primary);
}

.brand-divider {
  margin: 0 12px;
  color: #b8bac8;
  font-weight: 400;
}

.brand-sub {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
}

.top-meta {
  gap: 24px;
  color: #646a7d;
  font-size: 14px;
}

.top-meta > span:last-child {
  gap: 7px;
}

.prototype {
  padding: 3px 8px;
  border: 1px solid #d6d8e3;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.scenario-picker {
  max-width: 1280px;
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.scenario-picker button {
  min-width: 0;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #dedfea;
  border-radius: 10px;
  background: var(--surface);
  color: #666b80;
  text-align: left;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.scenario-picker button:hover:not(:disabled) {
  border-color: #b8ade7;
  transform: translateY(-1px);
}

.scenario-picker button.active {
  border-color: #a795e6;
  background: #eee9ff;
  color: #50408c;
}

.scenario-picker strong,
.scenario-picker small {
  display: block;
}

.scenario-picker strong {
  font-size: 15px;
}

.scenario-picker small {
  margin-top: 4px;
  font-size: 12px;
}

.scenario-index {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #d3cbe6;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.active-check {
  margin-left: auto;
}

.workspace {
  max-width: 1280px;
  min-height: 770px;
  margin: 0 auto 35px;
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dedfea;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(26, 23, 64, 0.04);
}

.sidebar {
  position: relative;
  padding: 37px 34px 29px;
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  color: #ffffff;
}

.eyebrow {
  color: #c0b7f3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.7px;
}

.sidebar h1 {
  margin-top: 18px;
  font-size: 37px;
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -1.6px;
}

.sidebar-intro {
  margin-top: 16px;
  color: #c5c7d9;
}

.mission {
  margin-top: 29px;
  padding: 20px;
  border: 1px solid #464660;
  border-radius: 12px;
  background: #30314e;
}

.small-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c4baf6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.mission h2 {
  margin-top: 14px;
  font-size: 20px;
  line-height: 1.3;
}

.mission p {
  margin-top: 10px;
  color: #d0d1e0;
  font-size: 14px;
}

.fictional {
  display: block;
  margin-top: 16px;
  color: #acafc8;
  font-size: 12px;
}

.steps {
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #b4b6cd;
  font-size: 14px;
}

.steps small {
  display: block;
  margin-top: 1px;
  color: #999db8;
  font-size: 12px;
}

.step-number {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #575971;
  border-radius: 50%;
  font-size: 12px;
}

.steps .current {
  color: #ffffff;
  font-weight: 700;
}

.steps .current .step-number {
  border-color: var(--lavender);
  background: var(--lavender);
  color: #2b2355;
}

.steps .done .step-number {
  border-color: #77a88b;
  color: #c6ecd6;
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 29px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #afb3cb;
  font-size: 12px;
}

.learning {
  min-width: 0;
  padding: 32px 45px 20px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.learning-top {
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #70768a;
  font-size: 12px;
}

.learning-top > span:first-child {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.learning progress {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  background: #ececf3;
  accent-color: var(--primary);
}

.learning progress::-webkit-progress-bar {
  background: #ececf3;
}

.learning progress::-webkit-progress-value,
.learning progress::-moz-progress-bar {
  background: var(--primary);
}

.storage-note {
  margin-top: 12px;
  padding: 9px 12px;
  display: block;
  border-radius: 5px;
  background: #fff7df;
  color: #886424;
  font-size: 12px;
}

.stage {
  padding: 31px 0 30px;
  animation: arrive 0.35s ease both;
}

.step-kicker {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6250bb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.stage > h2 {
  color: #25283e;
  font-size: clamp(31px, 3.2vw, 39px);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -1.4px;
}

.stage > h2:focus {
  outline: none;
}

.lead {
  max-width: 680px;
  margin-top: 15px;
  color: #656b7e;
  font-size: 16px;
  line-height: 1.65;
}

.document {
  margin-top: 25px;
  overflow: hidden;
  border: 1px solid #dcdeea;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(42, 40, 69, 0.03);
}

.document-top {
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #e5e6ef;
  background: #f7f7fb;
  color: #6a6d84;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.document-top > span:first-child,
.document-foot,
.micro-hint,
.status-strip,
.issue {
  display: flex;
  align-items: center;
  gap: 8px;
}

.draft-pill {
  padding: 3px 8px;
  border-radius: 4px;
  background: #ebeaf3;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.prompt-body {
  padding: 20px 22px;
  color: #4b5167;
  font-size: 16px;
}

.fragments {
  margin: 19px 0;
  display: grid;
  gap: 8px;
}

.fragment {
  min-height: 47px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e4e5ef;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s;
}

.fragment:hover,
.fragment.selected {
  border-color: #ad9ce8;
  background: #f1ecff;
}

.fragment input,
.claim input,
.verdict input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.fragment.selected > span:nth-of-type(1),
.fragment.reveal-sensitive > span:nth-of-type(1) {
  color: #74638f;
  text-decoration: line-through 2px;
}

.redact-tag {
  margin-left: auto;
  color: #68539b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.inline-reference {
  margin-top: 15px;
  font-size: 12px;
}

.inline-reference summary,
.film-transcript summary,
.revised-draft summary {
  cursor: pointer;
}

.inline-reference summary {
  color: #6250bb;
}

.inline-reference p {
  margin-top: 8px;
  padding: 12px;
  border-radius: 6px;
  background: #f6f5fa;
}

.document-foot {
  padding: 12px 21px;
  border-top: 1px solid #eeeef4;
  background: #fbfbfd;
  color: #767a8f;
  font-size: 12px;
}

.status-strip {
  margin-top: 22px;
  padding: 10px 13px;
  border-radius: 6px;
  background: #edf6f0;
  color: #357251;
  font-size: 12px;
}

.status-end {
  margin-left: auto;
  font-size: 10px;
  white-space: nowrap;
}

.comparison {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 17px;
}

.comparison .document {
  margin-top: 0;
  box-shadow: none;
}

.reference {
  border-color: #e1e3ed;
  background: #f7f8fc;
}

.reference .document-top {
  background: #edf0f6;
}

.reference-body {
  padding: 20px;
}

.reference-eyebrow {
  color: #737d94;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.reference h3 {
  margin: 10px 0 19px;
  color: #3b4256;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.25;
}

.reference p {
  color: #555e73;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.8;
}

.source-label {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid #dcdfea;
  color: #7e879b;
  font-size: 10px;
}

.claim-list,
.verdict-list {
  display: grid;
  gap: 9px;
}

.claim-list {
  padding: 13px;
}

.claim {
  padding: 12px 10px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #525a71;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.6;
}

.claim input {
  margin-top: 5px;
}

.claim:hover,
.claim.chosen {
  border-color: #beafe8;
  background: #f1edfc;
}

.claim.unsupported {
  border-color: #e1b352;
  background: #fff2d9;
}

.sentence-number {
  display: block;
  margin-bottom: 5px;
  color: #86839e;
  font-size: 10px;
  letter-spacing: 1px;
}

.claim-status {
  display: block;
  margin-top: 8px;
  color: #865d0c;
  font-size: 11px;
}

.micro-hint {
  margin-top: 15px;
  color: #85879a;
  font-size: 12px;
}

.release-status,
.scenario-evidence {
  margin: 24px 0 20px;
  padding: 18px 20px;
  border-left: 3px solid #9984d3;
  border-radius: 0 10px 10px 0;
  background: #f5f3fb;
}

.release-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-left-color: #e1ab41;
  background: #fff8ea;
}

.release-status .small-label {
  color: #947127;
  font-size: 9px;
}

.release-status p,
.scenario-evidence p {
  margin-top: 7px;
  color: #625a70;
  font-size: 16px;
  line-height: 1.7;
}

.release-status p {
  color: #756044;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
}

.scenario-evidence .small-label {
  color: #7b67a0;
}

.issue {
  color: #976a15;
  font-size: 10px;
  white-space: nowrap;
}

.verdict-list {
  gap: 11px;
}

.verdict {
  padding: 17px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #e1e2ec;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.verdict:hover,
.verdict.chosen {
  border-color: #a28ddc;
  background: #f8f6ff;
  box-shadow: 0 0 0 1px #a28ddc;
}

.signal {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #c95454;
  box-shadow: 0 0 0 5px rgba(201, 84, 84, 0.08);
}

.amber .signal {
  background: #ba831c;
}

.green .signal {
  background: #3d8c65;
}

.option-letter {
  color: #897b9a;
  font-size: 12px;
}

.verdict-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 14px;
}

.verdict-heading strong {
  color: #ab3e3e;
}

.amber .verdict-heading strong {
  color: #936310;
}

.green .verdict-heading strong {
  color: #327650;
}

.verdict-heading > span {
  color: #353c52;
  font-weight: 600;
}

.verdict p {
  margin-top: 4px;
  color: #777d8f;
  font-size: 13px;
  line-height: 1.6;
}

.verdict-check {
  margin-left: auto;
  color: #7f659f;
}

.action-row,
.feedback-action,
.finished-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.action-row {
  margin-top: 23px;
  color: #777b90;
  font-size: 13px;
}

.primary,
.secondary {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.primary {
  padding: 13px 20px;
  border: 0;
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 3px 0 rgba(61, 49, 133, 0.08);
  transition: background 0.2s, transform 0.2s;
}

.primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.secondary {
  padding: 10px 15px;
  border: 1px solid #d6cfe7;
  background: #ffffff;
  color: #6b5688;
  font-size: 13px;
}

.secondary:hover:not(:disabled) {
  background: #f4f0fa;
}

.text-button {
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #726190;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-toggle {
  margin-top: 16px;
}

.guide {
  margin-top: 12px;
  padding: 17px 20px;
  border-radius: 8px;
  background: #f6f4fc;
  animation: arrive 0.25s ease;
}

.guide p {
  margin-bottom: 8px;
  color: #656278;
  font-size: 13px;
}

.guide small {
  color: #66567e;
  font-size: 12px;
}

.feedback {
  margin-top: 24px;
  padding: 21px;
  border: 1px solid #cbded2;
  border-radius: 11px;
  background: #f3f8f4;
  animation: arrive 0.4s ease;
}

.feedback:focus {
  outline: none;
}

.feedback.coach {
  border-color: #e8d4a9;
  background: #fff9ee;
}

.feedback-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
}

.coach .feedback-label {
  color: var(--warning);
}

.feedback-label > span:last-child {
  margin-left: auto;
  font-size: 10px;
  font-weight: 500;
}

.feedback h3 {
  margin-top: 15px;
  font-size: 19px;
  line-height: 1.35;
}

.feedback p {
  margin-top: 10px;
  color: #56655b;
  font-size: 14px;
  line-height: 1.7;
}

.coach p {
  color: #73674e;
}

.feedback .feedback-why {
  font-size: 13px;
}

.principle-tag {
  margin-top: 14px;
  display: inline-block;
  color: #758376;
  font-size: 10px;
}

.safe-prompt {
  margin-top: 16px;
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #dce6dc;
  color: #5d7160;
  font-size: 12px;
}

.safe-prompt strong {
  display: block;
  margin-bottom: 3px;
  color: #3d5441;
}

.feedback-action {
  margin-top: 20px;
}

.feedback-action > span {
  color: #7b8178;
  font-size: 11px;
}

.score-banner {
  margin-top: 24px;
  padding: 23px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid #e4def7;
  border-radius: 12px;
  background: #f5f1ff;
}

.score-emblem {
  width: 65px;
  height: 65px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9e1fc;
  color: #7460b7;
}

.score-label {
  color: #8b79b3;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.score-banner h3 {
  margin-top: 4px;
  color: #54418a;
  font-size: 32px;
  line-height: 1.15;
}

.score-banner h3 span {
  color: #827398;
  font-size: 16px;
  font-weight: 400;
}

.score-banner p {
  margin-top: 7px;
  color: #80718f;
  font-size: 12px;
}

.completion-pill {
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 20px;
  background: #eae3fa;
  color: #786291;
  font-size: 10px;
  white-space: nowrap;
}

.takeaways {
  margin: 30px 0;
  display: grid;
  gap: 22px;
}

.takeaways article {
  display: flex;
  gap: 16px;
}

.takeaway-icon {
  width: 41px;
  height: 41px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f0edf8;
  color: #7e69b3;
  font-size: 12px;
  font-weight: 700;
}

.takeaways h3 {
  font-size: 17px;
}

.takeaways p {
  margin-top: 6px;
  color: #6c7285;
  font-size: 15px;
  line-height: 1.7;
}

.takeaways small {
  display: block;
  margin-top: 6px;
  color: #9898a8;
  font-size: 10px;
}

.revised-draft {
  overflow: hidden;
  border: 1px solid #dce2e1;
  border-radius: 9px;
  font-size: 13px;
}

.revised-draft summary {
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f5f8f6;
  color: #526d60;
  font-weight: 600;
}

.revised-draft > div {
  padding: 18px;
  color: #606e66;
}

.revised-draft p {
  line-height: 1.8;
}

.revised-draft .disclosure {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e5e9e5;
  font-size: 12px;
}

.revised-draft small {
  display: block;
  margin-top: 12px;
  color: #92988f;
}

.finish-area,
.finished-area {
  margin-top: 25px;
}

.finish-area p {
  margin-bottom: 18px;
  color: #838295;
  font-size: 13px;
}

.finished-area output {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #53815d;
  font-size: 12px;
}

.concept-film {
  margin-top: 24px;
  padding: 21px;
  overflow: hidden;
  border: 1px solid #47465e;
  border-radius: 12px;
  background: #25263e;
  color: #ffffff;
}

.film-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #b9b4d5;
  font-size: 10px;
  letter-spacing: 0.8px;
}

.concept-film h3 {
  margin-top: 12px;
  color: #ffffff;
  font-size: 19px;
}

.film-track {
  margin-top: 22px;
  display: flex;
  gap: 8px;
}

.film-node {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.film-node button {
  width: 100%;
  min-height: 84px;
  padding: 12px 9px;
  border: 1px solid #5c5775;
  border-radius: 8px;
  background: #32314e;
  color: #bcb6d2;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  transition: background 0.3s, transform 0.3s, color 0.3s;
}

.film-node button > span {
  display: block;
  margin-bottom: 7px;
  font-size: 10px;
  letter-spacing: 1px;
}

.film-node.active button {
  border-color: #eee4ff;
  background: var(--lavender);
  color: #362854;
  transform: translateY(-3px);
}

.film-node.seen button {
  border-color: #9587b3;
  color: #e9e0fa;
}

.film-caption {
  min-height: 100px;
  margin-top: 22px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  animation: arrive 0.35s ease;
}

.film-caption > span {
  margin-top: 3px;
  padding: 4px 7px;
  border-radius: 5px;
  background: #45405e;
  color: var(--lavender);
  font-size: 10px;
  white-space: nowrap;
}

.concept-film .film-caption p {
  color: #ded9ed;
  font-size: 14px;
  line-height: 1.75;
}

.film-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.film-controls .secondary {
  border-color: #827392;
  background: #38324e;
  color: #e5dcef;
}

.film-controls .text-button {
  color: #c6b8dc;
}

.film-controls small {
  color: #b8adc9;
  font-size: 11px;
}

.film-transcript {
  margin-top: 16px;
  color: #c5b9d7;
  font-size: 12px;
}

.film-transcript p {
  margin-top: 12px;
  color: #c9bfd6;
  font-size: 13px;
  line-height: 1.7;
}

.film-transcript strong {
  color: #e4daed;
}

.learning-footer {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid #e8e9f0;
  color: #83889b;
  font-size: 11px;
}

.learning-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}

.reset-panel {
  margin-top: 16px;
  padding: 17px;
  border-radius: 8px;
  background: #f6f3fb;
  font-size: 13px;
}

.reset-panel > div {
  margin-top: 12px;
  display: flex;
  gap: 12px;
}

.page-note {
  padding: 0 20px 25px;
  color: #777d90;
  font-size: 11px;
  text-align: center;
}

.celebrate .score-emblem {
  animation: badge-pop 0.7s ease both;
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes badge-pop {
  0% { transform: scale(0.7) rotate(-20deg); }
  65% { transform: scale(1.1) rotate(8deg); }
  100% { transform: scale(1) rotate(0); }
}

@media (max-width: 1320px) {
  .scenario-picker {
    margin-right: 24px;
    margin-left: 24px;
  }
}

@media (max-width: 1150px) {
  .workspace {
    margin: 0 24px 24px;
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .sidebar {
    padding: 30px 26px;
  }

  .sidebar h1 {
    font-size: 33px;
  }

  .learning {
    padding: 29px;
  }

  .comparison {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .topbar {
    height: 73px;
    padding: 0 24px;
  }

  .scenario-picker {
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
    padding: 0 12px;
    gap: 8px;
  }

  .scenario-picker button {
    padding: 12px;
    align-items: flex-start;
    gap: 8px;
  }

  .scenario-index,
  .active-check {
    display: none;
  }

  .scenario-picker strong {
    font-size: 13px;
  }

  .scenario-picker small {
    font-size: 11px;
  }

  .workspace {
    max-width: 680px;
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding: 24px;
  }

  .eyebrow,
  .sidebar-intro,
  .mission,
  .sidebar-foot {
    display: none;
  }

  .sidebar h1 {
    margin-top: 0;
    font-size: 25px;
    letter-spacing: -0.5px;
  }

  .sidebar h1 br {
    display: none;
  }

  .steps {
    margin-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 0;
  }

  .steps li {
    flex: 1;
    gap: 8px;
    font-size: 12px;
  }

  .steps small {
    display: none;
  }

  .step-number {
    width: 25px;
    height: 25px;
  }

  .learning {
    padding: 25px;
  }
}

@media (max-width: 580px) {
  .release-status,
  .feedback-action,
  .finished-area {
    align-items: stretch;
    flex-direction: column;
  }

  .status-end,
  .completion-pill {
    display: none;
  }

  .verdict {
    padding: 14px 12px;
    gap: 10px;
  }

  .verdict-heading {
    flex-wrap: wrap;
    gap: 2px 9px;
  }

  .score-banner {
    padding: 17px;
    gap: 15px;
  }

  .score-emblem {
    width: 51px;
    height: 51px;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 0 17px;
  }

  .brand {
    gap: 7px;
    font-size: 21px;
  }

  .brand-divider {
    margin: 0 6px;
  }

  .brand-sub {
    font-size: 13px;
  }

  .prototype {
    display: none;
  }

  .top-meta {
    gap: 8px;
    font-size: 10px;
  }

  .scenario-picker {
    gap: 6px;
  }

  .scenario-picker button {
    padding: 10px 8px;
  }

  .scenario-picker strong {
    font-size: 12px;
  }

  .scenario-picker small {
    font-size: 10px;
  }

  .workspace {
    margin: 0 12px 16px;
    border-radius: 14px;
  }

  .sidebar {
    padding: 20px;
  }

  .sidebar h1 {
    font-size: 23px;
  }

  .steps li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 10px;
  }

  .learning {
    padding: 22px 18px;
  }

  .lead {
    font-size: 15px;
  }

  .prompt-body {
    padding: 17px 14px;
  }

  .document-top {
    padding: 12px 14px;
  }

  .action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .action-row .primary,
  .feedback-action .primary,
  .finish-area .primary {
    width: 100%;
  }

  .concept-film {
    padding: 16px;
  }

  .film-heading {
    flex-wrap: wrap;
    font-size: 9px;
  }

  .film-node > .icon {
    display: none;
  }

  .film-node button {
    min-height: 92px;
    padding: 8px 6px;
    font-size: 11px;
  }

  .film-caption {
    min-height: 140px;
  }

  .film-caption > span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
