/* Stage 16: fully scoped question studio. */
.psq-root{--psq-ink:#30223f;--psq-gold:#eab76c;--psq-purple:#632e80;line-height:1.95;max-width:100%}
.psq-root *, .psq-root *:before, .psq-root *:after{box-sizing:border-box}
.psq-root .psq-hero{background:linear-gradient(120deg,#2f1753,#612b73 65%,#89567c);color:#fff;border:1px solid #b98c66;}
.psq-root .psq-hero h2,.psq-root .psq-hero p{color:#fff}
.psq-root .psq-curr-card{background:radial-gradient(circle at 40% 20%,#62277f,#2d153f 90%);min-height:260px;padding:35px 24px;border:3px double #e9bf80;border-radius:28px;color:white;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 12px 35px rgba(48,15,69,.18);overflow-wrap:anywhere}
.psq-root .psq-curr-card p{font-size:clamp(1.15rem,2.3vw,1.72rem);line-height:2;color:#fff;margin:12px 0;max-width:750px;font-weight:800}
.psq-root .psq-heart{font-size:42px;color:#f9bdd3;line-height:1}
.psq-root .psq-quiet{color:#e8cbb2;font-size:.92rem}
.psq-root .psq-controls{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
.psq-root button{font:inherit;cursor:pointer;transition:background .14s ease,border-color .14s ease}
.psq-root .psq-controls button,.psq-root .psq-result button,.psq-root .psq-select{border:1px solid #ac7db3;border-radius:12px;background:white;color:#54266c;padding:9px 16px;font-weight:700;min-height:42px}
.psq-root .psq-controls button:hover,.psq-root .psq-result button:hover,.psq-root .psq-select:hover{background:#f4e5f5}
.psq-root .psq-controls button.psq-primary{background:#723b8d;color:white;border-color:#723b8d}
.psq-root button:focus-visible,.psq-root input:focus-visible,.psq-root select:focus-visible{outline:3px solid #d490ad;outline-offset:2px}
.psq-root .psq-status{background:#fbf4f8;padding:10px 15px;border-right:3px solid #ae6c94;border-radius:10px;font-size:.92rem}
.psq-root .psq-search-panel{margin-top:25px;padding:20px;border:1px solid #e5cfe7;background:#fffafd;border-radius:20px}
.psq-root .psq-search-panel>label{display:block;font-weight:750;margin:8px 0 3px}
.psq-root input[type=search],.psq-root input[type=text],.psq-root select{width:100%;border:1px solid #c4a5cf;min-height:47px;padding:10px 12px;border-radius:10px;font-family:inherit;background:#fff;color:#332239;font-size:1rem}
.psq-root .psq-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-height:465px;overflow-y:auto;margin-top:15px}
.psq-root .psq-result{border:1px solid #e9d7e9;border-radius:14px;background:#fff;padding:14px;min-width:0}
.psq-root .psq-result p{margin:0 0 10px}
.psq-root .psq-card-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:24px;align-items:start}
.psq-root .psq-options{display:grid;gap:12px}
.psq-root .psq-options label{display:block;font-weight:700}
.psq-root .psq-options label select,.psq-root .psq-options label input{margin-top:5px}
.psq-root label.psq-check{display:flex;gap:9px;align-items:center;font-weight:600;line-height:1.55}
.psq-root label.psq-check input{width:19px;height:19px;accent-color:#733a86;flex-shrink:0}
.psq-root .psq-preview-wrap{position:relative;justify-self:center;width:min(100%,380px);padding:6px;background:#2c1645;border:2px solid #cda77a;border-radius:20px;box-shadow:0 10px 30px rgba(32,7,60,.2);text-align:center}
.psq-root #psq-preview{width:100%;height:auto;display:block;border-radius:13px}
.psq-root .psq-safe-overlay{pointer-events:none;position:absolute;top:12%;right:7%;left:7%;height:76%;border:2px dashed rgba(248,232,177,.75);border-radius:18px;color:#fff;text-align:center;font-size:.7rem}
.psq-root .psq-safe-overlay span{background:rgba(23,15,42,.55);padding:3px 7px;border-radius:4px}
.psq-root .psq-preview-caption{color:#f8e5ff;font-size:.75rem;padding:5px;margin:0}
.psq-root .psq-help{font-size:.88rem;color:#65556e}
.psq-root .psq-library-section{margin:12px 0;border:1px solid #d8bad8;border-radius:18px;padding:10px 17px;background:#fff}
.psq-root .psq-library-section summary{cursor:pointer;font-weight:800;font-size:1.15rem;color:#57266b;list-style-position:inside;}
.psq-root .psq-library-section summary small{font-size:.85rem;color:#695b6c;margin-right:12px;font-weight:500}
.psq-root .psq-library-list{padding-right:23px;margin:12px 0}
.psq-root .psq-library-list li{padding:8px 4px 8px 0;border-bottom:1px dashed #ead9ea;}
.psq-root .psq-select{font-size:.79rem;min-height:32px;padding:4px 12px;margin-right:7px}
.psq-root .psq-guide h3{font-size:1.18rem;border-right:3px solid #b776a0;padding-right:12px;margin:26px 0 10px;color:#502a68}
.psq-root .psq-guide p{max-width:90ch;line-height:2.1;margin-bottom:18px}
.psq-root .psq-guide details{border:1px solid #e7d8e8;background:#fff;border-radius:12px;padding:8px 12px;margin:10px 0}
.psq-root .psq-guide summary{cursor:pointer;font-weight:750}
@media(max-width:780px){.psq-root .psq-card-grid{grid-template-columns:minmax(0,1fr)}.psq-root .psq-results{grid-template-columns:minmax(0,1fr)}.psq-root .psq-search-panel{padding:14px}.psq-root .psq-controls button{flex:1 1 42%}.psq-root .psq-preview-wrap{max-width:340px}}
@media(max-width:430px){.psq-root .psq-curr-card{padding:22px 14px;min-height:235px}.psq-root .psq-controls button{font-size:.86rem;padding:8px}.psq-root .psq-library-section{padding:10px}.psq-root .psq-select{display:block;margin:5px 0}.psq-root .psq-guide h3{font-size:1.05rem}}
@media(prefers-reduced-motion:reduce){.psq-root *{scroll-behavior:auto!important;transition:none!important}}


/* 22.5 — educational disclosure cards, scoped to the project components. */
.psx-root .pse-guide,.psx-root .pse-practical{margin:10px 0;border:1px solid #e6d2eb;border-radius:12px;background:#fdf9ff;color:#4b365b;overflow:hidden;line-height:1.9;min-width:0}
.psx-root .pse-guide summary,.psx-root .pse-practical summary{padding:10px 13px;cursor:pointer;font-weight:750;color:#743b7e;list-style-position:inside}
.psx-root .pse-guide[open] summary,.psx-root .pse-practical[open] summary{border-bottom:1px solid #ebddef;background:#f8f0fb}
.psx-root .pse-guide p,.psx-root .pse-practical p{padding:0 13px;margin:9px 0 11px;line-height:1.9;overflow-wrap:anywhere}
.psx-root .pse-guide strong,.psx-root .pse-practical strong{color:#6c3678}
.psx-root .pse-context{border-right:4px solid #b773a3;background:#fcf5fd;border-radius:9px;padding:12px 15px;color:#63496f;line-height:1.85}
.psx-root .pse-method-card{border-right:4px solid #b773a3}
.psx-root .pse-next{color:#6e407d;font-weight:650}
.psq-root .pse-topic-pick{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;background:#fcf7ff;border:1px solid #e4cceb;border-radius:14px;padding:15px;margin:18px 0;min-width:0}
.psq-root .pse-topic-pick h3,.psq-root .pse-topic-pick>p{width:100%;margin:0}
.psq-root .pse-topic-pick>p{line-height:1.85}
.psq-root .pse-topic-pick label{flex:1 1 250px;display:flex;flex-direction:column;gap:6px;min-width:0;font-weight:700;color:#704b7e}
.psq-root .pse-topic-pick select{background:white;color:#44304f;border:1px solid #d8c3df;border-radius:9px;padding:9px;min-height:42px;max-width:100%;width:100%}
.psq-root .pse-topic-pick button{flex:0 1 auto;min-height:42px}
.psq-root .pse-topic-tip{background:white;padding:10px;border-radius:9px;overflow-wrap:anywhere}
@media(max-width:580px){.psq-root .pse-topic-pick{display:block}.psq-root .pse-topic-pick label,.psq-root .pse-topic-pick button{display:block;width:100%;margin-top:10px}.psx-root .pse-guide p,.psx-root .pse-practical p{padding:0 10px}}
@media print{.psx-root .pse-guide,.psx-root .pse-practical{break-inside:avoid}.psx-root .pse-guide summary,.psx-root .pse-practical summary{color:#333}.psq-root .pse-topic-pick{display:none}}
