/* Shared visual vocabulary for the five active station templates. */
body[data-screen="module"] .learning-sequence .sequence-board .sequence-results{background:#fff!important;border:0!important;padding:20px!important;margin:0 0 18px;border-radius:24px!important}
body[data-screen="module"] .sequence-results-heading{display:flex;align-items:center;gap:16px;margin-bottom:18px}
body[data-screen="module"] .sequence-results-heading img{width:64px;height:64px;object-fit:contain;flex-shrink:0}
body[data-screen="module"] .sequence-results-heading h4{font-size:26px!important;color:#082758!important;margin:0!important;padding-bottom:10px;border-bottom:3px solid #3989ef;line-height:1.3!important}
body[data-screen="module"] .sequence-results-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,23%);gap:24px;align-items:center}
body[data-screen="module"] .sequence-results-art{width:100%;height:auto;object-fit:contain}
body[data-screen="module"] .sequence-result-row{--result-bg:#eaf4ff;--result-accent:#1476c9;--result-number:#c2dfff;padding:0!important;margin:0 0 8px;border:1px solid var(--result-bg)!important;border-radius:28px;background:var(--result-bg);overflow:hidden}
body[data-screen="module"] .sequence-result-row.result-tone-1{--result-bg:#eaf8f2;--result-accent:#007d82;--result-number:#b3e7d5}
body[data-screen="module"] .sequence-result-row.result-tone-2{--result-bg:#fff7e5;--result-accent:#9d6400;--result-number:#ffe4a3}
body[data-screen="module"] .sequence-result-row.result-tone-3{--result-bg:#f2edff;--result-accent:#774bb8;--result-number:#d9c8fa}
body[data-screen="module"] .sequence-result-row.result-tone-4{--result-bg:#fff0f6;--result-accent:#b14076;--result-number:#f8bfd7}
body[data-screen="module"] .sequence-result-row summary{display:flex;align-items:center;gap:18px;min-height:52px;padding:0 22px 0 28px!important;list-style:none;color:#102f5d!important;font-size:17px!important;cursor:pointer}
body[data-screen="module"] .sequence-result-row summary::-webkit-details-marker{display:none}
body[data-screen="module"] .sequence-result-number{display:grid;place-items:center;align-self:stretch;min-width:46px;background:var(--result-number);color:#07518b;font-size:21px;font-weight:800}
body[data-screen="module"] .sequence-result-label{flex:1;min-width:0;overflow-wrap:anywhere}
body[data-screen="module"] .sequence-result-label small{display:block;font-size:12px;color:#46647b}
body[data-screen="module"] .sequence-result-chevron{color:var(--result-accent);transform:rotate(90deg);transition:transform .15s}
body[data-screen="module"] .sequence-result-row[open] .sequence-result-chevron{transform:rotate(-90deg)}
body[data-screen="module"] .sequence-result-evidence{padding:12px 24px 16px;background:#ffffffa6}
body[data-screen="module"] .sequence-result-evidence p{margin:0!important;line-height:1.6!important}
body[data-screen="module"] .sequence-result-row summary:focus-visible{outline:3px solid #1675c7;outline-offset:-3px}
body[data-screen="module"] .sequence-decision{display:flex;align-items:center;gap:20px;background:#eaf8f3!important;border:0!important;border-left:5px solid #13b39e!important;border-radius:20px!important;padding:24px!important}
body[data-screen="module"] .sequence-decision-icon{display:grid;place-items:center;width:64px;height:64px;flex-shrink:0;border-radius:50%;background:#c5f0e5;color:#008d7b}
body[data-screen="module"] .sequence-decision-icon svg{width:32px;height:32px}
body[data-screen="module"] .sequence-decision-copy{flex:1;min-width:0}
body[data-screen="module"] .sequence-decision h4{color:#082758!important;font-size:22px!important;margin:0 0 8px!important}
body[data-screen="module"] .sequence-decision blockquote{border:0!important;padding:0!important;margin:0!important}
body[data-screen="module"] .sequence-decision button{display:flex;align-items:center;justify-content:center;gap:12px;background:#fff!important;border:2px solid #92baff!important;border-radius:14px!important;min-height:52px;padding:12px 20px!important;box-shadow:0 4px 10px #194f7920!important;color:#0870d0!important;flex-shrink:0}
body[data-screen="module"] .sequence-decision button:hover{background:#f0f7ff!important;border-color:#1675c7!important}
@media(max-width:700px){body[data-screen="module"] .sequence-results{padding:14px!important}body[data-screen="module"] .sequence-results-heading h4{font-size:21px!important}body[data-screen="module"] .sequence-results-heading img{width:48px;height:48px}body[data-screen="module"] .sequence-results-layout{grid-template-columns:minmax(0,1fr);gap:12px}body[data-screen="module"] .sequence-results-art{max-width:160px;justify-self:center}body[data-screen="module"] .sequence-result-row summary{padding:0 16px 0 12px!important;gap:12px;font-size:15px!important}body[data-screen="module"] .sequence-decision{flex-wrap:wrap;gap:14px;padding:18px!important}body[data-screen="module"] .sequence-decision-icon{width:48px;height:48px}body[data-screen="module"] .sequence-decision-copy{flex-basis:calc(100% - 70px)}body[data-screen="module"] .sequence-decision button{width:100%}}
body[data-screen="module"]{--tp-blue:#275d83;--tp-info:#eef7fd;--tp-integrate:#f4effb;--tp-verify:#edf8f1;--tp-challenge:#fff7e5;--tp-edge:#d3e2ec}
body[data-screen="module"] .station-body{background:#fff!important;border-color:var(--tp-edge)!important;box-shadow:0 3px 12px #163f5b0a!important}
body[data-screen="module"] :is(.context-activity-heading,.sequence-instruction,.work-activity-head,.case-question-banner,.dev-case-heading){border-radius:6px!important;border:1px solid #c8dfec!important;border-left:5px solid #719ebd!important;background:#edf7fd!important;box-shadow:0 3px 8px #163f5b0a!important;padding:18px!important;color:var(--tp-blue)}
body[data-screen="module"] :is(.context-activity-heading,.sequence-instruction,.work-activity-head,.case-question-banner) :is(h2,h3,h4){color:#245575!important;line-height:1.4}
body[data-screen="module"] :is(.context-activity-heading.tone-purple,.sequence-instruction.tone-purple){background:var(--tp-integrate)!important;border-color:#d8cbe8!important;border-left-color:#a18abc!important}
body[data-screen="module"] :is(.context-activity-heading.tone-green,.sequence-results,.sequence-selfcheck,.act-feedback,.encargo-step-verify){border-color:#bddcc9!important;background:var(--tp-verify)!important}
body[data-screen="module"] :is(.sequence-written,.dev-pack,.exam-dev-step,.question-box,.context-activity,.encargo-detail){background:white!important}
body[data-screen="module"] :is(.context-options label,.option,.act-choices label,.sequence-aes button,.sequence-route button,.context-tabs button){border-radius:6px!important;border-color:#cbdce9!important;box-shadow:none!important}
body[data-screen="module"] :is(.context-tabs button,.sequence-route button,.sequence-aes button){background:#f1f7fc;color:#275d83;min-height:44px}
body[data-screen="module"] :is(.context-tabs button,.sequence-route button,.sequence-aes button):is(.active,[aria-selected="true"]){background:#dceef9!important;border-color:#729ebd!important;color:#214d6e!important;box-shadow:inset 0 -3px #729ebd!important}
body[data-screen="module"] :is(.option,.context-options label):has(input:checked){background:#edf8f1!important;border-color:#82b89a!important;color:#245a41!important}
body[data-screen="module"] :is(.act-card,.encargo-card,.cn-learning-list article,.cg-result){border-radius:6px!important;box-shadow:0 2px 6px #163f5b0a!important}
body[data-screen="module"] :is(.act-figure img,.context-resource img,.encargo-resource img){border-radius:6px;max-width:100%;object-fit:contain}
body[data-screen="module"] :is(textarea,input[type="text"],input[type="number"]){border:1px solid #b9cddc!important;background:white!important;color:#173b50;min-height:44px;border-radius:6px!important}
body[data-screen="module"] textarea{width:100%;box-sizing:border-box;min-height:140px;padding:14px!important}
body[data-screen="module"] :is(textarea,input,select,button):focus-visible{outline:3px solid #2a729f;outline-offset:3px}
body[data-screen="module"] .tp-meaning-icon{display:inline-block!important;flex:0 0 48px!important;width:48px!important;height:48px!important;background-color:transparent!important;background-image:url('/static/aula-visual-reference.png')!important;background-size:1600% auto!important;background-position:var(--tp-icon-position,0%) 57%!important;background-repeat:no-repeat!important;border:0!important;border-radius:6px!important;box-shadow:none!important;vertical-align:middle}
body[data-screen="module"] .tp-meaning-icon>svg{visibility:hidden}
body[data-screen="module"] .tp-meaning-icon.tp-icon-activity{background-image:url('/static/activity-document-icon.png')!important;background-size:contain!important;background-position:center!important}
body[data-screen="module"] .tp-meaning-icon.tp-icon-book{background-image:url('/static/open-book-icon.png')!important;background-size:contain!important;background-position:center!important}
body[data-screen="module"] .work-activity-head h3:has(>.tp-meaning-icon){display:flex;align-items:center;gap:12px;margin:0 0 8px}
body[data-screen="module"] .work-activity-head:has(.tp-icon-activity)>svg{display:none}
body[data-screen="module"] .tp-response-kicker{display:flex;align-items:center;gap:10px;color:#275d83;font:600 14px Inter,sans-serif;padding:8px 0;margin-bottom:8px}
body[data-screen="module"] .tp-response-kicker img{width:40px;height:40px;object-fit:contain}
body[data-screen="module"] label:has(>.tp-response-kicker)>.student-write-cue{display:none}
body[data-screen="module"] .az-written-question:has(>.tp-response-kicker) .az-question-pencil{display:none}
body[data-screen="module"] .learning-sequence .sequence-route{gap:20px;padding:20px 0 24px;border:0;overflow:visible}
body[data-screen="module"] .learning-sequence .sequence-route button{position:relative;display:grid;grid-template-rows:36px auto 1fr;gap:10px;min-height:156px;padding:16px 12px;border:1px solid var(--phase-edge)!important;border-top:4px solid var(--phase-edge)!important;border-radius:6px!important;background:var(--phase-soft)!important;color:#284e67;box-shadow:0 2px 5px #173b5010!important}
body[data-screen="module"] .learning-sequence .sequence-route button:not(:last-child)::after{content:"→";position:absolute;right:-18px;top:50%;width:16px;color:#7899ad;font-size:18px;font-weight:700;pointer-events:none}
body[data-screen="module"] .learning-sequence .sequence-route button>span{width:36px;height:36px;border-radius:50%;border:1px solid var(--phase-edge);background:white;color:var(--phase);font-size:17px}
body[data-screen="module"] .learning-sequence .sequence-route button b{color:var(--phase);font-size:14px;line-height:1.45}
body[data-screen="module"] .learning-sequence .sequence-route button small{color:#466275;font-size:12px;line-height:1.5}
body[data-screen="module"] .learning-sequence .sequence-route button.is-current{border-color:var(--phase)!important;border-top-color:var(--phase)!important;box-shadow:inset 0 -4px var(--phase),0 3px 8px #173b5015!important}
body[data-screen="module"] .learning-sequence .sequence-route button.is-current>span{background:var(--phase);color:white;border-color:var(--phase)}
body[data-screen="module"] .learning-sequence .sequence-route button:hover:not(:disabled){border-color:var(--phase)!important;box-shadow:0 4px 10px #173b5020!important}
body[data-screen="module"] .learning-sequence .sequence-route button.is-complete>span{background:#dff2e7;color:#28774b;border-color:#a3cbb2}
@media(max-width:900px){body[data-screen="module"] .learning-sequence .sequence-route button:nth-child(3n)::after{display:none}}
@media(max-width:520px){body[data-screen="module"] .learning-sequence .sequence-route{gap:14px}body[data-screen="module"] .learning-sequence .sequence-route button{min-height:156px;padding:12px 10px}body[data-screen="module"] .learning-sequence .sequence-route button::after{display:none}}
body[data-screen="module"] :is(.context-activity-heading,.sequence-instruction,.work-activity-head,.dev-case-heading){background:linear-gradient(115deg,#fff 5%,#edf6ff 65%,#dceeff 100%)!important}
body[data-screen="module"] :is(.context-activity-heading.tone-purple,.sequence-instruction.tone-purple){background:linear-gradient(115deg,#fff 5%,#f3edfc 65%,#e5d8f8 100%)!important}
body[data-screen="module"] .context-activity-heading.tone-green{background:linear-gradient(115deg,#fff 5%,#edf9f3 65%,#d5f1e3 100%)!important}
body[data-screen="module"] :is(.encargo-card,.cn-learning-list article,.cg-result){border-top:4px solid #bfd9ee!important}
body[data-screen="module"] :is(.encargo-card,.cn-learning-list article,.cg-result):nth-child(3n+2){border-top-color:#d7c4ed!important}
body[data-screen="module"] :is(.encargo-card,.cn-learning-list article,.cg-result):nth-child(3n){border-top-color:#c0e4d3!important}
@media(max-width:700px){body[data-screen="module"] .tp-meaning-icon{width:38px!important;height:38px!important;flex-basis:38px!important}body[data-screen="module"] :is(.context-activity-heading,.sequence-instruction,.work-activity-head,.case-question-banner){padding:14px!important}}
/* Resource failures remain explicit; they are never replaced with other evidence. */
/* Reference artwork replaces each control face; semantic controls stay intact. */
body[data-screen="module"] .atp-hero-account{display:none!important}
body[data-screen="module"] .learning-sequence .sequence-route button{display:block!important;position:relative;aspect-ratio:1717/1242;min-height:0!important;padding:0!important;border:0!important;border-radius:8px!important;background-image:url('/static/learning-activities-reference.png')!important;background-size:600% 100%!important;background-repeat:no-repeat!important;background-position:calc(var(--reference-step,0)*20%) center!important;box-shadow:none!important;overflow:hidden}
body[data-screen="module"] .learning-sequence .sequence-route button:nth-child(1){--reference-step:0}
body[data-screen="module"] .learning-sequence .sequence-route button:nth-child(2){--reference-step:1}
body[data-screen="module"] .learning-sequence .sequence-route button:nth-child(3){--reference-step:2}
body[data-screen="module"] .learning-sequence .sequence-route button:nth-child(4){--reference-step:3}
body[data-screen="module"] .learning-sequence .sequence-route button:nth-child(5){--reference-step:4}
body[data-screen="module"] .learning-sequence .sequence-route button:nth-child(6){--reference-step:5}
body[data-screen="module"] .learning-sequence .sequence-route button>*{position:absolute;opacity:0!important;pointer-events:none}
body[data-screen="module"] .learning-sequence .sequence-route button::after{display:none!important}
body[data-screen="module"] .learning-sequence .sequence-route button.is-current{outline:2px solid var(--phase);outline-offset:2px}
body[data-screen="module"] .learning-sequence .sequence-route button:hover:not(:disabled){filter:brightness(.97)}
body[data-screen="module"] .sequence-aes button:nth-child(-n+3){aspect-ratio:1681/801;min-height:44px!important;width:104px;padding:0!important;font-size:0!important;border:0!important;background-image:url('/static/learning-ae-reference.png')!important;background-size:300% 100%!important;background-repeat:no-repeat!important;background-position:calc(var(--reference-ae,0)*50%) center!important;box-shadow:none!important}
body[data-screen="module"] .sequence-aes button:nth-child(1){--reference-ae:0}
body[data-screen="module"] .sequence-aes button:nth-child(2){--reference-ae:1}
body[data-screen="module"] .sequence-aes button:nth-child(3){--reference-ae:2}
body[data-screen="module"] .sequence-aes{align-items:flex-start}
body[data-screen="module"] .sequence-aes button:nth-child(n+4){width:104px;aspect-ratio:1681/801;min-height:44px!important;padding:0!important;border:2px solid #c5dced!important;background:#f5faff!important;color:#07356d!important;font-size:20px!important;box-shadow:none!important}
body[data-screen="module"] .sequence-aes button.active{outline:2px solid #2584d4;outline-offset:2px}
body[data-screen="module"] .sequence-station-heading .sequence-aes button:nth-child(-n+3).active{background-image:url('/static/learning-ae-reference.png')!important;background-size:300% 100%!important;background-repeat:no-repeat!important;background-position:calc(var(--reference-ae,0)*50%) center!important;box-shadow:none!important}
body[data-screen="module"] .context-sequence .context-tabs button{display:block!important;aspect-ratio:1717/710;min-height:0!important;padding:0!important;border:0!important;background-image:url('/static/context-activities-reference.png')!important;background-size:500% 100%!important;background-repeat:no-repeat!important;background-position:calc(var(--reference-context,0)*25%) center!important;box-shadow:none!important}
body[data-screen="module"] .context-sequence .context-tabs button:nth-child(1){--reference-context:0}
body[data-screen="module"] .context-sequence .context-tabs button:nth-child(2){--reference-context:1}
body[data-screen="module"] .context-sequence .context-tabs button:nth-child(3){--reference-context:2}
body[data-screen="module"] .context-sequence .context-tabs button:nth-child(4){--reference-context:3}
body[data-screen="module"] .context-sequence .context-tabs button:nth-child(5){--reference-context:4}
body[data-screen="module"] .context-sequence .context-tabs button>*{position:absolute;opacity:0!important;pointer-events:none}
body[data-screen="module"] .context-sequence .context-tabs button[aria-selected="true"]{outline:2px solid var(--tab-accent);outline-offset:2px}
body[data-screen="module"] .context-sequence .context-tabs button[aria-selected="true"]{background-image:url('/static/context-activities-reference.png')!important;background-size:500% 100%!important;background-repeat:no-repeat!important;background-position:calc(var(--reference-context,0)*25%) center!important}
@media(max-width:700px){body[data-screen="module"] .context-sequence .context-tabs button:last-child{grid-column:auto!important;min-height:0!important}body[data-screen="module"] .context-sequence .context-tabs{grid-template-columns:1fr!important}body[data-screen="module"] .learning-sequence .sequence-route{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
body[data-screen="module"] .exam-instructions-banner{display:block;width:100%;margin:18px 0;padding:0;border:0;background:transparent;box-shadow:none}
body[data-screen="module"] .exam-instructions-banner img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain;image-rendering:auto}
/* Pastel navigation shared by every course, without changing activity gating. */
body[data-screen="module"] .context-sequence .context-tabs{gap:12px;padding:18px 0;align-items:stretch}
body[data-screen="module"] .context-sequence .context-tabs button{display:grid;grid-template-columns:36px minmax(0,1fr);align-content:start;gap:12px;min-height:118px;padding:18px 14px;border:1px solid var(--tab-edge)!important;border-top:4px solid var(--tab-accent)!important;border-radius:8px!important;background:var(--tab-soft)!important;box-shadow:0 3px 8px #173b500a!important}
body[data-screen="module"] .context-sequence .context-tabs button [data-context-tab-status]{width:36px;height:36px;flex-basis:36px;border-radius:50%;font-size:16px;background:#fff;color:var(--tab-accent)}
body[data-screen="module"] .context-sequence .context-tabs button b{color:var(--tab-accent);font-size:14px}
body[data-screen="module"] .context-sequence .context-tabs button small{font-size:12px;line-height:1.55;color:#405e73;overflow-wrap:anywhere}
body[data-screen="module"] .context-sequence .context-tabs button[aria-selected="true"]{border-color:var(--tab-accent)!important;background:var(--tab-soft)!important;box-shadow:inset 0 -4px var(--tab-accent),0 4px 10px #173b5015!important}
body[data-screen="module"] .context-sequence .context-tabs button[aria-selected="true"] [data-context-tab-status]{background:var(--tab-accent);color:#fff;border-color:var(--tab-accent)}
body[data-screen="module"] .context-sequence .context-tabs button:hover:not(:disabled){border-color:var(--tab-accent)!important;box-shadow:0 5px 12px #173b501c!important}
body[data-screen="module"] .sequence-aes button{--ae-soft:#eaf4ff;--ae-edge:#b7d5ef;--ae-ink:#185d94;min-width:88px;min-height:48px;padding:12px 18px;background:var(--ae-soft)!important;border:1px solid var(--ae-edge)!important;border-radius:8px!important;color:var(--ae-ink)!important;box-shadow:0 2px 5px #173b500c!important}
body[data-screen="module"] .sequence-aes button:nth-child(3n+2){--ae-soft:#f3edfc;--ae-edge:#d8c6eb;--ae-ink:#70429b}
body[data-screen="module"] .sequence-aes button:nth-child(3n){--ae-soft:#eaf8f1;--ae-edge:#b7dac8;--ae-ink:#276d51}
body[data-screen="module"] .sequence-aes button.active{background:var(--ae-soft)!important;border-color:var(--ae-ink)!important;box-shadow:inset 0 -4px var(--ae-ink),0 3px 7px #173b5015!important}
body[data-screen="module"] .sequence-aes button:hover:not(:disabled){border-color:var(--ae-ink)!important}
body[data-screen="module"] .sequence-aes button:disabled{opacity:.55;box-shadow:none!important;cursor:not-allowed}
body[data-screen="module"] .tp-meaning-icon:is(.tp-icon-situation,.tp-icon-evaluation){width:52px!important;height:52px!important;flex-basis:52px!important;background-size:contain!important;background-position:center!important;border-radius:8px!important}
body[data-screen="module"] .tp-meaning-icon.tp-icon-situation{background-image:url('/static/situation-puzzle-icon.png')!important;background-color:#f2ebfc!important}
body[data-screen="module"] .tp-meaning-icon.tp-icon-evaluation{background-image:url('/static/evaluation-clipboard-icon.png')!important;background-color:#eaf4ff!important}
body[data-screen="module"] .exam-assessment-photo figcaption{display:flex;gap:12px;align-items:flex-start;box-sizing:border-box;padding:16px;border:1px solid #c7e1ed;border-left:4px solid #85bcb0;border-radius:8px;background:#f0faf7;box-shadow:0 3px 8px #173b500c}
body[data-screen="module"] .exam-assessment-photo figcaption>.exam-ico{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;padding:8px;border-radius:50%;background:#dceee9;color:#257553;box-sizing:border-box}
body[data-screen="module"] .exam-assessment-photo figcaption span{min-width:0}
body[data-screen="module"] .exam-assessment-photo figcaption b{display:block;line-height:1.4;color:#215b4c}
body[data-screen="module"] .exam-assessment-photo figcaption small{display:block;margin-top:4px;line-height:1.55;color:#466574}
@media(max-width:700px){body[data-screen="module"] .context-sequence .context-tabs{position:relative;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:10px}body[data-screen="module"] .context-sequence .context-tabs button{padding:14px 10px;gap:8px;min-height:128px}body[data-screen="module"] .context-sequence .context-tabs button:last-child{grid-column:1/-1;min-height:96px}}
.resource-unavailable {
  padding: 12px 16px;
  border-left: 4px solid #ac7919;
  background: #fff7e1;
  color: #674913;
  font-size: 16px;
  line-height: 1.6;
}
.vis-resource-list { padding-left: 24px; }
.vis-resource-list button { margin: 4px 0; }
:where(button, a, input, textarea, select, summary):focus-visible {
  outline: 3px solid #166a9f;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .tools-fab-mascot, .tools-fab, .sequence-route *, .learning-route *, .vis-sim * {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}
 .situation-resource-pending{display:grid;place-items:center;height:100%;padding:32px 12px 12px;background:#fff5dc;color:#72561b;font-size:14px;line-height:1.4;text-align:center}
