:root{
  /* SCFHS Activity UI System — reusable across learning activities */
  --scfhs-blue:#00416B;
  --scfhs-blue-deep:#002343;
  --scfhs-green:#00C08B;
  --scfhs-green-dark:#008661;
  --scfhs-green-soft:#EAF9F4;
  --scfhs-bg:#F7FAFA;
  --scfhs-surface:#FFFFFF;
  --scfhs-text:#2F3B3E;
  --scfhs-text-secondary:#586466;
  --scfhs-text-muted:#6C787A;
  --scfhs-line:#D4DEE0;
  --scfhs-line-strong:#B8C6C9;
  --scfhs-danger:#B03D32;
  --scfhs-danger-soft:#FCEFED;

  --font-family:"DIN Next LT Arabic","DIN Next","DINNextLTArabic","Helvetica Neue",Helvetica,Arial,sans-serif;
  --fw-regular:400;
  --fw-medium:500;
  --fw-bold:700;

  /* Five-level type scale only */
  --fs-label:14px;
  --fs-body:16px;
  --fs-subtitle:20px;
  --fs-heading:24px;
  --fs-display:32px;

  --lh-tight:1.18;
  --lh-ui:1.35;
  --lh-body:1.5;

  --space-1:8px;
  --space-2:16px;
  --space-3:24px;
  --space-4:32px;

  --radius-card:16px;
  --radius-control:12px;
  --shadow-low:0 1px 3px rgba(16,24,40,.08),0 1px 2px rgba(16,24,40,.05);
  --shadow-raised:0 5px 12px rgba(16,24,40,.10);
  --shadow-modal:0 16px 32px rgba(0,35,67,.14);

  --control-h:48px;
  --activity-h:680px;
}

*{box-sizing:border-box}
html,body{margin:0;width:100%;height:var(--activity-h);min-height:var(--activity-h);max-height:var(--activity-h);overflow:hidden;background:#fff;color:var(--scfhs-text);font-family:var(--font-family);font-weight:var(--fw-regular);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
button{font:inherit}
button:focus-visible{outline:3px solid rgba(0,192,139,.24);outline-offset:2px}
svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
h1,h2,h3,p{margin:0}

.activity-shell{width:100%;height:var(--activity-h);padding:8px;background:#fff;overflow:hidden;position:relative}
.screen{width:100%;height:100%;min-width:0;min-height:0;background:var(--scfhs-bg);border:1px solid var(--scfhs-line);border-radius:var(--radius-card);overflow:hidden;box-shadow:var(--shadow-low)}
.icon{width:20px;height:20px;display:inline-grid;place-items:center;flex:0 0 auto}.icon.tiny{width:14px;height:14px}
.eyebrow{font-size:var(--fs-label);line-height:var(--lh-ui);text-transform:uppercase;letter-spacing:.02em;font-weight:var(--fw-bold);color:var(--scfhs-green-dark);margin-bottom:6px;text-align:left}.eyebrow.no-margin{margin:0}

/* Controls — one system across scenes, questions and feedback */
.btn{height:var(--control-h);min-height:var(--control-h);border-radius:var(--radius-control);border:1px solid transparent;padding:0 20px;display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:8px;font-size:var(--fs-body);font-weight:var(--fw-bold);line-height:1;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s;white-space:nowrap}
.btn .icon{width:17px;height:17px}
.btn.primary{background:var(--scfhs-green);color:#fff;box-shadow:0 1px 2px rgba(16,24,40,.05)}
.btn.primary:hover{background:var(--scfhs-green-dark);box-shadow:var(--shadow-raised)}
.btn.secondary{background:#fff;color:var(--scfhs-blue);border-color:var(--scfhs-line-strong)}
.btn.secondary:hover{background:#F8FBFC}
.btn:disabled{background:#F5F7F7;color:#9AA7AA;border-color:#DCE4E6;box-shadow:none;cursor:not-allowed;opacity:1}
.btn.large{height:52px;min-height:52px;padding:0 26px}
.btn-label{display:inline-flex;align-items:center;justify-content:center;line-height:1}
.link-btn{border:0;background:transparent;color:var(--scfhs-blue);font-size:var(--fs-label);font-weight:var(--fw-bold);cursor:pointer;padding:8px 4px;text-align:left}
.round-btn{width:48px;height:48px;border-radius:50%;border:1px solid #DCE8ED;background:#EAF5FA;color:var(--scfhs-blue);display:grid;place-items:center;cursor:pointer}.round-btn .icon{width:21px;height:21px}

/* INTRO */
.intro-screen{position:relative;display:flex;align-items:center;padding:32px 48px;background:#fff;isolation:isolate}
.intro-screen::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.995) 0%,rgba(255,255,255,.97) 36%,rgba(255,255,255,.72) 53%,rgba(255,255,255,.12) 78%,rgba(255,255,255,0) 100%);z-index:1;pointer-events:none}
.intro-copy{position:relative;z-index:2;width:min(660px,54%);max-width:660px;padding-left:8px;text-align:left}
.intro-copy h1{font-size:var(--fs-display);line-height:var(--lh-tight);font-weight:var(--fw-bold);letter-spacing:-.01em;color:var(--scfhs-blue);margin-bottom:16px;max-width:650px}
.intro-lead{font-size:var(--fs-body);line-height:var(--lh-body);font-weight:var(--fw-regular);color:var(--scfhs-text-secondary);margin-bottom:24px;max-width:590px;text-align:left}
.intro-copy .btn{min-width:196px}
.intro-visual{position:absolute;inset:0;z-index:0;overflow:hidden;background:#fff}
.intro-visual img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}

/* DASHBOARD */
.dashboard-screen{display:grid;grid-template-rows:64px minmax(0,1fr);background:#fff}
.dashboard-topbar{padding:0 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--scfhs-line)}
.dashboard-progress-wrap,.overall-progress,.progress-label{display:flex;align-items:center}.dashboard-progress-wrap{gap:16px}.overall-progress{gap:12px}.progress-label{align-items:baseline;gap:5px;color:var(--scfhs-blue)}.progress-label strong{font-size:var(--fs-body);font-weight:var(--fw-bold)}.progress-label span{font-size:var(--fs-label);color:var(--scfhs-text-secondary)}
.progress-track{width:140px;height:8px;border-radius:999px;background:#EDEEEE;overflow:hidden}.progress-track span{display:block;height:100%;background:var(--scfhs-green);border-radius:inherit}
.dashboard-body{padding:16px 24px 20px;display:grid;grid-template-rows:auto minmax(0,1fr);gap:12px;min-height:0}
.dashboard-heading{text-align:left}.dashboard-heading h2{font-size:var(--fs-heading);line-height:var(--lh-tight);font-weight:var(--fw-bold);color:var(--scfhs-blue);margin-bottom:6px}.dashboard-heading p{font-size:var(--fs-body);line-height:var(--lh-body);color:var(--scfhs-text-secondary)}
.case-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:16px;min-height:0}
.case-card{border:1px solid var(--scfhs-line);border-radius:var(--radius-card);background:#fff;padding:16px 20px;display:grid;grid-template-columns:100px minmax(0,1fr) 24px;align-items:center;gap:18px;text-align:left;cursor:pointer;transition:.15s;min-height:0;box-shadow:0 1px 2px rgba(16,24,40,.035)}.case-card:hover{border-color:var(--scfhs-green);box-shadow:var(--shadow-raised)}
.case-portrait{width:100px;height:100px;border-radius:50%;object-fit:cover;border:5px solid #EEF5F8;background:#fff}.case-card-copy{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}.case-card-title{font-size:var(--fs-subtitle);line-height:var(--lh-tight);font-weight:var(--fw-bold);color:var(--scfhs-blue)}
.case-meta{display:grid;grid-template-columns:150px minmax(0,1fr);gap:6px 20px;width:100%}.case-meta span{min-width:0;display:flex;flex-direction:column;gap:2px}.case-meta b{font-size:var(--fs-label);line-height:1.2;text-transform:uppercase;letter-spacing:.02em;color:var(--scfhs-green-dark);font-weight:var(--fw-bold)}.case-meta em{font-style:normal;font-size:var(--fs-body);line-height:1.3;color:var(--scfhs-text-secondary);font-weight:var(--fw-regular);white-space:normal}
.status-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;background:#EEF1F2;color:var(--scfhs-text-secondary);font-size:var(--fs-label);font-weight:var(--fw-medium)}.status-pill.done{background:var(--scfhs-green-soft);color:#006046}.status-pill.active{background:#EEF5F8;color:var(--scfhs-blue)}.case-chevron{color:var(--scfhs-blue);width:20px;height:20px}

/* SHARED CASE HEADER */
.case-screen{display:grid;grid-template-rows:72px minmax(0,1fr);background:var(--scfhs-bg)}
.case-topbar{padding:0 20px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--scfhs-line)}
.case-title-wrap{display:flex;align-items:center;gap:14px;min-width:0}.case-title-wrap h2{font-size:var(--fs-heading);line-height:var(--lh-tight);font-weight:var(--fw-bold);color:var(--scfhs-blue);text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.scene-progress{display:flex;flex-direction:column;align-items:flex-end;gap:5px;color:var(--scfhs-blue)}.scene-progress strong{font-size:var(--fs-label);font-weight:var(--fw-bold)}.scene-progress span{display:flex;gap:6px}.scene-progress i{display:block;width:8px;height:8px;border-radius:50%;background:#DCE2E3}.scene-progress i.filled{background:var(--scfhs-green)}
.question-progress{display:flex;gap:8px;align-items:center}.q-dot{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#EEF1F2;color:var(--scfhs-text-muted);font-size:var(--fs-label);font-weight:var(--fw-bold)}.q-dot.active{background:var(--scfhs-green);color:#fff}.q-dot.done{background:var(--scfhs-green-soft);color:var(--scfhs-green-dark);border:1px solid var(--scfhs-green)}

/* SCENES */
.scene-body{padding:14px 18px 16px;min-height:0}
.scene-stage{height:100%;display:grid;grid-template-columns:minmax(0,1.58fr) minmax(390px,.78fr);gap:16px;min-height:0}
.scene-image-card{border:1px solid var(--scfhs-line);border-radius:var(--radius-card);background:#EFF5F4;overflow:hidden;display:grid;place-items:center;min-height:0}.scene-image-card img{width:100%;height:100%;object-fit:contain;object-position:center;display:block}
.scene-story-card{border:1px solid var(--scfhs-line);border-radius:var(--radius-card);background:#fff;padding:20px;display:flex;flex-direction:column;min-height:0;box-shadow:0 1px 2px rgba(16,24,40,.035);text-align:left}
.scene-number{width:46px;height:38px;border-radius:10px;background:var(--scfhs-green);color:#fff;display:grid;place-items:center;font-size:var(--fs-body);font-weight:var(--fw-bold);margin-bottom:14px}
.scene-story-card h3{font-size:var(--fs-heading);line-height:var(--lh-tight);font-weight:var(--fw-bold);color:var(--scfhs-blue);margin-bottom:10px;text-align:left}
.scene-story-card p{font-size:var(--fs-body);line-height:var(--lh-body);font-weight:var(--fw-regular);color:var(--scfhs-text-secondary);margin-bottom:12px;text-align:left}
.scene-divider{height:1px;background:#EDEEEE;margin:auto 0 10px}
.scene-note{font-size:var(--fs-label);line-height:var(--lh-ui);color:var(--scfhs-text-muted);font-weight:var(--fw-regular);margin-bottom:10px;text-align:left}
.scene-actions{display:grid;grid-template-columns:112px 1fr;gap:10px;width:100%;margin-top:0}.scene-actions .btn{width:100%;min-width:0;padding-inline:14px}.scene-actions .btn.primary{min-width:0}

/* QUESTIONS */
.question-body{padding:10px 18px 12px;display:grid;grid-template-rows:auto minmax(0,1fr);gap:8px;min-height:0}
.scenario-summary{background:#fff;border:1px solid var(--scfhs-line);border-radius:var(--radius-card);padding:10px 16px;text-align:left}
.scenario-summary-heading{font-size:var(--fs-label);line-height:1.2;font-weight:var(--fw-bold);text-transform:uppercase;letter-spacing:.02em;color:var(--scfhs-green-dark);margin-bottom:4px}
.scenario-summary p{font-size:var(--fs-body);line-height:var(--lh-body);font-weight:var(--fw-regular);color:var(--scfhs-text-secondary);margin:0;text-align:left}
.question-panel{background:#fff;border:1px solid var(--scfhs-line);border-radius:var(--radius-card);padding:12px 14px 10px;display:grid;grid-template-rows:auto minmax(0,1fr) var(--control-h);gap:8px;min-height:0;box-shadow:0 1px 2px rgba(16,24,40,.035)}
.question-header{text-align:left}.question-header .eyebrow{font-size:var(--fs-label);margin-bottom:3px}.question-header h3{font-size:var(--fs-subtitle);line-height:1.25;font-weight:var(--fw-bold);color:#172126;margin-bottom:4px;text-align:left}.question-header p{font-size:var(--fs-label);line-height:var(--lh-ui);font-weight:var(--fw-regular);color:var(--scfhs-text-secondary);text-align:left}
.answer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:10px;min-height:0}
.answer-card{border:1.5px solid var(--scfhs-line-strong);border-radius:var(--radius-control);background:#fff;padding:14px 18px;display:grid;grid-template-columns:26px minmax(0,1fr);align-items:center;gap:12px;text-align:left;cursor:pointer;min-width:0;min-height:0}.answer-card:hover{border-color:var(--scfhs-green)}.answer-card.selected{border-color:var(--scfhs-green);background:var(--scfhs-green-soft)}
.radio-dot{width:26px;height:26px;border-radius:50%;border:2px solid #A7B5B9;display:grid;place-items:center}.radio-dot span{width:10px;height:10px;border-radius:50%;background:transparent}.answer-card.selected .radio-dot{border-color:var(--scfhs-green)}.answer-card.selected .radio-dot span{background:var(--scfhs-green)}
.answer-copy{min-width:0}.answer-copy strong{display:block;font-size:var(--fs-body);line-height:1.25;font-weight:var(--fw-bold);color:#172126}.answer-copy small{display:block;font-size:var(--fs-label);line-height:var(--lh-ui);font-weight:var(--fw-regular);color:var(--scfhs-text-secondary);margin-top:5px}
.question-footer{display:flex;align-items:center;justify-content:flex-end;gap:14px}.validation-message{margin-right:auto;font-size:var(--fs-label);line-height:1.3;color:var(--scfhs-danger);font-weight:var(--fw-medium);text-align:left}.submit-btn{width:200px;min-width:200px}

/* SUPERVISION */
.supervision-grid{grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:1fr;gap:10px}
.supervision-grid .answer-card{grid-template-columns:24px minmax(0,1fr);padding:12px 12px;gap:9px;align-items:center}
.supervision-grid .answer-copy strong{font-size:var(--fs-body);line-height:1.23}.supervision-grid .answer-copy small{font-size:var(--fs-label);line-height:1.35;margin-top:6px}

/* CRITERIA MATRIX */
.criteria-body{grid-template-rows:auto minmax(0,1fr)}.criteria-body .question-panel{grid-template-rows:auto minmax(0,1fr) var(--control-h)}
.criteria-matrix{border:1.5px solid var(--scfhs-line-strong);border-radius:var(--radius-card);overflow:hidden;background:#fff;display:grid;grid-template-rows:52px repeat(4,minmax(0,1fr));min-height:0}
.criteria-row{display:grid;grid-template-columns:minmax(0,1.72fr) minmax(200px,.82fr) minmax(200px,.82fr);min-height:0}.criteria-row+.criteria-row{border-top:1px solid var(--scfhs-line)}
.criteria-head{background:#F6F9FA;color:var(--scfhs-blue);font-weight:var(--fw-bold);border-bottom:1.5px solid var(--scfhs-line-strong)}
.criteria-head>div{padding:8px 12px;font-size:var(--fs-label);line-height:1.25;display:flex;align-items:center;justify-content:center;text-align:center}.criteria-head>div:first-child{justify-content:flex-start;text-align:left}.criteria-head>div+div{border-left:1px solid var(--scfhs-line)}
.criterion-cell{padding:8px 12px;font-size:var(--fs-body);line-height:1.3;color:#172126;display:flex;align-items:center;gap:10px;font-weight:var(--fw-regular);min-width:0;text-align:left}.criterion-index{flex:0 0 auto;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#EEF7F4;color:var(--scfhs-green-dark);font-size:var(--fs-label);font-weight:var(--fw-bold)}
.matrix-choice{border:0;border-left:1px solid var(--scfhs-line);background:#fff;display:grid;place-items:center;cursor:pointer;min-height:0}.matrix-choice:hover{background:#F8FCFA}.matrix-choice.selected{background:#EFFAF6}.matrix-choice.not-choice.selected{background:#FDF2F0}.matrix-radio{width:26px;height:26px;border-radius:50%;border:2px solid #A7B5B9;position:relative}.matrix-choice.selected .matrix-radio{border-color:var(--scfhs-green)}.matrix-choice.selected .matrix-radio::after{content:"";position:absolute;inset:5px;border-radius:50%;background:var(--scfhs-green)}.matrix-choice.not-choice.selected .matrix-radio{border-color:var(--scfhs-danger)}.matrix-choice.not-choice.selected .matrix-radio::after{background:var(--scfhs-danger)}
.criteria-grid{display:none!important}

/* FEEDBACK */
.feedback-backdrop{position:absolute;inset:8px;background:rgba(0,35,67,.28);display:grid;place-items:center;padding:24px;z-index:10;border-radius:var(--radius-card)}
.feedback-card{width:min(760px,94%);min-height:200px;background:#fff;border-radius:var(--radius-card);border:1px solid var(--scfhs-line);padding:24px;display:grid;grid-template-columns:56px minmax(0,1fr);grid-template-rows:auto var(--control-h);gap:16px 18px;align-items:center;box-shadow:var(--shadow-modal)}
.feedback-icon{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;align-self:start}.feedback-card.correct .feedback-icon{background:var(--scfhs-green-soft);color:var(--scfhs-green-dark)}.feedback-card.review .feedback-icon,.feedback-card.partial .feedback-icon{background:var(--scfhs-danger-soft);color:var(--scfhs-danger)}
.feedback-copy{text-align:left;align-self:center}.feedback-copy h3{font-size:var(--fs-heading);line-height:var(--lh-tight);font-weight:var(--fw-bold);color:var(--scfhs-blue);margin-bottom:8px}.feedback-copy p{font-size:var(--fs-body);line-height:var(--lh-body);font-weight:var(--fw-regular);color:var(--scfhs-text-secondary);text-align:left}
.feedback-card>.btn{grid-column:2;width:160px;justify-self:end;align-self:end}

.complete-screen{display:grid;place-items:center;padding:30px;background:linear-gradient(180deg,#F9FCFC,#F2FBF8)}.complete-card{width:min(720px,100%);background:#fff;border:1px solid var(--scfhs-line);border-radius:var(--radius-card);padding:38px 32px;display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:var(--shadow-low)}.complete-mark{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:var(--scfhs-green-soft);color:var(--scfhs-green-dark);margin-bottom:16px}.complete-mark .icon{width:30px;height:30px}.complete-card h1{font-size:var(--fs-display);line-height:var(--lh-tight);font-weight:var(--fw-bold);color:var(--scfhs-blue);margin-bottom:10px}.complete-card p{font-size:var(--fs-body);line-height:var(--lh-body);color:var(--scfhs-text-secondary);max-width:560px}

/* Tablet: preserve readable body type, reflow before shrinking */
@media (max-width:900px){
  .intro-screen{padding:28px 30px}.intro-copy{width:58%;max-width:560px}.intro-copy h1{font-size:30px}.intro-lead{font-size:16px}
  .case-card{grid-template-columns:78px minmax(0,1fr) 20px;padding:12px 14px;gap:12px}.case-portrait{width:78px;height:78px}.case-card-title{font-size:18px}.case-meta{grid-template-columns:110px minmax(0,1fr);gap:5px 12px}.case-meta b{font-size:12px}.case-meta em{font-size:14px}
  .scene-stage{grid-template-columns:minmax(0,1.28fr) minmax(330px,.92fr)}.scene-story-card{padding:16px}.scene-story-card h3{font-size:22px}.scene-actions{grid-template-columns:104px 1fr}
  .supervision-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:8px}.supervision-grid .answer-card:nth-child(4){grid-column:1/2}.supervision-grid .answer-card:nth-child(5){grid-column:2/3}
  .criteria-row{grid-template-columns:minmax(0,1.5fr) minmax(145px,.75fr) minmax(145px,.75fr)}.criterion-cell{font-size:14px}.criteria-head>div{font-size:13px;padding:7px}
}

/* Mobile: maintain 14px minimum body/controls; compact by layout, not scaling */
@media (max-width:600px){
  .activity-shell{padding:6px}.screen{border-radius:14px}
  .intro-screen{padding:24px 18px;align-items:flex-end}.intro-screen::before{background:linear-gradient(180deg,rgba(255,255,255,.06) 0%,rgba(255,255,255,.34) 38%,rgba(255,255,255,.96) 67%,#fff 100%)}.intro-copy{width:100%;max-width:none;padding:0 4px 10px}.intro-copy h1{font-size:28px;margin-bottom:10px}.intro-lead{font-size:15px;line-height:1.45;margin-bottom:16px}.intro-copy .btn{height:48px;font-size:15px}
  .dashboard-screen{grid-template-rows:58px minmax(0,1fr)}.dashboard-topbar{padding:0 12px}.dashboard-progress-wrap{gap:8px}.progress-track{width:72px}.progress-label strong{font-size:14px}.progress-label span{display:none}.link-btn{font-size:12px}.dashboard-body{padding:10px 12px 12px;gap:8px}.dashboard-heading h2{font-size:20px}.dashboard-heading p{font-size:14px;line-height:1.4}.case-grid{gap:8px}.case-card{grid-template-columns:60px minmax(0,1fr) 18px;padding:9px 10px;gap:9px;border-radius:12px}.case-portrait{width:60px;height:60px;border-width:3px}.case-card-copy{gap:4px}.case-card-title{font-size:16px}.case-meta{grid-template-columns:1fr 1fr;gap:3px 8px}.case-meta b{font-size:12px}.case-meta em{font-size:13px;line-height:1.2}.status-pill{font-size:12px;padding:3px 7px}
  .case-screen{grid-template-rows:62px minmax(0,1fr)}.case-topbar{padding:0 10px}.case-title-wrap{gap:9px}.round-btn{width:40px;height:40px}.case-title-wrap h2{font-size:20px}.q-dot{width:32px;height:32px;font-size:12px}.question-progress{gap:5px}.scene-progress strong{font-size:12px}
  .scene-body{padding:8px 9px 9px}.scene-stage{grid-template-columns:1fr;grid-template-rows:275px minmax(0,1fr);gap:8px}.scene-image-card{border-radius:12px}.scene-story-card{padding:12px;border-radius:12px}.scene-number{width:38px;height:30px;font-size:14px;margin-bottom:7px}.scene-story-card h3{font-size:20px;margin-bottom:5px}.scene-story-card p{font-size:14px;line-height:1.42;margin-bottom:5px}.scene-note{font-size:12px;margin-bottom:6px}.scene-divider{margin:auto 0 6px}.scene-actions{grid-template-columns:96px 1fr;gap:8px}.scene-actions .btn{height:44px;min-height:44px;font-size:14px;padding:0 10px}
  .question-body{padding:7px 9px 9px;gap:6px}.scenario-summary{padding:7px 10px;border-radius:12px}.scenario-summary-heading{font-size:12px;margin-bottom:2px}.scenario-summary p{font-size:14px;line-height:1.35}.question-panel{padding:8px 9px 7px;gap:6px;border-radius:12px;grid-template-rows:auto minmax(0,1fr) 44px}.question-header .eyebrow{font-size:12px;margin-bottom:2px}.question-header h3{font-size:18px;line-height:1.2;margin-bottom:2px}.question-header p{font-size:13px;line-height:1.3}
  .answer-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:6px}.answer-card{padding:8px 10px;grid-template-columns:22px minmax(0,1fr);gap:8px;border-radius:11px}.radio-dot{width:22px;height:22px}.radio-dot span{width:8px;height:8px}.answer-copy strong{font-size:14px;line-height:1.2}.answer-copy small{font-size:12px;line-height:1.22;margin-top:2px}
  .supervision-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:5px}.supervision-grid .answer-card,.supervision-grid .answer-card:nth-child(4),.supervision-grid .answer-card:nth-child(5){grid-column:auto;padding:6px 8px;grid-template-columns:20px minmax(0,1fr);gap:7px}.supervision-grid .answer-card:nth-child(5){grid-column:1/3}.supervision-grid .answer-copy strong{font-size:13px;line-height:1.15}.supervision-grid .answer-copy small{font-size:12px;line-height:1.18;margin-top:2px}
  .submit-btn{height:44px;min-height:44px;min-width:160px;width:160px;font-size:14px}.validation-message{font-size:12px}
  .criteria-matrix{grid-template-rows:46px repeat(4,minmax(0,1fr));border-radius:12px}.criteria-row{grid-template-columns:minmax(0,1.45fr) minmax(82px,.68fr) minmax(82px,.68fr)}.criteria-head>div{padding:5px 4px;font-size:12px;line-height:1.15}.criterion-cell{font-size:13px;line-height:1.2;padding:5px 6px;gap:5px}.criterion-index{width:22px;height:22px;font-size:11px}.matrix-radio{width:22px;height:22px}.matrix-choice.selected .matrix-radio::after{inset:4px}
  .feedback-backdrop{inset:6px;padding:12px}.feedback-card{width:96%;min-height:0;padding:16px;grid-template-columns:44px minmax(0,1fr);grid-template-rows:auto 44px;gap:10px 12px}.feedback-icon{width:44px;height:44px}.feedback-copy h3{font-size:20px}.feedback-copy p{font-size:14px;line-height:1.4}.feedback-card>.btn{grid-column:1/-1;width:150px;height:44px;min-height:44px;justify-self:end;font-size:14px}
}

/* =========================================================
   V4 UX AUDIT CORRECTIONS
   Purpose: restore readable typography, eliminate clipping,
   and keep a consistent interaction system at 680px height.
   ========================================================= */

/* Typography: keep content readable and weights intentional. */
.question-header h3{font-size:22px;line-height:1.22;font-weight:var(--fw-bold);color:#172126}
.question-header p{font-size:14px;line-height:1.4;font-weight:var(--fw-regular);color:var(--scfhs-text-secondary)}
.scenario-summary-heading{font-size:14px;font-weight:var(--fw-bold)}
.scenario-summary p{font-size:15px;line-height:1.42;font-weight:var(--fw-regular);color:#465456}
.criteria-head{font-weight:var(--fw-medium)}
.criteria-head>div{font-size:14px;line-height:1.25;font-weight:var(--fw-medium)}
.criterion-cell{font-size:15px;line-height:1.3;font-weight:var(--fw-regular);color:#172126}

/* Criteria question: rows size from content instead of forcing equal heights.
   This prevents long criteria from being clipped while still fitting the 680px canvas. */
.criteria-body{gap:8px}
.criteria-body .scenario-summary{padding:9px 16px}
.criteria-body .question-panel{padding:10px 14px;gap:6px;grid-template-rows:auto auto var(--control-h)}
.criteria-body .question-header .eyebrow{margin-bottom:2px}
.criteria-body .question-header h3{font-size:20px;line-height:1.2;margin-bottom:2px}
.criteria-body .question-header p{font-size:14px;line-height:1.3}
.criteria-matrix{grid-template-rows:48px repeat(4,minmax(54px,auto));min-height:0}
.criteria-row{min-height:54px}
.criteria-head{min-height:48px}
.criterion-cell{padding:7px 12px;gap:10px}
.criteria-head>div{padding:7px 10px}

/* Buttons: one fixed 48px system with stable text centering. */
.btn,.submit-btn,.scene-actions .btn,.feedback-card>.btn{height:48px;min-height:48px;font-size:16px;line-height:1;font-weight:var(--fw-bold);align-items:center;justify-content:center}
.btn-label{min-height:1em;line-height:1;display:inline-flex;align-items:center;justify-content:center}
.scene-actions{grid-template-columns:112px minmax(0,1fr);gap:12px}
.scene-actions .btn{padding-inline:16px}
.submit-btn{width:200px;min-width:200px}

/* Feedback: restore the clearer three-column composition from the earlier version.
   Icon, message and CTA are visually independent; button no longer sits below the copy. */
.feedback-backdrop{background:rgba(0,35,67,.25);padding:24px}
.feedback-card{width:min(760px,94%);min-height:190px;padding:24px 26px;display:grid;grid-template-columns:56px minmax(0,1fr) 170px;grid-template-rows:1fr;gap:20px;align-items:center}
.feedback-icon{width:56px;height:56px;align-self:center}
.feedback-copy{align-self:center;min-width:0}
.feedback-copy h3{font-size:24px;line-height:1.18;font-weight:var(--fw-bold);margin-bottom:8px}
.feedback-copy p{font-size:16px;line-height:1.5;font-weight:var(--fw-regular);color:#526063}
.feedback-card>.btn{grid-column:auto;grid-row:auto;width:170px;min-width:170px;justify-self:end;align-self:center;padding-inline:18px}

/* Keep the whole scenario readable. It may wrap, but must never clamp or ellipsize. */
.scenario-summary p{display:block;overflow:visible;max-height:none;-webkit-line-clamp:unset!important;line-clamp:unset!important;text-overflow:clip}

@media (max-width:900px) and (min-width:601px){
  .question-header h3{font-size:20px}
  .scenario-summary p{font-size:15px;line-height:1.4}
  .criterion-cell{font-size:14px;line-height:1.28;padding:6px 8px}
  .criteria-head>div{font-size:13px;line-height:1.2;padding:6px}
  .criteria-matrix{grid-template-rows:46px repeat(4,minmax(50px,auto))}
  .criteria-row{min-height:50px}
  .feedback-card{width:min(700px,96%);grid-template-columns:52px minmax(0,1fr) 154px;padding:20px;gap:14px}
  .feedback-icon{width:52px;height:52px}
  .feedback-card>.btn{width:154px;min-width:154px}
}

@media (max-width:600px){
  /* Preserve 14px minimum reading size; compact through layout rather than tiny type. */
  .scenario-summary p{font-size:14px;line-height:1.35}
  .question-header h3{font-size:18px;line-height:1.2}
  .criterion-cell{font-size:13px;line-height:1.2}
  .criteria-head>div{font-size:12px;line-height:1.15}
  /* Modal stacks intentionally on mobile so copy is never squeezed. */
  .feedback-card{width:96%;padding:16px;grid-template-columns:44px minmax(0,1fr);grid-template-rows:auto 44px;gap:10px 12px}
  .feedback-icon{width:44px;height:44px;align-self:start}
  .feedback-copy h3{font-size:20px}
  .feedback-copy p{font-size:14px;line-height:1.4}
  .feedback-card>.btn{grid-column:1/-1;grid-row:2;width:150px;min-width:150px;height:44px;min-height:44px;justify-self:end;font-size:14px}
}

/* =========================================================
   V5 RESPONSIVE SYSTEM
   Responsive behaviour for LMS iframe widths while preserving
   the fixed 680px activity canvas and readable SCFHS typography.
   Breakpoints are layout breakpoints, not font-scaling breakpoints.
   ========================================================= */

/* Fluid safeguards */
img{max-width:100%}
.screen,.case-screen,.question-screen,.dashboard-screen,.intro-screen{min-width:0}
.case-title-wrap,.feedback-copy,.answer-copy,.criterion-cell{min-width:0}
.btn{max-width:100%}

/* Large laptop / constrained desktop */
@media (max-width:1200px){
  .intro-screen{padding:28px 36px}
  .intro-copy{width:min(600px,58%)}
  .intro-copy h1{font-size:30px}

  .scene-stage{grid-template-columns:minmax(0,1.35fr) minmax(340px,.9fr)}
  .scene-story-card{padding:18px}

  .case-card{grid-template-columns:88px minmax(0,1fr) 22px;gap:14px;padding:14px 16px}
  .case-portrait{width:88px;height:88px}
  .case-meta{grid-template-columns:130px minmax(0,1fr);gap:6px 14px}

  .criteria-row{grid-template-columns:minmax(0,1.55fr) minmax(180px,.75fr) minmax(180px,.75fr)}
}

/* Tablet landscape / small laptop */
@media (max-width:900px){
  .activity-shell{padding:6px}
  .screen{border-radius:14px}

  .intro-screen{padding:24px 28px}
  .intro-copy{width:62%;max-width:520px}
  .intro-copy h1{font-size:28px}
  .intro-lead{font-size:15px}

  .dashboard-screen{grid-template-rows:60px minmax(0,1fr)}
  .dashboard-topbar{padding:0 16px}
  .dashboard-body{padding:12px 16px 16px}
  .case-grid{gap:12px}
  .case-card{grid-template-columns:72px minmax(0,1fr) 18px;gap:10px;padding:12px}
  .case-portrait{width:72px;height:72px;border-width:4px}
  .case-card-title{font-size:18px}
  .case-meta{grid-template-columns:1fr 1fr;gap:4px 10px}
  .case-meta em{font-size:14px}

  .case-screen{grid-template-rows:66px minmax(0,1fr)}
  .case-topbar{padding:0 14px}
  .case-title-wrap h2{font-size:22px}
  .round-btn{width:44px;height:44px}
  .q-dot{width:36px;height:36px}

  .scene-body{padding:10px 12px 12px}
  .scene-stage{grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:10px}
  .scene-story-card{padding:14px}
  .scene-story-card h3{font-size:21px}
  .scene-story-card p{font-size:15px;line-height:1.45}
  .scene-actions{grid-template-columns:104px minmax(0,1fr);gap:8px}

  .question-body{padding:9px 12px 12px;gap:8px}
  .scenario-summary{padding:9px 14px}
  .scenario-summary p{font-size:15px;line-height:1.4}
  .question-panel{padding:10px 12px 9px}
  .question-header h3{font-size:20px}

  .answer-card{padding:12px 14px}
  .answer-copy strong{font-size:15px}
  .answer-copy small{font-size:13px}

  /* Supervision answers become 3 + 2 to keep readable widths. */
  .supervision-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:8px}
  .supervision-grid .answer-card:nth-child(4){grid-column:1/2}
  .supervision-grid .answer-card:nth-child(5){grid-column:2/3}

  .criteria-row{grid-template-columns:minmax(0,1.45fr) minmax(130px,.7fr) minmax(130px,.7fr)}
  .criterion-cell{font-size:14px}
  .criteria-head>div{font-size:13px;padding:6px}

  .feedback-card{width:min(700px,96%);grid-template-columns:52px minmax(0,1fr) 150px;gap:14px;padding:20px}
  .feedback-icon{width:52px;height:52px}
  .feedback-copy h3{font-size:22px}
  .feedback-copy p{font-size:15px}
  .feedback-card>.btn{width:150px;min-width:150px}
}

/* Tablet portrait / large mobile: switch structural layouts instead of shrinking text. */
@media (max-width:700px){
  :root{--fs-label:13px;--fs-body:15px;--fs-subtitle:19px;--fs-heading:22px;--fs-display:28px}

  .intro-screen{align-items:flex-end;padding:18px}
  .intro-screen::before{background:linear-gradient(180deg,rgba(255,255,255,.08) 0%,rgba(255,255,255,.2) 35%,rgba(255,255,255,.94) 64%,#fff 100%)}
  .intro-copy{width:100%;max-width:none;padding:0 4px 12px}
  .intro-copy h1{font-size:28px;max-width:520px;margin-bottom:10px}
  .intro-lead{max-width:560px;font-size:15px;line-height:1.45;margin-bottom:14px}
  .intro-copy .btn{min-width:180px}

  .dashboard-topbar{padding:0 10px}
  .dashboard-progress-wrap{gap:8px}
  .progress-track{width:76px}
  .progress-label span{display:none}
  .dashboard-body{padding:9px 10px 10px;gap:7px}
  .dashboard-heading h2{font-size:20px;margin-bottom:3px}
  .dashboard-heading p{font-size:14px;line-height:1.35}
  .case-grid{gap:7px}
  .case-card{grid-template-columns:58px minmax(0,1fr) 16px;gap:8px;padding:8px 9px;border-radius:12px}
  .case-portrait{width:58px;height:58px;border-width:3px}
  .case-card-copy{gap:3px}
  .case-card-title{font-size:16px}
  .case-meta{gap:2px 8px}
  .case-meta b{font-size:11px}
  .case-meta em{font-size:13px;line-height:1.18}
  .status-pill{font-size:11px;padding:3px 6px}

  .case-screen{grid-template-rows:60px minmax(0,1fr)}
  .case-topbar{padding:0 9px}
  .case-title-wrap{gap:8px}
  .round-btn{width:40px;height:40px}
  .case-title-wrap h2{font-size:20px}
  .q-dot{width:32px;height:32px;font-size:12px}
  .question-progress{gap:5px}
  .scene-progress strong{font-size:12px}

  /* Scene becomes vertical: visual first, narrative/actions second. */
  .scene-body{padding:7px 8px 8px}
  .scene-stage{grid-template-columns:1fr;grid-template-rows:250px minmax(0,1fr);gap:7px}
  .scene-image-card{border-radius:12px}
  .scene-image-card img{object-fit:contain}
  .scene-story-card{padding:10px 12px;border-radius:12px}
  .scene-number{width:38px;height:30px;font-size:13px;margin-bottom:5px}
  .scene-story-card h3{font-size:19px;margin-bottom:4px}
  .scene-story-card p{font-size:14px;line-height:1.38;margin-bottom:4px}
  .scene-note{font-size:12px;line-height:1.3;margin-bottom:5px}
  .scene-divider{margin:auto 0 5px}
  .scene-actions{grid-template-columns:96px minmax(0,1fr);gap:7px}
  .scene-actions .btn{height:44px;min-height:44px;font-size:14px;padding:0 9px}

  .question-body{padding:6px 8px 8px;gap:6px}
  .scenario-summary{padding:7px 9px;border-radius:11px}
  .scenario-summary-heading{font-size:12px;margin-bottom:2px}
  .scenario-summary p{font-size:14px;line-height:1.32}
  .question-panel{padding:8px 9px 7px;gap:6px;border-radius:11px;grid-template-rows:auto minmax(0,1fr) 44px}
  .question-header .eyebrow{font-size:12px;margin-bottom:2px}
  .question-header h3{font-size:18px;line-height:1.18;margin-bottom:2px}
  .question-header p{font-size:13px;line-height:1.28}

  .answer-grid{gap:6px}
  .answer-card{padding:8px 9px;grid-template-columns:22px minmax(0,1fr);gap:7px;border-radius:10px}
  .radio-dot{width:22px;height:22px}
  .answer-copy strong{font-size:14px;line-height:1.18}
  .answer-copy small{font-size:12px;line-height:1.2;margin-top:2px}

  .supervision-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:5px}
  .supervision-grid .answer-card,.supervision-grid .answer-card:nth-child(4),.supervision-grid .answer-card:nth-child(5){grid-column:auto}
  .supervision-grid .answer-card:nth-child(5){grid-column:1/3}
  .supervision-grid .answer-copy strong{font-size:13px}
  .supervision-grid .answer-copy small{font-size:12px}

  .submit-btn{height:44px;min-height:44px;width:160px;min-width:160px;font-size:14px}

  /* Criteria question: mobile-friendly card rows, no horizontal table squeeze. */
  .criteria-body .question-panel{grid-template-rows:auto minmax(0,1fr) 44px}
  .criteria-matrix{display:block;overflow:hidden;border-radius:11px}
  .criteria-head{display:none}
  .criteria-row:not(.criteria-head){display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto 38px;min-height:0;border-top:1px solid var(--scfhs-line)}
  .criteria-row:not(.criteria-head):first-of-type{border-top:0}
  .criterion-cell{grid-column:1/-1;padding:6px 8px;font-size:13px;line-height:1.18;gap:6px;border-bottom:1px solid var(--scfhs-line)}
  .criterion-index{width:22px;height:22px;font-size:11px}
  .matrix-choice{min-height:38px;position:relative;display:flex;align-items:center;justify-content:center;gap:5px;border:0;background:#fff}
  .matrix-choice+.matrix-choice{border-left:1px solid var(--scfhs-line)}
  .matrix-choice::before{font-size:11px;line-height:1;color:var(--scfhs-text-secondary);font-weight:var(--fw-medium)}
  .matrix-choice[data-value="met"]::before{content:"Independent"}
  .matrix-choice[data-value="not"]::before{content:"Not independent"}
  .matrix-radio{width:20px;height:20px;flex:0 0 20px}
  .matrix-choice.selected .matrix-radio::after{inset:4px}

  .feedback-backdrop{inset:6px;padding:10px}
  .feedback-card{width:96%;min-height:0;padding:16px;grid-template-columns:44px minmax(0,1fr);grid-template-rows:auto 44px;gap:10px 12px}
  .feedback-icon{width:44px;height:44px;align-self:start}
  .feedback-copy h3{font-size:20px}
  .feedback-copy p{font-size:14px;line-height:1.38}
  .feedback-card>.btn{grid-column:1/-1;grid-row:2;width:150px;min-width:150px;height:44px;min-height:44px;justify-self:end;font-size:14px}
}

/* Narrow phones: keep readability; simplify only secondary UI. */
@media (max-width:480px){
  .activity-shell{padding:4px}
  .screen{border-radius:12px}

  .intro-screen{padding:14px}
  .intro-copy h1{font-size:25px;line-height:1.12}
  .intro-lead{font-size:14px;line-height:1.4}

  .dashboard-screen{grid-template-rows:52px minmax(0,1fr)}
  .dashboard-topbar .eyebrow{font-size:11px}
  .link-btn{font-size:11px}
  .progress-track{width:56px;height:6px}
  .dashboard-heading p{display:none}
  .case-card{grid-template-columns:50px minmax(0,1fr);padding:7px;gap:7px}
  .case-portrait{width:50px;height:50px}
  .case-chevron{display:none}
  .case-meta{grid-template-columns:1fr}
  .case-meta span:nth-child(2){display:none}
  .case-card-title{font-size:15px}
  .status-pill{font-size:10px}

  .case-title-wrap h2{font-size:18px}
  .question-progress{gap:4px}
  .q-dot{width:30px;height:30px}
  .scene-progress strong{font-size:11px}

  .scene-stage{grid-template-rows:220px minmax(0,1fr)}
  .scene-story-card{padding:9px 10px}
  .scene-story-card h3{font-size:18px}
  .scene-story-card p{font-size:13.5px;line-height:1.35}
  .scene-note{display:none}
  .scene-divider{margin:auto 0 4px}
  .scene-actions{grid-template-columns:88px minmax(0,1fr)}
  .scene-actions .btn{font-size:13px}

  .scenario-summary p{font-size:13.5px;line-height:1.28}
  .question-header h3{font-size:17px}
  .question-header p{font-size:12.5px}
  .answer-card{padding:7px 8px}
  .answer-copy strong{font-size:13.5px}

  .feedback-card{padding:14px;grid-template-columns:40px minmax(0,1fr);gap:8px 10px}
  .feedback-icon{width:40px;height:40px}
  .feedback-copy h3{font-size:19px;margin-bottom:5px}
  .feedback-copy p{font-size:13.5px;line-height:1.35}
}

/* =========================================================
   V6 MOBILE-FIRST EXPERIENCE
   Portrait phones and narrow LMS columns use a purpose-built
   layout instead of a compressed desktop layout.
   ========================================================= */
.mobile-scenario-open,.criteria-mobile{display:none}

@media (max-width:820px){
  /* Keep the 680px LMS canvas, but spend it on the active task. */
  .activity-shell{padding:4px}
  .screen{border-radius:12px}
  .case-screen{grid-template-rows:56px minmax(0,1fr)}
  .case-topbar{padding:0 10px}
  .case-title-wrap{gap:9px;min-width:0}
  .round-btn{width:40px;height:40px;flex:0 0 40px}
  .case-title-wrap h2{font-size:20px;line-height:1.15;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
  .question-progress{gap:5px}
  .q-dot{width:34px;height:34px;font-size:13px}

  /* Questions: context becomes an on-demand overlay so the active
     decision gets the majority of the mobile viewport. */
  .question-body{padding:7px;gap:7px;grid-template-rows:48px minmax(0,1fr)}
  .scenario-summary{height:48px;min-height:48px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-radius:11px}
  .scenario-summary-heading{font-size:13px;line-height:1;font-weight:var(--fw-bold);margin:0}
  .scenario-summary p{display:none!important}
  .mobile-scenario-open{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:var(--scfhs-blue);font-family:var(--font-family);font-size:14px;font-weight:var(--fw-bold);padding:8px 0;white-space:nowrap;cursor:pointer}

  .question-panel,.criteria-body .question-panel{padding:10px 10px 8px;gap:8px;grid-template-rows:auto minmax(0,1fr) 44px;border-radius:11px}
  .question-header .eyebrow{font-size:13px;margin-bottom:3px}
  .question-header h3{font-size:20px;line-height:1.2;margin-bottom:3px}
  .question-header p{font-size:14px;line-height:1.3}
  .question-footer{min-height:44px;gap:8px}
  .submit-btn{height:44px;min-height:44px;width:156px;min-width:156px;font-size:15px}
  .validation-message{font-size:12px;line-height:1.2}

  /* Single-choice questions become large, readable vertical rows. */
  .answer-grid,.supervision-grid{display:grid;grid-template-columns:1fr!important;grid-template-rows:none!important;gap:7px;min-height:0;align-content:stretch}
  .answer-card,.supervision-grid .answer-card,.supervision-grid .answer-card:nth-child(4),.supervision-grid .answer-card:nth-child(5){grid-column:auto!important;min-height:0;padding:10px 12px;grid-template-columns:24px minmax(0,1fr);gap:10px;border-radius:11px;align-items:center}
  .radio-dot{width:24px;height:24px}
  .answer-copy strong,.supervision-grid .answer-copy strong{font-size:15px;line-height:1.25}
  .answer-copy small,.supervision-grid .answer-copy small{font-size:13px;line-height:1.25;margin-top:2px}

  /* Criteria assessment uses one criterion at a time. This avoids
     tiny text, horizontal squeezing and clipped rows on phones. */
  .criteria-desktop{display:none}
  .criteria-mobile{display:grid;grid-template-rows:auto minmax(0,1fr) 44px;gap:8px;min-height:0}
  .mobile-criterion-progress{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--scfhs-text-secondary);font-size:13px;font-weight:var(--fw-medium)}
  .mobile-criterion-progress>div{display:flex;gap:5px}
  .mobile-criterion-progress i{width:8px;height:8px;border-radius:999px;background:#DCE3E5;display:block}
  .mobile-criterion-progress i.done{background:#9EDCCC}.mobile-criterion-progress i.active{background:var(--scfhs-green)}
  .mobile-criterion-card{border:1.5px solid var(--scfhs-line-strong);border-radius:12px;background:#fff;padding:14px;display:grid;grid-template-rows:auto 1fr;gap:12px;min-height:0}
  .mobile-criterion-title{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;align-items:start;font-size:16px;line-height:1.35;font-weight:var(--fw-medium);color:#172126}
  .mobile-criterion-title .criterion-index{width:30px;height:30px;font-size:13px}
  .mobile-criterion-options{display:grid;grid-template-columns:1fr;gap:8px;align-content:center}
  .mobile-choice{min-height:52px;border:1.5px solid var(--scfhs-line);border-radius:10px;background:#fff;padding:8px 12px;display:grid;grid-template-columns:24px minmax(0,1fr);gap:10px;align-items:center;text-align:left;color:var(--scfhs-text);font-family:var(--font-family);font-size:15px;line-height:1.25;font-weight:var(--fw-regular);cursor:pointer}
  .mobile-choice.selected{border-color:var(--scfhs-green);background:var(--scfhs-green-soft)}
  .mobile-choice.not-choice.selected{border-color:var(--scfhs-danger);background:var(--scfhs-danger-soft)}
  .mobile-choice .matrix-radio{width:24px;height:24px}
  .mobile-choice.selected .matrix-radio{border-color:var(--scfhs-green)}
  .mobile-choice.selected .matrix-radio::after{content:"";position:absolute;inset:5px;border-radius:50%;background:var(--scfhs-green)}
  .mobile-choice.not-choice.selected .matrix-radio{border-color:var(--scfhs-danger)}
  .mobile-choice.not-choice.selected .matrix-radio::after{background:var(--scfhs-danger)}
  .mobile-criterion-nav{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .mobile-criterion-nav .btn{height:44px;min-height:44px;font-size:14px;padding:0 10px}

  /* Full scenario opens as a focused mobile dialog, keeping question
     screens concise while preserving access to all evidence. */
  .scenario-modal-backdrop{position:absolute;inset:4px;z-index:30;background:rgba(0,35,67,.28);display:grid;place-items:center;padding:12px;border-radius:12px}
  .scenario-modal-card{width:100%;max-height:92%;overflow:auto;background:#fff;border:1px solid var(--scfhs-line);border-radius:14px;padding:18px;box-shadow:var(--shadow-modal);text-align:left}
  .scenario-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
  .scenario-modal-head h3{font-size:21px;line-height:1.2;color:var(--scfhs-blue);font-weight:var(--fw-bold);margin-top:3px}
  .scenario-modal-card p{font-size:16px;line-height:1.5;color:var(--scfhs-text-secondary);margin:0 0 16px}
  .scenario-close{width:38px;height:38px;border-radius:50%;border:1px solid var(--scfhs-line);background:#F6F9F9;color:var(--scfhs-blue);font-size:26px;line-height:1;display:grid;place-items:center;cursor:pointer;flex:0 0 38px}
  .scenario-modal-card>.btn{width:100%;height:46px;min-height:46px}

  /* Scenes: preserve image prominence but remove wasted vertical space. */
  .scene-body{padding:7px}
  .scene-stage{grid-template-columns:1fr;grid-template-rows:240px minmax(0,1fr);gap:7px}
  .scene-image-card{border-radius:11px}.scene-image-card img{object-fit:cover}
  .scene-story-card{padding:11px 12px;border-radius:11px}
  .scene-number{width:38px;height:30px;font-size:13px;margin-bottom:5px}
  .scene-story-card h3{font-size:20px;line-height:1.2;margin-bottom:5px}
  .scene-story-card p{font-size:15px;line-height:1.4;margin-bottom:4px}
  .scene-note{font-size:13px;line-height:1.3;margin-bottom:5px}
  .scene-actions{grid-template-columns:104px minmax(0,1fr);gap:8px}
  .scene-actions .btn{height:44px;min-height:44px;font-size:14px;padding:0 10px}

  /* Dashboard: four full-width rows are easier to scan and tap. */
  .dashboard-screen{grid-template-rows:56px minmax(0,1fr)}
  .dashboard-topbar{padding:0 10px}
  .dashboard-body{padding:8px 10px 10px;gap:7px}
  .dashboard-heading h2{font-size:20px;margin-bottom:2px}.dashboard-heading p{font-size:13px;line-height:1.3}
  .case-grid{grid-template-columns:1fr;grid-template-rows:repeat(4,minmax(0,1fr));gap:6px}
  .case-card{grid-template-columns:56px minmax(0,1fr) 18px;padding:8px 10px;gap:9px;border-radius:11px}
  .case-portrait{width:56px;height:56px;border-width:3px}
  .case-card-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:3px 8px;align-items:center}
  .case-card-title{font-size:16px;grid-column:1}.case-meta{grid-column:1;grid-template-columns:auto 1fr;gap:2px 8px}.case-meta span{display:block}.case-meta b{display:none}.case-meta em{font-size:13px;line-height:1.2}.case-meta span+span em::before{content:"• ";color:var(--scfhs-text-muted)}
  .status-pill{grid-column:2;grid-row:1/3;font-size:11px;padding:4px 7px}

  /* Feedback fills the narrow width cleanly; no squeezed three-column layout. */
  .feedback-backdrop{inset:4px;padding:12px}
  .feedback-card{width:100%;padding:18px;grid-template-columns:48px minmax(0,1fr);grid-template-rows:auto 46px;gap:12px 14px;border-radius:14px}
  .feedback-icon{width:48px;height:48px;align-self:start}
  .feedback-copy h3{font-size:21px;margin-bottom:6px}.feedback-copy p{font-size:15px;line-height:1.45}
  .feedback-card>.btn{grid-column:1/-1;grid-row:2;width:100%;min-width:0;height:46px;min-height:46px;font-size:15px;justify-self:stretch}
}

@media (max-width:480px){
  .case-title-wrap h2{font-size:18px}
  .q-dot{width:31px;height:31px}
  .question-header h3{font-size:18px}
  .question-header p{font-size:13px}
  .mobile-criterion-title{font-size:15px}
  .mobile-choice{font-size:14px}
  .scene-stage{grid-template-rows:215px minmax(0,1fr)}
  .scene-story-card p{font-size:14px;line-height:1.35}
  .dashboard-heading p{display:none}
}


/* ===== Unified T-EPA Start Screen ===== */
.start-screen{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.03fr) minmax(380px,.97fr)!important;
  align-items:stretch!important;
  width:100%!important;
  height:680px!important;
  padding:0!important;
  background:#FFFFFF!important;
  background-image:none!important;
  overflow:hidden!important;
}
.start-screen::before,.start-screen::after{
  content:none!important;display:none!important;background:none!important;
}
.start-copy{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:16px!important;
  padding:58px 72px!important;
  position:relative!important;
  z-index:2!important;
  background:transparent!important;
}
.start-copy h1{
  font-size:32px!important;
  line-height:1.18!important;
  font-weight:700!important;
  max-width:600px!important;
  margin:0!important;
}
.start-copy p,.start-copy .intro-lead{
  font-size:16px!important;
  line-height:1.5!important;
  max-width:560px!important;
  margin:0!important;
}
.start-copy .btn,.start-copy button{margin-top:8px!important}
.start-brand-panel{
  position:relative!important;
  overflow:hidden!important;
  background:transparent!important;
  min-width:0!important;
}
.start-brand-panel::before,.start-brand-panel::after{
  content:none!important;display:none!important;background:none!important;
}
.brand-pattern{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  background:transparent!important;
}
.brand-pattern .arc-blue{stroke:#205B89;fill:none!important}
.brand-pattern .arc-blue-light{stroke:#80A6D0;fill:none!important}
.brand-pattern .arc-green{stroke:#00AD7D;fill:none!important}
.brand-pattern .arc-cyan{stroke:#46A193;fill:none!important}
.brand-pattern .dot-blue{fill:#205B89}
.brand-pattern .dot-blue-light{fill:#80A6D0}
.brand-pattern .dot-green{fill:#00AD7D}
.brand-pattern .dot-cyan{fill:#46A193}
@media(max-width:900px){
  .start-screen{grid-template-columns:minmax(0,1fr) minmax(300px,.72fr)!important}
  .start-copy{padding:44px 40px!important}
}
@media(max-width:700px){
  .start-screen{grid-template-columns:1fr!important;min-height:680px!important;height:auto!important}
  .start-copy{padding:42px 26px 30px!important;justify-content:flex-start!important}
  .start-brand-panel{min-height:230px!important}
  .start-copy h1{font-size:28px!important}
}


/* ===== T-EPA2 exact match to approved T-EPA1 start screen ===== */
.start-screen{
  background:#FFFFFF!important;
  background-image:none!important;
}
.start-screen .start-copy{
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important;
  padding:58px 72px!important;
  gap:16px!important;
}
.start-screen .start-copy h1{
  color:#00416B!important;
  font-size:32px!important;
  line-height:1.18!important;
  font-weight:700!important;
  max-width:600px!important;
  margin:0!important;
}
.start-screen .start-copy p,
.start-screen .start-copy .intro-lead{
  color:#586466!important;
  font-size:16px!important;
  line-height:1.5!important;
  max-width:560px!important;
  margin:0!important;
}
.start-screen .start-copy .btn,
.start-screen .start-copy button{
  background:#00C08B!important;
  color:#FFFFFF!important;
  border:none!important;
  margin-top:8px!important;
}

/* Exact SVG treatment from T-EPA1 */
.start-screen .brand-pattern .arc-blue{
  stroke:#205B89!important;
  fill:none!important;
}
.start-screen .brand-pattern .arc-blue-light{
  stroke:#80A6D0!important;
  fill:none!important;
}
.start-screen .brand-pattern .arc-green{
  stroke:#00AD7D!important;
  fill:none!important;
}
.start-screen .brand-pattern .arc-cyan{
  stroke:#46A193!important;
  fill:none!important;
}
.start-screen .brand-pattern .dot-blue{
  fill:#205B89!important;
  stroke:none!important;
}
.start-screen .brand-pattern .dot-blue-light{
  fill:#80A6D0!important;
  stroke:none!important;
}
.start-screen .brand-pattern .dot-green{
  fill:#00AD7D!important;
  stroke:none!important;
}
.start-screen .brand-pattern .dot-cyan{
  fill:#46A193!important;
  stroke:none!important;
}
.start-screen .brand-pattern circle[class^="dot-"],
.start-screen .brand-pattern circle[class*=" dot-"]{
  stroke:none!important;
  stroke-width:0!important;
}
@media(max-width:900px){
  .start-screen .start-copy{padding:44px 40px!important}
}
@media(max-width:700px){
  .start-screen .start-copy{
    padding:42px 26px 30px!important;
  }
  .start-screen .start-copy h1{
    font-size:28px!important;
  }
}
