@font-face{font-family:"DIN Next LT Arabic";src:url("../fonts/DINNextLTArabic-Regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}
:root{
  --blue:#00416B;--deep:#002343;--green:#00C08B;--green-dark:#008661;
  --text:#2F3B3E;--text-2:#4D5858;--muted:#6C787A;--line:#D4DEE0;--line-strong:#B8C6C9;
  --surface:#FFFFFF;--soft:#F7FAFA;--blue-soft:#EAF1F5;--success-soft:#E6F9F4;
  --error:#D02C2F;--error-soft:#FBEAEA;--warning:#B47A00;--warning-soft:#FFF8E8;
  --label:14px;--body:16px;--subtitle:20px;--heading:24px;--display:32px;
  --font:"DIN Next LT Arabic","DIN Next",Arial,sans-serif;--shadow:0 18px 52px rgba(0,35,67,.22)
}
*{box-sizing:border-box}html,body,#app{margin:0;width:1200px;height:680px;font-family:var(--font);color:var(--text);background:#fff;-webkit-font-smoothing:antialiased}body{overflow:hidden}button{font:inherit}h1,h2,h3,p{margin:0}.activity-shell{position:relative;width:1200px;height:680px;overflow:hidden;background:#fff}.screen{position:absolute;inset:0;width:1200px;height:680px;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--soft)}
.btn{height:48px;min-width:118px;padding:0 20px;border-radius:12px;border:1px solid transparent;font-size:var(--body);font-weight:700;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;white-space:nowrap}.btn.primary{background:var(--green);color:#fff}.btn.primary:hover{background:var(--green-dark)}.btn.secondary{background:#fff;color:var(--blue);border-color:var(--blue)}.btn.secondary:hover{background:var(--blue-soft)}.btn:disabled{background:#F2F5F5!important;color:#97A4A6!important;border-color:#DCE4E6!important;cursor:not-allowed;pointer-events:none}.btn:focus-visible,.choice-card:focus-visible,.composer-trigger:focus-visible,.sheet-option:focus-visible,.evidence-card:focus-visible,.close-btn:focus-visible{outline:3px solid rgba(0,192,139,.22);outline-offset:2px}
/* Start */
.start-screen{display:grid;grid-template-columns:minmax(420px,48%) minmax(0,52%);background:#fff}.start-copy{padding:56px 48px 56px 56px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:16px;min-width:0}.start-copy h1{font-size:var(--display);line-height:1.18;color:var(--blue);font-weight:700;max-width:560px}.start-copy p{font-size:var(--body);line-height:1.5;color:var(--text-2);max-width:540px}.start-copy .btn{margin-top:8px}.start-art{display:flex;align-items:center;justify-content:center;padding:40px 48px 40px 8px;overflow:hidden;background:#fff}.start-art img{display:block;width:min(92%,780px);max-width:100%;height:auto;max-height:590px;object-fit:contain}
/* Instructions */
.instructions-screen{display:grid;grid-template-rows:minmax(0,1fr) 80px;background:var(--soft)}.instructions-main{padding:40px 48px 24px;display:flex;align-items:center;justify-content:center;min-height:0}.instructions-wrap{width:min(1100px,100%);margin:0 auto}.instructions-heading h1{font-size:var(--display);line-height:1.18;color:var(--blue);font-weight:700}.instructions-heading p{font-size:var(--body);line-height:1.5;color:var(--text-2);margin-top:12px;max-width:1000px}.instructions-heading strong{color:var(--blue)}.instruction-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:24px}.instruction-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;min-height:210px;display:flex;flex-direction:column;gap:14px;min-width:0}.instruction-icon{width:48px;height:48px;display:flex;align-items:center;justify-content:center;color:var(--blue)}.instruction-icon svg{width:48px;height:48px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}.instruction-icon .accent{stroke:var(--green)}.instruction-card h2{font-size:var(--subtitle);line-height:1.2;color:var(--deep);font-weight:700}.instruction-card p{font-size:var(--body);line-height:1.5;color:var(--text-2)}.instruction-note{margin-top:16px;border-left:4px solid var(--green);background:#fff;padding:13px 16px;border-radius:0 12px 12px 0;font-size:var(--body);line-height:1.5;color:var(--text)}.static-action{height:80px;border-top:1px solid var(--line);background:#fff;padding:16px 24px;display:flex;justify-content:flex-end;align-items:center}
/* Shared task shell */
.activity{display:grid;grid-template-rows:82px minmax(0,1fr) 76px;background:var(--soft)}.header{padding:14px 24px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;gap:24px}.header-title{min-width:0}.header-title h1{font-size:var(--heading);line-height:1.18;color:var(--blue);font-weight:700}.header-title p{font-size:var(--label);line-height:1.35;color:var(--muted);margin-top:5px}.progress{display:flex;align-items:center;gap:12px;flex:0 0 auto}.progress strong{font-size:var(--label);line-height:1.35;color:var(--text-2);font-weight:500;white-space:nowrap}.progress-track{width:180px;height:8px;background:var(--line);border-radius:999px;overflow:hidden}.progress-fill{height:100%;background:var(--green);border-radius:999px}.content{min-height:0;padding:12px 14px;background:var(--soft);display:flex;justify-content:center;overflow:hidden}.footer{border-top:1px solid var(--line);background:#fff;padding:14px 18px;display:grid;grid-template-columns:1fr minmax(0,auto) 1fr;align-items:center;gap:16px}.footer-left{justify-self:start}.footer-note{justify-self:center;text-align:center;font-size:var(--label);line-height:1.35;color:var(--muted)}.footer-right{justify-self:end}
.person-strip{background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px 14px;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:68px}.person-id{display:flex;align-items:center;gap:12px;min-width:0}.avatar{width:44px;height:44px;border-radius:50%;background:#EEF5F7;border:1px solid #D9E4E6;overflow:hidden;display:grid;place-items:center;flex:0 0 44px}.avatar img{width:100%;height:100%;object-fit:cover}.initials-avatar{width:44px;height:44px;border-radius:50%;background:var(--blue-soft);border:1px solid #CBDCE3;color:var(--blue);display:grid;place-items:center;font-size:var(--label);font-weight:700;flex:0 0 44px}.person-copy h2{font-size:var(--subtitle);line-height:1.2;color:var(--blue);font-weight:700}.person-copy p{font-size:var(--label);line-height:1.35;color:var(--muted);margin-top:3px}.soft-pill{padding:8px 12px;border-radius:999px;background:var(--success-soft);color:var(--green-dark);font-size:var(--label);font-weight:700;white-space:nowrap}
/* Choice tasks */
.choice-layout{width:min(1140px,100%);height:100%;display:grid;grid-template-rows:68px minmax(0,1fr);gap:10px;min-height:0}
.case-overview{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.case-context-card,.case-goal-card{border:1px solid var(--line);border-radius:12px;padding:12px 14px;min-height:78px;display:flex;flex-direction:column;justify-content:center}
.case-context-card{background:#F7FAFB;border-left:4px solid var(--blue);border-radius:0 12px 12px 0}
.case-goal-card{background:#F5FBF8;border-left:4px solid var(--green);border-radius:0 12px 12px 0}
.case-context-card span,.case-goal-card span{display:block;font-size:var(--label);font-weight:700;margin-bottom:4px}
.case-context-card span{color:var(--blue)}
.case-goal-card span{color:var(--green-dark)}
.case-context-card p,.case-goal-card p{font-size:var(--body);line-height:1.4;color:var(--text)}
.case-goal-card strong{color:var(--blue);font-weight:700}
.decision-block{padding-top:2px}
.challenge-panel .choice-grid{flex:1;min-height:0}
.challenge-panel .choice-card{min-height:104px}
.choice-panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 18px;display:flex;flex-direction:column;gap:10px;min-height:0}.starting-point{background:#F5FBF8;border-left:4px solid var(--green);border-radius:0 12px 12px 0;padding:9px 13px}.starting-point span{display:block;font-size:var(--label);font-weight:700;color:var(--green-dark);margin-bottom:2px}.starting-point p{font-size:var(--body);line-height:1.38;color:var(--text)}.starting-point strong{color:var(--blue)}.task-kicker{font-size:var(--label);line-height:1.35;color:var(--green-dark);font-weight:700;text-transform:uppercase}.task-title{font-size:var(--subtitle);line-height:1.24;color:var(--blue);font-weight:700;margin-top:3px}.task-copy{font-size:var(--body);line-height:1.45;color:var(--text-2);margin-top:5px;max-width:1000px}.context-box{background:#F7FAFB;border-left:4px solid var(--blue);border-radius:0 12px 12px 0;padding:12px 15px}.context-box span{display:block;font-size:var(--label);font-weight:700;color:var(--blue);margin-bottom:4px}.context-box p{font-size:var(--body);line-height:1.45;color:var(--text)}.choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-height:0;align-items:stretch;flex:1}.choice-card{border:1.5px solid var(--line-strong);border-radius:16px;background:#fff;padding:12px 14px;display:grid;grid-template-columns:26px minmax(0,1fr);gap:12px;align-items:center;text-align:left;color:var(--text);font-size:var(--body);line-height:1.4;cursor:pointer;min-height:108px}.choice-card:hover{border-color:#7EA5BB;background:#FBFDFD}.choice-card.selected{border-color:var(--green);background:var(--success-soft)}.radio{width:26px;height:26px;border:2px solid var(--line-strong);border-radius:50%;display:grid;place-items:center;background:#fff;flex:0 0 26px;margin-top:1px}.choice-card.selected .radio{border-color:var(--green)}.choice-card.selected .radio::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--green)}
/* Case ready */
.case-ready-layout{width:min(1100px,100%);height:100%;display:flex;align-items:center;justify-content:center}.case-ready-card{width:100%;background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px 24px;display:grid;gap:14px}.case-ready-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.case-ready-head span:first-child{font-size:var(--label);font-weight:700;color:var(--green-dark)}.case-ready-head h2{font-size:var(--heading);line-height:1.18;color:var(--blue);margin-top:4px}.case-ready-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.case-ready-item{border:1px solid var(--line);border-radius:14px;background:#FAFCFC;padding:14px 16px}.case-ready-item.full{grid-column:1/-1}.case-ready-item span{display:block;font-size:var(--label);font-weight:700;color:var(--blue);margin-bottom:5px}.case-ready-item p{font-size:var(--body);line-height:1.45;color:var(--text)}.transition-note{border-left:4px solid var(--green);background:#F7FCFA;padding:11px 14px;border-radius:0 12px 12px 0;font-size:var(--body);line-height:1.45;color:var(--text)}
/* Consultation */
.consultation-layout{width:min(1140px,100%);height:100%;display:grid;grid-template-rows:68px minmax(0,1fr);gap:10px;min-height:0}.consultation-card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:0}.consultation-head{padding:10px 16px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;background:#fff}.consultation-head h2{font-size:var(--subtitle);color:var(--blue);line-height:1.2}.consultation-head p{font-size:var(--label);color:var(--muted);margin-top:3px}.chat-window{min-height:0;overflow-y:auto;overflow-x:hidden;padding:12px 18px 16px;background:#F8FAFA;display:flex;flex-direction:column;gap:10px;scrollbar-gutter:stable}.chat-row{display:flex;gap:10px;align-items:flex-end}.chat-row.patient{justify-content:flex-start}.chat-row.trainee{justify-content:flex-end}.chat-bubble{max-width:78%;border:1px solid #C9D8DC;border-radius:18px;padding:10px 13px;background:#fff;font-size:var(--body);line-height:1.42}.trainee .chat-bubble{background:#EAF7F3;border-color:#B4DDCF}.speaker{display:block;font-size:var(--label);font-weight:700;color:var(--blue);margin-bottom:3px}.trainee .speaker{color:var(--green-dark)}.chat-row .avatar,.chat-row .initials-avatar{width:38px;height:38px;flex-basis:38px}.consultation-note{border-top:1px solid var(--line);padding:10px 14px;background:#fff;font-size:var(--label);line-height:1.4;color:var(--muted)}.message-enter{opacity:0;transform:translateY(8px);animation:messageIn .45s ease-out forwards}@keyframes messageIn{to{opacity:1;transform:none}}
/* Debrief */
.debrief-layout{width:min(1140px,100%);height:100%;display:grid;grid-template-rows:minmax(0,1fr);min-height:0}.conversation-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:16px;min-height:0;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr) auto}.conversation-head{padding:10px 16px;border-bottom:1px solid var(--line);background:#fff}.conversation-head h2{font-size:var(--subtitle);line-height:1.22;color:var(--blue)}.conversation-head p{font-size:var(--body);line-height:1.4;color:var(--muted);margin-top:3px}.debrief-chat{min-height:0;overflow-y:auto;overflow-x:hidden;padding:12px 18px 16px;background:#F8FAFA;display:flex;flex-direction:column;gap:10px;scrollbar-gutter:stable}.debrief-row{display:flex;gap:10px;align-items:flex-end}.debrief-row.rayan{justify-content:flex-start}.debrief-row.reem{justify-content:flex-end}.debrief-bubble{max-width:75%;border:1px solid #C9D8DC;border-radius:18px;padding:10px 13px;font-family:var(--font);font-size:var(--body);font-weight:400;line-height:1.42;background:#fff;color:var(--text);text-align:left}.selected-question{cursor:pointer;border-color:#86CFBB;background:#EAF7F3;box-shadow:0 0 0 1px rgba(0,192,139,.08)}.selected-question:hover{border-color:var(--green);background:#E4F7F0}.selected-question:focus-visible{outline:3px solid rgba(0,192,139,.22);outline-offset:2px}.reem .debrief-bubble{background:#EAF7F3;border-color:#B4DDCF}.debrief-bubble strong{display:block;font-size:var(--label);font-weight:700;color:var(--blue);margin-bottom:3px}.reem .debrief-bubble strong{color:var(--green-dark)}.debrief-row .avatar{width:38px;height:38px;flex-basis:38px}.evidence-summary{margin:0 48px;border:1px solid #CFE0E6;border-left:4px solid var(--blue);border-radius:0 12px 12px 0;background:#fff;padding:9px 12px}.evidence-summary span{display:block;font-size:var(--label);font-weight:700;color:var(--blue);margin-bottom:3px}.evidence-summary p{font-size:var(--label);line-height:1.4;color:var(--text)}.composer-bar{border-top:1px solid var(--line);background:#fff;padding:10px 14px}.composer-trigger{width:100%;min-height:54px;border:1.5px solid #B7C8CC;border-radius:14px;background:#fff;padding:9px 14px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:start;text-align:left;cursor:pointer;color:var(--text)}.composer-trigger:hover{border-color:var(--blue);background:#FBFCFC}.composer-trigger.has-selection{border-color:#9EDDCB;background:#F4FCF9}.composer-label{font-size:var(--label);font-weight:700;color:var(--green-dark);white-space:nowrap}.composer-preview{font-size:var(--body);line-height:1.35;color:var(--muted);white-space:normal;overflow-wrap:break-word;padding-top:1px}.composer-trigger.has-selection .composer-preview{color:var(--text)}.composer-chevron{width:34px;height:34px;border-radius:10px;background:var(--blue-soft);display:grid;place-items:center;color:var(--blue);font-size:var(--subtitle);line-height:1;align-self:center}.composer-scrim{position:absolute;inset:0;background:rgba(0,35,67,.12);z-index:20;cursor:pointer}.composer-sheet{position:absolute;left:0;right:0;bottom:0;z-index:21;background:#fff;border-top:1px solid var(--line);border-radius:20px 20px 0 0;padding:8px 16px 14px;box-shadow:0 -12px 32px rgba(0,35,67,.14);max-height:78%;overflow:auto}.sheet-handle{width:42px;height:4px;border-radius:999px;background:#D6DFE1;margin:0 auto 8px}.sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px}.sheet-head h3{font-size:var(--subtitle);line-height:1.22;color:var(--blue)}.sheet-head p{font-size:var(--label);line-height:1.4;color:var(--muted);margin-top:4px}.close-btn{width:36px;height:36px;border:0;border-radius:10px;background:#F2F6F6;color:var(--blue);font-size:var(--heading);line-height:1;cursor:pointer;flex:0 0 36px;display:grid;place-items:center}.sheet-options{display:grid;grid-template-columns:1fr;gap:8px}.sheet-option{width:100%;border:1.5px solid #B7C8CC;border-radius:14px;background:#fff;padding:11px 14px;display:grid;grid-template-columns:26px minmax(0,1fr);gap:12px;align-items:start;text-align:left;cursor:pointer;color:var(--text)}.sheet-option:hover{border-color:var(--blue);background:#FBFCFC}.sheet-option.selected{border-color:var(--green);background:var(--success-soft)}.sheet-option span:last-child{font-size:var(--body);line-height:1.45}.sheet-option .radio{margin-top:1px}
/* Evidence task */
.evidence-layout{width:min(1140px,100%);height:100%;display:grid;grid-template-rows:68px minmax(0,1fr);gap:10px;min-height:0}.evidence-panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px 18px;display:flex;flex-direction:column;justify-content:center;gap:16px;min-height:0}.evidence-question{flex:0 0 auto}.evidence-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(2,minmax(104px,1fr));gap:12px;align-content:center;min-height:0}.evidence-card{border:1.5px solid var(--line-strong);border-radius:16px;background:#fff;padding:14px 16px;display:grid;grid-template-columns:26px minmax(0,1fr);gap:12px;align-items:center;text-align:left;color:var(--text);font-size:var(--body);line-height:1.42;cursor:pointer;min-height:104px}.evidence-card:hover{border-color:#7EA5BB;background:#FBFDFD}.evidence-card.selected{border-color:var(--green);background:var(--success-soft)}.evidence-card.locked-correct{border-color:var(--green)!important;background:var(--success-soft)!important;opacity:1!important;color:var(--text)!important;cursor:default}.checkbox{width:26px;height:26px;border:2px solid var(--line-strong);border-radius:6px;background:#fff;display:grid;place-items:center;flex:0 0 26px}.evidence-card.selected .checkbox,.evidence-card.locked-correct .checkbox{border-color:var(--green);background:var(--green);color:#fff}.checkbox svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
/* Feedback */
.feedback-overlay{position:absolute;inset:0;z-index:50;background:rgba(0,35,67,.33);display:flex;align-items:center;justify-content:center;padding:24px}.feedback-card{width:min(620px,calc(100% - 48px));max-height:calc(100% - 48px);overflow:hidden;background:#fff;border-radius:16px;padding:28px 32px 24px;box-shadow:var(--shadow);display:grid;gap:18px}.feedback-status{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}.feedback-icon{width:56px;height:56px;border-radius:50%;display:grid;place-items:center}.feedback-icon svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}.feedback-card.correct .feedback-icon{background:var(--success-soft);color:var(--green-dark)}.feedback-card.incorrect .feedback-icon{background:var(--error-soft);color:var(--error)}.feedback-card.partial .feedback-icon{background:var(--warning-soft);color:var(--warning)}.feedback-status h2{font-size:var(--heading);line-height:1.18;font-weight:700}.feedback-card.correct .feedback-status h2{color:var(--green-dark)}.feedback-card.incorrect .feedback-status h2{color:var(--error)}.feedback-card.partial .feedback-status h2{color:var(--warning)}.feedback-body{overflow:auto;min-height:0}.feedback-body p{font-size:var(--body);line-height:1.5;color:var(--text);text-align:left}.feedback-body strong{color:var(--deep)}.feedback-actions{display:flex;justify-content:center;margin-top:2px}.feedback-actions .btn{min-width:188px}
/* Summary */
.summary-screen{display:grid;grid-template-rows:minmax(0,1fr) 76px;background:var(--soft)}.summary-main{padding:24px 40px;min-height:0;display:flex;align-items:center;justify-content:center}.summary-wrap{width:min(1050px,100%)}.summary-heading h1{font-size:var(--display);line-height:1.18;color:var(--blue);font-weight:700}.summary-heading p{font-size:var(--body);line-height:1.5;color:var(--text-2);margin-top:8px;max-width:900px}.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}.summary-item{position:relative;display:flex;gap:13px;padding:16px 18px;border:1px solid #DDE7EA;border-radius:12px;background:#fff;min-height:116px;align-items:flex-start}.summary-item::before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:3px;background:#8DBED4}.summary-item:nth-child(2)::before,.summary-item:nth-child(4)::before{background:#63B99A}.summary-num{width:28px;height:28px;border-radius:50%;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;font-size:var(--label);font-weight:700;flex:0 0 28px}.summary-item strong{display:block;font-size:var(--body);line-height:1.25;color:var(--blue);margin:2px 0 6px}.summary-item p{color:var(--text);font-size:var(--body);line-height:1.45}.summary-note{border-left:4px solid var(--green);background:#fff;padding:12px 15px;border-radius:0 12px 12px 0;font-size:var(--body);line-height:1.45;color:var(--text-2);margin-top:14px}
/* Completion */
.complete-screen{display:flex;align-items:center;justify-content:center;background:#F1FAF7}.complete-card{width:760px;background:#fff;border:1px solid #DDECE7;border-radius:24px;padding:42px 34px;text-align:center;box-shadow:0 12px 32px rgba(0,35,67,.08)}.complete-mark{width:76px;height:76px;border-radius:50%;background:var(--success-soft);color:var(--green-dark);display:grid;place-items:center;margin:0 auto 18px}.complete-mark svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.complete-card h1{font-size:var(--display);line-height:1.18;color:var(--blue);font-weight:700}.complete-card p{font-size:var(--body);line-height:1.5;color:var(--text-2);margin:12px auto 0;max-width:640px}
