.challenge-entry-actions,.challenge-top,.challenge-top-actions,.challenge-bottom,.challenge-controls,.challenge-timer{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.challenge-entry-actions{justify-content:flex-end}.button.challenge-button{background:var(--mint,#9ccfb6);color:var(--navy,#233b62);border:1px solid var(--navy,#233b62);font-size:16px}
.challenge-panel{margin:18px 0 24px;padding:22px;border:1px solid var(--line,#dbe3e8);border-top:5px solid var(--navy,#233b62);border-radius:20px;background:var(--paper,#fff);color:var(--ink,#233b62)}
.challenge-panel[hidden],.challenge-pass[hidden],#projectChallenge[hidden]{display:none!important}
.challenge-top{justify-content:space-between}.challenge-top h2{margin:4px 0 0;font-size:24px}.challenge-eyebrow{font-size:12px;letter-spacing:.09em;font-weight:800;color:var(--muted,#53677a)}
.challenge-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;list-style:none;margin:18px 0;padding:0}.challenge-steps li{display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:10px;background:var(--soft,#f1f5f7);font-size:13px;font-weight:650}.challenge-steps li span{display:grid;place-items:center;flex:0 0 25px;height:25px;border:1px solid currentColor;border-radius:50%}.challenge-steps [aria-current]{background:var(--navy,#233b62);color:white}
.challenge-question{font-weight:750;font-size:18px;margin:14px 0 8px;white-space:pre-wrap}.challenge-prompt{font-size:17px;line-height:1.6;margin:8px 0;white-space:pre-wrap}.challenge-starters{font-size:15px;margin:12px 0 18px}.challenge-starters summary{cursor:pointer;font-weight:700}.challenge-starters p{white-space:pre-wrap;line-height:1.7;margin:8px 0;padding:10px 16px;border-left:3px solid var(--mint,#9ccfb6)}
.challenge-bottom{justify-content:space-between;padding-top:16px;border-top:1px solid var(--line,#dbe3e8)}.challenge-goal{flex:1 1 280px;max-width:520px}.challenge-goal strong{font-size:17px}.challenge-goal small{display:block;font-size:13px;color:var(--muted,#53677a);margin-top:7px}.challenge-track{height:10px;border-radius:20px;background:var(--soft,#edf1f3);overflow:hidden;margin-top:9px}.challenge-track span{display:block;height:100%;background:var(--navy,#233b62);border-radius:20px}
.challenge-timer output{font-size:24px;font-weight:800;font-variant-numeric:tabular-nums;min-width:80px}.challenge-controls{margin-top:18px}.challenge-controls .text-button{margin-left:auto}.challenge-complete{padding:12px 16px;background:var(--soft,#edf5f1);border-radius:10px;margin:16px 0 0}.challenge-pass{margin-top:16px;padding-top:16px;border-top:1px solid var(--line,#dbe3e8)}.challenge-pass p{font-size:13px;color:var(--muted,#53677a);margin:8px 0}
dialog.challenge-dialog{width:min(720px,calc(100vw - 24px));max-height:90vh;overflow:auto}.challenge-dialog textarea{font:inherit}.challenge-dialog .dialog-top p{color:var(--muted,#53677a);font-size:15px}.challenge-round-editor details{border:1px solid var(--line,#dbe3e8);border-radius:12px;padding:14px;margin:12px 0}.challenge-round-editor summary{font-size:16px;font-weight:750;cursor:pointer}.challenge-round-editor label{display:grid;gap:6px;margin-top:14px}.challenge-dialog input[type=number]{max-width:170px}
.projection-page .project-stage:has(#projectChallenge:not([hidden])){max-width:1100px}.projection-page:has(#projectChallenge:not([hidden])) #projectPrompt,.projection-page:has(#projectChallenge:not([hidden])) #projectTitle,.projection-page:has(#projectChallenge:not([hidden])) .project-stage>.overline{display:none}.project-challenge-round{font-size:clamp(24px,4vw,48px);margin:16px 0}.project-challenge-question{font-size:clamp(20px,2.6vw,30px);font-weight:700;white-space:pre-wrap}.project-challenge-prompt{font-size:clamp(20px,2.8vw,34px);line-height:1.55;white-space:pre-wrap}.project-challenge-starters{white-space:pre-wrap;border-left:4px solid var(--mint,#9ccfb6);padding:10px 24px;margin:24px auto;max-width:850px;font-size:clamp(18px,2.3vw,26px);line-height:1.7;text-align:left}.project-challenge-footer{display:flex;justify-content:center;gap:24px;flex-wrap:wrap;align-items:center;margin-top:20px}.project-challenge-footer output{font-size:36px;font-weight:800;font-variant-numeric:tabular-nums}.project-challenge-goal{font-size:22px}.project-challenge-note{font-size:16px;color:var(--muted,#53677a)}
@media(max-width:700px){.challenge-entry-actions{justify-content:flex-start}.challenge-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.challenge-panel{padding:16px}.challenge-top-actions{width:100%}.challenge-controls .text-button{margin-left:0}.challenge-timer{width:100%}.challenge-dialog .dialog-actions{position:static}}
@media print{.challenge-panel,.challenge-entry-actions,.challenge-pass{display:none!important}}
@media(min-width:1100px){
 #boardPage:has(#challengePanel:not([hidden])):not([hidden]){display:grid;grid-template-columns:340px minmax(0,1fr);gap:0 22px;align-items:start}
 #boardPage:has(#challengePanel:not([hidden]))>.board-summary,#boardPage:has(#challengePanel:not([hidden]))>.lesson-toolbar{grid-column:1/-1}
 #boardPage:has(#challengePanel:not([hidden]))>.challenge-panel{grid-column:1;margin:0;padding:18px}
 #boardPage:has(#challengePanel:not([hidden]))>.students-section{grid-column:2;min-width:0}
 .challenge-panel .challenge-steps{grid-template-columns:1fr 1fr}.challenge-panel .challenge-top-actions{width:100%}.challenge-panel .challenge-prompt{font-size:16px}.challenge-panel .challenge-question{font-size:17px}.challenge-panel .challenge-controls{gap:8px}.challenge-panel .challenge-controls>.button{font-size:14px;padding:10px}.challenge-panel .challenge-controls .text-button{margin:4px 0 0}.challenge-panel .challenge-timer{margin-top:5px}
 #boardPage:has(#challengePanel:not([hidden])) .student-grid:not(.room){grid-template-columns:repeat(3,minmax(0,1fr))}
}
