/* Shared Module Studio palette for all hosted pages. */
:root {
  --ink: #18283f;
  --muted: #596b80;
  --accent: #245cdb;
  --surface: #fff;
  --wash: #e5edf8;
  --line: #d5dfeb;
  --canvas: #edf2f9;
  --control-line: #aabdd6;
  font: 16px 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(135deg, #e7eef9 0, #f5f8fc 55%, var(--canvas) 100%) fixed;
  font-family: 'Segoe UI', Arial, sans-serif;
}
header {
  background: #ffffffd9;
  border-color: #d1dced;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
header .brand {
  position: relative;
  color: #172b4b;
  font-weight: 750;
  letter-spacing: -1px;
  text-decoration: none;
  font-size: 24px;
  padding-left: 21px;
}
header .brand::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 8px;
  height: 20px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 5px -4px 0 #9abaf7;
}
header > span:not(.brand) {
  padding-left: 16px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}

main { max-width: 1160px; margin: 40px auto; padding: 0 24px; }
h1 { font: 700 clamp(34px, 4vw, 48px)/1.15 'Segoe UI', Arial, sans-serif; letter-spacing: -.045em; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }
p { line-height: 1.6; }
a { color: var(--accent); text-underline-offset: .15em; }
button, .button {
  display: inline-block;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}
button:disabled { opacity: .55; cursor: wait; }
:is(button, .button).secondary { color: #344861; background: var(--surface); border-color: #bfccdd; }
:is(button, .button).secondary:hover { background: var(--wash); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
input, select, textarea {
  max-width: 100%;
  padding: 10px;
  border: 1px solid var(--control-line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
input:not([type=radio]):not([type=checkbox]):not([type=file]), select, textarea { width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
label { display: grid; gap: 7px; margin: 12px 0; }
label.inline { display: flex; align-items: center; }
section.card, .card {
  margin: 20px 0;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.notice { background: var(--wash); color: var(--ink); border-left: 4px solid var(--accent); padding: 14px; line-height: 1.55; font-size: .875rem; }
.error { color: #9c302a; white-space: pre-wrap; }
.muted { color: var(--muted); }
.status { min-height: 28px; margin: 16px 0; }
.status:empty { display: none; }
.row { padding: 16px 0; border-top: 1px solid var(--line); }
.row h3 { margin: 4px 0; }
.eyebrow { color: #345e9d; text-transform: none; letter-spacing: 0; font-size: 13px; }
.prewrap { white-space: pre-wrap; }
.save-status { position: sticky; top: 0; background: var(--canvas); padding: 10px 0; z-index: 10; }
.small { font-size: 14px; }
.assessment-steps { display: flex; gap: 12px; flex-wrap: wrap; }
.assessment-steps span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }
.report-link { overflow-wrap: anywhere; }
.nav-item { min-width: 44px; }
.prediction-row label { display: inline-grid; margin-right: 12px; }
.source-note { font-size: 14px; }
.visual-options .option { display: grid; }
.option .symbol-cell { max-width: 160px; }
.intro-progress { font-size: 15px; }
.status[role=status] { white-space: pre-wrap; }
@media (max-width: 600px) {
  main { padding: 0 16px; margin: 25px auto; }
  .card, section.card, header { padding: 18px; }
  .actions > * { flex-grow: 1; }
}
@media print {
  :root, body { background: white; }
  header, .no-print { display: none; }
  main { margin: 0; max-width: 100%; }
  .card { break-inside: avoid; }
}

.privacy-notice { max-width: 850px; }
.privacy-notice .card { padding: clamp(18px, 4vw, 36px); }
.privacy-notice p { margin: 0; }
.privacy-notice h2 { margin: 26px 0 8px; }
.privacy-notice a { overflow-wrap: anywhere; }

.candidate-controls{border:0;padding:0;margin:0;min-width:0}.candidate-controls>legend.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}


.report-view { max-width: 1068px; }
.candidate-page .save-status { background: #edf3fb; }
.candidate-page .account-flow { max-width: 540px; }
.candidate-page .account-flow h1 { margin: 0 0 16px; }
.candidate-page .account-form { margin: 0 0 16px; }
.account-form label:first-child { margin-top: 0; }
.account-hint { margin: -6px 0 14px; color: var(--muted); font-size: .875rem; }
.account-status:empty { margin: 0; }
.candidate-page :is(.term, .bit-tile, .symbol-cell) {
  background: #f0f4fa;
  border-color: #c6d4e7;
  color: #294b7c;
}
.candidate-page .bit {
  background: #fff;
  border-color: #b5c6df;
  color: #465d78;
}
.candidate-page .bit.marked {
  background: #263f64;
  border-color: #263f64;
  color: #fff;
}
.candidate-page :is(.mask-options, .visual-options) label.option {
  background: #fff;
  border-color: #c6d4e7;
}
.candidate-page :is(.mask-options, .visual-options) label.option:hover { border-color: #809fce; }
.candidate-page :is(.mask-options, .visual-options) label.option:has(input:checked) {
  background: #e1ebff;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.candidate-page .rotation-clue { color: #465d78; font-size: 16px; line-height: 1.6; }
.candidate-page .practice-tiles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 300px;
  margin: 16px auto;
}
.candidate-page .practice-tiles .bit-tile { margin: 0; }
.candidate-page .reasoning-choices label {
  padding: 12px 14px;
  border: 1px solid #cbd7e6;
  border-radius: 6px;
}
.candidate-page .reasoning-choices label:has(input:checked) {
  background: #e9f0ff;
  border-color: var(--accent);
}
.candidate-page h3.sequence-question { font-size: 28px; line-height: 1.25; letter-spacing: -.025em; }
.sequence-practice > label { margin-bottom: 18px; }
.candidate-page .mechanism-option {
  background: #fff;
  color: #233d61;
  border-color: #c2cddd;
  text-align: left;
}
.candidate-page .mechanism-option.eliminated {
  background: #e5e8ed;
  color: #546579;
  text-decoration: line-through;
}
.mechanism-investigation .device-answer select { max-width: 460px; }
.candidate-page #module-timer {
  width: max-content;
  padding: 8px 12px;
  border-radius: 7px;
  background: var(--wash);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.candidate-page :is(.card, fieldset:not(.candidate-controls), input, select, textarea) { border-color: var(--line); }
.candidate-page button.nav-item {
  color: var(--ink);
  background: var(--surface);
  border-color: #bfccdd;
}
.candidate-page button.nav-item.current {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.display-check-warning {
  margin-top: 20px;
  padding: 16px 18px;
  background: #edf3ff;
  border: 1px solid #c8d8f3;
  border-inline-start: 4px solid var(--accent);
  border-radius: 8px;
}
.display-check-warning h3 { margin: 0; }
.display-check-warning p { margin: 6px 0 14px; color: #344861; }
.report-sheet {
  margin-top: 24px;
  padding: clamp(16px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid #d8e2ef;
  border-radius: 12px;
  box-shadow: 0 4px 16px #213c6710;
}
.report-sheet .report-notes { margin-bottom: 0; }
.report-view .status:empty { display: none; }
.report-view .report-heading .actions { margin: 0; }
/* Employer reports */
.report-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.report-heading { margin-top: 24px; }
.report-heading > div:first-child { flex: 1 1 380px; min-width: 0; }
.report-heading .eyebrow { margin: 0 0 6px; }
.report-heading h1 { margin: 0; overflow-wrap: anywhere; line-height: 1.12; }
.report-meta { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.report-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.report-actions .button { white-space: nowrap; }
.report-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--wash);
}
.report-summary article { padding: 20px; }
.report-summary article + article { border-left: 1px solid var(--line); }
.report-summary h2 { font-size: .875rem; margin: 0; letter-spacing: 0; }
.report-summary strong {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font: 700 clamp(1.4rem, 3vw, 2.25rem)/1.2 'Segoe UI', Arial, sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
}
.report-summary p, .report-notes p { font-size: .875rem; color: var(--muted); margin: 8px 0 0; }
.report-module, .report-notes { margin: 28px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.report-module h2, .report-notes h2 { margin: 0; }
.report-module .report-meta { margin: 5px 0 0; }
.report-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .875rem; }
.report-table caption { text-align: left; color: var(--muted); padding-bottom: 6px; }
.report-table th, .report-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.report-table thead { background: var(--wash); }
.report-table tbody th { font-weight: 400; overflow-wrap: anywhere; }
.report-table tr > :not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media screen and (max-width: 640px) {
  .report-summary { grid-template-columns: 1fr; }
  .report-summary article { padding: 14px 16px; }
  .report-summary article + article { border-left: 0; border-top: 1px solid var(--line); }
}
@media print {
  .report-heading { margin-top: 0; }
  .report-summary { break-inside: avoid; }
  .report-module h2, .report-table caption { break-after: avoid; }
  .report-table tr { break-inside: avoid; }
  .report-table thead { display: table-header-group; }
}

.builder-page h1 { margin-block: 6px 12px; }
.builder-page h2, .builder-page h3 { overflow-wrap: anywhere; }
.builder-layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(240px, 1fr); gap: 28px; align-items: start; }
.builder-draft, .builder-library {
  min-width: 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid #d8e2ef;
  border-radius: 12px;
  box-shadow: 0 4px 16px #213c6710;
}
.builder-library .button.secondary { background: #edf3ff; color: #1f50ba; border-color: #d3e0fc; }
.builder-library .button.secondary:hover { background: #dfeaff; border-color: #abc5f7; }
.builder-layout h2, .builder-saved h2 { margin: 0 0 12px; }
.builder-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(75px, 1fr); gap: 14px; }
.builder-draft label { align-content: start; font-size: .875rem; font-weight: 600; }
.builder-draft :is(input, textarea) { font-weight: 400; }
.builder-page :is(input, textarea) { border-radius: 5px; background: #fff; border-color: #aabdd6; color: var(--ink); }
.builder-sequence-title { margin: 24px 0 8px; }
.builder-summary { border-left: 2px solid var(--accent); padding: 8px 12px; margin-bottom: 12px; font-size: .875rem; }
.builder-summary p { margin: 4px 0 0; }
.builder-page .row { padding: 12px 0; border-color: var(--line); }
.builder-page .row h3 { margin: 0; }
.builder-page .row p { margin: 4px 0 8px; font-size: .875rem; }
.builder-chunk-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; }
.builder-chunk-heading strong { color: var(--accent); font-size: .875rem; }
.builder-draft .weight-field { display: flex; align-items: center; max-width: none; }
.builder-draft .weight-field input[type=number] { width: 104px; padding: 6px 8px; }
.builder-draft .actions { margin: 12px 0 0; }
.builder-draft .status { min-height: 0; font-size: .875rem; color: var(--accent); overflow-wrap: anywhere; }
.builder-draft .status.error { color: #962d25; }
.builder-draft .status:empty { margin: 0; }
.builder-saved { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; overflow-wrap: anywhere; }
@media (max-width: 850px) { .builder-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 540px) {
  .builder-fields { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .builder-draft, .builder-library { padding: 14px; }
}
@media print {
  body:has(.report-view) { background: white; }
  .report-sheet { border: 0; box-shadow: none; padding: 0; }
  .report-view .status, .report-view .no-print { display: none; }
}

.recording-preview { display: block; width: min(100%, 320px); }
.recording-video { display: block; width: min(100%, 760px); }

.reasoning-activity { margin-top: 24px; }
.reasoning-rules h3, .reasoning-conclusion h3 { font-size: 15px; font-weight: 600; margin: 0 0 14px; color: #465d78; }
.reasoning-rules ol { margin: 0; padding-left: 26px; }
.reasoning-rules li { padding: 8px 0 8px 8px; font-size: 18px; line-height: 1.65; color: #233b58; }
.reasoning-rules li::marker { color: #70839b; font-size: 14px; }
.reasoning-conclusion { margin: 26px 0; padding: 22px 24px; border: 1px solid #ccd9e9; border-radius: 8px; background: #f3f7fc; }
.reasoning-conclusion p { font-size: 20px; line-height: 1.5; margin: 0; color: #183659; }
.reasoning-settings { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.reasoning-setting { min-width: 0; max-width: 540px; margin: 16px 0; padding: 16px 20px; border: 1px solid #ccd9e9; border-radius: 8px; }
.reasoning-setting legend { padding: 0 8px; font-weight: 600; font-size: 16px; }
.reasoning-answer-row { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid #e1e8f2; }
.reasoning-answer-row:last-child { border-bottom: 0; }
.reasoning-signal { font-size: 18px; font-weight: 600; min-width: 24px; }
.reasoning-start { color: #526881; font-size: 14px; }
.reasoning-answer-row select { width: 100px; margin-left: auto; min-height: 44px; font-size: 16px; }
.reasoning-answer-help, .reasoning-changes { font-size: 15px; line-height: 1.6; color: #465d78; }
@media(max-width:650px) { .reasoning-settings { grid-template-columns: 1fr; gap: 0; } .reasoning-rules li { font-size: 17px; } }

