:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1D1D1F;
  background: #F5F5F7;
  line-height: 1.5;
  --blue: #0058B0;
  --line: #D2D2D7;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.toolbar, main { max-width: 760px; margin: auto; padding: 20px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
main { padding-top: 0; padding-bottom: 48px; }
a { color: var(--blue); text-underline-offset: 3px; }
h1 { font-size: clamp(24px, 5vw, 36px); line-height: 1.2; letter-spacing: -.03em; margin: 8px 0 20px; }
h2 { font-size: 22px; line-height: 1.3; }
h3 { font-size: 16px; }
.eyebrow { color: var(--blue); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 800; }
.intro { font-size: 18px; }
.scale { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.scale > :last-child { text-align: right; }
button, select, input, textarea { font: inherit; }
button { min-height: 44px; padding: 10px 20px; border: 0; border-radius: 9999px; cursor: pointer; background: #E8F2FC; color: var(--blue); font-weight: 600; }
button:hover { background: #D6E9F8; }
button.primary { background: var(--blue); color: white; }
button.primary:hover { background: #004A96; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
#progress { position: sticky; top: 0; z-index: 1; background: #F5F5F7; padding: 12px 0; border-bottom: 1px solid var(--line); }
fieldset { min-width: 0; margin: 20px 0; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: white; }
legend { float: left; width: 100%; padding: 0; margin-bottom: 16px; font-weight: 600; }
fieldset > p { clear: both; font-size: 14px; }
.rating-options { clear: both; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.rating-options label { position: relative; display: grid; place-items: center; min-height: 44px; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; }
.rating-options input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rating-options label:has(:checked) { background: var(--blue); border-color: var(--blue); color: white; }
.rating-options label:has(:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.skip-option { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 14px; cursor: pointer; }
.skip-option input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); flex-shrink: 0; }
#ratings { margin: 24px 0; }
#ratings > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 40%); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
dd { margin: 0; text-align: right; font-weight: 600; }
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.highlights ul { padding-left: 20px; }
.highlights li { margin: 8px 0; }
#next-step { margin: 24px 0; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 18px; }
#next-step > label { display: block; font-weight: 600; margin: 20px 0 8px; }
#next-step label span { font-weight: 400; }
select, textarea, input[type="text"] { display: block; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: white; color: #1D1D1F; }
textarea { resize: vertical; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
#print-report { display: none; }
footer { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 16px; font-size: 13px; }
@media (max-width: 700px) {
  .rating-options { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .highlights { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 360px) {
  .toolbar, main { padding-left: 16px; padding-right: 16px; }
  fieldset { padding: 16px; }
  .rating-options { gap: 6px; }
}
@media print {
  @page { margin: 16mm; }
  :root { background: white; color: black; font-size: 10pt; }
  main { max-width: none; margin: 0; padding: 0; }
  h1 { font-size: 22pt; }
  .toolbar, .screen-only, #assessment, #results, noscript { display: none !important; }
  #print-report { display: block; }
  .report-answer { break-inside: avoid; border-bottom: 1px solid #aaa; padding: 6pt 0; }
  .report-answer h3 { font-size: 10pt; margin: 0; }
  .report-answer p { margin: 4pt 0; }
  #print-report p { white-space: pre-wrap; overflow-wrap: anywhere; }
  footer { break-inside: avoid; }
}
