/* Module-local styles. Shared application chrome uses app.css. */
:where(#challenge-main,#ch-session,.module-footer) *{box-sizing:border-box}:where(#challenge-main,#ch-session,.module-footer) a{color:var(--accent);text-underline-offset:3px}:where(#challenge-main,#ch-session,.module-footer) button,:where(#challenge-main,#ch-session,.module-footer) input,:where(#challenge-main,#ch-session,.module-footer) select{font:inherit}:where(#challenge-main,#ch-session,.module-footer) button{cursor:pointer}:where(#challenge-main,#ch-session,.module-footer) button:disabled{opacity:.55;cursor:not-allowed}:where(#challenge-main,#ch-session,.module-footer) button:focus-visible,:where(#challenge-main,#ch-session,.module-footer) a:focus-visible,:where(#challenge-main,#ch-session,.module-footer) input:focus-visible,:where(#challenge-main,#ch-session,.module-footer) select:focus-visible,:where(#challenge-main,#ch-session,.module-footer) summary:focus-visible,:where(#challenge-main,#ch-session,.module-footer) [tabindex]:focus-visible{outline:3px solid var(--focus);outline-offset:3px}:where(#challenge-main,#ch-session,.module-footer) .skip-link{position:fixed;top:8px;left:16px;z-index:100;background:var(--surface);padding:12px;transform:translateY(-200%);opacity:0}:where(#challenge-main,#ch-session,.module-footer) .skip-link:focus{transform:none;opacity:1}:where(#challenge-main,#ch-session,.module-footer) .ch-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px max(24px,calc((100vw - 1120px)/2));border-bottom:1px solid var(--separator);background:var(--surface)}:where(#challenge-main,#ch-session,.module-footer) .ch-top nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap}:where(#challenge-main,#ch-session,.module-footer) .ch-brand{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:750;color:var(--text);text-decoration:none}:where(#challenge-main,#ch-session,.module-footer) .ch-brand img{width:36px;height:36px;object-fit:contain}#challenge-main{max-width:1120px;padding:36px 24px 64px;margin:auto;min-width:0}:where(#challenge-main,#ch-session,.module-footer) .ch-intro{max-width:760px;margin-bottom:28px}:where(#challenge-main,#ch-session,.module-footer) h1{font-size:clamp(32px,4vw,46px);line-height:1.14;letter-spacing:-.035em;margin:12px 0 20px}:where(#challenge-main,#ch-session,.module-footer) h2{font-size:23px;line-height:1.3;margin:6px 0 14px}:where(#challenge-main,#ch-session,.module-footer) h3{font-size:18px;margin:0 0 10px}:where(#challenge-main,#ch-session,.module-footer) .eyebrow{color:var(--text-2);text-transform:uppercase;font-size:11px;letter-spacing:.09em;font-weight:700}:where(#challenge-main,#ch-session,.module-footer) .ch-muted,:where(#challenge-main,#ch-session,.module-footer) small{color:var(--text-2)}:where(#challenge-main,#ch-session,.module-footer) .panel{padding:28px;background:var(--surface);border:1px solid var(--separator);border-radius:16px;margin:22px 0;min-width:0}:where(#challenge-main,#ch-session,.module-footer) .btn{border:1px solid var(--accent);background:var(--accent);color:white;padding:10px 18px;border-radius:9px;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;min-height:44px}:where(#challenge-main,#ch-session,.module-footer) .btn.secondary{background:var(--surface);color:var(--text);border-color:var(--separator-strong)}:where(#challenge-main,#ch-session,.module-footer) .btn.danger{background:var(--surface);color:var(--danger);border-color:var(--separator-strong)}:where(#challenge-main,#ch-session,.module-footer) .btn svg{height:18px;width:18px}:where(#challenge-main,#ch-session,.module-footer) .ch-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:18px 0}:where(#challenge-main,#ch-session,.module-footer) .ch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}:where(#challenge-main,#ch-session,.module-footer) .ch-grid .panel{margin:0}:where(#challenge-main,#ch-session,.module-footer) .ch-rule-grid,:where(#challenge-main,#ch-session,.module-footer) .ch-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0;padding:20px;background:var(--surface-2);border-radius:12px}:where(#challenge-main,#ch-session,.module-footer) .ch-rule-grid strong,:where(#challenge-main,#ch-session,.module-footer) .ch-metrics strong{font-size:22px;display:block}:where(#challenge-main,#ch-session,.module-footer) .ch-rule-grid span,:where(#challenge-main,#ch-session,.module-footer) .ch-metrics span{font-size:12px;color:var(--text-2)}:where(#challenge-main,#ch-session,.module-footer) label{display:block;font-weight:600;margin:14px 0 6px}:where(#challenge-main,#ch-session,.module-footer) input[type=text],:where(#challenge-main,#ch-session,.module-footer) input[type=url],:where(#challenge-main,#ch-session,.module-footer) select{width:100%;padding:11px 12px;border:1px solid var(--separator-strong);border-radius:8px;background:var(--surface);color:var(--text);min-height:44px}:where(#challenge-main,#ch-session,.module-footer) .ch-check{display:flex;align-items:flex-start;gap:10px;font-weight:450}:where(#challenge-main,#ch-session,.module-footer) .ch-check input{margin-top:6px;min-width:18px;min-height:18px}:where(#challenge-main,#ch-session,.module-footer) .ch-message{border-radius:10px;white-space:pre-line;overflow-wrap:anywhere}:where(#challenge-main,#ch-session,.module-footer) .ch-message:not(:empty){padding:16px;background:var(--accent-soft)}:where(#challenge-main,#ch-session,.module-footer) .ch-message[data-error=true]{background:var(--warning-soft)}:where(#challenge-main,#ch-session,.module-footer) .ch-inline-note{padding:16px;background:var(--surface-2);border-radius:10px}:where(#challenge-main,#ch-session,.module-footer) .ch-table-scroll{overflow-x:auto;max-width:100%;margin:20px 0}:where(#challenge-main,#ch-session,.module-footer) table{border-collapse:collapse;width:100%;min-width:600px}:where(#challenge-main,#ch-session,.module-footer) th,:where(#challenge-main,#ch-session,.module-footer) td{border-bottom:1px solid var(--separator);padding:13px 12px;text-align:left;vertical-align:top;font-variant-numeric:tabular-nums}:where(#challenge-main,#ch-session,.module-footer) th{font-size:13px}:where(#challenge-main,#ch-session,.module-footer) caption{text-align:left;color:var(--text-2);font-size:13px;padding:10px 0}:where(#challenge-main,#ch-session,.module-footer) .ch-controls{display:flex;gap:18px;align-items:end;flex-wrap:wrap}:where(#challenge-main,#ch-session,.module-footer) .ch-controls label{flex:1;min-width:180px}:where(#challenge-main,#ch-session,.module-footer) .ch-material{line-height:1.9;overflow-wrap:anywhere}:where(#challenge-main,#ch-session,.module-footer) details{margin:16px 0}:where(#challenge-main,#ch-session,.module-footer) summary{cursor:pointer;font-weight:600}:where(#challenge-main,#ch-session,.module-footer) .ch-badge{display:inline-block;background:var(--surface-2);padding:4px 9px;border-radius:5px;font-size:12px;margin-right:8px}.module-footer{padding:28px;text-align:center;color:var(--text-2);font-size:12px}.ch-session{position:fixed;inset:0;background:var(--bg);z-index:80;overflow-y:auto}.ch-session[hidden]{display:none}:where(#challenge-main,#ch-session,.module-footer) .ch-session-inner{max-width:1120px;margin:auto;padding:20px 24px 50px}:where(#challenge-main,#ch-session,.module-footer) .ch-toolbar{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--bg);padding:14px 0;z-index:2}:where(#challenge-main,#ch-session,.module-footer) .ch-timer{font-size:28px;font-weight:700;font-variant-numeric:tabular-nums}:where(#challenge-main,#ch-session,.module-footer) .ch-timer small{display:block;font-size:11px;text-align:center;font-weight:400}:where(#challenge-main,#ch-session,.module-footer) .ch-typing{background:var(--surface);border:1px solid var(--separator);border-radius:16px;padding:32px;min-height:300px;max-height:56vh;overflow:auto;font-family:var(--font-mono);font-size:26px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}:where(#challenge-main,#ch-session,.module-footer) .ch-char.correct{color:var(--success)}:where(#challenge-main,#ch-session,.module-footer) .ch-char.incorrect{color:var(--danger);text-decoration:underline;background:var(--danger-soft)}:where(#challenge-main,#ch-session,.module-footer) .ch-char.current{background:var(--accent-soft);box-shadow:inset 0 -3px 0 var(--accent)}:where(#challenge-main,#ch-session,.module-footer) .ch-capture{position:fixed;top:90px;left:24px;width:1px;height:1px;opacity:.01;padding:0;border:0;resize:none;overflow:hidden}:where(#challenge-main,#ch-session,.module-footer) .ch-alert{text-align:center;padding:18px;background:var(--warning-soft);border:1px solid var(--warning);border-radius:12px;margin:14px 0}:where(#challenge-main,#ch-session,.module-footer) .ch-alert strong{display:block}:where(#challenge-main,#ch-session,.module-footer) .ch-alert .btn{margin-top:12px}.ch-session p{overflow-wrap:anywhere}:where(#challenge-main,#ch-session,.module-footer) dialog{max-width:min(520px,calc(100vw - 32px));border:1px solid var(--separator-strong);border-radius:14px;background:var(--surface);color:var(--text);padding:28px}:where(#challenge-main,#ch-session,.module-footer) dialog::backdrop{background:rgb(0 0 0/.35)}[hidden]{display:none!important}@media (max-width:760px){:where(#challenge-main,#ch-session,.module-footer) .ch-grid{grid-template-columns:1fr}:where(#challenge-main,#ch-session,.module-footer) .ch-top{padding:14px 20px;align-items:flex-start}:where(#challenge-main,#ch-session,.module-footer) .ch-top nav{gap:10px;font-size:12px}:where(#challenge-main,#ch-session,.module-footer) .ch-top .btn{font-size:12px;padding:8px}#challenge-main{padding:22px 16px 45px}:where(#challenge-main,#ch-session,.module-footer) .panel{padding:20px}:where(#challenge-main,#ch-session,.module-footer) .ch-rule-grid,:where(#challenge-main,#ch-session,.module-footer) .ch-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}:where(#challenge-main,#ch-session,.module-footer) .ch-session-inner{padding:12px 16px}:where(#challenge-main,#ch-session,.module-footer) .ch-typing{font-size:21px;padding:20px;max-height:52vh}:where(#challenge-main,#ch-session,.module-footer) .ch-toolbar .btn{font-size:13px}:where(#challenge-main,#ch-session,.module-footer) .ch-timer{font-size:23px}}@media (prefers-reduced-motion:reduce){:where(#challenge-main,#ch-session,.module-footer) *,:where(#challenge-main,#ch-session,.module-footer) *::before,:where(#challenge-main,#ch-session,.module-footer) *::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* v0.9: visible keyboard focus, reflow and readable result/secondary text. */
:where(#challenge-main,#ch-session,.module-footer) .app-skip-link{ position:fixed;left:12px;top:-150px;z-index:10000;background:var(--surface);color:var(--text);padding:12px 16px;border:2px solid var(--focus);border-radius:8px; }
:where(#challenge-main,#ch-session,.module-footer) .app-skip-link:focus{ top:12px; }
:where(#challenge-main,#ch-session,.module-footer) :where(a,button,input,textarea,select,summary,[tabindex]):focus-visible{ outline:3px solid var(--focus);outline-offset:3px; }
:where(#challenge-main,#ch-session,.module-footer) :where(button,a,input,textarea,select,summary,[tabindex]){ scroll-margin-block:100px 32px; }
:where(#challenge-main,#ch-session,.module-footer) .btn-primary,:where(#challenge-main,#ch-session,.module-footer) .btn.primary{ color:var(--on-accent); }
@media  (prefers-reduced-motion:reduce) {  :where(#challenge-main,#ch-session,.module-footer) *,:where(#challenge-main,#ch-session,.module-footer) *::before,:where(#challenge-main,#ch-session,.module-footer) *::after{transition-duration:0s !important;} }
@media  (forced-colors:active) { :where(#challenge-main,#ch-session,.module-footer) :where(a,button,input,textarea,select,summary,[tabindex]):focus-visible{outline:3px solid Highlight;} :where(#challenge-main,#ch-session,.module-footer) .btn{border:1px solid ButtonText;} }
