/* SkillUp Physical Quantities — CAPA release v2
   One authoritative stylesheet. Keep answer states mutually exclusive and explicit. */
html body.pq-bright{
 --pq-ink:#29345d;--pq-muted:#737d91;--pq-line:#e0e4f0;
 --pq-purple:#51469b;--pq-green:#58b92a;
 margin:0;color:var(--pq-ink)!important;color-scheme:light;
 background:linear-gradient(180deg,#edf6ff 0,#f5f5ff 230px,#f5f6ff 100%)!important;
 font-family:system-ui,-apple-system,"Segoe UI",sans-serif;overflow-x:hidden
}
html body.pq-bright *{box-sizing:border-box}
html body.pq-bright header{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.97)!important;border-bottom:1px solid #dce8f3!important;box-shadow:0 3px 12px rgba(41,52,93,.05);backdrop-filter:blur(12px)}
html body.pq-bright .nav{width:min(100% - 20px,760px);min-height:54px;margin:auto;padding:7px 0;display:flex;align-items:center;gap:8px}
html body.pq-bright .back{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border:1.5px solid #c9bdf5!important;border-radius:13px;background:#eeeaff!important;color:#51469b!important;font-size:21px;text-decoration:none}
html body.pq-bright .brand{flex:1;color:#29345d!important;font-size:16px;font-weight:950;line-height:1.1}
html body.pq-bright .brand small{display:block;margin-top:4px;color:#737d91!important;font-size:9px;letter-spacing:.8px}
html body.pq-bright .pill{white-space:nowrap;border-radius:99px;padding:7px 8px;font-size:10px;font-weight:900}
html body.pq-bright .xp{background:#fff4d8!important;border:1px solid #f1dfaa!important;color:#775515!important}
html body.pq-bright .streak{background:#ffedf0!important;border:1px solid #f5ccd3!important;color:#a44855!important}
html body.pq-bright main{width:min(100% - 24px,760px)!important;max-width:760px!important;margin:13px auto 38px!important;padding:0 0 30px!important}
html body.pq-bright .hero,html body.pq-bright .page-hero{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:112px;padding:18px 19px!important;margin:0 0 12px!important;overflow:hidden;border:1.5px solid #c9bdf5!important;border-radius:19px!important;background:linear-gradient(120deg,#f0eaff,#eaf6ff 55%,#edffe8)!important;box-shadow:0 4px 0 #ded5fb!important}
html body.pq-bright .hero.page-hero:after{content:"";position:absolute;z-index:-1;right:-25px;bottom:-58px;width:160px;height:160px;border-radius:50%;background:rgba(255,255,255,.38)}
html body.pq-bright .hero h1,html body.pq-bright .page-hero h1{max-width:24ch;margin:0 0 5px!important;color:#29345d!important;font-size:clamp(21px,4.8vw,28px)!important;font-weight:950!important;line-height:1.2!important;letter-spacing:-.4px}
html body.pq-bright .hero p,html body.pq-bright .page-hero p,html body.pq-bright .muted{max-width:48ch;margin:0;color:#68758b!important;font-size:13px!important;line-height:1.5}
html body.pq-bright .eyebrow{color:#6556ad!important;font-size:10px;font-weight:900;letter-spacing:1px}
html body.pq-bright .tabs,html body.pq-bright .page-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px;padding:5px;margin:0 0 11px!important;border:1px solid #e0dafb!important;border-radius:14px;background:#eeeaff!important}
html body.pq-bright .tab,html body.pq-bright .page-tab{display:flex!important;align-items:center;justify-content:center;min-width:0;min-height:43px;padding:7px 4px;border:1px solid #e0e4f0!important;border-radius:11px;background:#fff!important;color:#51469b!important;box-shadow:0 2px 0 #e7e5f3!important;text-decoration:none;font-size:11px;font-weight:900;text-align:center;overflow-wrap:anywhere}
html body.pq-bright .tab.active,html body.pq-bright .page-tab.active{background:#eff9eb!important;border-color:#b8dfa9!important;color:#347b2c!important;box-shadow:0 2px 0 #d6edcc!important}
html body.pq-bright .page-progress{display:flex;align-items:center;justify-content:center;gap:7px;min-height:40px;margin:0 0 12px;padding:10px 12px;border:1px solid #b9dfed!important;border-radius:13px;background:#eaf8ff!important;color:#42617a!important;font-size:12px;font-weight:850;text-align:center}
html body.pq-bright .progress-card{padding:14px 16px;margin:0 0 12px;border:1.5px solid #a9d9e9!important;border-radius:17px;background:#eaf8ff!important;box-shadow:0 3px 0 #d6edf5}
html body.pq-bright .progress-line{display:flex;justify-content:space-between;gap:12px;color:#52657c!important;font-size:12px;font-weight:850}
html body.pq-bright .track{height:9px;margin-top:10px;border-radius:99px;background:#e4e6f3!important;overflow:hidden}
html body.pq-bright .fill{height:100%;border-radius:99px;background:#58b92a!important}
html body.pq-bright .sync-status{margin:0 0 10px;color:#64748b!important;background:transparent!important;font-size:11px;text-align:center}
html body.pq-bright .sync-status[data-state="offline"]{color:#9a571c!important}
html body.pq-bright .sync-status[data-state="error"]{color:#9b3131!important}
html body.pq-bright .card,html body.pq-bright .quiz-card,html body.pq-bright .quiz,html body.pq-bright .finish,html body.pq-bright .result{min-width:0;padding:clamp(15px,3.5vw,21px);border:1.5px solid #e0e4f0!important;border-radius:19px!important;background:#fff!important;box-shadow:0 4px 15px rgba(41,52,93,.05)!important;overflow-wrap:anywhere}
html body.pq-bright .quiz-card{border-top:4px solid #b7a3f4!important}
html body.pq-bright .card[aria-labelledby="simTitle"]{border-top:4px solid #91d6f4!important}
html body.pq-bright .heading{display:flex;align-items:center;gap:10px;margin-bottom:10px}
html body.pq-bright .heading .emoji{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:#eeeaff;font-size:24px}
html body.pq-bright .heading h1,html body.pq-bright .card h1{margin:0!important;color:#29345d!important;font-size:clamp(20px,4.5vw,26px)!important;line-height:1.25}
html body.pq-bright .intro,html body.pq-bright .hint,html body.pq-bright .explain,html body.pq-bright .tip{padding:12px 14px;border:1px solid #c6e8b9!important;border-radius:13px;background:#eff9eb!important;color:#426b3c!important;line-height:1.55}
html body.pq-bright .field{margin:14px 0}
html body.pq-bright .field-head{display:flex;justify-content:space-between;gap:8px;margin-bottom:7px;color:#29345d!important;font-size:13px;font-weight:850}
html body.pq-bright .field-head output{color:#51469b!important;font-variant-numeric:tabular-nums}
html body.pq-bright input,html body.pq-bright select{width:100%;min-width:0;min-height:52px;padding:11px 13px;border:1.5px solid #9bd7e9!important;border-radius:14px;background:#eef9ff!important;color:#29345d!important;font:700 15px system-ui,sans-serif}
html body.pq-bright .readouts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0}
html body.pq-bright .reading{min-width:0;padding:12px;border:1.5px solid #a8dfcf!important;border-radius:14px;background:#e9f9f4!important;color:#29345d!important;overflow-wrap:anywhere}
html body.pq-bright .reading:nth-child(2){background:#fff3e7!important;border-color:#f2c99b!important}
html body.pq-bright .reading:nth-child(3){background:#ffedf5!important;border-color:#efbdd3!important}
html body.pq-bright .reading:nth-child(4){background:#eaf8ff!important;border-color:#a9d9e9!important}
html body.pq-bright .reading span{display:block;color:#68758b!important;font-size:11px;font-weight:800}
html body.pq-bright .reading strong{display:block;color:#29345d!important;font-size:clamp(15px,4vw,19px);overflow-wrap:anywhere}
html body.pq-bright .presets{display:flex;flex-wrap:wrap;gap:7px;margin:13px 0}
html body.pq-bright .preset{min-height:39px;padding:8px 10px;border:1px solid #d9d1ff!important;border-radius:10px;background:#f2efff!important;color:#51469b!important;font-size:11px;font-weight:850}
html body.pq-bright .preset.active{background:#e8f8dc!important;border-color:#a9d99b!important;color:#347b2c!important}
html body.pq-bright .qmeta{display:inline-flex;padding:6px 10px;border-radius:99px;background:#eeeaff!important;color:#6556ad!important;font-size:10px;font-weight:900;letter-spacing:.7px}
html body.pq-bright .question{display:block!important;visibility:visible!important;min-height:2em;margin:13px 0 17px;color:#29345d!important;font-size:clamp(19px,4.4vw,25px);font-weight:850;line-height:1.4;overflow-wrap:anywhere}
html body.pq-bright .options{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px;visibility:visible!important}
/* Neutral is the mandatory default. Only explicit state classes may tint an answer. */
html body.pq-bright main .quiz-card .options .option:not(.selected):not(.correct):not(.wrong){display:flex!important;align-items:center;gap:10px;width:100%;min-width:0;min-height:51px;padding:10px 12px;border:1.5px solid #dfe3ee!important;border-radius:13px;background:#fff!important;color:#29345d!important;text-align:left;font:750 14px/1.4 system-ui,sans-serif;box-shadow:0 2px 0 #f0f1f7;overflow-wrap:anywhere}
html body.pq-bright main .quiz-card .options .option.selected{background:#f2efff!important;border-color:#9988e6!important;color:#493d86!important;box-shadow:0 2px 0 #e0d9ff}
html body.pq-bright main .quiz-card .options .option.correct{background:#eff9eb!important;border-color:#8bcf71!important;color:#286b31!important;box-shadow:0 2px 0 #d8efcf}
html body.pq-bright main .quiz-card .options .option.wrong{background:#fff1f0!important;border-color:#e7a7a2!important;color:#963d36!important;box-shadow:0 2px 0 #f5d6d3}
html body.pq-bright .letter{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;border:1px solid #d8d0ff!important;border-radius:9px;background:#f2efff!important;color:#6556ad!important;font-size:12px;font-weight:900}
html body.pq-bright .option:disabled{opacity:1;cursor:default}
html body.pq-bright .feedback{margin-top:12px;padding:13px;border-radius:13px;font-size:13px;line-height:1.55}
html body.pq-bright .feedback.good{background:#eff9eb!important;border:1px solid #b9e0ad!important;color:#286b31!important}
html body.pq-bright .feedback.bad{background:#fff1f0!important;border:1px solid #edc1bd!important;color:#963d36!important}
html body.pq-bright .actions{display:flex;gap:9px;margin-top:15px}
html body.pq-bright .btn{flex:1;min-width:0;min-height:47px;border:0;border-radius:12px;padding:10px 12px;font-size:13px;font-weight:900}
html body.pq-bright .btn.check{background:#58b92a!important;color:#fff!important;box-shadow:0 4px 0 #3f9820!important}
html body.pq-bright .btn.continue{background:#51469b!important;color:#fff!important;box-shadow:0 4px 0 #393273!important}
html body.pq-bright .btn:disabled{opacity:.5}
html body.pq-bright .score,html body.pq-bright .finish h2{color:#29345d!important}
html body.pq-bright .review{padding:12px;border:1px solid #e0e4f0!important;border-radius:12px;background:#fff!important}
html body.pq-bright .your{color:#963d36!important}
html body.pq-bright .right{color:#286b31!important}
html body.pq-bright #learnPanel{display:grid;gap:12px}
html body.pq-bright #learnPanel .learn-card{padding:17px!important;border:1.5px solid #e0e4f0!important;border-radius:17px!important;background:#fff!important;box-shadow:0 3px 12px rgba(41,52,93,.04)!important}
html body.pq-bright #learnPanel .learn-card:nth-child(4n+1){border-left:4px solid #9b87e8!important}
html body.pq-bright #learnPanel .learn-card:nth-child(4n+2){border-left:4px solid #75c8e6!important}
html body.pq-bright #learnPanel .learn-card:nth-child(4n+3){border-left:4px solid #8bcf71!important}
html body.pq-bright #learnPanel .learn-card:nth-child(4n+4){border-left:4px solid #f0b879!important}
html body.pq-bright #learnPanel .learn-card h2{margin:0 0 9px;color:#29345d!important;font-size:17px;line-height:1.3}
html body.pq-bright #learnPanel .learn-card p,html body.pq-bright #learnPanel .learn-card li{color:#53627a!important;font-size:14px;line-height:1.65}
html body.pq-bright #learnPanel .formula{margin:12px 0;padding:13px;border:1px solid #b8dfa9!important;border-radius:13px;background:#eff9eb!important;color:#29345d!important;text-align:center;font-size:22px}
html body.pq-bright :is(button,a,input,select):focus-visible{outline:3px solid #8e7bd8!important;outline-offset:3px}
@media(max-width:520px){
 html body.pq-bright .nav{min-height:51px;gap:5px}
 html body.pq-bright .brand{font-size:14px}
 html body.pq-bright .pill{font-size:9px;padding:6px}
 html body.pq-bright main{width:calc(100% - 20px)!important;margin:10px auto 28px!important}
 html body.pq-bright .hero,html body.pq-bright .page-hero{min-height:104px;padding:15px!important;border-radius:16px!important}
 html body.pq-bright .hero h1,html body.pq-bright .page-hero h1{font-size:22px!important}
 html body.pq-bright .hero.page-hero:after{width:130px;height:130px;right:-35px;bottom:-50px}
 html body.pq-bright .tabs,html body.pq-bright .page-tabs{gap:5px;padding:4px}
 html body.pq-bright .tab,html body.pq-bright .page-tab{min-height:41px;font-size:10px;padding:6px 2px}
 html body.pq-bright .card,html body.pq-bright .quiz-card,html body.pq-bright .quiz,html body.pq-bright .finish{padding:14px!important;border-radius:16px!important}
 html body.pq-bright .heading h1,html body.pq-bright .card h1{font-size:20px!important}
 html body.pq-bright .readouts{gap:7px}
 html body.pq-bright .reading{padding:10px}
 html body.pq-bright .question{font-size:20px}
 html body.pq-bright main .quiz-card .options .option:not(.selected):not(.correct):not(.wrong){min-height:48px;padding:9px;font-size:13px}
 html body.pq-bright .actions{gap:7px}
 html body.pq-bright .btn{font-size:12px;padding:9px 7px}
}
@media(max-width:360px){html body.pq-bright .pill{font-size:8px;padding:5px}html body.pq-bright .readouts{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){html body.pq-bright *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
