/* V2.13 – learning activity 1283 only, progressive enhancement, no Moodle logic changes. */
body.course-34.cmid-1283.path-mod-quiz:not(.editing) {--tsui-activity-v213:1;}
body#page-mod-quiz-attempt.course-34.cmid-1283.tsui-v213-activity:not(.editing),
body#page-mod-quiz-review.course-34.cmid-1283.tsui-v213-activity:not(.editing) {
 --t213-ink:#15364c;--t213-teal:#0e6d76;--t213-muted:#526a77;--t213-line:#c6d6dc;
}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .que.multianswer .qtext .tsui-v213-content {max-width:980px!important;color:var(--t213-ink);font-family:inherit!important;line-height:1.55!important;}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-mission {background:#eaf4f5!important;border:1px solid #b9d1d6!important;border-radius:10px!important;padding:clamp(.8rem,2vw,1.3rem)!important;margin:0 0 1rem!important;}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-mission h3 {font-size:clamp(1.15rem,2vw,1.45rem)!important;line-height:1.3!important;color:var(--t213-ink)!important;margin:0 0 .55rem!important;}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-mission p {margin:0 0 .5rem!important;}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-mission p:last-child {margin:0!important;}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-mission a {color:#075b65!important;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere;}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-progress {display:flex;flex-wrap:wrap;align-items:center;gap:.45rem .8rem;margin:.75rem 0 1rem;color:var(--t213-muted);font-size:.875rem;}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-progress progress {appearance:auto;accent-color:var(--t213-teal);height:.65rem;flex:1 1 100px;max-width:100%;min-width:0;}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-card {background:#fff!important;border:1px solid var(--t213-line)!important;border-radius:9px!important;padding:clamp(.75rem,2vw,1.1rem)!important;margin:0 0 .85rem!important;min-width:0;}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-card h4 {display:flex;flex-wrap:wrap;align-items:baseline;gap:.35rem .7rem;line-height:1.35!important;font-size:1.03rem!important;color:var(--t213-teal)!important;margin:0 0 .6rem!important;font-weight:700!important;}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-card h4 span {font-size:.875rem!important;color:var(--t213-muted)!important;white-space:nowrap;margin-inline-start:auto;}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-card p {margin:0 0 .65rem!important;overflow-wrap:anywhere;}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-card p:last-child {margin:0!important;}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-card .subquestion {display:block;min-width:0;max-width:100%;margin-top:.35rem;}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-card select {display:block!important;box-sizing:border-box;width:100%!important;max-width:100%!important;min-height:44px!important;margin:0!important;border:1px solid #829aa6;border-radius:7px!important;font:inherit!important;padding:.65rem 2rem .65rem .7rem!important;}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-card select:focus-visible {outline:3px solid #176aa1;outline-offset:3px;}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-selected {display:block;margin:.5rem 0 0;font-size:.95rem;line-height:1.45;color:var(--t213-muted);overflow-wrap:anywhere;}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-selected[hidden] {display:none!important;}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-card .feedbacktrigger {min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-card .ts-cloze-inline {display:block;overflow-wrap:anywhere;border:1px solid #c6d6dc;background:#f4f7f9;color:var(--t213-ink);border-radius:8px;padding:.7rem .8rem;}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-card .ts-cloze-answer {display:block;color:#185d3a;}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-card .ts-cloze-explanation {display:block;color:var(--t213-ink);}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-state {display:block;font-weight:600;font-size:.875rem;margin:.4rem 0 0;color:var(--t213-ink);}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-state:empty {display:none;}
@media(max-width:600px){
 body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .que > .content > .formulation {padding:.6rem!important;}
 body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-card h4 {gap:.2rem .5rem;}
 body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-card h4 span {margin-inline-start:0;}
}

body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-choices {margin:.45rem 0 0;padding:.3rem .6rem;border:1px solid #c6d6dc;border-radius:6px;background:#f4f7f9;font-size:.95rem;}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-choices summary {min-height:44px;display:list-item;padding:.6rem 0;color:#075b65;cursor:pointer;font-weight:600;}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-choices ol {list-style:decimal outside;padding-inline-start:1.6rem;margin:.25rem 0 .6rem;}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-choices li {padding-block:.25rem;overflow-wrap:anywhere;}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-state.tsui-v213-ok {color:#185d3a;}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-state.tsui-v213-wrong {color:#9e3326;}

/* Native entry and attempt history: only the selected activity. */
body#page-mod-quiz-view.course-34.cmid-1283.tsui-v213-view:not(.editing) #intro.activity-description {padding:.6rem!important;background:#fff!important;}
body#page-mod-quiz-view.course-34.cmid-1283.tsui-v213-view:not(.editing) .activity-header.has-content {background:#fff!important;border:1px solid #d6e0e5;border-radius:10px;}
body#page-mod-quiz-view.course-34.cmid-1283.tsui-v213-view:not(.editing) .tsui-v213-intro {max-width:980px;background:#eaf4f5!important;border:1px solid #b9d1d6!important;border-radius:10px!important;padding:clamp(.85rem,2vw,1.3rem)!important;margin:0!important;color:#15364c!important;font-family:inherit!important;}
body#page-mod-quiz-view.course-34.cmid-1283.tsui-v213-view:not(.editing) .tsui-v213-intro h4 {font-size:clamp(1.15rem,2vw,1.35rem)!important;color:#15364c!important;margin:0 0 .55rem!important;}
body#page-mod-quiz-view.course-34.cmid-1283.tsui-v213-view:not(.editing) .quizstartbuttondiv .btn-primary {min-height:44px;background:#0e6d76!important;border-color:#0e6d76!important;color:white!important;border-radius:7px!important;font-weight:600;white-space:normal;}
body#page-mod-quiz-view.course-34.cmid-1283.tsui-v213-view:not(.editing) .quizstartbuttondiv .btn-primary:hover {background:#075b65!important;}
body#page-mod-quiz-view.course-34.cmid-1283.tsui-v213-view:not(.editing) .quizinfo {color:#526a77;line-height:1.55;}
body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-end-status {color:#526a77;font-size:.95rem;margin:0 0 .6rem;}

/* V2.13-r1 compact mission; keep all learning instructions and the resource. */
@media(max-width:600px){
 body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-mission {padding:.7rem!important;margin-bottom:.6rem!important;}
 body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-mission p {margin-bottom:.35rem!important;line-height:1.45;}
 body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-progress {margin:.5rem 0 .65rem;}
 body.course-34.cmid-1283.tsui-v213-activity:not(.editing) .tsui-v213-card {padding:.7rem!important;}
}
body#page-mod-quiz-view.course-34.cmid-1283.tsui-v213-view:not(.editing) #region-main .quizstartbuttondiv button.btn.btn-primary {background-color:#0e6d76!important;border-color:#0e6d76!important;}
