/* Assessment layout uses the same theme tokens and base controls as the AR experience. */
.assessment-main { max-width: 720px; padding-top: calc(var(--space) * 2); padding-bottom: calc(var(--space) * 3); }
#check-question, #check-result { max-width: 480px; margin: auto; }
.assessment-main h1 { font-size: 1.65rem; line-height: 1.6; }
.assessment-main h1:focus { outline: none; }
.eyebrow { color: var(--muted); font-size: .875rem; margin: 0 0 .6rem; }
.check-steps { list-style: decimal-leading-zero; padding-left: 2rem; margin: 1.75rem 0; }
.check-steps li { padding: .7rem 0 .7rem .5rem; border-bottom: 1px solid var(--border); }
.check-steps li::marker { color: var(--muted); font-size: .875rem; }
.check-steps strong, .check-steps span { display: block; }
.check-steps strong { font-size: 1rem; font-weight: 500; }
.check-steps span { color: var(--muted); font-size: .875rem; margin-top: .2rem; }
.context-field { margin: 1.5rem 0; }
.context-field label { display: block; margin-bottom: .5rem; }
.context-field .microcopy { margin-top: .5rem; }
.start-button { width: 100%; margin-bottom: 1rem; }
.resume-panel { padding: var(--space); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1rem; }
.check-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0; }
.check-topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .25rem; }
.check-topline p { margin: 0; }
.question-track { position: relative; margin: 0 7px .6rem; }
.question-track::before, .question-track::after { content: ''; position: absolute; z-index: 1; width: 10px; height: 10px; top: -3px; border: 1px solid var(--muted); background: var(--background); border-radius: 50%; }
.question-track::before { left: -5px; }
.question-track::after { right: -5px; }
progress { display: block; width: 100%; height: 4px; border: none; border-radius: var(--radius); background: var(--button); accent-color: var(--selected); margin: 0; }
progress::-webkit-progress-bar { background: var(--button); border-radius: var(--radius); }
progress::-webkit-progress-value { background: var(--selected); border-radius: var(--radius); }
progress::-moz-progress-bar { background: var(--selected); }
#question-category { margin: 1rem 0 .4rem; font-size: .75rem; text-align: center; }
#check-question #question-title { font-size: 1.2rem; text-align: center; line-height: 1.6; margin-bottom: .5rem; }
.question-context { font-size: .75rem; margin-bottom: 1rem; }
.question-scene { margin: 0; position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); }
.question-scene img { display: block; width: 100%; height: auto; aspect-ratio: 1.65; object-fit: cover; filter: grayscale(1); }
.question-scene figcaption { position: absolute; right: .65rem; bottom: .5rem; font-size: .65rem; padding: .1rem .4rem; background: var(--background); color: var(--muted); }
.question-example { color: var(--muted); font-size: .75rem; text-align: center; margin-bottom: .75rem; }
.answer-fieldset { border: 0; padding: 0; margin: .75rem 0; min-width: 0; }
.answer-fieldset legend { width: 100%; text-align: center; margin-bottom: .65rem; font-size: .75rem; }
.answer-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.answer-option { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: .65rem .85rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-size: .85rem; }
.answer-option:has(input:checked) { background: var(--selected); color: var(--selected-text); }
.answer-option:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.answer-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.question-actions { display: grid; grid-template-columns: 1fr 1fr; }
.question-actions .button { border-radius: 999px; font-size: .85rem; }
.text-button { display: inline-block; min-height: 44px; padding: .5rem 0; background: transparent; color: var(--muted); border: 0; text-decoration: underline; text-underline-offset: 4px; font-size: .875rem; text-align: left; }
#skip-question { display: block; margin: 0 auto; text-align: center; font-size: .75rem; }
.result-highlight, .result-group, .personal-notes, .ar-next { margin: 1.75rem 0; border-top: 1px solid var(--border); padding-top: .5rem; }
.result-highlight ul { padding-left: 1.2rem; }
.result-highlight li { margin-bottom: .5rem; }
.result-group-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.result-group-heading .text-button { flex-shrink: 0; }
.result-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 1rem; padding: .8rem 0; }
.result-row + .result-row { border-top: 1px solid var(--border); }
.result-row p { margin: 0; font-size: .875rem; }
.result-row .response-label { font-weight: 600; text-align: right; }
.response-label.is-skipped { color: var(--muted); font-weight: 400; }
.personal-notes label { display: block; margin: 1rem 0 .5rem; font-size: .875rem; }
textarea { display: block; width: 100%; resize: vertical; min-height: 88px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem; font: inherit; font-size: 1rem; }
textarea::placeholder { color: var(--muted); }
#note-status { margin-top: .5rem; }
.ar-next .button { display: inline-block; text-decoration: none; margin-bottom: .75rem; }
.result-eyebrow { text-align: center; margin-top: .5rem; }
#check-result #result-title { text-align: center; font-size: 1.7rem; line-height: 1.5; margin-bottom: .75rem; }
#result-context { text-align: center; font-size: .75rem; }
.result-overview { margin: 1.25rem 0 1rem; }
.result-overview h2 { font-size: .875rem; color: var(--muted); font-weight: 400; text-align: center; margin-bottom: 1.25rem; }
.result-scale { margin: 0 .6rem 1.1rem; }
.scale-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; margin-bottom: 1.1rem; }
.scale-heading h3 { margin: 0; font-size: .95rem; font-weight: 500; }
.scale-heading > span { color: var(--muted); font-size: .75rem; }
.scale-track { position: relative; height: 5px; background: var(--border); border-radius: 999px; margin: 0 8px; }
.scale-track::before, .scale-track::after { content: ''; position: absolute; width: 12px; height: 12px; top: 50%; transform: translateY(-50%); border: 2px solid var(--muted); background: var(--background); border-radius: 50%; }
.scale-track::before { left: -6px; }
.scale-track::after { right: -6px; }
.scale-marker { position: absolute; z-index: 1; width: 28px; height: 28px; top: 50%; transform: translate(-50%, -50%); filter: invert(1); }
.scale-track.is-unrated { opacity: .35; }
.scale-endpoints { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .65rem; margin-top: .75rem; }
.scale-help { text-align: center; font-size: .75rem; }
.result-toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.result-toolbar .button { border-radius: 999px; min-height: 48px; }
.result-disclaimer { text-align: center; font-size: .7rem; margin-top: 1rem; }
#download-status { margin-top: .5rem; }
.filter-options { display: grid; gap: .5rem; margin: 1rem 0; }
.filter-options label { display: flex; align-items: center; gap: .75rem; border: 1px solid var(--border); border-radius: 999px; padding: .75rem 1rem; margin: 0; cursor: pointer; }
.filter-options input { width: 18px; height: 18px; margin: 0; accent-color: var(--selected); }
.filter-options label:has(input:checked) { background: var(--button); }
#filter-dialog .primary { border-radius: 999px; }
@media (max-width: 480px) {
  .assessment-main h1 { font-size: 1.4rem; }
  .assessment-main { padding-top: .75rem; }
  .result-row { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .result-row .response-label { text-align: left; }
  .check-actions > .button { flex-grow: 1; }
}
