/* Native multi-mode picker, consistent pictogram icons and sourced HSK mock exams. */
#studioPractice .ps-picker{display:grid;gap:16px;min-width:0;margin-bottom:26px}
#studioPractice .ps-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
#studioPractice .ps-heading h2{font-size:clamp(22px,3vw,28px);margin:0;color:var(--ink);line-height:1.25}
#studioPractice .ps-eyebrow{color:var(--accent-ink);font-size:12px;font-weight:750;margin:0 0 5px}
#studioPractice .ps-description{color:var(--sub);font-size:13px;line-height:1.5;margin:7px 0 0}
#studioPractice .ps-level{color:var(--accent-dark);background:var(--accent-light);border-radius:var(--radius-btn);font-size:13px;font-weight:750;padding:10px 12px;white-space:nowrap}
#studioPractice .ps-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
#studioPractice .ps-tools>span{font-size:13px;color:var(--muted);font-weight:650}
#studioPractice .ps-tools>div{display:flex;gap:8px}
#studioPractice .ps-tools button,#studioPractice .ps-session-actions button{border:1px solid var(--line);border-radius:var(--radius-btn);background:var(--surface);padding:9px 12px;min-height:40px;color:var(--ink);font-size:13px;font-weight:650}
#studioPractice .ps-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#studioPractice .ps-option{position:relative;display:flex;align-items:center;gap:12px;border:1px solid var(--line);background:var(--surface);border-radius:var(--radius-btn);padding:14px 12px;min-width:0;min-height:88px;cursor:pointer;transition:border-color .15s,background .15s}
#studioPractice .ps-option.is-selected{background:var(--accent-light);border-color:var(--accent)}
#studioPractice .ps-option input{position:absolute;left:12px;top:12px;opacity:0;width:18px;height:18px}
#studioPractice .ps-option:focus-within{outline:2px solid var(--accent);outline-offset:2px}
#studioPractice .ps-icon,#studioPractice .hub-card .ps-hub-icon{display:grid!important;place-items:center!important;align-items:center!important;justify-items:center!important;flex:none;width:54px;height:54px;min-width:54px;min-height:54px;border-radius:var(--radius-btn);background:var(--accent-light);color:var(--accent-dark)}
#studioPractice .ps-icon svg,#studioPractice .hub-card .ps-hub-icon svg{display:block;width:26px;height:26px;flex:none;stroke:currentColor!important;stroke-width:1.8}
#studioPractice .ps-copy{display:grid;min-width:0;gap:5px;align-content:center}
#studioPractice .ps-copy strong{font-size:15px;color:var(--ink);font-weight:750;line-height:1.3}
#studioPractice .ps-copy small{font-size:12px;color:var(--sub);line-height:1.5;overflow-wrap:anywhere}
#studioPractice .ps-check{flex:none;align-self:flex-start;margin-left:auto;display:grid;place-items:center;border:1px solid var(--line);border-radius:var(--radius-pill,50%);width:23px;height:23px;font-size:13px;color:var(--surface);background:var(--surface)}
#studioPractice .ps-option.is-selected .ps-check{background:var(--accent);border-color:var(--accent);color:var(--palette-white)}
#studioPractice .ps-start-row{display:flex;justify-content:space-between;align-items:center;gap:12px}
#studioPractice .ps-start-row p{color:var(--muted);font-size:13px;margin:0}
#studioPractice .ps-start{background:var(--accent);color:var(--palette-white);border:1px solid var(--accent);border-radius:var(--radius-btn);min-height:48px;padding:11px 22px;font-size:14px;font-weight:750}
#studioPractice .ps-start:disabled{opacity:.45;cursor:not-allowed}
#studioPractice .ps-extras{margin-top:2px;padding:10px 0;color:var(--sub);font-size:13px}
#studioPractice .ps-extras strong{font-size:14px;color:var(--accent-dark)}
#studioPractice .ps-extras p{margin:6px 0 0}
#studioPractice .hub-card .ps-hub-icon{width:54px;min-width:54px;height:54px;min-height:54px}
#studioPractice .hub-card .hub-symbol.ps-hub-icon,#studioPractice .hub-card .hub-visual.ps-hub-icon{background:var(--accent-light)!important;color:var(--accent-dark)!important}
#practiceSessionBar[hidden]{display:none!important}
#practiceSessionBar{display:flex;position:static;z-index:auto;justify-content:space-between;align-items:center;gap:12px;margin:0 0 14px;padding:12px 15px;border:1px solid var(--line);background:var(--surface);border-radius:var(--radius-btn)}
#practiceSessionBar .ps-session-label{display:grid;gap:4px}
#practiceSessionBar .ps-session-label strong{font-size:13px;color:var(--accent-ink)}
#practiceSessionBar .ps-session-label span{color:var(--ink);font-size:14px}
#practiceSessionBar .ps-session-actions{display:flex;align-items:center;gap:8px}
#practiceSessionBar .ps-session-actions button{border:1px solid var(--line);border-radius:var(--radius-btn);background:var(--surface);color:var(--ink);padding:8px 12px;min-height:42px;font-weight:700}
#practiceSessionBar #practiceSessionNext{background:var(--accent);color:var(--palette-white);border-color:var(--accent)}
.study4-exam-panel{max-width:930px;margin:auto}
.study4-exam-panel[hidden]{display:none!important}
.study4-exam-panel .s4-head h2{font-size:clamp(24px,3vw,32px);margin:0;color:var(--ink)}
.study4-exam-panel .s4-head p{font-size:14px;color:var(--sub);line-height:1.5}
.study4-exam-panel .s4-controls{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:20px 0}
.study4-exam-panel .s4-controls label{display:grid;gap:8px;color:var(--sub);font-size:13px;font-weight:700}
.study4-exam-panel .s4-controls select{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-btn);padding:12px;color:var(--ink);font:inherit;min-width:120px}
.study4-exam-panel .s4-tabs{display:flex;gap:8px}
.study4-exam-panel .s4-tabs button{border:1px solid var(--line);border-radius:var(--radius-btn);background:var(--surface);color:var(--ink);min-height:44px;padding:10px 14px;font-weight:700}
.study4-exam-panel .s4-tabs button.is-active{background:var(--accent);border-color:var(--accent);color:var(--palette-white)}
.study4-exam-panel .s4-test-card{border:1px solid var(--line);background:var(--surface);border-radius:var(--radius-card);padding:22px;display:grid;justify-items:start;gap:12px}
.study4-exam-panel .s4-brow{font-size:12px;font-weight:750;color:var(--accent-ink)}
.study4-exam-panel .s4-test-card h3{font-size:clamp(18px,2.5vw,23px);color:var(--ink);margin:0}
.study4-exam-panel .s4-test-card p{margin:0;font-size:14px;color:var(--sub);line-height:1.65}
.study4-exam-panel .s4-visit{display:inline-flex;align-items:center;justify-content:center;min-height:48px;border-radius:var(--radius-btn);background:var(--accent);color:var(--palette-white);font-weight:750;padding:11px 17px;text-decoration:none}
.study4-exam-panel .s4-library{color:var(--accent-dark);font-size:13px;font-weight:700;text-decoration:underline}
.study4-exam-panel .s4-credit{font-size:12px;color:var(--muted);margin:12px 0}
.study4-exam-panel .s4-credit a{color:var(--accent-dark)}
.study4-exam-panel .s4-internal{background:var(--surface);color:var(--accent-dark);border:1px solid var(--line);border-radius:var(--radius-btn);min-height:44px;padding:10px 12px;font-weight:700}
@media(max-width:720px){
 #studioPractice .ps-options{grid-template-columns:1fr}
 #studioPractice .ps-option{min-height:80px}
 #studioPractice .ps-tools{gap:8px}
 #studioPractice .ps-option .ps-icon{width:52px;height:52px;min-width:52px;min-height:52px}
 #practiceSessionBar{position:static;flex-wrap:wrap;padding:10px}
 #practiceSessionBar .ps-session-actions{width:100%}
 #practiceSessionBar .ps-session-actions button{flex:1}
 .study4-exam-panel .s4-controls{align-items:stretch}
 .study4-exam-panel .s4-tabs{width:100%}
 .study4-exam-panel .s4-tabs button{flex:1}
}
@media(max-width:365px){
 #studioPractice .ps-heading{flex-wrap:wrap}
 #studioPractice .ps-icon{width:46px;min-width:46px;height:46px;min-height:46px}
 #studioPractice .ps-copy strong{font-size:14px}
}


/* Two initially collapsed choosers. Legacy cards remain for feature integrations only. */
#studioPractice>.hub-intro,#studioPractice>#studioReview,#studioPractice>#practiceGroup{display:none!important}
#studioPractice .ps-picker{display:grid;gap:12px;margin-bottom:18px}
#studioPractice .ps-disclosure{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-card);overflow:hidden}
#studioPractice .ps-disclosure-summary{list-style:none;display:flex;align-items:center;gap:12px;min-height:82px;padding:14px 16px;cursor:pointer;color:var(--ink);user-select:none}
#studioPractice .ps-disclosure-summary::-webkit-details-marker{display:none}
#studioPractice .ps-summary-icon{display:grid;place-items:center;width:44px;height:44px;flex:none;background:var(--accent-light);color:var(--accent-dark);border-radius:var(--radius-btn);font-size:19px}
#studioPractice .ps-summary-copy{display:grid;align-content:center;gap:5px;min-width:0;flex:1}
#studioPractice .ps-summary-copy strong{color:var(--ink);font-size:clamp(15px,2vw,19px);line-height:1.2}
#studioPractice .ps-summary-copy small{color:var(--muted);font-size:12px;font-weight:650}
#studioPractice .ps-chevron{font-size:27px;color:var(--accent-dark);transition:transform .15s;line-height:1}
#studioPractice .ps-disclosure[open] .ps-chevron{transform:rotate(180deg)}
#studioPractice .ps-disclosure-body{display:grid;gap:12px;padding:0 14px 14px}
#studioPractice .ps-tools p{margin:0;font-size:12px;color:var(--muted);line-height:1.4}
#studioPractice .ps-tools button{min-height:36px;padding:7px 10px;font-size:12px}
#studioPractice .ps-option{min-height:68px;padding:9px;gap:9px}
#studioPractice .ps-icon{width:40px;height:40px;min-width:40px;min-height:40px}
#studioPractice .ps-icon svg{width:23px;height:23px}
#studioPractice .ps-copy strong{font-size:13px}
#studioPractice .ps-copy small{font-size:11px}
#studioPractice .ps-check{width:20px;height:20px;min-width:20px;align-self:center}
#studioPractice .ps-start-row{justify-content:flex-end;min-height:52px}
#studioPractice .ps-start{min-height:48px;flex:1}
#studioPractice .ps-disclosure-summary:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
html[data-theme=dark] #studioPractice .ps-disclosure{background:var(--surface);color:var(--ink)}
@media(max-width:720px){
 #studioPractice .ps-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 #studioPractice .ps-option{min-width:0;min-height:60px;padding:7px;gap:6px}
 #studioPractice .ps-icon{width:35px;height:35px;min-width:35px;min-height:35px}
 #studioPractice .ps-icon svg{width:20px;height:20px}
 #studioPractice .ps-copy strong{font-size:12px;overflow-wrap:anywhere}
 #studioPractice .ps-copy small{display:none}
 #studioPractice .ps-check{width:17px;height:17px;min-width:17px;font-size:11px}
 #studioPractice .ps-disclosure-summary{min-height:74px;padding:12px;gap:9px}
 #studioPractice .ps-summary-icon{width:36px;height:36px}
 #studioPractice .ps-level{font-size:11px;padding:7px}
 #studioPractice .ps-disclosure-body{padding:0 10px 12px}
 #studioPractice .ps-tools{align-items:center}
 #studioPractice .ps-tools p{font-size:11px;flex:1}
 #studioPractice .ps-start-row{position:static;background:var(--palette-clear);padding:6px 0 0}
 #studioPractice .ps-start-row p:empty{display:none}
}
@media(max-width:360px){
 #studioPractice .ps-option{min-height:58px}
 #studioPractice .ps-icon{width:30px;height:30px;min-width:30px;min-height:30px}
 #studioPractice .ps-icon svg{width:18px;height:18px}
 #studioPractice .ps-copy strong{font-size:11px}
}

/* Standalone exam entry outside the mixed practice chooser. */
#studioPractice .ps-exam-entry{display:flex;align-items:center;gap:14px;width:100%;box-sizing:border-box;padding:18px;margin:0 0 26px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--surface);color:var(--ink);text-align:left;min-height:88px}
#studioPractice .ps-exam-entry>.ps-copy{flex:1}
#studioPractice .ps-exam-entry>span:last-child{font-size:22px;color:var(--accent-dark)}


/* In-app Study4 exam & listening runner */
.study4-exam-panel .s4-controls[hidden]{display:none!important}
.study4-exam-panel .s4-selects{display:flex;gap:12px;flex-wrap:wrap;align-items:end}
.study4-exam-panel .s4-exam-options{display:grid;flex:0 0 100%;width:100%;box-sizing:border-box;gap:10px;margin-top:12px;padding:16px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--surface)}
.study4-exam-panel .s4-exam-options-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}
.study4-exam-panel .s4-exam-options-fields label{min-width:0;display:grid;gap:7px;color:var(--ink);font-weight:750;font-size:14px}
.study4-exam-panel .s4-exam-options-fields select{width:100%;min-width:0;max-width:100%;min-height:46px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius-btn);background:var(--surface);color:var(--ink);font:inherit;font-weight:650;box-sizing:border-box}
.study4-exam-panel .s4-exam-options-fields select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.study4-exam-panel .s4-exam-summary{margin:0;font-size:13px;line-height:1.5;color:var(--sub)}
@media(max-width:440px){.study4-exam-panel .s4-exam-options{padding:12px}.study4-exam-panel .s4-exam-options-fields label:last-child{grid-column:1 / -1}}
/* Compact, accessible test picker: no nested touch scrolling on iPhone. */
.study4-exam-panel .s4-test-picker{display:grid;gap:12px;flex:0 0 100%;width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:var(--radius-card);padding:14px;background:var(--surface)}
.study4-exam-panel .s4-picker-header{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--ink)}
.study4-exam-panel .s4-picker-header strong{font-size:16px}
.study4-exam-panel .s4-picker-header span{font-size:13px;color:var(--sub)}
.study4-exam-panel .s4-picker-search-label{display:grid;gap:6px;font-size:13px;color:var(--sub)}
.study4-exam-panel .s4-picker-search-label input{width:100%;min-width:0;box-sizing:border-box;min-height:46px;padding:10px 12px;font:inherit;font-size:16px;border:1px solid var(--line);border-radius:var(--radius-btn);color:var(--ink);background:var(--surface)}
.study4-exam-panel .s4-picker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.study4-exam-panel .s4-picker-choice{display:grid;gap:2px;align-content:center;text-align:left;min-width:0;min-height:62px;padding:9px 11px;border:1px solid var(--line);border-radius:var(--radius-btn);background:var(--surface);color:var(--ink);cursor:pointer}
.study4-exam-panel .s4-picker-choice strong{font-size:14px;overflow-wrap:anywhere}
.study4-exam-panel .s4-picker-choice .s4-picker-meta{font-size:11px;color:var(--sub)}
.study4-exam-panel .s4-picker-choice.is-selected-paper{border:2px solid var(--accent);padding:8px 10px;background:var(--surface)}
.study4-exam-panel .s4-picker-choice.is-selected-paper{background:var(--accent);color:var(--palette-white)}
html body.studio-enabled #study4PracticePanel button.s4-picker-choice.is-selected-paper :is(strong,.s4-picker-meta){color:var(--palette-white)!important}
.study4-exam-panel .s4-picker-choice.has-progress{border:3px solid var(--palette-clear);background:linear-gradient(var(--surface),var(--surface)) padding-box,conic-gradient(from -90deg,var(--legacy-hex-14864a) var(--s4-correct-ratio),var(--legacy-hex-d83b40) 0) border-box;padding:7px 9px}
.study4-exam-panel .s4-picker-choice.is-selected-paper.has-progress{background:linear-gradient(var(--surface),var(--surface)) padding-box,conic-gradient(from -90deg,var(--legacy-hex-14864a) var(--s4-correct-ratio),var(--legacy-hex-d83b40) 0) border-box;color:var(--ink)}
html body.studio-enabled #study4PracticePanel button.s4-picker-choice.is-selected-paper.has-progress :is(strong,.s4-picker-meta){color:var(--ink)!important}
.study4-exam-panel .s4-test-card .s4-paper-progress{margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius-btn);color:var(--accent-dark);font-weight:750}
.study4-exam-panel .s4-picker-choice:focus-visible,.study4-exam-panel .s4-picker-pages button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.study4-exam-panel .s4-picker-pages{display:flex;justify-content:space-between;align-items:center;gap:10px}
.study4-exam-panel .s4-picker-pages button{min-height:44px;padding:8px 14px;border:1px solid var(--line);border-radius:var(--radius-btn);background:var(--surface);color:var(--accent-ink);font:inherit;font-weight:750}
.study4-exam-panel .s4-picker-pages button:disabled{opacity:.45;cursor:default}
.study4-exam-panel .s4-picker-pages span{font-size:13px;color:var(--sub)}
.study4-exam-panel .s4-picker-empty{grid-column:1/-1;color:var(--sub);font-size:14px}
@media(max-width:720px){.study4-exam-panel .s4-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.study4-exam-panel .s4-test-picker{padding:12px}}

.study4-exam-panel .s4-mini-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--surface);color:var(--ink)}
.study4-exam-panel .s4-mini-card.is-current{border-color:var(--accent)}
.study4-exam-panel .s4-mini-info{display:grid;gap:4px;min-width:0}
.study4-exam-panel .s4-mini-info strong{font-size:15px;color:var(--ink)}
.study4-exam-panel .s4-mini-info small{font-size:12px;color:var(--sub)}
.study4-exam-panel .s4-mini-start{border:1px solid var(--line);border-radius:var(--radius-btn);background:var(--surface);color:var(--accent-ink);min-height:40px;padding:8px 14px;font-weight:750;flex:none}
.study4-exam-panel .s4-runner{display:grid;gap:16px;margin-top:12px}
.study4-exam-panel .s4-runner-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--surface)}
.study4-exam-panel .s4-runner-title{display:grid;gap:4px;flex:1;min-width:180px}
.study4-exam-panel .s4-runner-title h3{margin:0;font-size:clamp(17px,2.2vw,21px);color:var(--ink)}
.study4-exam-panel .s4-runner-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.study4-exam-panel .s4-timer-badge,.study4-exam-panel .s4-progress-badge{display:inline-flex;align-items:center;min-height:38px;padding:6px 12px;border:1px solid var(--line);border-radius:var(--radius-btn);background:var(--surface);color:var(--ink);font-size:13px;font-weight:700}
.study4-exam-panel .s4-back-btn,.study4-exam-panel .s4-reset-btn,.study4-exam-panel .s4-part-nav{border:1px solid var(--line);border-radius:var(--radius-btn);background:var(--surface);color:var(--ink);min-height:42px;padding:8px 14px;font-weight:700}
.study4-exam-panel .s4-submit-btn,.study4-exam-panel .s4-part-nav.is-primary{border:1px solid var(--accent);border-radius:var(--radius-btn);background:var(--accent);color:var(--palette-white);min-height:42px;padding:8px 16px;font-weight:750}
.study4-exam-panel .s4-score-banner{padding:16px 18px;border:2px solid var(--accent);border-radius:var(--radius-card);background:var(--surface);color:var(--ink);display:grid;gap:6px}
.study4-exam-panel .s4-score-banner strong{font-size:17px;color:var(--accent-ink)}
.study4-exam-panel .s4-score-banner p{margin:0;font-size:13px;color:var(--sub)}
.study4-exam-panel .s4-part-tabs{display:flex;gap:8px;flex-wrap:wrap}
.study4-exam-panel .s4-part-tab{border:1px solid var(--line);border-radius:var(--radius-btn);background:var(--surface);color:var(--ink);min-height:42px;padding:8px 14px;font-weight:700}
.study4-exam-panel .s4-part-tab.is-active{background:var(--accent);border-color:var(--accent);color:var(--palette-white)}
.study4-exam-panel .s4-audio-box{padding:14px 16px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--surface);display:grid;gap:10px}
.study4-exam-panel .s4-audio-box--inline{padding:10px 12px;background:var(--paper);border-radius:var(--radius-btn);margin:6px 0;gap:6px}
.study4-exam-panel .s4-audio-box--group{margin:8px 0 12px}
.study4-exam-panel .s4-audio-box--question{padding:6px 10px;margin:4px 0 8px;background:var(--paper)}
.study4-exam-panel .s4-audio-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
.study4-exam-panel .s4-audio-head strong{font-size:14px;color:var(--ink)}
.study4-exam-panel .s4-audio-sub{font-size:12px;color:var(--sub)}
.study4-exam-panel .s4-audio-player{width:100%;max-width:100%}
.study4-exam-panel .s4-audio-box--question .s4-audio-player{height:38px}
.study4-exam-panel .s4-palette{display:flex;flex-wrap:wrap;gap:6px;padding:12px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--surface)}
.study4-exam-panel .s4-palette-chip{min-width:36px;height:36px;padding:0 8px;border:1px solid var(--line);border-radius:var(--radius-btn);background:var(--surface);color:var(--ink);font-size:12px;font-weight:700}
.study4-exam-panel .s4-palette-chip.is-answered{border-color:var(--accent);color:var(--accent-ink)}
.study4-exam-panel .s4-palette-chip.is-correct{background:var(--accent);border-color:var(--accent);color:var(--palette-white)}
.study4-exam-panel .s4-palette-chip.is-wrong{border-color:var(--red);color:var(--red)}
html[data-theme=dark] .study4-exam-panel .s4-palette-chip.is-wrong{border-color:var(--red);color:var(--red)}
.study4-exam-panel .s4-groups{display:grid;gap:16px}
.study4-exam-panel .s4-group-card{border:1px solid var(--line);border-radius:var(--radius-card);background:var(--surface);padding:16px;display:grid;gap:14px}
.study4-exam-panel .s4-group-context{padding-bottom:12px;border-bottom:1px solid var(--line);display:grid;gap:8px;color:var(--ink);overflow-x:auto}
.study4-exam-panel .s4-group-badge{font-size:12px;font-weight:750;color:var(--accent-ink)}
.study4-exam-panel .s4-context-body img,.study4-exam-panel .s4-q-context img{max-width:100%;height:auto;border-radius:var(--radius-btn);cursor:zoom-in;background:var(--palette-white);padding:4px}
.study4-exam-panel .s4-context-body table,.study4-exam-panel .s4-q-context table{width:100%;border-collapse:collapse;font-size:14px;color:var(--ink)}
.study4-exam-panel .s4-context-body td,.study4-exam-panel .s4-context-body th,.study4-exam-panel .s4-q-context td,.study4-exam-panel .s4-q-context th{border:1px solid var(--line);padding:8px}
.study4-exam-panel .s4-group-questions{display:grid;gap:14px}
.study4-exam-panel .s4-question-card{border:1px solid var(--line);border-radius:var(--radius-btn);padding:14px;background:var(--surface);display:grid;gap:10px;color:var(--ink)}
.study4-exam-panel .s4-q-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.study4-exam-panel .s4-q-num{font-size:14px;color:var(--accent-ink)}
.study4-exam-panel .s4-check-one{border:1px solid var(--line);border-radius:var(--radius-btn);background:var(--surface);color:var(--sub);font-size:12px;font-weight:700;padding:6px 10px;min-height:32px}
.study4-exam-panel .s4-q-context,.study4-exam-panel .s4-q-prompt{font-size:15px;line-height:1.65;color:var(--ink);overflow-x:auto}
.study4-exam-panel .s4-q-context p,.study4-exam-panel .s4-q-prompt p,.study4-exam-panel .s4-context-body p{margin:4px 0}
.study4-exam-panel .s4-choices{display:grid;gap:8px}
.study4-exam-panel .s4-choice-btn{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:11px 14px;border:1px solid var(--line);border-radius:var(--radius-btn);background:var(--surface);color:var(--ink);font-size:14px;font-weight:600;min-height:44px}
.study4-exam-panel .s4-choice-btn.is-selected,.study4-exam-panel .s4-letter-btn.is-selected{background:var(--accent);border-color:var(--accent);color:var(--palette-white)}
.study4-exam-panel .s4-quick-letters,.study4-exam-panel .s4-order-tokens{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.study4-exam-panel .s4-letter-btn,.study4-exam-panel .s4-order-token{border:1px solid var(--line);border-radius:var(--radius-btn);background:var(--surface);color:var(--ink);min-height:40px;min-width:44px;padding:6px 12px;font-weight:750;font-size:14px}
.study4-exam-panel .s4-order-token.is-used{border-color:var(--accent);color:var(--accent-ink)}
.study4-exam-panel .s4-input-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.study4-exam-panel .s4-text-input,.study4-exam-panel .s4-essay-input{width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid var(--line);border-radius:var(--radius-btn);background:var(--surface);color:var(--ink);font:inherit;font-size:15px}
.study4-exam-panel .s4-input-row .s4-text-input{flex:1;min-width:180px}
.study4-exam-panel .s4-clear-inline{border:1px solid var(--line);border-radius:var(--radius-btn);background:var(--surface);color:var(--ink);min-height:42px;padding:8px 12px;font-weight:700}
.study4-exam-panel .s4-char-count{font-size:12px;color:var(--sub)}
.study4-exam-panel .s4-q-feedback{padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius-btn);background:var(--surface);color:var(--ink);display:grid;gap:8px;font-size:14px}
.study4-exam-panel .s4-q-feedback.is-correct{border-color:var(--accent)}
.study4-exam-panel .s4-q-feedback.is-wrong{border-color:var(--red)}
html[data-theme=dark] .study4-exam-panel .s4-q-feedback.is-wrong{border-color:var(--red)}
.study4-exam-panel .s4-transcript{font-size:14px;color:var(--ink);border-top:1px dashed var(--line);padding-top:8px}
.study4-exam-panel .s4-transcript summary{cursor:pointer;font-weight:700;color:var(--accent-ink)}
.study4-exam-panel .s4-runner-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-top:8px}
@media(max-width:720px){
 .study4-exam-panel .s4-selects{width:100%}
 .study4-exam-panel .s4-selects label{flex:1}
 .study4-exam-panel .s4-runner-top{align-items:stretch}
 .study4-exam-panel .s4-runner-actions{width:100%;justify-content:space-between}
}
