.assessment-page {
  min-height: 100vh;
  min-width: 320px;
  background: #f4f7fb;
}

.assessment-header {
  min-height: 66px;
  border-bottom: 1px solid #dce3ed;
  background: #fff;
}

.assessment-header-inner {
  width: min(1040px, calc(100% - 36px));
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
}

.assessment-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.assessment-logo {
  width: 40px;
  height: 40px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.assessment-brand strong,
.assessment-brand small { display: block; }
.assessment-brand strong { font-size: 14px; }
.assessment-brand small { margin-top: 2px; color: #77827c; font-size: 10px; }
.assessment-duration { color: #59665f; font-size: 11px; font-weight: 700; white-space: nowrap; }

.assessment-main {
  width: min(1040px, calc(100% - 36px));
  min-height: calc(100vh - 120px);
  margin: 0 auto;
  padding: 30px 0 56px;
}

.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #637169;
  font-size: 11px;
}

.progress-row strong { color: #0969e8; }
.progress-track { height: 5px; overflow: hidden; background: #dce3ed; }
.progress-track span { width: 0; height: 100%; display: block; background: #0969e8; transition: width 180ms ease; }

.question-workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 540px;
  margin-top: 18px;
  border: 1px solid #dce3ed;
  background: #fff;
}

.question-context {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 28px;
  border-right: 1px solid #dce3ed;
  background: #071f4e;
  color: #fff;
}

.question-context .eyebrow { color: #7db9ff; }
.question-context h1 { margin: 10px 0 14px; font-size: 26px; line-height: 1.35; }
.question-context > p:last-of-type { margin: 0; color: #cbdaf1; font-size: 12px; line-height: 1.75; }

.question-panel { min-width: 0; display: flex; flex-direction: column; padding: 38px 42px 28px; }
.question-copy { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 16px; align-items: start; }
.question-copy > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #9dbbe1; border-radius: 50%; color: #0969e8; font-size: 11px; font-weight: 800; }
.question-copy h2 { margin: 2px 0 8px; font-size: 22px; line-height: 1.4; }
.question-copy p { margin: 0; color: #758079; font-size: 11px; }
.answer-options { display: grid; gap: 10px; margin-top: 28px; }

.answer-option {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  border: 1px solid #d6dfda;
  border-radius: 6px;
  padding: 10px 15px;
  color: #142033;
  background: #fff;
  text-align: left;
}

.answer-option:hover { border-color: #82afe7; background: #f6f9fe; }
.answer-option > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: #667085; background: #edf3fa; font-size: 10px; font-weight: 800; }
.answer-option strong { overflow-wrap: anywhere; font-size: 13px; line-height: 1.45; }
.answer-option i { width: 16px; height: 16px; border: 1px solid #aebbb4; border-radius: 50%; }
.answer-option.is-selected { border-color: #0969e8; background: #edf4ff; box-shadow: inset 3px 0 #0969e8; }
.answer-option.is-selected > span { color: #fff; background: #0969e8; }
.answer-option.is-selected i { border: 5px solid #0969e8; background: #fff; }
.answer-option:focus-visible { outline: 3px solid rgb(9 105 232 / 18%); outline-offset: 2px; }

.question-actions {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}

.question-actions > span { margin-left: auto; color: #7b8780; font-size: 10px; }
.back-command { min-height: 36px; border: 0; padding: 0; color: #5c6962; background: transparent; font-size: 11px; }
.back-command:hover:not(:disabled) { color: #0969e8; }
.result-command { min-height: 40px; border: 0; border-radius: 5px; padding: 0 22px; color: #fff; background: #0969e8; font-size: 12px; font-weight: 800; }
.result-command:hover { background: #0754bd; }

.assessment-loading { min-height: 60vh; display: grid; place-items: center; color: #5e6b64; font-size: 13px; }
.result-view { display: grid; gap: 16px; }
.result-heading { min-height: 190px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 34px 40px; color: #fff; background: #071f4e; }
.result-heading h1 { margin: 7px 0 10px; font-size: 30px; line-height: 1.25; }
.result-heading > div:first-child > p:last-child { max-width: 620px; margin: 0; color: #cbdaf1; font-size: 13px; line-height: 1.75; }
.result-heading .eyebrow { color: #7db9ff; }
.result-score { width: 124px; min-height: 112px; display: grid; place-items: center; align-content: center; flex: 0 0 auto; border: 1px solid #365a94; }
.result-score strong { color: #ffad00; font-size: 44px; line-height: 1; }
.result-score span { margin-top: 8px; color: #cbdaf1; font-size: 10px; }

.result-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 16px; }
.result-section { border: 1px solid #dce3ed; padding: 26px; background: #fff; }
.section-title { display: flex; align-items: flex-start; gap: 12px; }
.section-title > span { min-width: 26px; color: #0969e8; font-size: 11px; font-weight: 800; }
.section-title p { margin: 0 0 3px; color: #76827b; font-size: 9px; }
.section-title h2 { margin: 0; font-size: 17px; }
.direction-list { display: grid; gap: 14px; margin-top: 24px; }
.direction-row > div:first-child { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.direction-row strong { font-size: 11px; font-weight: 600; }
.direction-row span { color: #6f7b74; font-size: 10px; }
.direction-row.is-primary strong, .direction-row.is-primary span { color: #0969e8; font-weight: 800; }
.direction-track { height: 6px; overflow: hidden; background: #e7edf5; }
.direction-track i { height: 100%; display: block; background: #7f99ba; }
.direction-row.is-primary .direction-track i { background: #0969e8; }
.role-list { margin-top: 24px; padding-top: 18px; border-top: 1px solid #e6ebe8; }
.role-list > span { display: block; margin-bottom: 9px; color: #77837c; font-size: 9px; }
.role-list > div { display: flex; flex-wrap: wrap; gap: 7px; }
.role-list > div span { padding: 5px 8px; border-radius: 4px; color: #075fcf; background: #edf4ff; font-size: 10px; }

.readiness-value { display: flex; align-items: baseline; gap: 5px; margin-top: 26px; }
.readiness-value strong { color: #d98200; font-size: 42px; line-height: 1; }
.readiness-value span { color: #839089; font-size: 10px; }
.readiness-value em { margin-left: auto; padding: 5px 8px; border-radius: 4px; color: #8d5800; background: #fff4dc; font-size: 10px; font-style: normal; font-weight: 800; }
.readiness-section > p { margin: 16px 0 0; color: #65716a; font-size: 11px; line-height: 1.7; }

.result-recommendations { border: 1px solid #cfdad4; padding: 26px; background: #fff; }
.result-recommendation-list { display: grid; margin-top: 20px; border-top: 1px solid #e3e9e6; }
.result-recommendation-item { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr); gap: 22px; padding: 18px 0; border-bottom: 1px solid #e3e9e6; }
.result-recommendation-item h3 { margin: 0; font-size: 15px; line-height: 1.45; }
.result-recommendation-item p { margin: 0; color: #5f6d65; font-size: 11px; line-height: 1.7; }

.teacher-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px minmax(280px, .9fr);
  align-items: center;
  gap: 28px;
  border: 1px solid #d5ded9;
  padding: 30px;
  background: #fff;
}
.teacher-contact h2 { margin: 7px 0 9px; font-size: 19px; line-height: 1.4; }
.teacher-contact > p:not(.eyebrow) { margin: 0; color: #657169; font-size: 11px; line-height: 1.7; }
.teacher-identity { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; }
.teacher-identity strong { font-size: 12px; }
.teacher-identity span { color: #66736c; font-size: 10px; }
.teacher-identity button { min-height: 30px; border: 1px solid #aabbd2; border-radius: 5px; padding: 0 9px; color: #0969e8; background: #fff; font-size: 9px; }
.teacher-qr-wrap { width: 176px; height: 176px; }
.teacher-qr, .teacher-qr-placeholder { width: 176px; height: 176px; border: 1px solid #d2dbe8; border-radius: 6px; background: #f4f7fb; }
.teacher-qr { display: block; object-fit: contain; }
.teacher-qr-placeholder { display: grid; place-items: center; color: #7a867f; font-size: 10px; line-height: 1.6; text-align: center; }
.lead-form { display: grid; gap: 11px; }
.lead-form label:first-child { display: grid; gap: 7px; }
.lead-form label:first-child span { color: #435148; font-size: 10px; font-weight: 700; }
.lead-form input[type="text"], .lead-form input:not([type]) { width: 100%; height: 42px; border: 1px solid #c8d3cd; border-radius: 5px; padding: 0 11px; outline: none; }
.lead-form input:focus { border-color: #0969e8; box-shadow: 0 0 0 3px rgb(9 105 232 / 12%); }
.lead-consent { display: grid; grid-template-columns: 15px minmax(0, 1fr); align-items: start; gap: 7px; color: #69766f; font-size: 9px; line-height: 1.5; }
.lead-consent input { width: 15px; height: 15px; margin: 0; accent-color: #0969e8; }
.lead-form button { min-height: 40px; border: 0; border-radius: 5px; color: #fff; background: #0969e8; font-size: 11px; font-weight: 800; }
.lead-form > p { margin: 0; color: #7a867f; font-size: 9px; line-height: 1.5; }
.lead-form > p.is-success { color: #0969e8; }

.result-actions { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 0; }
.result-actions button, .result-actions a { min-height: 38px; display: inline-grid; place-items: center; border-radius: 5px; padding: 0 14px; font-size: 10px; text-decoration: none; }
.result-actions button { border: 1px solid #bac8c0; color: #536159; background: #fff; }
.result-actions a { color: #fff; background: #075fcf; }
.assessment-disclaimer { margin: 0; color: #77837c; font-size: 9px; line-height: 1.7; text-align: center; }
.assessment-footer { padding: 0 16px 24px; color: #77837c; font-size: 9px; text-align: center; }
.assessment-footer a { text-decoration: none; }

@media (max-width: 860px) {
  .question-workspace { grid-template-columns: 240px minmax(0, 1fr); }
  .question-context { padding: 30px 22px; }
  .question-context h1 { font-size: 22px; }
  .question-panel { padding: 34px 28px 26px; }
  .teacher-section { grid-template-columns: minmax(0, 1fr) 176px; }
  .lead-form { grid-column: 1 / -1; grid-template-columns: minmax(220px, 1fr) auto; align-items: end; }
  .lead-form .lead-consent, .lead-form > p { grid-column: 1 / -1; }
  .lead-form button { min-width: 150px; }
}

@media (max-width: 680px) {
  .assessment-header-inner, .assessment-main { width: calc(100% - 24px); }
  .assessment-main { padding-top: 18px; }
  .question-workspace { display: block; min-height: 0; margin-top: 12px; border: 0; }
  .question-context { border-right: 0; padding: 18px; }
  .question-context h1 { margin: 6px 0 7px; font-size: 18px; }
  .question-context > p:last-of-type { font-size: 10px; }
  .question-panel { min-height: 460px; border: 1px solid #dce3ed; border-top: 0; padding: 24px 16px 18px; }
  .question-copy { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
  .question-copy > span { width: 28px; height: 28px; font-size: 9px; }
  .question-copy h2 { margin-top: 1px; font-size: 18px; }
  .answer-options { margin-top: 20px; }
  .answer-option { min-height: 56px; grid-template-columns: 26px minmax(0, 1fr) 16px; gap: 9px; padding: 9px 11px; }
  .answer-option > span { width: 25px; height: 25px; }
  .answer-option strong { font-size: 12px; }
  .question-actions { padding-top: 18px; }
  .result-heading { min-height: 0; padding: 24px 18px; }
  .result-heading h1 { font-size: 23px; }
  .result-heading > div:first-child > p:last-child { font-size: 11px; }
  .result-score { width: 78px; min-height: 84px; }
  .result-score strong { font-size: 32px; }
  .result-grid { grid-template-columns: 1fr; }
  .result-section { padding: 20px 16px; }
  .result-recommendations { padding: 20px 16px; }
  .result-recommendation-item { grid-template-columns: 1fr; gap: 7px; }
  .teacher-section { grid-template-columns: minmax(0, 1fr) 130px; gap: 18px 12px; padding: 20px 16px; }
  .teacher-contact h2 { font-size: 17px; }
  .teacher-qr-wrap, .teacher-qr, .teacher-qr-placeholder { width: 130px; height: 130px; }
  .teacher-identity { display: grid; gap: 7px; }
  .teacher-identity button { justify-self: start; }
  .lead-form { grid-template-columns: 1fr; }
  .lead-form .lead-consent, .lead-form > p { grid-column: auto; }
  .lead-form button { min-width: 0; }
}

@media (max-width: 390px) {
  .assessment-brand small { display: none; }
  .assessment-duration { font-size: 9px; }
  .teacher-section { grid-template-columns: 1fr; }
  .teacher-qr-wrap, .teacher-qr, .teacher-qr-placeholder { width: 154px; height: 154px; }
}

@media (prefers-reduced-motion: reduce) {
  .progress-track span { transition: none; }
}
