:root {
  --bg: #f6f4ee;
  --panel: #ffffff;
  --ink: #1f2633;
  --muted: #667085;
  --line: #d8dce5;
  --brand: #477df5;
  --brand-strong: #2f66de;
  --navy: #17245e;
  --navy-deep: #101846;
  --blue: #477df5;
  --accent: #eab308;
  --danger: #b42318;
  --success: #067647;
  --shadow: 0 22px 70px rgba(31, 38, 51, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: var(--brand-strong);
  text-decoration: none;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 0;
  align-items: center;
}

.assessment-shell {
  grid-template-columns: minmax(0, 1fr);
  width: min(920px, calc(100% - 32px));
  align-items: start;
}

.form-panel,
.login-card {
  background: var(--panel);
  border: 1px solid rgba(31, 38, 51, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 42px);
}

.brand-row,
.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.brand-row {
  justify-content: flex-start;
  margin-bottom: 30px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.brand-mark.light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead-form {
  display: grid;
  gap: 18px;
}

.assessment-flow {
  display: grid;
  gap: 18px;
}

.form-selector {
  display: grid;
  gap: 18px;
  align-content: center;
  flex: 1 1 auto;
}

.form-selector > p:not(.eyebrow) {
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.65;
}

.form-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.form-choice-card {
  display: grid;
  gap: 8px;
  min-height: 156px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 16px;
  text-align: left;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.form-choice-card:hover {
  border-color: var(--brand);
  box-shadow: 0 12px 36px rgba(71, 125, 245, 0.12);
  transform: translateY(-1px);
}

.form-choice-card span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(71, 125, 245, 0.1);
  color: var(--brand-strong);
  font-weight: 900;
}

.form-choice-card strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.3;
}

.form-choice-card small {
  min-height: auto;
  color: var(--muted);
  line-height: 1.35;
}

.form-choice-card.active-choice {
  border-color: rgba(71, 125, 245, 0.34);
  background: rgba(71, 125, 245, 0.05);
}

.form-choice-card.choice-disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.form-choice-card.choice-disabled:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}

.form-disabled-panel {
  display: grid;
  gap: 18px;
  align-content: center;
  flex: 1 1 auto;
}

.form-disabled-panel > p:not(.eyebrow) {
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.65;
}

.aravt-survey-form {
  flex: 1 1 auto;
  min-height: 0;
}

.survey-panel {
  display: grid;
  gap: 16px;
}

.survey-panel > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.survey-list {
  display: grid;
  gap: 16px;
}

.survey-question {
  background: #fff;
}

.survey-subsection {
  border: 1px solid rgba(71, 125, 245, 0.18);
  border-radius: 8px;
  background: rgba(71, 125, 245, 0.08);
  color: var(--brand-strong);
  font-weight: 900;
  padding: 12px 14px;
}

.survey-question legend {
  font-weight: 600;
}

.survey-question b {
  color: #c2410c;
}

.survey-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.survey-options label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.survey-options input {
  accent-color: var(--brand);
}

.survey-options label:has(input:checked) {
  border-color: var(--brand);
  background: rgba(71, 125, 245, 0.08);
  box-shadow: 0 0 0 3px rgba(71, 125, 245, 0.12);
  color: var(--brand-strong);
}

.number-with-suffix {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 520px;
}

.number-with-suffix input,
.survey-question textarea {
  flex: 1 1 auto;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

.survey-question textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.number-with-suffix input:focus,
.survey-question textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(71, 125, 245, 0.12);
}

.number-with-suffix em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.survey-controls {
  justify-content: space-between;
}

.admin-answer-details {
  margin-top: 8px;
  color: var(--ink);
}

.admin-answer-details summary {
  width: fit-content;
  color: var(--brand-strong);
  cursor: pointer;
  font-weight: 850;
}

.admin-answer-details dl {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  min-width: 280px;
}

.admin-answer-details div {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.admin-answer-details dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-answer-details dd {
  margin: 0;
  color: var(--ink);
  white-space: pre-wrap;
}

.assessment-page {
  display: none;
}

.assessment-page.active {
  display: grid;
  gap: 16px;
}

.page-title-repeat {
  display: grid;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 4px;
}

.page-title-repeat p {
  margin: 0;
  color: var(--brand-strong);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.page-title-repeat h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  line-height: 1.12;
}

.registration-panel {
  display: grid;
  gap: 16px;
}

.assessment-page h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.assessment-page p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.content-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: #344054;
  line-height: 1.55;
}

.quote-block {
  display: grid;
  gap: 12px;
  border-left: 4px solid var(--brand);
  background: rgba(71, 125, 245, 0.08);
  border-radius: 0 8px 8px 0;
  padding: 16px 18px;
}

.quote-block p {
  color: var(--ink);
  font-weight: 650;
}

.dimension-list {
  display: grid;
  gap: 10px;
}

.dimension-list div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.dimension-list span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(71, 125, 245, 0.1);
  color: var(--brand-strong);
  font-weight: 900;
}

.dimension-list strong {
  color: var(--ink);
}

.dimension-list p {
  grid-column: 2;
  font-size: 0.9rem;
}

.score-guide {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.score-guide div {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.score-guide strong {
  color: var(--brand-strong);
  font-size: 1.35rem;
}

.score-guide span {
  color: #344054;
  font-size: 0.86rem;
  font-weight: 750;
}

.note-text {
  border: 1px solid rgba(234, 179, 8, 0.36);
  border-radius: 8px;
  background: rgba(234, 179, 8, 0.12);
  padding: 13px 14px;
}

.page-controls {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: #fff;
  padding-top: 16px;
}

.test-section {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.questions-list {
  display: grid;
  gap: 16px;
}

.test-section-heading {
  display: grid;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.test-section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.25;
}

.test-section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.test-section-heading span {
  width: fit-content;
  border: 1px solid rgba(71, 125, 245, 0.16);
  border-radius: 8px;
  background: rgba(71, 125, 245, 0.08);
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 850;
  padding: 7px 10px;
}

.question-section {
  display: none;
  gap: 14px;
  padding-top: 6px;
}

.question-section.active {
  display: grid;
}

.question-section + .question-section {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 24px;
}

.question-section-header {
  display: grid;
  gap: 8px;
}

.question-section-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.25;
}

.question-section-header p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.question-section-header span {
  width: fit-content;
  border: 1px solid rgba(71, 125, 245, 0.16);
  border-radius: 8px;
  background: rgba(71, 125, 245, 0.08);
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 850;
  padding: 7px 10px;
}

.question-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin: 0;
  padding: 12px;
}

.question-card legend {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.45;
  padding: 0;
}

.question-card legend span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.answer-grid label {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  cursor: pointer;
  padding: 7px 8px;
}

.answer-grid input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.answer-grid strong {
  display: grid;
  place-items: center;
  justify-self: end;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #eef2f7;
  color: var(--brand-strong);
  font-size: 0.95rem;
  line-height: 1;
}

.answer-grid span {
  color: #475467;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.answer-grid label:has(input:checked) {
  border-color: var(--brand);
  background: rgba(71, 125, 245, 0.08);
  box-shadow: 0 0 0 3px rgba(71, 125, 245, 0.12);
}

.answer-grid label:has(input:checked) strong {
  background: var(--brand);
  color: #fff;
}

.test-controls {
  display: grid;
  grid-template-columns: auto minmax(88px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  background: #fff;
  padding-top: 14px;
}

.test-progress {
  justify-self: center;
  border: 1px solid rgba(71, 125, 245, 0.16);
  border-radius: 8px;
  background: rgba(71, 125, 245, 0.08);
  color: var(--brand-strong);
  font-weight: 900;
  min-width: 74px;
  padding: 10px 12px;
  text-align: center;
}

.compact-actions {
  justify-content: flex-end;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field,
.search-field {
  display: grid;
  gap: 8px;
}

.field span,
.search-field span {
  color: #344054;
  font-size: 0.9rem;
  font-weight: 750;
}

.field b {
  color: var(--danger);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 13px 14px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

textarea {
  resize: vertical;
  min-height: 132px;
}

input:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(71, 125, 245, 0.14);
}

small {
  min-height: 1.05rem;
  color: var(--danger);
  font-size: 0.78rem;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #475467;
  font-size: 0.92rem;
  line-height: 1.45;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.form-error {
  margin-top: -12px;
}

.actions,
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  padding: 12px 18px;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.primary-button {
  background: var(--brand);
  color: #fff;
}

.primary-button:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.secondary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.primary-button.full {
  width: 100%;
}

.secondary-button,
.ghost-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.ghost-button {
  color: var(--danger);
}

.quiet-link {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.button-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.alert {
  border: 1px solid rgba(6, 118, 71, 0.22);
  border-radius: 8px;
  background: rgba(6, 118, 71, 0.08);
  color: var(--success);
  padding: 13px 14px;
  font-weight: 750;
}

.alert.error {
  border-color: rgba(180, 35, 24, 0.22);
  background: rgba(180, 35, 24, 0.08);
  color: var(--danger);
}

.result-panel {
  display: grid;
  gap: 16px;
}

.result-panel h2 {
  margin-bottom: 0;
}

.result-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.score-pill {
  display: inline-flex;
  width: fit-content;
  align-items: baseline;
  gap: 8px;
  border: 1px solid rgba(71, 125, 245, 0.2);
  border-radius: 8px;
  background: rgba(71, 125, 245, 0.08);
  color: var(--brand-strong);
  padding: 12px 14px;
}

.score-pill span {
  font-size: 2rem;
  font-weight: 900;
}

.score-pill small {
  min-height: 0;
  color: var(--brand-strong);
  font-weight: 800;
}

.section-score-table,
.result-details {
  display: grid;
  gap: 14px;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.state-card {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.state-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.state-card strong {
  color: var(--ink);
  line-height: 1.35;
}

.section-score-table h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1.35rem;
}

.score-table {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.score-table th,
.score-table td {
  padding: 13px 14px;
}

.score-table td:last-child,
.score-table th:last-child {
  width: 130px;
  text-align: right;
  white-space: nowrap;
}

.total-score-line {
  color: var(--ink) !important;
  font-size: 1.05rem;
}

.result-block {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.result-block h3,
.result-block h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.25;
}

.result-block h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
}

.result-block h4 {
  font-size: 1rem;
}

.result-block p {
  margin: 0;
}

.result-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: #344054;
  line-height: 1.55;
}

.result-note,
.report-text p {
  border-left: 4px solid var(--brand);
  border-radius: 0 8px 8px 0;
  background: rgba(71, 125, 245, 0.08);
  color: var(--ink) !important;
  padding: 13px 14px;
}

.info-panel {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(71, 125, 245, 0.94), rgba(31, 38, 51, 0.96)),
    radial-gradient(circle at top right, rgba(234, 179, 8, 0.42), transparent 38%);
  color: #fff;
  padding: clamp(28px, 5vw, 50px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.info-panel p {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
}

.info-number {
  position: absolute;
  top: 32px;
  left: 34px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1;
}

.info-art {
  position: absolute;
  top: 46px;
  right: 38px;
  display: grid;
  gap: 12px;
  width: min(240px, 48%);
}

.info-art div {
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.info-art div:nth-child(2) {
  width: 78%;
  margin-left: auto;
  border-color: rgba(234, 179, 8, 0.58);
}

.info-art div:nth-child(3) {
  width: 56%;
}

.admin-body {
  background: #f7f8fb;
}

.auth-body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(71, 125, 245, 0.18), transparent 18%),
    radial-gradient(circle at 92% 18%, rgba(71, 125, 245, 0.13), transparent 20%),
    linear-gradient(135deg, #f3f7ff, #f8fbff 48%, #eef5ff);
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  place-items: center;
}

.auth-frame {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  width: 100%;
  min-height: 680px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(23, 36, 94, 0.18);
}

.auth-side {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    linear-gradient(rgba(23, 36, 94, 0.9), rgba(23, 36, 94, 0.96)),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(255, 255, 255, 0.07) 18px 20px),
    var(--navy);
  color: #fff;
  padding: clamp(28px, 4vw, 42px);
}

.auth-side::before,
.auth-side::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.auth-side::before {
  width: 220px;
  height: 220px;
  left: -76px;
  top: 120px;
}

.auth-side::after {
  width: 320px;
  height: 320px;
  right: -180px;
  bottom: 92px;
}

.auth-logo,
.auth-side-content,
.auth-side-footer {
  position: relative;
  z-index: 1;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-logo strong {
  font-size: 0.94rem;
}

.auth-side-content {
  display: grid;
  gap: 14px;
  margin-top: auto;
  margin-bottom: 58px;
}

.auth-side-content h1 {
  max-width: 24rem;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.auth-side-content p {
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.65;
}

.light-text {
  color: rgba(255, 255, 255, 0.72);
}

.auth-side-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 750;
}

.auth-card {
  display: grid;
  align-content: center;
  width: min(430px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 56px) 22px;
}

.auth-card > h2 {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.assessment-auth-shell {
  width: min(1180px, calc(100% - 32px));
}

.assessment-frame {
  align-items: stretch;
  min-height: 720px;
}

.assessment-frame.test-mode {
  grid-template-columns: 1fr;
  min-height: min(860px, calc(100vh - 96px));
}

.assessment-frame.test-mode .auth-side {
  display: none;
}

.assessment-card {
  display: flex;
  align-content: initial;
  flex-direction: column;
  width: 100%;
  max-width: none;
  min-height: 0;
  padding: clamp(26px, 4vw, 48px);
}

.assessment-card > .assessment-flow,
.assessment-card > .form-selector,
.assessment-card > .lead-form,
.assessment-card > .result-panel {
  flex: 1 1 auto;
  min-height: 0;
}

.assessment-card > .assessment-flow {
  overflow-y: auto;
}

.assessment-card > .lead-form {
  grid-template-rows: minmax(0, 1fr) auto auto auto;
}

.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;
}

.auth-copy {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.facebook-button {
  background: var(--blue);
}

.facebook-button:hover {
  background: #2f66de;
}

.dev-login {
  margin-top: 18px;
}

.separator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.separator::before,
.separator::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.user-status {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  margin: -12px 0 24px;
  padding: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.user-status p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.user-status strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact {
  min-height: 36px;
  padding: 8px 12px;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
}

.login-card {
  width: min(440px, 100%);
  margin: min(13vh, 120px) auto 0;
}

.auth-card.login-card {
  width: min(430px, 100%);
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.dashboard {
  display: grid;
  gap: 22px;
}

.dashboard-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stats-row div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}

.stats-row span {
  display: block;
  font-size: 2rem;
  font-weight: 900;
}

.stats-row p {
  margin: 4px 0 0;
  color: var(--muted);
}

.table-tools {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
}

.search-field {
  width: min(420px, 100%);
}

.table-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf0f5;
  text-align: left;
  vertical-align: top;
}

th {
  color: #475467;
  background: #f9fafb;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

td {
  color: #344054;
  font-size: 0.92rem;
  line-height: 1.45;
}

.subtle {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eef2f7;
  color: #344054;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-started {
  background: rgba(234, 179, 8, 0.18);
  color: #854d0e;
}

.status-completed {
  background: rgba(6, 118, 71, 0.12);
  color: var(--success);
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 20px 0;
  }

  .info-panel {
    min-height: 320px;
    order: -1;
  }

  .grid.two,
  .stats-row,
  .form-choice-grid,
  .state-grid {
    grid-template-columns: 1fr;
  }

  .score-guide {
    grid-template-columns: 1fr;
  }

  .test-controls {
    grid-template-columns: 1fr 1fr;
  }

  .test-progress {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: stretch;
  }

  .answer-grid label {
    min-height: auto;
  }

  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-shell {
    padding: 16px 0;
  }

  .auth-frame {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-side {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .app-shell,
  .admin-shell {
    width: min(100% - 20px, 1180px);
  }

  .form-panel,
  .login-card {
    padding: 20px;
  }

  .actions,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .test-controls {
    grid-template-columns: 1fr;
  }

  .test-progress {
    grid-column: auto;
    grid-row: auto;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

}
