@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:focus-visible,.composer-trigger:focus-visible,.sheet-option:focus-visible,.framework-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: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 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 */
.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}.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}
/* situation */
.situation-layout{width:min(1140px,100%);height:100%;display:grid;grid-template-rows:68px minmax(0,1fr);gap:10px}.situation-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 18px;min-height:0;display:grid;grid-template-rows:auto auto;align-content:center;gap:20px;overflow:hidden}.situation-card.has-wba{grid-template-rows:auto minmax(0,1fr) auto;align-content:stretch;gap:12px;padding:16px 18px}.task-kicker{font-size:var(--label);line-height:1.35;color:var(--green-dark);font-weight:700;text-transform:uppercase;letter-spacing:.2px}.situation-head h2{font-size:var(--subtitle);line-height:1.22;color:var(--blue);font-weight:700;margin-top:3px}.situation-head p{font-size:var(--body);line-height:1.48;color:var(--text-2);margin-top:6px;max-width:980px}.fact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-height:172px;align-items:stretch}.situation-card.has-wba .fact-grid{min-height:0}.fact{background:#FAFCFC;border:1px solid var(--line);border-top:3px solid var(--blue);border-radius:14px;padding:18px 16px;min-width:0;display:flex;flex-direction:column;justify-content:center}.fact span{display:block;font-size:var(--label);line-height:1.35;color:var(--blue);font-weight:700;margin-bottom:8px}.fact p{font-size:var(--body);line-height:1.45;color:var(--text)}.wba-inline{margin-top:auto;border:1px solid #E6C56E;background:var(--warning-soft);border-radius:12px;padding:9px 12px;display:flex;align-items:center;justify-content:space-between;gap:14px}.wba-inline strong{display:block;font-size:var(--label);color:#7A5200}.wba-inline p{font-size:var(--label);color:#6A5B3A;margin-top:2px}
/* framework choice */
.framework-layout{width:min(1140px,100%);height:100%;display:grid;grid-template-rows:68px auto minmax(0,1fr);gap:10px}.choice-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:13px 18px}.choice-card h2{font-size:var(--subtitle);line-height:1.22;color:var(--blue);font-weight:700}.choice-card p{font-size:var(--body);line-height:1.45;color:var(--muted);margin-top:4px}.situation-summary{font-size:var(--body);line-height:1.42;color:var(--text);background:#F8FAFA;border-left:4px solid var(--green);padding:9px 14px;border-radius:0 12px 12px 0;margin-top:9px}.framework-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-height:0;align-items:center;padding:4px 0}.framework-card{width:100%;height:190px;border:1.5px solid var(--line-strong);border-radius:16px;background:#fff;padding:24px 26px;cursor:pointer;text-align:left;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;transition:.15s;min-width:0;overflow:hidden}.framework-card:hover{border-color:#8FA6AC}.framework-card.selected{border-color:var(--green);background:var(--success-soft)}.framework-top{display:flex;align-items:center;gap:12px}.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}.selected .radio{border-color:var(--green)}.selected .radio:after{content:"";width:10px;height:10px;border-radius:50%;background:var(--green)}.framework-name{font-size:var(--subtitle);line-height:1.2;color:var(--deep);font-weight:700}.framework-desc{font-size:var(--body);line-height:1.5;color:var(--text-2);margin-top:14px;max-width:460px}
/* stage track */
.conversation-layout{width:min(1140px,100%);height:100%;display:grid;grid-template-rows:38px minmax(0,1fr);gap:10px;min-height:0}.stage-track{display:grid;grid-template-columns:repeat(4,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;min-width:0}.stage-step span{width:24px;height:24px;border:1.5px solid #B8C6C9;border-radius:50%;display:grid;place-items:center;background:#fff;flex:0 0 24px}.stage-step.active{background:var(--blue-soft);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)}
/* conversation */
.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;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.conversation-head-copy{min-width:0}.conversation-head h2{font-size:var(--subtitle);line-height:1.22;color:var(--blue);margin-top:2px}.conversation-head p{font-size:var(--body);line-height:1.42;color:var(--muted);margin-top:3px}.chat-window{min-height:0;overflow:auto;padding:12px 18px 14px;background:#F8FAFA;display:flex;flex-direction:column;gap:10px;scrollbar-width:thin}.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-bubble{max-width:74%;border:1px solid #C9D8DC;border-radius:18px;padding:11px 14px;font-size:var(--body);line-height:1.46;color:var(--text);background:#fff}.trainer .chat-bubble{background:#EAF7F3;border-color:#B4DDCF}.speaker{display:block;font-size:var(--label);line-height:1.35;font-weight:700;color:var(--blue);margin-bottom:4px}.trainer .speaker{color:var(--green-dark)}.chat-row .avatar{width:40px;height:40px;flex-basis:40px}.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}}
.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(--blue);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:18px;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);margin-top:2px}.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:24px;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}.review-note{font-size:var(--label);line-height:1.4;color:var(--muted);padding:0 2px}
/* 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-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}
/* modal */
.modal-overlay{position:absolute;inset:0;z-index:55;background:rgba(0,35,67,.33);display:flex;align-items:center;justify-content:center;padding:24px}.wba-modal{width:min(720px,calc(100% - 48px));background:#fff;border-radius:16px;box-shadow:var(--shadow);overflow:hidden}.wba-head{padding:18px 20px 14px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.wba-head span{font-size:var(--label);color:var(--green-dark);font-weight:700;text-transform:uppercase}.wba-head h2{font-size:var(--heading);line-height:1.18;color:var(--blue);margin-top:3px}.wba-head p{font-size:var(--label);color:var(--muted);margin-top:3px}.wba-body{padding:16px 20px}.evidence-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.evidence-item{border:1px solid var(--line);border-radius:12px;padding:12px 13px;font-size:var(--body);line-height:1.45;color:var(--text);background:#FAFCFC}.wba-actions{padding:0 20px 18px;display:flex;justify-content:flex-end}
/* bridge */
.bridge-layout{width:min(900px,100%);height:100%;display:flex;align-items:center;justify-content:center}.bridge-card{width:100%;background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px 32px;text-align:center}.success-circle{width:66px;height:66px;border-radius:50%;background:var(--success-soft);color:var(--green-dark);display:grid;place-items:center;margin:0 auto 14px}.success-circle svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:2.2}.bridge-card h2{font-size:var(--heading);color:var(--blue);font-weight:700}.bridge-card>p{font-size:var(--body);line-height:1.5;color:var(--text-2);max-width:680px;margin:8px auto 0}.outcome-box{margin:16px auto 0;max-width:760px;background:#F4FCF9;border-left:4px solid var(--green);padding:11px 14px;text-align:left;border-radius:0 12px 12px 0;font-size:var(--body);line-height:1.45;color:var(--text)}
/* summary */
.summary-screen{display:grid;grid-template-rows:minmax(0,1fr) 80px;background:var(--soft)}.summary-main{padding:26px 48px;min-height:0;display:flex;align-items:center;justify-content:center}.summary-wrap{width:min(1100px,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:16px}.summary-card{background:#fff;border:1px solid var(--line);border-top:4px solid var(--blue);border-radius:16px;padding:18px;min-width:0}.framework-label{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:10px}.summary-sequence{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:10px}.summary-sequence span{font-size:var(--label);line-height:1.25;text-align:center;padding:7px 5px;border-radius:9px;background:var(--blue-soft);color:var(--blue);font-weight:700}.summary-card p{font-size:var(--body);line-height:1.45;color:var(--text-2);margin-top:9px}.summary-card p strong{color:var(--deep)}.summary-note{border-left:4px solid var(--green);background:#fff;padding:10px 14px;border-radius:0 12px 12px 0;font-size:var(--body);line-height:1.45;color:var(--text);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}.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:620px}

/* Systems-Based Educational Improvement — activity-specific components */
.system-layout{width:min(1140px,100%);height:100%;display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;min-width:0;min-height:0}
.stage-banner{background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:58px}
.stage-banner-copy{min-width:0}.stage-banner-copy span{display:block;font-size:var(--label);line-height:1.35;color:var(--green-dark);font-weight:700}.stage-banner-copy p{font-size:var(--body);line-height:1.4;color:var(--text-2);margin-top:2px}.stage-chip{flex:0 0 auto;padding:7px 11px;border-radius:999px;background:var(--blue-soft);color:var(--blue);font-size:var(--label);font-weight:700}
.task-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;min-width:0;min-height:0;overflow:hidden;display:flex;flex-direction:column}
.task-kicker{font-size:var(--label);line-height:1.35;color:var(--green-dark);font-weight:700}.task-card h2{font-size:var(--subtitle);line-height:1.22;color:var(--blue);font-weight:700;margin-top:4px}.task-card>p,.task-intro{font-size:var(--body);line-height:1.5;color:var(--text-2);margin-top:6px}

/* clinic evidence */
.clinic-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}.clinic-tab{height:44px;border-radius:12px;border:1.5px solid var(--line-strong);background:#fff;color:var(--blue);font-size:var(--body);font-weight:700;cursor:pointer}.clinic-tab.active{border-color:var(--green);background:var(--success-soft);color:var(--green-dark)}
.clinic-panel{margin-top:12px;border:1px solid var(--line);border-radius:16px;padding:16px;background:#FAFCFC;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-height:0}
.metric-card{border:1px solid var(--line);border-radius:12px;background:#fff;padding:12px 14px}.metric-card span{display:block;font-size:var(--label);line-height:1.35;color:var(--muted)}.metric-card strong{display:block;font-size:var(--heading);line-height:1.18;color:var(--blue);margin-top:4px}
.clinic-detail{grid-column:1/-1;border-top:1px solid var(--line);padding-top:12px;display:grid;gap:7px}.clinic-detail p{font-size:var(--body);line-height:1.42;color:var(--text)}.clinic-detail strong{color:var(--deep)}
.compare-note{margin-top:12px;border-left:4px solid var(--green);background:#F4FCF9;border-radius:0 12px 12px 0;padding:10px 13px;font-size:var(--body);line-height:1.42;color:var(--text)}

/* question cards */
.question-wrap{margin-top:14px;display:grid;gap:10px;min-height:0}.question-title{font-size:var(--subtitle);line-height:1.22;color:var(--deep);font-weight:700}.option-list{display:grid;gap:8px;min-height:0}.option-card{width:100%;border:1.5px solid var(--line-strong);border-radius:16px;background:#fff;padding:10px 13px;display:grid;grid-template-columns:26px minmax(0,1fr);gap:12px;align-items:start;text-align:left;color:var(--text);cursor:pointer;min-height:52px}.option-card:hover{border-color:var(--blue);background:#FBFCFC}.option-card.selected{border-color:var(--green);background:var(--success-soft)}.option-card .radio{width:26px;height:26px;border:2px solid var(--line-strong);border-radius:50%;display:grid;place-items:center;background:#fff;margin-top:1px}.option-card.selected .radio{border-color:var(--green)}.option-card.selected .radio::after{content:"";width:12px;height:12px;border-radius:50%;background:var(--green)}.option-card span:last-child{font-size:var(--body);line-height:1.45;color:var(--text)}
.evidence-list-select{display:grid;gap:8px;margin-top:12px}.check-card{width:100%;border:1.5px solid var(--line-strong);border-radius:16px;background:#fff;padding:10px 13px;display:grid;grid-template-columns:26px minmax(0,1fr);gap:12px;align-items:start;text-align:left;cursor:pointer}.check-card.selected{border-color:var(--green);background:var(--success-soft)}.check-box{width:26px;height:26px;border:2px solid var(--line-strong);border-radius:6px;display:grid;place-items:center;color:#fff;font-size:16px;font-weight:700}.check-card.selected .check-box{background:var(--green);border-color:var(--green)}.check-card span:last-child{font-size:var(--body);line-height:1.45}

/* evidence summaries */
.evidence-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.evidence-stat{border:1px solid var(--line);border-radius:12px;background:#FAFCFC;padding:10px 12px}.evidence-stat span{display:block;font-size:var(--label);line-height:1.35;color:var(--muted)}.evidence-stat strong{display:block;font-size:var(--body);line-height:1.42;color:var(--deep);margin-top:3px}
.followup-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.followup-item{border:1px solid var(--line);border-radius:12px;background:#FAFCFC;padding:12px}.followup-item span{display:block;font-size:var(--label);color:var(--green-dark);font-weight:700}.followup-item p{font-size:var(--body);line-height:1.42;color:var(--text);margin-top:4px}

/* source review */
.source-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}.source-tab{height:44px;border-radius:12px;border:1.5px solid var(--line-strong);background:#fff;color:var(--blue);font-size:var(--label);font-weight:700;cursor:pointer}.source-tab.active{border-color:var(--green);background:var(--success-soft);color:var(--green-dark)}.source-panel{margin-top:12px;border:1px solid var(--line);border-radius:16px;background:#FAFCFC;padding:16px;min-height:130px}.source-panel h3{font-size:var(--subtitle);line-height:1.22;color:var(--blue)}.source-panel p,.source-panel li{font-size:var(--body);line-height:1.45;color:var(--text)}.source-panel ul{margin:8px 0 0;padding-left:20px}.source-progress{font-size:var(--label);line-height:1.35;color:var(--muted);margin-top:8px}

/* sequence */
.sequence-bank{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}.sequence-item{border:1.5px solid var(--line-strong);border-radius:16px;background:#fff;padding:12px;text-align:left;cursor:pointer;min-height:92px}.sequence-item.used{opacity:.42;cursor:not-allowed}.sequence-item strong{display:block;font-size:var(--body);line-height:1.35;color:var(--deep)}.sequence-item span{display:block;font-size:var(--label);line-height:1.35;color:var(--text-2);margin-top:4px}.sequence-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.sequence-slot{border:1.5px dashed var(--line-strong);border-radius:16px;background:#FBFCFC;padding:10px;min-height:86px;display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;align-items:start}.sequence-slot.filled{border-style:solid;border-color:var(--blue);background:var(--blue-soft)}.sequence-num{width:30px;height:30px;border-radius:50%;background:#fff;border:1px solid var(--line);display:grid;place-items:center;color:var(--blue);font-weight:700}.sequence-slot strong{display:block;font-size:var(--label);line-height:1.3;color:var(--deep)}.sequence-slot span:last-child{display:block;font-size:var(--label);line-height:1.3;color:var(--text-2);margin-top:3px}.sequence-actions{display:flex;justify-content:flex-end;margin-top:10px}

/* bridge refinements */
.bridge-layout{width:min(900px,100%);height:100%;display:flex;align-items:center;justify-content:center}.bridge-card{width:100%;background:#fff;border:1px solid var(--line);border-radius:16px;padding:28px 32px;text-align:center}.bridge-card .success-circle{width:66px;height:66px}.bridge-card .stage-next{display:inline-block;margin-top:14px;padding:6px 10px;border-radius:999px;background:var(--blue-soft);color:var(--blue);font-size:var(--label);font-weight:700}

/* summary specific */
.system-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.system-summary-card{background:#fff;border:1px solid var(--line);border-top:4px solid var(--blue);border-radius:16px;padding:16px}.system-summary-card span{font-size:var(--label);line-height:1.35;color:var(--green-dark);font-weight:700}.system-summary-card h2{font-size:var(--subtitle);line-height:1.22;color:var(--deep);margin-top:7px}.system-summary-card p{font-size:var(--body);line-height:1.42;color:var(--text-2);margin-top:6px}.system-summary-card.sequence-result{grid-column:1/-1;border-top-color:var(--green)}

@media(max-width:900px){.clinic-panel{grid-template-columns:1fr 1fr}.evidence-strip,.followup-grid,.sequence-bank,.sequence-slots{grid-template-columns:repeat(3,minmax(0,1fr))}.system-summary-grid{grid-template-columns:1fr 1fr}.system-summary-card.sequence-result{grid-column:1/-1}}
/* Stage name is communicated in the shared header; bridge screens mark stage transitions. */
.system-layout{display:block;height:100%}
.system-layout>.task-card{height:100%}

/* v2 refinement — tighter rhythm, stage clarity, partial feedback, drag sequencing */
.system-layout{display:flex;align-items:center;justify-content:center;height:100%;width:min(1140px,100%)}
.system-layout>.task-card{height:auto;width:100%;max-height:100%}
.task-card.compact-card{min-height:420px;justify-content:center;padding:22px 20px}
.task-card.fill-card{min-height:458px;padding:20px}
.task-card.source-review-card{justify-content:center}
.task-card.sequence-card{justify-content:center}
.question-wrap{margin-top:16px;gap:12px}
.option-list{gap:9px}
.option-card{min-height:58px;padding:11px 14px;align-items:center}
.evidence-strip{gap:10px;margin-top:14px}.evidence-stat{min-height:76px;padding:12px 14px;display:flex;flex-direction:column;justify-content:center}
.followup-grid{gap:10px;margin-top:14px}.followup-item{min-height:102px;display:flex;flex-direction:column;justify-content:center}
.evidence-list-select{gap:9px;margin-top:14px}.check-card{min-height:54px;padding:11px 14px;align-items:center}
.check-box{align-self:center}.check-box svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.check-card.selected .check-box{color:#fff}
.check-card.review-correct{border-color:var(--green);background:var(--success-soft)}
.check-card.review-wrong{border-color:var(--error);background:var(--error-soft)}
.check-card.review-wrong .check-box{background:var(--error);border-color:var(--error);color:#fff}

/* clearer stage transition without adding a second progress system */
.bridge-card{max-width:820px;padding:30px 34px}
.bridge-done{display:inline-block;font-size:var(--label);line-height:1.35;font-weight:700;color:var(--green-dark);margin-bottom:8px}
.bridge-card h2{font-size:var(--heading);line-height:1.18;color:var(--blue)}
.bridge-next{margin:18px auto 0;max-width:700px;border-left:4px solid var(--green);background:#F7FAFA;border-radius:0 12px 12px 0;padding:12px 14px;text-align:left}
.bridge-next strong{display:block;font-size:var(--label);line-height:1.35;color:var(--green-dark)}
.bridge-next span{display:block;font-size:var(--body);line-height:1.45;color:var(--text);margin-top:3px}

/* canonical feedback with third Partly Correct state */
.feedback-card.partial .feedback-icon{background:var(--warning-soft);color:var(--warning)}
.feedback-card.partial .feedback-status h2{color:var(--warning)}
.feedback-card.partial .feedback-icon svg{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.feedback-body p+p{margin-top:10px}
.feedback-body strong{color:var(--deep);font-weight:700}

/* draggable improvement sequence */
.sequence-bank{gap:10px;margin-top:14px}
.sequence-item{position:relative;min-height:96px;padding:12px 12px 12px 42px;display:flex;align-items:center;cursor:grab}
.sequence-item:active{cursor:grabbing}.sequence-item.dragging{opacity:.45}.sequence-item.used{opacity:.35;cursor:not-allowed}
.drag-grip{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:22px;height:30px;display:grid;place-items:center;color:var(--blue)}
.drag-grip svg,.slot-grip svg{width:20px;height:20px;fill:currentColor;stroke:none}
.sequence-copy{min-width:0}.sequence-copy strong{font-size:var(--body);line-height:1.35;color:var(--deep)}.sequence-copy>span{font-size:var(--label);line-height:1.35;color:var(--text-2);margin-top:4px}
.sequence-slots{gap:10px;margin-top:14px}
.sequence-slot{position:relative;min-height:96px;padding:12px 38px 12px 12px;grid-template-columns:30px minmax(0,1fr);align-items:center;transition:border-color .15s ease,background .15s ease}
.sequence-slot.filled{cursor:grab}.sequence-slot.filled:active{cursor:grabbing}.sequence-slot.drag-over{border-color:var(--green);background:var(--success-soft)}
.sequence-slot.review-correct{border-color:var(--green);background:var(--success-soft)}
.sequence-slot.review-wrong{border-color:var(--error);background:var(--error-soft)}
.sequence-slot-copy{min-width:0}.sequence-slot-copy strong{display:block;font-size:var(--label);line-height:1.3;color:var(--deep)}.sequence-slot-copy>span{display:block;font-size:var(--label);line-height:1.3;color:var(--text-2);margin-top:3px}
.slot-grip{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:22px;height:30px;display:grid;place-items:center;color:var(--blue)}
.sequence-actions{margin-top:12px}

/* use space deliberately rather than leaving a large empty lower half */
.clinic-panel{margin-top:14px;padding:18px}.metric-card{min-height:84px;display:flex;flex-direction:column;justify-content:center}.compare-note{margin-top:14px}
.source-panel{min-height:150px;padding:18px;display:flex;flex-direction:column;justify-content:center}
.source-tabs{margin-top:16px;gap:10px}.source-tab{height:48px}

/* keep the locked text scale on all activity-specific content */
.task-kicker,.bridge-done,.stage-next,.source-progress,.sequence-copy>span,.sequence-slot-copy>span{font-size:var(--label)}
.task-card>p,.task-intro,.option-card span:last-child,.check-card span:last-child,.source-panel p,.source-panel li,.bridge-next span{font-size:var(--body)}
.task-card h2,.question-title,.source-panel h3{font-size:var(--subtitle)}
.bridge-card h2{font-size:var(--heading)}
.sequence-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.sequence-head>div{min-width:0}.sequence-head h2{font-size:var(--subtitle);line-height:1.22;color:var(--blue);font-weight:700}.sequence-head p{font-size:var(--body);line-height:1.5;color:var(--text-2);margin-top:6px;max-width:850px}.sequence-head .btn{flex:0 0 auto;margin-top:2px}
.sequence-actions{display:none}

/* v3 refinement — readable density and canonical partial states */
.task-card>p,.task-intro,.option-card span:last-child,.check-card>span:nth-child(2),.source-panel p,.source-panel li,.followup-item p,.evidence-stat strong,.sequence-copy>span,.sequence-slot-copy>span{line-height:1.5}
.option-card,.check-card{padding-top:12px;padding-bottom:12px}
.compact-card{justify-content:flex-start!important;padding-top:24px!important;padding-bottom:24px!important}
.question-wrap{margin-top:18px}

/* Partial multi-select: keep the learner's correct selection visible after retry */
.check-card{position:relative}
.check-card.confirmed-correct{border-color:var(--green);background:var(--success-soft);padding-right:154px;cursor:default}
.check-card.confirmed-correct .check-box{background:var(--green);border-color:var(--green);color:#fff}
.confirmed-label{position:absolute;right:14px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:5px 10px;border-radius:999px;background:#fff;color:var(--green-dark);border:1px solid #BFE8DB;font-size:var(--label);line-height:1.25;font-weight:700;white-space:nowrap}

/* Sequencing task: essential action copy remains 16px and correct placements lock visibly */
.sequence-card{padding:22px 20px!important}
.sequence-bank{margin-top:16px;gap:12px}
.sequence-item{min-height:108px;padding:14px 14px 14px 44px;align-items:flex-start}
.sequence-copy strong{font-size:var(--body);line-height:1.35}
.sequence-copy>span{font-size:var(--body);line-height:1.5;margin-top:5px}
.sequence-slots{margin-top:16px;gap:12px}
.sequence-slot{min-height:108px;padding:14px 42px 14px 14px;align-items:flex-start}
.sequence-slot-copy strong{font-size:var(--body);line-height:1.35}
.sequence-slot-copy>span{font-size:var(--body);line-height:1.5;margin-top:5px}
.sequence-slot.confirmed-correct{border-style:solid;border-color:var(--green);background:var(--success-soft);padding-right:150px;cursor:default}
.sequence-slot.confirmed-correct .sequence-num{background:var(--green);border-color:var(--green);color:#fff}
.sequence-slot.confirmed-correct .sequence-num svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.sequence-slot.confirmed-correct .confirmed-label{right:12px}

/* Standard terminology for partial state */
.feedback-card.partial .feedback-status h2{color:var(--warning)}
.check-card.review-wrong{border-color:var(--error);background:var(--error-soft)}
.check-card.review-wrong .check-box{border-color:var(--error);background:#fff;color:var(--error)}
.sequence-slot.review-wrong{border-style:solid;border-color:var(--error);background:var(--error-soft)}

/* v4 — preserve approved type scale while giving copy enough room */
.evidence-select-card .evidence-list-select{gap:10px;margin-top:16px}
.evidence-select-card .check-card{min-height:58px;padding:13px 14px}
.check-card.confirmed-correct{padding-right:14px}
.confirmed-label{display:none!important}

/* Follow-up evidence: redistribute vertical space; do not shrink type */
.followup-grid{gap:12px;margin-top:14px}
.followup-item{min-height:116px;padding:14px 16px;justify-content:flex-start}
.followup-item p{line-height:1.5;margin-top:6px}
.question-wrap{margin-top:20px;gap:12px}
.option-list{gap:10px}
.option-card{min-height:60px;padding:13px 14px;align-items:center}

/* Sequencing: retain 16px action copy, remove redundant correctness labels */
.sequence-card{padding:20px!important}
.sequence-bank{margin-top:14px;gap:12px}
.sequence-item{min-height:104px;padding:13px 14px 13px 44px}
.sequence-slots{margin-top:14px;gap:12px}
.sequence-slot{min-height:104px;padding:13px 42px 13px 13px}
.sequence-slot.confirmed-correct{padding-right:42px}
.sequence-copy>span,.sequence-slot-copy>span{font-size:var(--body);line-height:1.5}

/* v5 — steps 5–6: preserve approved typography, fix vertical clipping by redistributing layout space */
.followup-step-card,.adaptation-step-card{padding:18px 20px!important;justify-content:flex-start!important}
.followup-step-card .followup-grid{margin-top:10px;gap:12px}
.followup-step-card .followup-item{min-height:92px;padding:12px 16px;justify-content:center}
.followup-step-card .followup-item p{font-size:var(--body);line-height:1.5;margin-top:4px}
.followup-step-card .question-wrap{margin-top:14px;gap:8px}
.followup-step-card .option-list{gap:8px}
.followup-step-card .option-card{min-height:54px;padding:10px 14px;align-items:center}

.adaptation-step-card .evidence-strip{margin-top:10px;gap:12px}
.adaptation-step-card .evidence-stat{min-height:82px;padding:10px 14px;justify-content:center}
.adaptation-step-card .evidence-stat strong{font-size:var(--body);line-height:1.5;margin-top:2px}
.adaptation-step-card .question-wrap{margin-top:14px;gap:8px}
.adaptation-step-card .option-list{gap:8px}
.adaptation-step-card .option-card{min-height:54px;padding:10px 14px;align-items:center}
