.sg-test .st-test-scroll{overflow:auto!important;min-height:0}
.sg-test .st-test-layout{height:auto!important;max-width:1600px;grid-template-columns:160px minmax(0,1fr);gap:24px;align-items:start!important}
.sg-test .st-test-main{height:auto!important;overflow:visible!important;padding:0 12px}
.sg-test .st-question-nav{position:sticky;top:24px;height:auto;max-height:none;overflow:visible}
.sg-test.st-is-setup .st-test-layout,.sg-test.st-is-result .st-test-layout{display:block}
.sg-test.st-is-setup .st-test-main,.sg-test.st-is-result .st-test-main{max-width:880px;margin:auto;padding:30px 32px}
.sg-test.st-is-result .st-question-nav{display:none}
.sg-test .sg-area h1{font-size:27px;line-height:1.35;font-weight:500;color:#e8edef;margin:0 0 24px}
.sg-test .sg-workspace{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:28px;align-items:start}
.sg-test .sg-source{position:sticky;top:22px;min-width:0}
.sg-test .sg-source-head{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#94a8b1;font-size:12px;margin-bottom:12px}
.sg-test .sg-enlarge{display:flex;align-items:center;gap:7px;padding:6px 0;border:0;background:transparent;color:#ded5a2;font-size:12px}
.sg-test .sg-enlarge .ui-icon{width:16px;height:16px}
.sg-test .sg-paper{background:white;border-radius:8px;padding:10px;overflow:hidden}
.sg-test .sg-paper img{display:block;width:100%;height:auto;max-width:100%}
.sg-test .sg-answer-panel{min-width:0;border:1px solid #ffffff12;background:#ffffff02;border-radius:10px;padding:20px 18px}
.sg-test .sg-answer-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}
.sg-test .sg-answer-heading h2{font-size:18px;font-weight:500;margin:0}
.sg-test .sg-filled{font-size:12px;color:#91a5ae;white-space:nowrap}
.sg-test .sg-prompt{font-size:13px;color:#9baeb8;line-height:1.6;margin:12px 0 22px}
.sg-test .sg-field{margin:0 0 25px;min-width:0}
.sg-test .sg-field fieldset{padding:0;border:0;min-width:0;margin:0}
.sg-test .sg-field-label{display:flex;align-items:baseline;gap:8px;padding:0;font-size:14px;line-height:1.5;margin:0 0 12px;width:100%;color:#e8edef}
.sg-test .sg-field-no{color:#9ed9d9;font-size:12px;flex:none}
.sg-test .sg-drug-input{width:100%;min-width:0;box-sizing:border-box;height:46px;padding:11px 12px;border-radius:8px;border:1px solid #4b626c;background:#171c20;color:#e8edef;font:15px/1.5 Arial,sans-serif}
.sg-test .sg-drug-input::placeholder{color:#849aa5}
.sg-test .sg-drug-input:focus-visible{outline:2px solid #9ed9d9;outline-offset:3px}
.sg-test .sg-correct .sg-drug-input{border-color:#76b397}
.sg-test .sg-incorrect .sg-drug-input{border-color:#bc7f7f}
.sg-test .sg-answer-panel .st-answer-option{min-height:54px;padding:12px;gap:10px;margin-bottom:8px}
.sg-test .sg-answer-panel .st-answer-letter{width:27px;height:27px;font-size:12px}
.sg-test .sg-answer-panel .st-answer-label{font-size:14px;line-height:1.5;min-width:0;overflow-wrap:anywhere}
.sg-test .sg-multiple-hint{font-size:12px;color:#91a5ae;margin:0 0 10px}
.sg-test .sg-field-feedback{font-size:13px;line-height:1.6;color:#aebfc7;margin-top:12px;border-left:2px solid #76b397;padding-left:12px}
.sg-test .sg-field-feedback strong{color:#b6dec6;font-weight:500}
.sg-test .sg-incorrect .sg-field-feedback{border-color:#bc7f7f}
.sg-test .sg-incorrect .sg-field-feedback strong{color:#e1bdbd}
.sg-test .sg-field-feedback p{margin:5px 0}
.sg-test .sg-check{display:flex;justify-content:space-between;width:100%;min-height:46px;padding:11px 13px;border:1px solid #ded5a2;border-radius:8px;background:transparent;color:#ded5a2;font-size:14px}
.sg-test .sg-check:disabled{opacity:.4}
.sg-test .sg-task-picker{margin-top:24px}
.sg-test .sg-pick-group{border:0;border-top:1px solid #ffffff15;margin:0 0 24px;padding:18px 0 0;min-width:0}
.sg-test .sg-pick-group legend{font-size:16px;color:#abd9da;padding:0 12px 0 0}
.sg-test .sg-pick-actions{display:flex;gap:20px;margin:0 0 10px;flex-wrap:wrap}
.sg-test .sg-pick-actions button{min-height:40px;border:0;background:transparent;padding:6px 0;color:#ded5a2;font-size:12px}
.sg-test .sg-pick-task{display:flex;align-items:center;gap:12px;padding:12px 0;min-height:48px;border-bottom:1px solid #ffffff0a;font-size:14px;line-height:1.5}
.sg-test .sg-pick-task input{flex:none;width:18px;height:18px;min-height:0;accent-color:#9ed9d9}
.sg-test .sg-task-no{display:grid;place-items:center;flex:none;width:32px;height:32px;border:1px solid #ffffff15;border-radius:7px;color:#9fbec5;font-variant-numeric:tabular-nums}
.sg-test .sg-selection-count{font-size:13px;color:#a7c9cd;margin:0}
.sg-test .sg-result-list{display:grid;gap:10px;margin-top:28px}
.sg-test .sg-result-list button{display:flex;justify-content:space-between;align-items:center;gap:20px;text-align:left;padding:16px 18px;border:1px solid #ffffff15;border-radius:9px;background:#ffffff02;color:#c5d2d7;font-size:14px;line-height:1.5}
.sg-test .sg-result-list button strong{white-space:nowrap;font-size:13px;font-weight:500;color:#b6dec6}
.sg-test .sg-result-list button.sg-incorrect strong{color:#e1bdbd}
.sg-test.sg-expanded .sg-workspace{grid-template-columns:1fr}
.sg-test.sg-expanded .sg-source{position:static}
.sg-test.sg-expanded .sg-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.sg-test .st-footer-summary{font-size:13px;color:#91a5ae}
.sg-test .st-test-next .ui-icon{width:18px;height:18px}
.sg-test [hidden]{display:none!important}
.sg-test .sg-block-plan{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:30px 0 36px}
.sg-test .sg-block-plan>div{display:flex;flex-direction:column;gap:10px;padding:18px 0;border-top:1px solid #9ed9d933}
.sg-test .sg-block-plan span{color:#ded5a2;font-size:12px;letter-spacing:.12em}
.sg-test .sg-block-plan strong{font-size:17px;font-weight:500;color:#e8edef}
.sg-test .sg-block-plan b{font-size:14px;font-weight:400;color:#9ed9d9}
.sg-test .sg-block-plan small{color:#91a5ae;font-size:12px}
.sg-test .sg-desktop-dots{display:block}
.sg-test .sg-nav-block{margin:0 0 24px}
.sg-test .sg-nav-block>span{display:block;font-size:11px;color:#9baeb8;line-height:1.5;margin-bottom:10px}
.sg-test .sg-nav-block>div{display:grid;grid-template-columns:repeat(3,40px);gap:8px}
.sg-test .sg-without-image{display:block;max-width:960px}
.sg-test .sg-matching .sg-field{display:grid;grid-template-columns:minmax(180px,1fr) minmax(220px,1.2fr);gap:14px 24px;align-items:center;border-top:1px solid #ffffff12;padding:18px 0;margin:0}
.sg-test .sg-matching .sg-field-label{margin:0}
.sg-test .sg-matching .sg-field-feedback{grid-column:1/-1}
.sg-test .sg-description{font-size:18px;color:#d6e1e5;line-height:1.85;margin:24px 0 32px}
.sg-test .sg-answer-panel{overflow:visible}
.sg-test .sg-field{margin-bottom:20px}
.sg-test .sg-field-label{margin-bottom:8px}
.sg-test .sg-block-results{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:28px 0}
.sg-test .sg-block-results>div{border-top:1px solid #ffffff20;padding-top:16px;display:flex;flex-direction:column;gap:10px;color:#91a5ae;font-size:13px}
.sg-test .sg-block-results strong{color:#ded5a2;font-size:24px;font-weight:400}
/* Liquid Glass-style controls scoped to the final test. */
.sg-test .custom-select{position:relative;width:100%;min-width:0}
.sg-test .select-trigger{min-height:48px;width:100%;padding:12px 15px;border:1px solid #c4e0e027;border-radius:17px;background:linear-gradient(145deg,#d5ffff0e,#ffffff04);box-shadow:inset 0 1px 0 #ffffff10;color:#e0eaec;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:12px;font:14px/1.5 Arial,sans-serif;transition:border-color .18s,background .18s}
.sg-test .select-trigger .select-value{white-space:normal;overflow-wrap:anywhere}
.sg-test .select-trigger .ui-icon{width:17px;height:17px;flex:none;color:#9ed9d9;transform:rotate(90deg);transition:transform .2s}
.sg-test .select-open>.select-trigger{border-color:#ded5a27a;background:#d7eeee0c}
.sg-test .select-open>.select-trigger .ui-icon{transform:rotate(270deg)}
.sg-test .select-trigger:focus-visible,.sg-test .select-option:focus-visible{outline:2px solid #ded5a2;outline-offset:3px}
.sg-test .select-options{position:absolute;z-index:80;top:calc(100% + 8px);left:0;right:0;width:100%;max-width:100%;box-sizing:border-box;min-width:0;max-height:280px;overflow:auto;overscroll-behavior:contain;padding:7px;border:1px solid #d4eeee36;border-radius:22px;background:linear-gradient(135deg,#344548e8,#1b282bea);backdrop-filter:blur(28px) saturate(145%);-webkit-backdrop-filter:blur(28px) saturate(145%);box-shadow:0 14px 38px #0006,inset 0 1px 0 #ffffff1c;scrollbar-width:thin;scrollbar-color:#a2c9cb55 transparent}
.sg-test .select-up .select-options{top:auto;bottom:calc(100% + 8px)}
.sg-test .select-options [role=option]{position:relative;display:flex;align-items:center;width:100%;min-height:44px;padding:10px 37px 10px 12px;border:0;border-radius:14px;background:transparent;color:#e6edef;text-align:left;white-space:normal;font:14px/1.5 Arial,sans-serif;cursor:pointer}
.sg-test .select-options [role=option]:hover,.sg-test .select-options [role=option]:focus-visible{background:#d7eeee12}
.sg-test .select-options [aria-selected=true]{background:#b9dfda18;color:#ded5a2}
.sg-test .select-options [aria-selected=true]::after{content:'✓';position:absolute;right:13px;top:50%;transform:translateY(-50%);font-size:17px;color:#ded5a2}
.sg-test .select-trigger:disabled{opacity:.7;cursor:default}
.sg-test .sg-correct .select-trigger{border-color:#76b39799}
.sg-test .sg-incorrect .select-trigger{border-color:#bc7f7f99}
@media(prefers-reduced-transparency:reduce){.sg-test .select-options{background:#253336;backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(max-width:760px){.sg-test .sg-block-plan{gap:12px}.sg-test .sg-block-plan strong{font-size:14px}.sg-test .sg-matching .sg-field{grid-template-columns:1fr;gap:12px}.sg-test .sg-description{font-size:16px}.sg-test .select-trigger,.sg-test .select-options [role=option]{font-size:16px}.sg-test .sg-block-results{gap:10px}.sg-test .sg-block-results>div{font-size:11px}}
@media(max-width:1050px){.sg-test .sg-workspace{grid-template-columns:1fr}.sg-test .sg-source{position:static}}
@media(max-width:760px){.sg-test .st-test-layout{display:block;padding:20px}.sg-test .st-question-nav{display:none}.sg-test .st-test-main{padding:0}.sg-test.st-is-setup .st-test-main,.sg-test.st-is-result .st-test-main{padding:0}.sg-test .sg-area h1{font-size:24px}.sg-test .sg-answer-panel{padding:18px 14px}.sg-test .sg-drug-input{font-size:16px}.sg-test.sg-expanded .sg-fields{grid-template-columns:1fr;gap:0}.sg-test .st-test-navigation>button{font-size:13px;min-width:0}.sg-test .st-test-next{min-width:150px}.sg-test .sg-result-list button{align-items:flex-start}}

/* Text and matching tasks share the same outer surface as ordinary questions. */
.sg-test .sg-without-image{max-width:none}
.sg-test .sg-without-image .sg-answer-panel{border:0;background:transparent;border-radius:0;padding:0}
.sg-test .sg-area h1{font-size:clamp(22px,2vw,28px);line-height:1.5}
.sg-test .sg-answer-panel{padding:24px;border-radius:16px;border-color:#9dbcc320;background:#ffffff03}
.sg-test .sg-prompt{font-size:15px;line-height:1.7}
.sg-test .sg-field{margin-bottom:24px}
.sg-test .sg-drug-input,.sg-test .select-trigger{border-radius:12px;min-height:48px;font:inherit;font-size:15px}
.sg-test .sg-matching .sg-field{grid-template-columns:minmax(0,1fr);gap:10px;padding:20px 0}
.sg-test .sg-field-label{font-size:15px;line-height:1.6}
.sg-test .sg-workspace:not(.sg-without-image){grid-template-columns:minmax(0,1.25fr) minmax(320px,1fr);gap:24px}
.sg-test .sg-paper{padding:12px;background:#11181c;border:1px solid #9dbcc320;border-radius:14px}
.sg-test .sg-paper img{max-height:65dvh;object-fit:contain}
.sg-test.sg-expanded .sg-workspace{grid-template-columns:1fr}
.sg-test.sg-expanded .sg-paper img{max-height:none}
.sg-test .custom-select.select-open{z-index:auto}
.sg-test .select-options,.sg-test .select-up .select-options{position:static;inset:auto;width:100%;max-height:none!important;overflow:visible;overscroll-behavior:auto;margin-top:8px;border-radius:12px;background:#253338;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;padding:6px}
.sg-test .select-options [role=option]{border-radius:8px;min-height:44px;font:inherit;font-size:15px;line-height:1.6;padding:10px 36px 10px 12px}
@media(min-width:1400px){.sg-test .select-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.sg-test .select-options[hidden]{display:none!important}}
@media(max-width:1050px){.sg-test .sg-workspace:not(.sg-without-image){grid-template-columns:1fr}.sg-test .sg-source{position:static}}
@media(max-width:760px){
 .sg-test .sg-answer-panel{padding:20px 16px;border-radius:14px}
 .sg-test .sg-paper{padding:8px}
 .sg-test .sg-paper img{max-height:none}
 .sg-test .select-trigger,.sg-test .select-options [role=option],.sg-test .sg-drug-input{font-size:16px}
 .sg-test .sg-matching .sg-field{gap:10px}
}

.sg-test .sg-without-image .sg-answer-heading h2{display:none}
.sg-test .sg-without-image .sg-answer-heading{justify-content:flex-end;margin-bottom:12px}


/* Desktop workspaces use the window width, including medium browser panes. */
.sg-test .sg-without-image{width:100%}
.sg-test:not(.st-is-setup):not(.st-is-result) .sg-area:has(.sg-without-image){max-width:none}
.sg-test .custom-select{container-type:inline-size;container-name:sg-answer-list}
.sg-test .select-options{display:block}
.sg-test .select-options[hidden]{display:none!important}
@container sg-answer-list (min-width:480px){
 .sg-test .select-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
}
@media(min-width:900px){
 .sg-test:not(.st-is-setup):not(.st-is-result) .st-test-layout{width:100%;max-width:1600px;box-sizing:border-box;grid-template-columns:136px minmax(0,1fr);gap:24px;padding:24px 28px 28px}
 .sg-test .st-question-nav{width:136px}
 .sg-test .sg-nav-block>div{grid-template-columns:repeat(3,36px);gap:7px}
 .sg-test .sg-workspace:not(.sg-without-image){display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,1fr);gap:20px}
 .sg-test .sg-source{position:sticky;top:16px}
 .sg-test .sg-answer-panel{padding:20px}
 .sg-test .sg-without-image .sg-answer-panel{padding:0}
 .sg-test .sg-matching .sg-field{grid-template-columns:minmax(180px,.7fr) minmax(0,1.3fr);gap:12px 24px;align-items:start}
 .sg-test .sg-matching .sg-field-label{padding-top:12px}
 .sg-test .sg-matching .sg-field-feedback{grid-column:1/-1}
 .sg-test:not(.st-is-setup):not(.st-is-result) .st-footer-inner{width:100%;max-width:1544px;box-sizing:border-box;padding-left:160px}
 .sg-test.sg-expanded .sg-workspace:not(.sg-without-image){grid-template-columns:1fr}
 .sg-test.sg-expanded .sg-source{position:static}
}
@media(min-width:761px) and (max-width:899px){
 .sg-test:not(.st-is-setup):not(.st-is-result) .st-test-layout{grid-template-columns:120px minmax(0,1fr);gap:18px;padding:20px}
 .sg-test .st-question-nav{width:120px}
 .sg-test .sg-nav-block>div{grid-template-columns:repeat(3,32px);gap:6px}
 .sg-test:not(.st-is-setup):not(.st-is-result) .st-footer-inner{padding-left:138px}
}

/* Flat graphic-test layout: no nested task cards or decorative surfaces. */
.sg-test:not(.st-is-setup):not(.st-is-result) .sg-area:has(.sg-without-image),
.sg-test .sg-answer-panel,
.sg-test .sg-without-image .sg-answer-panel{max-width:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.sg-test .sg-paper{padding:0;border:0;border-radius:0;background:transparent}
.sg-test .sg-paper img{border-radius:0}
.sg-test .select-trigger{border-radius:8px;background:#ffffff03;box-shadow:none}
.sg-test .select-open>.select-trigger{background:#ffffff05}
.sg-test .select-options,.sg-test .select-up .select-options{padding:4px 0;border:0;border-left:2px solid #9ed9d940;border-radius:0;background:transparent;box-shadow:none}
.sg-test .select-options [role=option]{border-radius:0;background:transparent;padding-left:14px}
.sg-test .select-options [role=option]:hover,.sg-test .select-options [role=option]:focus-visible{background:#ffffff06}
.sg-test .select-options [aria-selected=true]{background:#9ed9d90a}
.sg-test .sg-matching .sg-field{border:0}
.sg-test .sg-check{width:auto;min-width:180px;padding:10px 16px;border-color:#ded5a24d;border-radius:8px}
@media(min-width:900px){
 .sg-test .sg-without-image{max-width:1120px}
 .sg-test .sg-description{font-size:17px;line-height:1.8;margin-top:12px}
}

.sg-test .sg-advanced{grid-column:1/-1;border-top:1px solid #ffffff18;padding:16px 0;margin:4px 0 0;min-width:0}
.sg-test .sg-advanced>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;list-style:none;min-height:44px;font-size:13px;letter-spacing:.06em;color:#a7c8cc;cursor:pointer}
.sg-test .sg-advanced>summary::-webkit-details-marker{display:none}
.sg-test .sg-advanced>summary .ui-icon{width:16px;height:16px;transform:rotate(90deg);transition:transform 180ms}
.sg-test .sg-advanced[open]>summary .ui-icon{transform:rotate(270deg)}
.sg-test .sg-block-mode{border:0;padding:12px 0 0;margin:0;display:flex;flex-wrap:wrap;gap:12px}
.sg-test .sg-block-mode legend{font-size:14px;color:#c7d8dc;margin-bottom:8px}
.sg-test .sg-block-mode label{display:flex;align-items:center;gap:9px;min-height:44px;padding:10px 14px;border:1px solid #ffffff20;border-radius:8px;font-size:14px;cursor:pointer}
.sg-test .sg-block-mode label:has(input:checked){border-color:#8dcfd099;background:#8dcfd00a;color:#c8eeee}
.sg-test .sg-block-mode input{width:16px;height:16px;min-height:0;margin:0;accent-color:#9ed9d9;flex:none}
.sg-test .sg-advanced>p{font-size:12px;color:#91a5ae;line-height:1.6;margin:14px 0 0}
.sg-test .sg-plan-inactive{opacity:.45}
.sg-test .st-test-setup:has(.sg-specific-section[hidden]) .sg-feedback-section{grid-column:1/-1}
@media(max-width:760px){.sg-test .sg-block-mode{display:grid;grid-template-columns:1fr;width:100%}.sg-test .sg-block-mode legend{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.sg-test .sg-advanced>summary .ui-icon{transition:none}}

.sg-test .sg-advanced>summary::before{content:none}

.sg-test .sg-count-settings{margin-top:20px}
.sg-test .sg-count-settings>label{display:block;font-size:14px;color:#d0dfe2;margin-bottom:10px}
.sg-test .sg-count-input-row{display:flex;align-items:center;gap:12px}
.sg-test .sg-block-count{box-sizing:border-box;width:120px;min-height:46px;padding:10px 12px;border:1px solid #6a858e;border-radius:8px;background:#171c2070;color:#e8edef;font:inherit;font-size:20px}
.sg-test .sg-block-count[aria-invalid=true]{border-color:#c77f7f}
.sg-test .sg-count-all{min-height:44px;padding:10px 18px;border:1px solid #9ed9d940;border-radius:8px;background:transparent;color:#b7d8d9;font-size:14px}
.sg-test .sg-count-note{margin:9px 0 0;font-size:12px;color:#91a5ae;line-height:1.5}
.sg-test .sg-block-results{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}

/* Selection is shown by the whole button; native radios remain keyboard accessible. */
.sg-test .sg-block-mode label{position:relative;justify-content:center;transition:color 240ms,border-color 240ms,background-color 240ms}
.sg-test .sg-block-mode input{position:absolute;width:1px;height:1px;min-width:0;min-height:0;padding:0;margin:0;border:0;clip-path:inset(50%);overflow:hidden;opacity:0}
.sg-test .sg-block-mode label:has(input:checked){border-color:#9ed9d9a6;background:#9ed9d912;color:#d4eeee}
.sg-test .sg-block-mode label:has(input:focus-visible){outline:2px solid #9ed9d9;outline-offset:3px}
.sg-test .sg-advanced{box-sizing:border-box}
.sg-test .sg-advanced>summary .ui-icon{transition:transform 480ms cubic-bezier(.22,1,.36,1)}
.sg-test .sg-advanced-body>p{font-size:12px;color:#91a5ae;line-height:1.6;margin:14px 0 0}
@media(prefers-reduced-motion:reduce){.sg-test .sg-block-mode label,.sg-test .sg-advanced>summary .ui-icon{transition:none}}

/* Keep setup focused on immediate feedback only. */
.sg-test .sg-specific-section{display:none!important}
.sg-test .sg-feedback-section{grid-column:1/-1}

.sg-two-blocks .sg-block-plan{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:600px){.sg-two-blocks .sg-block-plan{grid-template-columns:1fr}}
