* { box-sizing: border-box; }
:root { color-scheme: light; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #20242b; background: #f4f6f8; }
body { margin: 0; min-height: 100vh; }
.shell { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 36px 0 24px; }
.site-header { margin-bottom: 24px; }
.eyebrow { color: #667085; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
h1 { margin: 8px 0 0; font-size: clamp(24px, 4vw, 32px); line-height: 1.35; }
h2 { margin: 0 0 14px; font-size: 22px; }
p { line-height: 1.75; }
.panel { background: #fff; border: 1px solid #e1e5ea; border-radius: 16px; padding: clamp(20px, 4vw, 32px); box-shadow: 0 8px 30px rgba(20,30,50,.05); }
.hidden { display: none !important; }
.field-label { display: block; margin: 22px 0 8px; font-weight: 700; }
.code-input { width: 100%; border: 1px solid #c8ced6; border-radius: 10px; padding: 14px 16px; font-size: 20px; letter-spacing: .12em; text-transform: uppercase; }
button { font: inherit; cursor: pointer; }
.primary-button { border: 0; border-radius: 10px; background: #1d4ed8; color: #fff; font-weight: 700; padding: 13px 20px; min-height: 48px; }
.primary-button:disabled { opacity: .42; cursor: not-allowed; }
#start-button { width: 100%; margin-top: 14px; }
.secondary-button { border: 1px solid #cbd2dc; background: #fff; color: #344054; border-radius: 9px; padding: 9px 12px; }
.notice { margin-top: 24px; padding: 16px 18px; background: #f7f8fa; border-radius: 10px; font-size: 14px; }
.notice ul { margin: 8px 0 0; padding-left: 20px; line-height: 1.8; }
.error { color: #b42318; min-height: 1.4em; font-size: 14px; }
.progress-row { display: flex; justify-content: space-between; gap: 12px; color: #475467; font-size: 13px; font-weight: 700; }
.progress-track { height: 8px; margin: 10px 0 28px; border-radius: 99px; background: #e8ecf1; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: #315fbd; transition: width .2s ease; }
.item-heading { margin-bottom: 18px; }
.item-heading h2 { margin: 4px 0 0; }
.audio-panel { padding: 16px; border: 1px solid #e2e7ed; border-radius: 12px; background: #fafbfc; display: flex; flex-direction: column; gap: 12px; }
audio { width: 100%; }
#loop-button { align-self: flex-start; }
.questions { display: grid; gap: 18px; margin-top: 24px; }
.question-card { border: 1px solid #e2e7ed; border-radius: 12px; padding: 18px; }
.question-title { margin: 0 0 14px; font-weight: 700; line-height: 1.6; }
.scale { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.scale-option { display: flex; align-items: center; justify-content: center; min-height: 54px; border: 1px solid #d0d5dd; border-radius: 9px; padding: 8px 4px; text-align: center; font-size: 13px; cursor: pointer; line-height: 1.35; }
.scale-option input { position: absolute; opacity: 0; pointer-events: none; }
.scale-option:has(input:checked) { border: 2px solid #1d4ed8; background: #eff4ff; color: #173e9b; font-weight: 700; }
.scale-option:focus-within { outline: 2px solid #84adff; outline-offset: 2px; }
.save-status { min-height: 24px; margin-top: 16px; font-size: 13px; color: #475467; }
.save-status.error { color: #b42318; }
.save-status.saved { color: #067647; }
.action-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; }
.text-button { border: 0; background: transparent; color: #475467; text-decoration: underline; padding: 10px 0; }
.small-note { color: #667085; font-size: 12px; margin-bottom: 0; }
.complete-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #ecfdf3; color: #067647; font-size: 28px; margin-bottom: 18px; }
footer { color: #667085; font-size: 12px; text-align: center; padding: 22px 8px 0; line-height: 1.6; }
@media (max-width: 540px) { .shell { width: min(100% - 20px, 760px); padding-top: 22px; } .scale { gap: 5px; } .scale-option { font-size: 11px; min-height: 58px; } .panel { border-radius: 12px; } }
