/* Paired exam surfaces only. Shared site controls retain their standard tokens. */
.sx-shell{min-width:0;max-width:1280px;margin-inline:auto;padding-block:28px 48px}
.sx-shell [hidden]{display:none!important}
.sx-shell :is(h1,h2,h3,p){overflow-wrap:anywhere}
.sx-shell h1{font-size:clamp(26px,3vw,38px);line-height:1.16;margin:0}
.sx-shell h2{font-size:22px;line-height:1.3;margin:0 0 18px}
.sx-shell h3{font-size:17px;line-height:1.4;margin:0 0 12px}
.sx-shell p{line-height:1.65}
.sx-shell [data-sx-error]{padding:14px 18px;white-space:pre-line;color:var(--do);border:1px solid var(--do);border-radius:var(--r-sm);background:var(--mat)}
.sx-shell [data-sx-save]{font-size:13px;color:var(--phu)}
.sx-shell fieldset{border:0;padding:0;margin:0;min-width:0}
.sx-shell .sx-author-fields{display:grid;gap:24px}
.sx-shell :is(.sx-grid,.sx-grade-grid){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.sx-shell :is(.sx-grid,.sx-grade-grid)>*{min-width:0}
.sx-shell .sx-field{display:grid;gap:9px;min-width:0}
.sx-shell .sx-field>span{font-size:14px;color:var(--phu)}
.sx-shell .sx-field :is(input,select,textarea){width:100%;min-width:0}
.sx-shell .sx-parts{display:grid;gap:24px}
.sx-shell .sx-part{display:grid;gap:22px;padding:28px}
.sx-shell .sx-part-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}
.sx-shell .sx-part-heading h2{margin:0}
.sx-shell .sx-row-tools{display:flex;gap:7px;flex:none}
.sx-shell .sx-row-tools .nut{width:40px;min-height:40px;padding:0}
.sx-shell .sx-row-tools .nut>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.sx-shell .sx-rubric{border-top:1px solid var(--vien);padding-top:22px;display:grid;gap:14px}
.sx-shell .sx-rubric h3{margin:0}
.sx-shell .sx-criterion{display:grid;grid-template-columns:minmax(0,1fr) 160px auto;gap:12px;align-items:end}
.sx-shell .sx-criterion>.nut{min-height:44px;padding-inline:12px}
.sx-shell .sx-image-field{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:12px}
.sx-shell .sx-image-field img{display:block;max-width:180px;max-height:180px;object-fit:contain;border-radius:var(--r-sm)}
.sx-shell .sx-entry{max-width:680px;margin-inline:auto;padding:36px;display:grid;gap:22px}
.sx-shell .sx-entry :is(h1,p){margin:0}
.sx-shell .sx-device{display:grid;gap:12px;justify-items:start}
.sx-shell :is(.sx-device,.sx-join)>video{display:block;width:min(180px,100%);aspect-ratio:9/16;object-fit:cover;transform:scaleX(-1);background:var(--surface-inverse);border-radius:var(--r-sm)}
.sx-shell [data-sx-device-status]{font-size:14px;color:var(--phu)}
.sx-shell .sx-record-disclosure{font-size:14px;color:var(--phu);border-top:1px solid var(--vien);padding-top:18px}
.sx-shell [data-sx-qr]{display:block;width:224px;max-width:100%;height:auto;padding:10px;background:#fff;border-radius:var(--r-sm)}
.sx-shell .sx-queue-wait{display:grid;justify-items:start;gap:12px}
.sx-shell .sx-queue-wait h2{margin:0}
.sx-shell .sx-queue-wait strong{font-variant-numeric:tabular-nums}
.sx-shell .speaking-spinner{display:block;width:28px;height:28px;border:3px solid var(--vien);border-top-color:var(--brand-primary);border-radius:50%;animation:sx-spin 1s linear infinite}
.sx-shell .sx-session-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:22px}
.sx-shell .sx-session-heading>div{display:grid;justify-items:end;gap:8px;flex:none;font-size:13px;color:var(--phu)}
.sx-shell [data-sx-clock]{font-size:22px;color:var(--chu);font-variant-numeric:tabular-nums;white-space:nowrap}
.sx-shell .sx-match{display:flex;align-items:center;gap:18px;padding:24px;margin-bottom:18px;background:var(--brand-primary);color:var(--brand-on-primary);border-color:transparent;animation:sx-match-in .4s ease-out}
.sx-shell .sx-match>span{display:grid;place-items:center;width:48px;height:48px;border:1px solid currentColor;border-radius:50%;flex:none}
.sx-shell .sx-match :is(h2,p){margin:0}
.sx-shell :is([data-sx-preparing],.sx-join,.sx-terminal){padding:28px}
.sx-shell .sx-prep-heading{display:flex;justify-content:space-between;align-items:baseline;gap:14px}
.sx-shell .sx-prep-heading>span{font-size:13px;color:var(--phu)}
.sx-shell .sx-private-task{border-top:1px solid var(--vien);padding-block:24px}
.sx-shell .sx-private-task>img{display:block;max-width:100%;max-height:600px;object-fit:contain;border-radius:var(--r-sm);margin-block:16px}
.sx-shell .sx-prompt{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75}
.sx-shell .sx-readiness{font-size:14px;color:var(--phu);margin-block:8px 20px}
.sx-shell .sx-join{display:flex;flex-wrap:wrap;gap:14px;align-items:center}
.sx-shell .sx-join :is(h2,p){flex-basis:100%;margin:0}
.sx-shell .sx-join>video{margin-inline-end:auto}
.sx-shell .sx-call{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(0,1.2fr);gap:20px;align-items:start}
.sx-shell .sx-videos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;position:sticky;top:12px}
.sx-shell .sx-videos figure{min-width:0;position:relative;margin:0;aspect-ratio:9/16;background:var(--surface-inverse);border-radius:var(--r-sm);overflow:hidden}
.sx-shell .sx-videos video{display:block;width:100%;height:100%;object-fit:cover}
.sx-shell .sx-videos figcaption{position:absolute;inset:auto 8px 8px;padding:5px 8px;background:#08080ac9;color:#fff;border-radius:4px;font-size:12px;line-height:1.4;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.sx-shell .sx-no-video video{opacity:0}
.sx-shell .sx-no-video::before{content:'Đang kết nối hình…';position:absolute;inset:0;display:grid;place-items:center;padding:12px;text-align:center;color:#fff;font-size:13px}
.sx-shell .sx-task-sheet{padding:24px;border:1px solid var(--vien);border-radius:var(--r-sm);background:var(--mat);min-width:0}
.sx-shell [data-sx-call-status]:not(:empty){font-size:14px;color:var(--phu);padding-bottom:18px}
.sx-shell .sx-prompt-image{display:block;max-width:100%;max-height:500px;object-fit:contain;border-radius:var(--r-sm);margin-bottom:18px}
.sx-shell .sx-listening{padding-block:20px}
.sx-shell .sx-listening h3{margin-block:14px 0}
.sx-shell [data-sx-stage-actions]{margin-top:24px}
.sx-shell .sx-session-controls{margin-top:24px}
.sx-shell .sx-session-controls>.nut{color:var(--phu)}
.sx-shell .table-wrap{overflow:auto;border:1px solid var(--vien);border-radius:var(--r-sm)}
.sx-shell .table-wrap table{width:100%;border-collapse:collapse;min-width:720px}
.sx-shell .table-wrap :is(th,td){padding:18px 20px;text-align:left;vertical-align:middle}
.sx-shell .table-wrap th{background:var(--surface-muted);font-size:13px;color:var(--phu)}
.sx-shell .table-wrap td{border-top:1px solid var(--vien)}
.sx-shell .table-wrap td:first-child{min-width:240px;max-width:440px}
.sx-shell .table-wrap small{display:block;color:var(--phu);margin-top:6px}
.sx-shell .sx-grade-grid{grid-template-columns:minmax(0,1.2fr) minmax(340px,1fr);align-items:start}
.sx-shell .sx-grade-grid>.the{padding:24px}
.sx-shell .sx-review-video{position:sticky;top:20px}
.sx-shell .sx-review-video video{display:block;width:100%;max-height:70vh;background:var(--surface-inverse);border-radius:var(--r-sm)}
.sx-shell .sx-markers{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.sx-shell .sx-candidate-tabs{display:flex;flex-wrap:wrap;gap:8px}
.sx-shell .sx-candidate-tabs>.nut{min-width:0;white-space:normal}
.sx-shell .sx-grade-part{border-top:1px solid var(--vien);padding-top:20px;margin-top:20px}
.sx-shell .sx-grade-part h2{font-size:18px}
.sx-shell .sx-score-field{display:grid;grid-template-columns:minmax(0,1fr) 100px;align-items:center;gap:14px;margin-bottom:14px}
.sx-shell .sx-score-field small{color:var(--phu);white-space:nowrap}
.sx-shell .sx-score-field input{width:100%;min-width:0}
.sx-shell .sx-grade-footer{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:24px}
.sx-shell .sx-grade-footer>strong{flex-basis:100%;font-size:24px}
.sx-shell .sx-grade-footer>.chinh{margin-inline-start:auto}
.sx-shell .sx-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.sx-shell .sx-results>.the{padding:28px}
.sx-shell .sx-results h2{margin-top:20px}
.sx-shell .sx-list-more{display:flex;justify-content:center;margin-top:24px}
.sx-shell .sx-total{font-size:32px;font-weight:600;font-variant-numeric:tabular-nums}
@keyframes sx-spin{to{transform:rotate(360deg)}}
@keyframes sx-match-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:800px){
 #app:has(> .sx-shell) .thanh-ben{overflow-x:auto;max-width:100%}
 .sx-shell{padding-block:20px 32px}
 .sx-shell :is(.sx-grid,.sx-grade-grid,.sx-results){grid-template-columns:minmax(0,1fr)}
 .sx-shell .sx-review-video{position:static}
 .sx-shell .sx-part{padding:22px}
 .sx-shell .sx-criterion{grid-template-columns:minmax(0,1fr) 110px auto}
 .sx-shell .sx-criterion>.nut{width:40px;min-width:40px;padding:0}
 .sx-shell .sx-criterion>.nut>span{display:none}
 .sx-shell .sx-call{display:flex;flex-direction:column;gap:0}
 .sx-shell .sx-videos{position:sticky;top:0;z-index:5;width:100%;padding-block:8px;background:var(--nen)}
 .sx-shell .sx-videos figure{aspect-ratio:3/4;max-height:36vh}
 .sx-shell .sx-task-sheet{width:100%;margin-top:8px;padding:22px}
}
@media(max-width:480px){
 .sx-shell .sx-entry{padding:24px}
 .sx-shell .sx-part{padding:20px 16px}
 .sx-shell .sx-part-heading{gap:8px}
 .sx-shell .sx-row-tools{gap:4px}
 .sx-shell .sx-criterion{grid-template-columns:minmax(0,1fr) 88px 36px;gap:8px}
 .sx-shell .sx-criterion>.nut{width:36px;min-width:36px}
 .sx-shell .sx-criterion .sx-field>span{font-size:12px}
 .sx-shell :is([data-sx-preparing],.sx-join,.sx-terminal){padding:22px}
 .sx-shell .sx-session-heading h1{font-size:24px}
 .sx-shell .sx-prep-heading{flex-wrap:wrap;gap:0}
 .sx-shell .sx-match{padding:20px;gap:12px}
 .sx-shell .sx-match h2{font-size:20px}
 .sx-shell .sx-match>span{width:40px;height:40px}
 .sx-shell .sx-score-field{grid-template-columns:minmax(0,1fr) 88px}
}
@media(prefers-reduced-motion:reduce){.sx-shell :is(.speaking-spinner,.sx-match){animation:none}}

/* Single speaking task; legacy releases retain their stored task content. */
.sx-shell.sx-editor{max-width:none}
.sx-editor .sx-single-editor{display:grid;gap:32px}
.sx-editor .sx-single-editor>.sx-author-fields>.sx-part{padding:0}
.sx-editor .sx-rich-prompt{min-width:0}
.sx-editor-dialog{width:min(600px,calc(100vw - 32px))}
.sx-editor-dialog>.sx-field{display:grid;gap:8px;min-width:0;margin-top:20px}
.sx-editor-dialog>.sx-field>.truong{width:100%;min-width:0}
.sx-editor-dialog>.sx-field>label{font-size:14px;color:var(--phu)}
.sx-editor-dialog .sx-shell{padding-bottom:0}

.sx-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}
.sx-dialog-heading>h2{margin:0}
.sx-dialog-heading>[data-dismiss]{flex-shrink:0}
