/* GO SVT Maroc — interactive 3D anatomy lab */
#student-space-content .gs-3d-lab{margin:8px 0 24px;padding:clamp(14px,2vw,24px);border:1px solid #dce9df;border-radius:20px;background:linear-gradient(145deg,#f7fbf8,#edf5f0);color:#203c2d}
#student-space-content .gs-3d-intro{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}
#student-space-content .gs-3d-intro h3{margin:5px 0;color:#174b32;font-size:clamp(1.3rem,2.4vw,1.9rem)}
#student-space-content .gs-3d-intro p{margin:0;color:#587064;line-height:1.8}
#student-space-content .gs-3d-intro>span{font-size:2.6rem}
#student-space-content .gs-3d-workspace{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(250px,.8fr);gap:14px}
#student-space-content .gs-3d-view{position:relative;min-height:480px;overflow:hidden;border:1px solid #cbded1;border-radius:17px;background:radial-gradient(ellipse at 50% 38%,#284f40 0,#172e29 58%,#10201d 100%);touch-action:pan-y}
#student-space-content .gs-3d-canvas{display:block;width:100%;height:480px;outline:0;cursor:grab;touch-action:none}
#student-space-content .gs-3d-canvas:active{cursor:grabbing}
#student-space-content .gs-3d-loading{position:absolute;z-index:2;inset:0;display:grid;place-items:center;color:#e8f4eb;font-weight:700;pointer-events:none}
#student-space-content .gs-3d-loading[hidden]{display:none}
#student-space-content .gs-3d-controls{position:absolute;top:12px;inset-inline-end:12px;display:flex;gap:7px}
#student-space-content .gs-3d-controls button{width:39px;height:39px;border:1px solid #719181;border-radius:11px;background:#173a2ee8;color:#fff;font-size:1.35rem;cursor:pointer}
#student-space-content .gs-3d-hint{position:absolute;bottom:12px;inset-inline-start:14px;color:#d8e9de;font-size:.8rem}
#student-space-content .gs-3d-info{padding:20px;border:1px solid #d8e6dc;border-radius:16px;background:#fff}
#student-space-content .gs-3d-info-kicker{color:#43805a;font-size:.72rem;font-weight:900;letter-spacing:.08em}
#student-space-content .gs-3d-info h4{margin:7px 0;color:#174b32;font-size:1.45rem}
#student-space-content .gs-3d-info>p{min-height:80px;margin:0;color:#52665a;line-height:1.85}
#student-space-content .gs-3d-fact{display:grid;gap:5px;margin:14px 0;padding:12px;border-radius:12px;background:#f0f7f1;line-height:1.7}
#student-space-content .gs-3d-fact b{color:#246341}
#student-space-content .gs-3d-organ-list{margin-top:16px}
#student-space-content .gs-3d-organ-list> b{display:block;margin-bottom:9px}
#student-space-content .gs-3d-organ-list>div{display:flex;flex-wrap:wrap;gap:7px}
#student-space-content .gs-3d-organ-list button{padding:8px 11px;border:1px solid #d7e5da;border-radius:10px;background:#f8fbf8;color:#294a36;font:inherit;font-size:.88rem;cursor:pointer}
#student-space-content .gs-3d-organ-list button.is-active{border-color:#2e8051;background:#e5f3e9;color:#165b35;font-weight:800}
#student-space-content .gs-3d-disclaimer{margin:12px 0 0;color:#65796d;font-size:.82rem;line-height:1.7}
html.gs-dark #student-space-content .gs-3d-lab{background:#1d3026;border-color:#405c49;color:#e2eee5}
html.gs-dark #student-space-content .gs-3d-intro h3,html.gs-dark #student-space-content .gs-3d-info h4{color:#bce4c8}
html.gs-dark #student-space-content .gs-3d-intro p,html.gs-dark #student-space-content .gs-3d-info>p{color:#c0d0c5}
html.gs-dark #student-space-content .gs-3d-info{background:#263a2e;border-color:#405c49}
html.gs-dark #student-space-content .gs-3d-fact{background:#304936}
html.gs-dark #student-space-content .gs-3d-organ-list button{background:#293e31;border-color:#49634f;color:#e2eee5}
html.gs-dark #student-space-content .gs-3d-organ-list button.is-active{background:#285a3b;border-color:#72a982}
@media(max-width:760px){#student-space-content .gs-3d-workspace{grid-template-columns:1fr}#student-space-content .gs-3d-view{min-height:390px}#student-space-content .gs-3d-canvas{height:390px}#student-space-content .gs-3d-info>p{min-height:0}}
@media(prefers-reduced-motion:reduce){#student-space-content .gs-3d-lab *{scroll-behavior:auto!important}}

#student-space-content .gs-3d-system-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
#student-space-content .gs-3d-system-nav button{padding:10px 14px;border:1px solid #cfdfd3;border-radius:12px;background:#fff;color:#294a36;font:inherit;font-size:.9rem;cursor:pointer;transition:background .18s,border-color .18s}
#student-space-content .gs-3d-system-nav button.is-active{background:#dff0e4;border-color:#39845a;color:#155832;font-weight:800;box-shadow:inset 0 0 0 1px #39845a}
html.gs-dark #student-space-content .gs-3d-system-nav button{background:#293e31;border-color:#49634f;color:#e2eee5}
html.gs-dark #student-space-content .gs-3d-system-nav button.is-active{background:#285a3b;border-color:#72a982}

/* Interactive anatomical labels projected over the 3D model */
#student-space-content .gs-3d-label-layer{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden}
#student-space-content .gs-3d-organ-label{position:absolute;transform:translate(-50%,-50%);max-width:130px;padding:5px 9px;border:1px solid #b7e4c7;border-radius:999px;background:#f2fff6ed;color:#174b32;font:700 .76rem/1.35 inherit;white-space:nowrap;box-shadow:0 2px 10px #0004;pointer-events:auto;cursor:pointer}
#student-space-content .gs-3d-organ-label[hidden]{display:none}
#student-space-content .gs-3d-organ-label:focus-visible{outline:3px solid #f4c95d;outline-offset:2px}
#student-space-content .gs-3d-label-toggle{position:absolute;z-index:4;bottom:42px;inset-inline-end:12px;display:flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid #719181;border-radius:10px;background:#173a2ee8;color:#fff;font-size:.8rem;cursor:pointer}
#student-space-content .gs-3d-label-toggle input{accent-color:#8fdbac}
html.gs-dark #student-space-content .gs-3d-organ-label{background:#193b2deb;border-color:#6fae83;color:#e5f5e9}

/* Anatomy identification quiz */
#student-space-content .gs-3d-quiz{display:grid;gap:8px;margin-top:16px;padding:14px;border:1px solid #cfe2d4;border-radius:14px;background:#f2f8f3}
#student-space-content .gs-3d-quiz h5{margin:0;color:#205c39;font-size:1rem}
#student-space-content .gs-3d-quiz p{margin:0;line-height:1.7;color:#405d4a}
#student-space-content .gs-3d-quiz .gs-3d-quiz-prompt{padding:9px 11px;border-radius:10px;background:#e2f1e6;color:#174b32;font-weight:800}
#student-space-content .gs-3d-quiz .gs-3d-quiz-feedback{font-size:.88rem}
#student-space-content .gs-3d-quiz-start{justify-self:start;padding:9px 14px;border:0;border-radius:10px;background:#246b48;color:#fff;font:inherit;font-weight:800;cursor:pointer}
#student-space-content .gs-3d-quiz-start:focus-visible{outline:3px solid #e2ad3c;outline-offset:2px}
#student-space-content .gs-3d-label-toggle input:disabled{opacity:.55}
html.gs-dark #student-space-content .gs-3d-quiz{background:#263a2e;border-color:#49634f}
html.gs-dark #student-space-content .gs-3d-quiz h5,html.gs-dark #student-space-content .gs-3d-quiz p{color:#d5e8d9}
html.gs-dark #student-space-content .gs-3d-quiz .gs-3d-quiz-prompt{background:#304936;color:#e4f4e8}
@media(max-width:760px){#student-space-content .gs-3d-quiz-start{width:100%;justify-self:stretch}}


/* Progressive challenge report and controls */
#student-space-content .gs-3d-quiz-progress{font-size:.82rem;font-weight:800;color:#427454!important}
#student-space-content .gs-3d-quiz-finish{justify-self:start;padding:8px 12px;border:1px solid #9b7050;border-radius:10px;background:#fff7ec;color:#75451f;font:inherit;font-weight:800;cursor:pointer}
#student-space-content .gs-3d-quiz-finish[hidden]{display:none}
#student-space-content .gs-3d-quiz-start:disabled{opacity:.55;cursor:wait}
#student-space-content .gs-3d-quiz-report{display:grid;gap:5px;margin-top:8px;padding-top:10px;border-top:1px solid #cbded0}
#student-space-content .gs-3d-quiz-report h6{margin:8px 0 2px;color:#205c39;font-size:.9rem}
#student-space-content .gs-3d-quiz-report p{margin:0;padding:5px 8px;border-radius:8px;font-size:.82rem}
#student-space-content .gs-3d-quiz-report .is-mastered{background:#e5f3e9;color:#205c39}
#student-space-content .gs-3d-quiz-report .needs-review{background:#fff1df;color:#75451f}
html.gs-dark #student-space-content .gs-3d-quiz-progress{color:#a9d7b6!important}
html.gs-dark #student-space-content .gs-3d-quiz-finish{background:#493b2c;border-color:#8e7456;color:#ffe4c2}
html.gs-dark #student-space-content .gs-3d-quiz-report{border-color:#49634f}
html.gs-dark #student-space-content .gs-3d-quiz-report h6{color:#bce4c8}
html.gs-dark #student-space-content .gs-3d-quiz-report .is-mastered{background:#294d36;color:#d8f0df}
html.gs-dark #student-space-content .gs-3d-quiz-report .needs-review{background:#51402c;color:#ffe1b7}
@media(max-width:760px){#student-space-content .gs-3d-quiz-finish{width:100%;justify-self:stretch}}


#student-space-content .gs-3d-review-tip{display:block;margin:0 0 7px;padding:6px 9px;border-inline-start:3px solid #c28a45;border-radius:6px;background:#fff7ec;color:#704b27;font-size:.78rem;line-height:1.65}
html.gs-dark #student-space-content .gs-3d-review-tip{background:#493b2c;color:#ffe4c2;border-inline-start-color:#d5a66c}


/* Targeted smart review after the progressive anatomy challenge */
#student-space-content .gs-3d-smart-review{display:grid;gap:9px;margin-top:14px;padding:14px;border:1px solid #d6c69e;border-radius:13px;background:#fffaf0}
#student-space-content .gs-3d-smart-review h6{margin:0;color:#76511f;font-size:.98rem}
#student-space-content .gs-3d-smart-review>p{margin:0;line-height:1.7}
#student-space-content .gs-3d-review-progress{font-size:.82rem;font-weight:800;color:#8a672e!important}
#student-space-content .gs-3d-review-report{display:grid;gap:6px;margin-top:8px}
#student-space-content .gs-3d-review-report p{margin:0;padding:8px 10px;border-radius:8px;font-size:.84rem}
#student-space-content .gs-3d-review-report .is-improved{background:#e5f3e9;color:#205c39}
#student-space-content .gs-3d-review-report .still-review{background:#fff1df;color:#75451f}
html.gs-dark #student-space-content .gs-3d-smart-review{background:#403827;border-color:#796441}
html.gs-dark #student-space-content .gs-3d-smart-review h6{color:#f0d29a}
html.gs-dark #student-space-content .gs-3d-review-progress{color:#f0d29a!important}
html.gs-dark #student-space-content .gs-3d-review-report .is-improved{background:#294d36;color:#d8f0df}
html.gs-dark #student-space-content .gs-3d-review-report .still-review{background:#51402c;color:#ffe1b7}
@media(max-width:760px){#student-space-content .gs-3d-smart-review .gs-3d-quiz-start{width:100%;justify-self:stretch}}

/* Free anatomy assessment */
#student-space-content .gs-3d-free-test{display:grid;gap:9px;margin-top:16px;padding:14px;border:1px solid #b8c9d8;border-radius:13px;background:#f2f8fc}
#student-space-content .gs-3d-free-test h6{margin:0;color:#244d6b;font-size:.98rem}
#student-space-content .gs-3d-free-test>p{margin:0;line-height:1.7}
#student-space-content .gs-3d-free-filter{width:100%;min-height:42px;padding:8px 10px;border:1px solid #9eb4c7;border-radius:9px;background:#fff;color:#203747;font:inherit}
#student-space-content .gs-3d-free-progress{font-size:.84rem;font-weight:800;color:#315f80}
#student-space-content .gs-3d-free-report{display:grid;gap:6px;margin-top:8px}
#student-space-content .gs-3d-free-report p{margin:0;padding:9px 10px;border-radius:8px;font-size:.86rem}
#student-space-content .gs-3d-free-report .is-strong{background:#e2f2e8;color:#205c39}
#student-space-content .gs-3d-free-report .is-progress{background:#e8f0fb;color:#28547c}
#student-space-content .gs-3d-free-report .needs-practice{background:#fff0df;color:#75451f}
html.gs-dark #student-space-content .gs-3d-free-test{background:#263b49;border-color:#526f82}
html.gs-dark #student-space-content .gs-3d-free-test h6,html.gs-dark #student-space-content .gs-3d-free-progress{color:#c5e4fa}
html.gs-dark #student-space-content .gs-3d-free-filter{background:#1c2b35;color:#e8f2f8;border-color:#587184}
html.gs-dark #student-space-content .gs-3d-free-report .is-strong{background:#294d36;color:#d8f0df}
html.gs-dark #student-space-content .gs-3d-free-report .is-progress{background:#294359;color:#d5eaff}
html.gs-dark #student-space-content .gs-3d-free-report .needs-practice{background:#51402c;color:#ffe1b7}
@media(max-width:760px){#student-space-content .gs-3d-free-test .gs-3d-quiz-start{width:100%}}
