@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-3: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)}

/* Controls */
.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:focus-visible,.composer-trigger:focus-visible,.sheet-option:focus-visible{outline:3px solid rgba(0,192,139,.22);outline-offset:2px}

/* Start — locked shared page */
.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 — locked shared page */
.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;min-width:0}
.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:900px}
.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:220px;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)}

/* 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;min-width:0}
.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}

/* Intro conversation */
.intro-layout{width:min(1040px,100%);height:100%;display:flex;align-items:center;justify-content:center}
.intro-card{width:100%;height:100%;max-height:450px;background:#fff;border:1px solid var(--line);border-radius:16px;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
.conversation-toolbar{padding:12px 16px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff}
.method-tag{font-size:var(--label);line-height:1.35;color:var(--green-dark);font-weight:700}.time-tag{font-size:var(--label);line-height:1.35;color:var(--blue);background:var(--blue-soft);padding:7px 10px;border-radius:999px;font-weight:700}
.chat-window{min-height:0;overflow:auto;padding:16px 18px;background:#F8FAFA;display:flex;flex-direction:column;gap:12px}
.chat-row{display:flex;gap:10px;align-items:flex-end}.chat-row.trainee{justify-content:flex-start}.chat-row.trainer{justify-content:flex-end}.chat-row.message-enter{opacity:0;transform:translateY(8px);animation:chatMessageIn .34s ease-out forwards;animation-delay:var(--message-delay,0ms)}@keyframes chatMessageIn{to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.chat-row.message-enter{opacity:1;transform:none;animation:none}}
.avatar{width:38px;height:38px;flex:0 0 38px;border-radius:50%;overflow:hidden;border:1px solid #C7DAE4;background:#fff}.avatar img{width:100%;height:100%;object-fit:cover}
.chat-bubble{max-width:74%;border:1px solid #C9D8DC;border-radius:18px;padding:12px 14px;font-size:var(--body);line-height:1.5;color:var(--text);background:#fff}
.chat-row.trainee .chat-bubble{background:#EEF5F8;border-color:#C9DCE7}.chat-row.trainer .chat-bubble{background:#E7F8F3;border-color:#B4E1D4}
.speaker{display:block;font-size:var(--label);line-height:1.35;font-weight:700;color:var(--blue);margin-bottom:4px}

/* Task composition */
.task-layout{width:min(1140px,100%);height:100%;display:grid;grid-template-rows:38px 104px minmax(0,1fr);gap:10px;min-height:0}
.stage-progress{height:38px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.stage-step{height:36px;display:flex;align-items:center;gap:8px;padding:0 10px;border-radius:999px;background:#F1F4F5;color:var(--muted);font-size:var(--label);line-height:1.35;font-weight:700}
.stage-step span{width:26px;height:26px;flex:0 0 26px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line-strong);background:#fff;color:var(--muted);font-size:12px}
.stage-step.active{background:#EAF3F7;color:var(--blue)}.stage-step.active span{border-color:var(--blue);color:var(--blue)}
.stage-step.done{background:var(--success-soft);color:var(--green-dark)}.stage-step.done span{border-color:var(--green-dark);color:var(--green-dark)}

.scenario-card{height:104px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px 16px;display:grid;grid-template-columns:130px minmax(0,1fr);gap:16px;align-items:center;min-width:0}
.scenario-label{font-size:var(--label);line-height:1.35;color:var(--blue);font-weight:700;text-transform:uppercase;letter-spacing:.2px}
.scenario-person{display:flex;align-items:center;gap:12px;min-width:0}.scenario-bubble{min-width:0;background:var(--blue-soft);border:1px solid #D7E6EE;border-radius:14px;padding:9px 13px}.scenario-bubble strong{display:block;font-size:var(--label);line-height:1.35;color:var(--blue);font-weight:700;margin-bottom:3px}.scenario-bubble span{display:block;font-size:var(--body);line-height:1.45;color:var(--text)}

.task-card{min-height:0;background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 16px;display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;overflow:hidden}
.task-heading{min-width:0}.task-kicker{font-size:var(--label);line-height:1.35;color:var(--green-dark);font-weight:700;text-transform:uppercase}.task-heading h2{font-size:var(--subtitle);line-height:1.22;color:var(--blue);font-weight:700;margin-top:3px}.task-heading p{font-size:var(--body);line-height:1.45;color:var(--muted);margin-top:4px}

/* Role choices — short labels may use a 3-column visual set */
.role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-height:0}
.choice{position:relative;width:100%;min-width:0;border:1.5px solid var(--line-strong);border-radius:16px;background:#fff;color:var(--text);cursor:pointer;text-align:left;transition:border-color .15s,background .15s}
.choice:hover{border-color:#8FA6AC}.choice.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}.choice.selected .radio{border-color:var(--green)}.choice.selected .radio::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--green)}
.role-choice{height:100%;min-height:160px;padding:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center}.role-icon{width:54px;height:54px;border-radius:14px;background:#F4F9F9;display:grid;place-items:center;color:var(--blue)}.role-icon svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.role-icon .accent{stroke:var(--green-dark)}.role-icon .accent-fill{fill:var(--green);stroke:none}.role-choice strong{font-size:var(--subtitle);line-height:1.2;color:var(--deep);font-weight:700}

/* Trigger choices — content-driven vertical rows to avoid compressed long text */
.trigger-list{display:grid;grid-template-columns:1fr;gap:8px;align-content:start;min-height:0}
.trigger-choice{min-height:62px;padding:10px 14px;display:grid;grid-template-columns:26px minmax(0,1fr);gap:12px;align-items:center}.trigger-choice span:last-child{font-size:var(--body);line-height:1.42;color:var(--text)}

/* Conversation response — approved single conversation panel + reply composer */
.response-layout{width:min(1140px,100%);height:100%;display:grid;grid-template-rows:38px minmax(0,1fr);gap:10px;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:11px 16px;border-bottom:1px solid var(--line);background:#fff}.conversation-head .task-kicker{display:block}.conversation-head h2{font-size:var(--subtitle);line-height:1.22;color:var(--blue);margin-top:3px}.conversation-head p{font-size:var(--body);line-height:1.42;color:var(--muted);margin-top:3px}
.conversation-card .chat-window{padding:12px 18px 10px;gap:10px;background:#F8FAFA}.conversation-card .chat-bubble{max-width:74%}
.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:center;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(--blue);white-space:nowrap}.composer-preview{font-size:var(--body);line-height:1.35;color:var(--muted);white-space:normal;overflow:visible;text-overflow:clip;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:18px;line-height:1}
.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:76%;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);margin-top:2px}.sheet-head p{font-size:var(--label);line-height:1.4;color:var(--muted);margin-top:4px}.sheet-close{width:36px;height:36px;border:0;border-radius:10px;background:#F2F6F6;color:var(--blue);font-size:24px;line-height:1;cursor:pointer;flex:0 0 36px;display:grid;place-items:center}.sheet-close:hover{background:var(--blue-soft)}
.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}

/* Unified feedback popup — locked */
.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-3);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-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-body{overflow:auto;min-height:0}.feedback-body p{font-size:var(--body);line-height:1.5;color:var(--text);text-align:left}.feedback-actions{display:flex;justify-content:center}.feedback-actions .btn{min-width:188px}

/* Summary — locked shared page */
.summary-screen{display:grid;grid-template-rows:minmax(0,1fr) 80px;background:var(--soft)}.summary-main{padding:36px 48px 22px;min-height:0}.summary-wrap{width:min(1100px,100%);height:100%;margin:0 auto;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:14px}.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:850px}.summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;min-height:0}.summary-card{background:#fff;border:1px solid var(--line);border-top:4px solid var(--blue);border-radius:16px;padding:18px;min-width:0}.summary-role{display:inline-flex;padding:5px 9px;border-radius:999px;background:var(--blue);color:#fff;font-size:var(--label);font-weight:700}.summary-card h2{font-size:var(--subtitle);line-height:1.22;color:var(--deep);margin-top:12px}.summary-card p{font-size:var(--body);line-height:1.5;color:var(--text-2);margin-top:8px}.summary-note{border-left:4px solid var(--green);background:#fff;padding:11px 14px;border-radius:0 12px 12px 0;font-size:var(--body);line-height:1.5;color:var(--text)}

/* 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:600px}

/* Final QA refinements */
.composer-trigger{height:auto;min-height:54px;align-items:start}
.composer-preview{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:break-word;padding-top:1px}
.composer-chevron{align-self:center}
.summary-wrap{grid-template-rows:auto auto auto;align-content:start}
.summary-grid{align-items:start}
.summary-card{min-height:220px}


/* User-review refinements — 2026-09-17 */
/* Give the current-situation message a little more vertical breathing room without reducing task text. */
.task-layout{grid-template-rows:38px 116px minmax(0,1fr)}
.scenario-card{height:116px;padding:14px 16px}
.scenario-bubble{padding:11px 13px}

/* After a correct conversation response, keep the completed exchange visible before advancing. */
.conversation-card .chat-window{padding-bottom:18px}

/* Center the approved summary composition vertically in the available content area. */
.summary-main{display:flex;align-items:center;justify-content:center;padding:24px 48px}
.summary-wrap{height:auto;align-content:initial;grid-template-rows:auto auto auto}
.summary-grid{align-items:stretch}
