#flow-back[hidden],#end-interview[hidden]{display:none!important}
.flow-sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.exam-flow{--ink:#2c2037;--muted:#776681;--line:#ded3e5;--paper:#f5f1f8;background:var(--paper);color:var(--ink);font-family:Meet Arabic,Tahoma,Arial,sans-serif}
.exam-flow>.topbar{height:80px;padding:0 clamp(24px,5vw,80px);background:#492a58;border:0;position:relative;isolation:isolate;overflow:hidden;gap:16px}
.exam-flow>.topbar::before,.exam-flow>.topbar::after{content:"";position:absolute;pointer-events:none;width:380px;height:380px;border:1px solid #aa8bb47a;border-radius:50%;right:-20px;top:-260px;z-index:-1}
.exam-flow>.topbar::after{width:320px;height:320px;right:200px;top:-170px}
.exam-flow .topbar .brand{font:600 27px/1.2 Arial,sans-serif;letter-spacing:-.6px;color:#fff;gap:12px}
.exam-flow .topbar .brand-mark{height:44px;width:44px;border-radius:11px;background:#fff;color:#492a58;font:700 38px/1 Arial,sans-serif;padding-bottom:8px}
.exam-flow .topbar .brand-mark>span{color:#492a58;right:6px;top:0;font-size:16px}
.exam-flow .topbar .top-label,.exam-flow .topbar #logout{display:none}
.exam-flow #flow-back{margin-inline-start:auto;color:#fff;font-size:16px}
.exam-flow #end-interview{margin-inline-start:auto;border:1px solid #edb0b5;color:#ffd9dc;background:#69313e66;padding:10px 18px;font-size:15px}
.exam-flow>main{width:calc(100% - clamp(40px,10vw,160px));max-width:1360px;padding:24px 0 36px;min-height:calc(100svh - 80px)}
.exam-flow>footer{display:none}
.exam-flow :is(button,input,select){font-family:inherit}
.exam-flow :is(button,a,summary,input,select):focus-visible{outline:3px solid #8e64a1;outline-offset:3px}
.exam-flow .primary{background:#693d7f;color:#fff;border-radius:9px;min-height:48px;font-size:17px;font-weight:600;padding:10px 22px}
.exam-flow .primary:hover:enabled{background:#57316c;transform:none}
.exam-flow .primary:disabled{background:#e1dae8;color:#776b7e;opacity:1}
.exam-flow .secondary{background:#fff;border:1.5px solid #693d7f;color:#693d7f;min-height:44px;border-radius:9px;font-size:15px;padding:9px 14px}
.exam-flow .secondary:hover:enabled{background:#f5eef9;transform:none}
.exam-flow .quiet{color:#693d7f;font-size:15px}
.exam-flow .flow-heading{margin:0 0 14px}
.exam-flow .flow-heading h1{font-size:36px;font-weight:600;line-height:1.5;letter-spacing:normal;margin:0}
.exam-flow .flow-heading p{font-size:16px;color:var(--muted);margin:4px 0 0;overflow-wrap:anywhere}
.exam-flow #setup-room-title{color:#693d7f;margin:0 0 4px}
.flow-steps{display:flex;list-style:none;padding:0;margin:14px 0 24px;gap:18px}
.flow-steps li{display:flex;align-items:center;gap:10px;flex:1;min-width:0;color:#87798f;font-size:17px}
.flow-steps li:not(:last-child)::after{content:"";height:1px;background:#d4c3df;flex:1;margin-inline-start:12px}
.step-number{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border:1px solid #c7b3d3;border-radius:50%;font-size:16px}
.flow-steps li[aria-current]{color:#693d7f;font-weight:600}
.flow-steps li[aria-current] .step-number{background:#693d7f;border-color:#693d7f;color:#fff}
.flow-steps li.completed{color:#137f72}
.flow-steps li.completed .step-number{background:#def1ec;border-color:#def1ec}
.flow-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px;min-width:0}
.exam-flow .flow-card h2{font-size:24px;font-weight:600;line-height:1.5;letter-spacing:normal;margin:0 0 14px}
.flow-icon{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:10px;background:#efe5f5;color:#693d7f}
.flow-icon svg{width:25px;height:25px}
.instruction-rules{list-style:none;padding:0;margin:0}
.instruction-rules li{display:flex;align-items:center;gap:16px;padding:10px 0}
.instruction-rules li+li{border-top:1px solid #eee5f4}
.instruction-rules p{margin:0;font-size:17px;line-height:1.8}
.recording-notice{display:flex;align-items:center;gap:14px;border-radius:10px;background:#f1e8f6;padding:14px 16px;margin-top:14px}
.recording-notice .flow-icon{color:#a23d49;background:transparent}
.recording-notice p{font-size:15px;line-height:1.8;margin:0;color:var(--muted)}
.recording-notice p:first-child{font-weight:600;color:#913c4c}
.instructions-card .room-description{font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);border-top:1px solid var(--line);padding-top:12px;margin:12px 0 0}
.exam-flow .help-instructions{margin:18px 0 0;padding:20px 24px;border-color:var(--line);border-radius:12px}
.exam-flow .help-instructions h2{margin-bottom:3px}
.exam-flow .help-instructions>p{font-size:13px;margin:0 0 16px}
.exam-flow .help-instructions ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0}
.exam-flow .help-instructions li{border:1px solid var(--line);border-radius:10px;padding:12px;gap:12px;align-items:center}
.exam-flow .help-guide-icon{background:#efe5f5;color:#693d7f;width:40px;height:40px;flex-basis:40px;border-radius:10px}
.exam-flow .help-instructions strong{font-size:17px;font-weight:600}
.exam-flow .help-instructions li p{font-size:13px;line-height:1.7;margin:2px 0 0}
.flow-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0 0}
.exam-flow .setup-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:20px}
.exam-flow .device-preview-card{padding:18px;align-self:start}
.exam-flow .device-preview-card .preview{aspect-ratio:16/9;min-height:220px;border-radius:10px;background:#918aa3}
.exam-flow .preview-label{background:#492a58b8;color:#fff;font-size:12px;line-height:1.5;padding:6px 10px;left:auto;inset-inline-start:14px;bottom:14px}
.exam-flow #preview-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:#fff}
.exam-flow #preview-placeholder p{color:#fff;margin:0;font-size:14px}
.preview-avatar{display:block;position:relative;width:90px;height:90px;border-radius:50%;background:#d7d2e2;margin-bottom:32px}
.preview-avatar::after{content:"";position:absolute;top:100%;left:-27px;width:144px;height:52px;border-radius:72px 72px 8px 8px;background:#d7d2e2;margin-top:10px}
.exam-flow #setup-preview-help{font-size:14px;margin:14px 0;line-height:1.8}
.microphone-level{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px 14px;border-top:1px solid var(--line);padding-top:14px}
.microphone-level label{font-size:13px;color:var(--muted)}
.microphone-level meter{width:100%;height:18px;accent-color:#137f72}
.microphone-level meter::-webkit-meter-bar{background:#eee6f3;border:0;border-radius:8px}
.microphone-level meter::-webkit-meter-optimum-value{background:#137f72;border-radius:8px}
.microphone-level p{grid-column:1/-1;font-size:12px;color:var(--muted);line-height:1.7;margin:0}
.microphone-level button{grid-column:1/-1;justify-self:start;padding:3px 0}
.exam-flow .device-check-card .check-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:10px 0}
.device-name{display:flex;align-items:center;gap:12px}
.device-name .flow-icon{width:38px;height:38px;flex-basis:38px}
.exam-flow .device-name strong{font-size:16px}
.exam-flow .device-check-card .check-row+.check-row{border-top:1px solid #eee5f4}
.exam-flow .device-status{font-size:12px;line-height:1.7;padding:4px 9px;border-radius:8px;white-space:nowrap;background:#faecd7;color:#8c5a1c}
.exam-flow .device-status[data-ready=true]{background:#def1ec;color:#137f72}
.exam-flow .microphone-picker{margin:14px 0}
.exam-flow .microphone-picker label{font-size:13px}
.exam-flow .microphone-picker select{background:#fff;border-color:#cdb8d9;border-radius:8px;font-size:14px;padding:10px 12px;margin-top:6px}
.exam-flow .microphone-picker p{font-size:12px;line-height:1.7;margin:8px 0 0}
.exam-flow .device-check-card .screen-device-row{border-top:1px solid var(--line);padding-top:18px;margin-top:18px}
.exam-flow .browser-permission-note{font-size:12px;line-height:1.7;margin:10px 0 0}
.exam-flow #mobile-guidance{font-size:13px;line-height:1.8;margin:12px 0 0}
.join-area{margin:18px 0 0;text-align:center}
.exam-flow .consent{display:flex;align-items:flex-start;text-align:start;gap:12px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px 18px;margin:0 0 16px;font-size:15px;line-height:1.8}
.exam-flow .consent input{width:20px;height:20px;flex:0 0 20px;accent-color:#693d7f;margin:4px 0 0}
.exam-flow #join{max-width:800px}
.exam-flow #join-hint,.exam-flow #mobile-device-note{font-size:13px;margin:8px 0 0;line-height:1.7}
.exam-flow .error{font-size:14px;line-height:1.8;overflow-wrap:anywhere;color:#a72f48}
.exam-flow .error:empty{display:none}
.exam-flow .session-top{display:flex;align-items:center;gap:16px;margin:0 0 22px}
.exam-flow #session-name{font-size:22px;font-weight:600;overflow-wrap:anywhere}
.exam-flow .recording{color:#ad3748;background:#fae9ec;border:0;border-radius:8px;font-size:13px;letter-spacing:normal;padding:5px 10px;white-space:nowrap}
.exam-flow .interview-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,24%);gap:22px;align-items:start}
.exam-flow .question-card{min-width:0;min-height:0;padding:20px;border-radius:12px;border-color:var(--line)}
.exam-flow .question-toolbar{position:sticky;top:8px;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;margin:0 0 22px;background:#f1e9f6;border:0;border-radius:10px;box-shadow:none;z-index:10}
.exam-flow .timer-block{min-width:96px;flex-shrink:0;gap:3px}
.exam-flow .timer-block #timer-label{font-size:12px;line-height:1.5;max-width:none}
.exam-flow .question-toolbar .timer{font-size:36px;line-height:1.2;letter-spacing:normal;font-weight:600}
.exam-flow .question-toolbar .exam-help-tools{display:flex;gap:8px;flex-shrink:1;min-width:0}
.exam-flow .question-toolbar .help-icon{display:grid;grid-template-columns:22px auto;grid-template-rows:auto auto;column-gap:6px;align-content:center;align-items:center;justify-content:center;flex:0 1 auto;width:auto;height:58px;min-width:0;border:1px solid #693d7f;border-radius:8px;background:#fff;color:#693d7f;padding:8px 10px;font-size:13px;font-weight:600}
.exam-flow .help-icon svg{grid-column:1;grid-row:1/3;width:22px;height:22px}
.exam-flow .help-label{grid-column:2;grid-row:1;white-space:nowrap}
.exam-flow .help-state{grid-column:2;grid-row:2;font-size:10px;font-weight:400}
.exam-flow .help-icon[data-used=true] .help-state::after{content:"مستخدمة"}
.exam-flow .help-icon[data-used=true]{background:#eeeaf0;border-color:#c9bfce;color:#817487}
.exam-flow .help-icon:disabled{opacity:.6}
.exam-flow .help-icon .help-used{display:none!important}
.exam-flow .help-once{font-size:11px;color:var(--muted);max-width:74px;line-height:1.6}
.exam-flow .question-meta{display:flex;align-items:center;gap:16px;color:var(--muted);font-size:14px}
.exam-flow #question-number{flex-shrink:0}
.exam-flow .question-meta .progress{flex:1;min-width:24px;height:6px;margin:0;background:#ede2f3}
.exam-flow .progress>span{background:#693d7f}
.exam-flow .question-kind{font-size:12px;line-height:1.6;background:#efe4f4;padding:5px 9px;border-radius:8px;white-space:nowrap}
.exam-flow .question-kind:empty{display:none}
.exam-flow .question-card h1{font-size:clamp(24px,2.3vw,34px);font-weight:600;min-height:0;line-height:1.65;letter-spacing:normal;margin:26px 0 8px;overflow-wrap:anywhere}
.exam-flow #question-help{font-size:15px;line-height:1.8;margin:0 0 20px}
.exam-flow .question-options{gap:10px;margin:18px 0}
.exam-flow .choice-option{font-size:18px;line-height:1.7;padding:11px 16px;border-color:var(--line);border-radius:9px;min-height:50px}
.exam-flow .choice-option input{width:22px;height:22px;flex-basis:22px;accent-color:#693d7f;margin-top:4px}
.exam-flow .choice-option:has(input:checked){background:#f2eaf6;border-color:#693d7f}
.exam-flow .choice-option:focus-within{outline:2px solid #8e64a1}
.exam-flow #answer-status{color:var(--muted);font-size:14px;line-height:1.7;margin:12px 0}
.exam-flow #answer-status[data-saved=true]{color:#137f72}
.exam-flow #answer-status[data-saved=true]::before{content:"✓ ";font-weight:600}
.exam-flow #answer-status:empty{display:none}
.exam-flow .exam-controls{border:0;padding:0;margin:12px 0 0}
.exam-flow #progression-help{font-size:12px;line-height:1.8;margin:0;color:var(--muted)}
.exam-flow .question-navigation{position:fixed;inset-inline:0;bottom:0;z-index:30;border-color:var(--line);background:#f5f1f8;padding:12px clamp(20px,6vw,80px) calc(12px + env(safe-area-inset-bottom,0px));box-shadow:0 -4px 18px #492a5808}
.exam-flow .question-navigation #next-question{max-width:800px;font-size:18px;min-height:50px}
.exam-flow.exam-active.has-question-navigation main{padding-bottom:110px}
.exam-flow .interview-grid aside{min-width:0}
.exam-flow .small{border:1px solid var(--line);padding:10px;background:#fff;border-radius:12px}
.exam-flow .small video{border-radius:8px}
.exam-flow .capture-checks{margin:14px 0 0;padding:14px 18px}
.exam-flow .capture-status-line{font-size:14px;line-height:1.8;margin:0;padding:10px 0;color:#a23c4b}
.exam-flow .capture-status-line+.capture-status-line{border-top:1px solid #eee5f4}
.exam-flow .capture-status-line[data-ready=true],.exam-flow [data-ready=true]{color:#137f72}
.exam-flow .upload-status{font-size:12px;line-height:1.8;margin:14px 4px 0}
.exam-flow #restore-capture{font-size:13px;margin-top:12px}
.exam-flow .done-card{max-width:720px;padding:44px;margin:clamp(20px,7vh,80px) auto;text-align:center}
.exam-flow .done-card h1{font-size:clamp(27px,3vw,38px);font-weight:600;line-height:1.6;letter-spacing:normal;margin:24px 0 14px}
.exam-flow .completion-spinner{width:72px;height:72px;border:5px solid #e4d8eb;border-top-color:#693d7f;margin:0 auto;animation:completion-spin .85s linear infinite}
.exam-flow .completion-symbol{display:grid;place-items:center;width:76px;height:76px;margin:0 auto;border:3px solid #137f72;border-radius:50%;font-size:48px;line-height:1;color:#137f72}
.exam-flow #done-view[data-state=problem] .completion-symbol{color:#a72f48;border-color:#a72f48}
.exam-flow #done-view:is([data-state=incomplete],[data-state=with-gaps],[data-state=removed]) .completion-symbol{color:#986322;border-color:#986322}
.exam-flow .completion-warning{background:#fff2d9;color:#8b5714;border:1px solid #edcf95;border-radius:10px;font-size:clamp(18px,2vw,23px);font-weight:600;line-height:1.8;margin:22px 0;padding:16px}
.exam-flow #done-message{font-size:17px;line-height:1.9;margin:12px 0;overflow-wrap:anywhere}
.exam-flow #completion-result-note{font-size:15px;line-height:1.8;margin:10px 0}
.exam-flow .completion-status{font-size:14px;color:var(--muted);line-height:1.8;margin:16px 0 0}
.exam-flow .done-card #return-rooms{margin-top:24px}
.exam-flow #done-view[data-state=pending] #return-rooms{display:none!important}
@media(max-width:1100px){.exam-flow .help-once{display:none}.exam-flow .question-toolbar{gap:10px;padding:12px}.exam-flow .question-toolbar .help-icon{padding:7px 8px;font-size:12px}.exam-flow .timer-block{min-width:84px}.exam-flow .question-toolbar .timer{font-size:31px}}
@media(max-width:850px){
 .exam-flow .setup-grid{grid-template-columns:minmax(0,1fr)}
 .exam-flow .device-preview-card .preview{max-height:320px}
 .exam-flow .interview-grid{grid-template-columns:minmax(0,1fr);gap:16px}
 .exam-flow #interview-view .interview-grid aside{grid-row:1;display:grid;grid-template-columns:76px minmax(0,1fr);gap:8px 14px;align-items:center;background:#fff;padding:12px 16px;border:1px solid var(--line);border-radius:12px}
 .exam-flow #interview-view .interview-grid aside .preview{width:76px;height:68px;aspect-ratio:auto;padding:0;border:0;border-radius:8px}
 .exam-flow #interview-view .interview-grid aside .preview-label{font-size:9px;padding:2px 5px;inset-inline-start:4px;bottom:4px}
 .exam-flow #interview-view .interview-grid aside .capture-checks{padding:0;border:0;background:transparent;margin:0}
 .exam-flow #interview-view .interview-grid aside .capture-status-line{font-size:11px;line-height:1.6;padding:2px 0;margin:0;border:0}
 .exam-flow #interview-view .interview-grid aside .upload-status{grid-column:1/-1;font-size:11px;margin:0}
 .exam-flow #interview-view .interview-grid .question-card{grid-row:2}
}
@media(max-width:700px){
 .exam-flow>.topbar{height:72px;padding:0 20px}
 .exam-flow .topbar .brand{font-size:22px;gap:9px}
 .exam-flow .topbar .brand-mark{width:36px;height:36px;font-size:32px;border-radius:9px;padding-bottom:7px}
 .exam-flow .topbar .brand-mark>span{font-size:14px;right:5px;top:-1px}
 .exam-flow #flow-back{font-size:13px}
 .exam-flow #end-interview{font-size:13px;padding:8px 10px}
 .exam-flow>main{width:calc(100% - 32px);padding:20px 0 28px;min-height:calc(100svh - 72px)}
 .exam-flow .flow-heading h1{font-size:30px}
 .exam-flow .flow-heading p{font-size:14px}
 .flow-steps{gap:6px;margin:16px 0 20px}
 .flow-steps li{flex-direction:column;font-size:13px;gap:6px;text-align:center}
 .flow-steps li:not(:last-child)::after{display:none}
 .step-number{width:30px;height:30px;flex-basis:30px;font-size:14px}
 .flow-card{padding:18px}
 .exam-flow .flow-card h2{font-size:22px}
 .instruction-rules li{gap:12px}
 .instruction-rules p{font-size:15px}
 .flow-icon{width:36px;height:36px;flex-basis:36px}
 .flow-icon svg{width:22px;height:22px}
 .recording-notice{padding:12px;gap:10px;align-items:flex-start}
 .recording-notice p{font-size:13px}
 .exam-flow .help-instructions{padding:18px}
 .exam-flow .help-instructions ul{grid-template-columns:minmax(0,1fr);gap:10px}
 .exam-flow .help-instructions strong{font-size:16px}
 .flow-actions{flex-direction:column;align-items:stretch;gap:10px}
 .flow-actions .quiet{align-self:center}
 .exam-flow .device-preview-card{padding:14px}
 .exam-flow .device-preview-card .preview{min-height:175px}
 .preview-avatar{width:64px;height:64px;margin-bottom:30px}
 .preview-avatar::after{left:-20px;width:104px;height:38px}
 .exam-flow .device-name{gap:8px}
 .exam-flow .device-name strong{font-size:14px}
 .exam-flow .device-status{font-size:11px;padding:4px 6px}
 .exam-flow .device-check-card .check-row{gap:6px}
 .device-name .flow-icon{width:30px;height:30px;flex-basis:30px}
 .exam-flow .consent{padding:12px;font-size:14px}
 .exam-flow .session-top{gap:10px;flex-wrap:wrap;margin-bottom:16px}
 .exam-flow #session-name{font-size:18px}
 .exam-flow .recording{font-size:11px}
 .exam-flow .question-card{padding:14px}
 .exam-flow .question-toolbar{top:6px;margin:0 -5px 18px;padding:10px 8px;gap:6px}
 .exam-flow .timer-block{min-width:65px;max-width:82px}
 .exam-flow .timer-block #timer-label{font-size:10px}
 .exam-flow .question-toolbar .timer{font-size:27px}
 .exam-flow .question-toolbar .exam-help-tools{gap:5px}
 .exam-flow .question-toolbar .help-icon{display:flex;flex-direction:column;flex:1 1 0;gap:3px;width:61px;height:70px;padding:5px 3px;font-size:10px;font-weight:600}
 .exam-flow .help-icon svg{width:19px;height:19px;flex:0 0 19px}
 .exam-flow .help-label{white-space:normal;line-height:1.3}
 .exam-flow .help-state{font-size:8px}
 .exam-flow .help-state:empty{display:none}
 .exam-flow .help-icon[data-used=true] .help-state{display:block}
 .exam-flow .question-meta{gap:8px;font-size:11px}
 .exam-flow .question-kind{font-size:10px;padding:4px 6px}
 .exam-flow .question-card h1{font-size:25px;margin-top:22px;line-height:1.65}
 .exam-flow #question-help{font-size:14px}
 .exam-flow .choice-option{font-size:16px;padding:12px;gap:10px}
 .exam-flow .choice-option input{width:21px;height:21px;flex-basis:21px}
 .exam-flow .question-navigation{padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px))}
 .exam-flow .question-navigation #next-question{font-size:17px}
 .exam-flow .done-card{padding:28px 20px;margin:24px auto}
 .exam-flow .done-card h1{font-size:28px}
 .exam-flow #done-message{font-size:16px}
 .exam-flow .completion-warning{font-size:19px;padding:14px}
}
@media(max-width:360px){.exam-flow .question-toolbar .help-icon{width:52px;font-size:9px}.exam-flow .question-toolbar .timer{font-size:24px}.exam-flow .timer-block{min-width:58px}.exam-flow .question-toolbar{padding-inline:6px}.exam-flow .device-name .flow-icon{display:none}}
@media(prefers-reduced-motion:reduce){.exam-flow .completion-spinner{animation:none}.exam-flow button{transition:none}}
