/* KAA Kingdom Library — Phase 11.3 Quiz & Growth Lab */
.kq-overlay{position:fixed;inset:0;z-index:2147483150;background:#16091dbb;display:flex;align-items:stretch;justify-content:center;font:14px/1.5 system-ui,-apple-system,'Segoe UI',sans-serif;color:#352b3c}
.kq-overlay *{box-sizing:border-box}.kq-shell{display:flex;flex-direction:column;width:min(1480px,100%);height:100dvh;background:#faf8fc;overflow:hidden}.kq-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(110deg,#291039 0%,#482257 62%,#24102e 100%);color:#fff;padding:21px clamp(18px,3vw,44px);box-shadow:inset 0 -3px #e8c27d}.kq-hero h1{font:700 clamp(24px,2.5vw,38px)/1.15 Georgia,serif;margin:5px 0}.kq-hero p{margin:0;color:#f0dcae;font-size:13px}.kq-eyebrow{font-size:10px;letter-spacing:.17em;font-weight:800;color:#f6cb79}.kq-eyebrow.dark{color:#65446b}.kq-close{width:42px;height:42px;flex:none;border:1px solid #f7deb269;border-radius:50%;background:#ffffff19;color:#fff;font-size:29px;cursor:pointer}
.kq-content{overflow:auto;flex:1;padding:clamp(17px,3vw,38px);max-width:1260px;width:100%;margin:auto}.kq-status{margin:8px auto 0;padding:12px 20px;max-width:1200px;width:calc(100% - 28px);background:#ecf7ed;border:1px solid #b9d4b9;color:#235734;border-radius:10px}.kq-status.error{background:#fff1ed;border-color:#dcafa7;color:#883b36}.kq-intro{padding:20px 25px;margin-bottom:18px;border-radius:18px;background:#f0e9f4;border-left:4px solid #b88c50}.kq-intro>div{font-weight:800;color:#7a527f;letter-spacing:.13em;font-size:10px}.kq-intro h2{font:700 28px/1.2 Georgia,serif;color:#3f2050;margin:5px 0}.kq-intro p{margin:0;color:#65536b}.kq-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:14px}.kq-card,.kq-source,.kq-roster,.kq-question,.kq-growth,.kq-feedback,.kq-student-q{padding:19px 21px;background:white;border:1px solid #e5dbeb;border-radius:15px;box-shadow:0 5px 19px #3a214008;margin-bottom:14px;min-width:0}.kq-card h3{font:700 20px/1.25 Georgia,serif;margin:13px 0 6px;color:#3e224a}.kq-card p{margin:5px 0;font-size:12px;color:#735c78}.kq-card-head,.kq-actions,.kq-question-head{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap}.kq-chip{padding:4px 10px;background:#f1e9f2;color:#68446f;border:1px solid #dfcde4;border-radius:20px;font-size:10px;font-weight:800}.kq-sub{color:#776781;font-size:12px}.kq-dates{font-size:11px}.kq-card .kq-button{margin-top:12px}.kq-button,.kq-link{background:#50265b;color:white;border:1px solid #50265b;border-radius:11px;padding:12px 15px;font-weight:750;cursor:pointer;max-width:100%}.kq-button:hover,.kq-link:hover{filter:brightness(1.1);transform:translateY(-1px)}.kq-button.secondary{color:#482956;background:white;border-color:#baacd0}.kq-button.gold{background:#e9c778;color:#352244;border-color:#d3ac63}.kq-link{background:transparent;color:#53275b;border:0;padding:6px 0}.kq-button:disabled{opacity:.55;cursor:wait}.kq-empty{padding:24px;color:#685474;background:#fff;border:1px dashed #baa5c0;border-radius:14px}.kq-field{display:flex;flex-direction:column;gap:6px;color:#533d58;font-size:11px;font-weight:800;margin:12px 0;min-width:0}.kq-input{width:100%;min-width:0;border:1px solid #d9ccdf;background:#fff;color:#3f3146;padding:10px 12px;border-radius:10px;font:400 13px/1.5 system-ui}.kq-input:focus,.kq-button:focus-visible{outline:2px solid #b99756;outline-offset:2px}.kq-check{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.5;margin:14px 0}.kq-check input{margin-top:3px;accent-color:#60306b}.kq-editor-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.kq-question{margin:0}.kq-question-head{margin-bottom:12px}.kq-question .kq-field{margin:9px 0}.kq-question .kq-field span{font-size:10px}.kq-questions-area>h3,.kq-source h3{font:700 23px Georgia,serif;color:#4c2858}.kq-questions-area .kq-actions{margin:22px 0 26px;justify-content:flex-start}.kq-roster-line,.kq-skill{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #eee4f0;padding:10px 0}.kq-roster-line small{flex-basis:100%;color:#8b6877}.kq-progress{font-weight:700!important;color:#3a6f46!important}.kq-student-q legend{font-size:16px;font-weight:700;padding:4px 0;color:#3a2343}.kq-option{display:flex;align-items:center;gap:10px;margin:8px 0;padding:11px;border:1px solid #e8dce9;border-radius:10px;cursor:pointer}.kq-option:has(input:checked){background:#f6edf3;border-color:#965c92}.kq-option input{accent-color:#5b2c66}.kq-advice{background:#f3ecdc;border-left:3px solid #cfaa62;padding:13px 16px;border-radius:7px}.kq-score{font:700 33px Georgia,serif;color:#51235f}.kq-feedback-row{margin:10px 0;padding:14px 0;border-top:1px solid #e8dfea}.kq-feedback-row p{margin:4px 0}.kq-feedback-row blockquote{margin:6px 0;padding-left:12px;border-left:3px solid #dfc081;color:#635071}
@media(max-width:760px){.kq-overlay{background:#faf8fc}.kq-shell{height:100dvh}.kq-hero{padding:16px 18px}.kq-hero h1{font-size:25px}.kq-hero p{font-size:11px}.kq-close{width:35px;height:35px}.kq-content{padding:15px 13px 60px}.kq-intro{padding:17px}.kq-intro h2{font-size:24px}.kq-editor-list{grid-template-columns:1fr}.kq-card,.kq-source,.kq-question,.kq-roster,.kq-growth,.kq-feedback,.kq-student-q{padding:15px}.kq-actions{justify-content:flex-start}.kq-button{width:100%;text-align:center}.kq-option{font-size:13px}}
