/* KENT Compact Learning Patch — Task 1 2026. UI only, no scoring/state mutation. */
body.kent-v51-task1 .visual-head-controls{display:flex;flex:0 0 auto;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
body.kent-v9-task1.kent-v51-task1 .tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body.kent-v9-task1.kent-v51-task1 .workspace.is-subject .canvas-content{padding:12px 14px 15px!important}
body.kent-v9-task1.kent-v51-task1 .guided-hero.compact-guided-hero{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;padding:8px 12px!important;margin:0 0 10px!important;gap:8px!important;min-height:46px!important}
body.kent-v51-task1 .compact-guided-hero .guided-section-nav{display:flex;align-items:center;gap:5px!important;flex-wrap:nowrap!important;min-width:0;flex:1 1 auto}
body.kent-v51-task1 .compact-guided-hero .guided-section-btn{flex:1 1 0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.kent-v51-task1 .compact-guided-tools{display:flex;flex:0 0 auto;align-items:center;gap:7px}
body.kent-v51-task1 .compact-guided-progress{display:inline-flex;align-items:center;justify-content:center;padding:6px 9px;background:#E9ECEF;border:1px solid #DFE2E6;color:#343B46;border-radius:6px;font-size:11px;line-height:1.3;font-weight:800;white-space:nowrap}
body.kent-v9-task1.kent-v51-task1 .compact-ref-control{flex:0 0 auto;border:1px solid #DFE2E6!important;background:#F8F9FA!important;color:#343B46!important;border-radius:6px!important;padding:7px 9px!important;font-size:11px!important;font-weight:750!important;white-space:nowrap;line-height:1.25!important}
body.kent-v51-task1 .compact-show-reference{display:none!important}
body.kent-v51-task1 .workspace.reference-hidden .compact-show-reference{display:inline-flex!important}
body.kent-v51-task1 .workspace.reference-hidden .activity-column{width:100%!important}
body.kent-v51-task1 .guided-wizard-meta:has(.guided-mini-progress):not(:has(.guided-jump)){display:none!important}
body.kent-v51-task1 .guided-section-card.guided-single-panel{padding:10px 12px!important}
body.kent-v51-task1 .guided-wizard-steps{margin-bottom:10px!important}
@media(max-width:1050px){body.kent-v9-task1.kent-v51-task1 .guided-hero.compact-guided-hero{flex-wrap:wrap!important}body.kent-v51-task1 .compact-guided-tools{margin-left:auto}}
@media(max-width:800px){body.kent-v51-task1 .compact-guided-hero .guided-section-nav{overflow-x:auto;scrollbar-width:thin}body.kent-v51-task1 .compact-guided-hero .guided-section-btn{min-width:max-content;flex:0 0 auto}body.kent-v51-task1 .visual-head-controls{gap:4px}}
@media(max-width:500px){body.kent-v51-task1 .compact-ref-control{font-size:10px!important;padding:6px 7px!important}body.kent-v51-task1 .compact-guided-progress{font-size:10px;padding:5px 7px}body.kent-v9-task1.kent-v51-task1 .tabs .tab-btn{white-space:normal!important}}

/* Mobile: chart is a closable overlay, not an inaccessible hidden column. */
@media(max-width:700px){
 body.kent-v51-task1 .compact-show-reference{display:inline-flex!important}
 body.kent-v51-task1 .workspace.reference-open .visual-column{display:flex!important}
 body.kent-v51-task1 .workspace.reference-open .visual-head-controls .compact-ref-control{display:inline-flex!important}
 body.kent-v51-task1 .workspace.reference-open .visual-card{overflow:hidden}
 body.kent-v51-task1 .workspace.reference-open .visual-head{flex-wrap:wrap}
}
/* v51 migration has a later display:block!important rule on mobile;
   explicitly override it so chart stays hidden until the learner opens it. */
@media(max-width:700px){
 body.kent-v9-task1.kent-v51-task1 .workspace:not(.reference-open):not(.is-language) .visual-column{display:none!important}
 body.kent-v9-task1.kent-v51-task1 .workspace.reference-open:not(.is-language) .visual-column{display:flex!important;position:fixed!important;z-index:80!important;top:10vh!important;bottom:8vh!important;left:9px!important;right:9px!important;width:auto!important;height:auto!important;max-height:none!important;min-height:0!important;overflow:hidden!important;background:#fff;box-shadow:0 15px 55px #17253b44}
}

/* Optional source-grounded Evidence Expansion (2026, 44 tasks). Collapsed by default. */
.timed-evidence-expansion{margin-top:8px;padding:8px 12px;border:1px solid var(--border, #d9dee4);border-radius:10px;background:var(--surface, #fff)}
.timed-evidence-expansion[hidden]{display:none!important}
.timed-evidence-expansion>summary{cursor:pointer;font-size:13px;font-weight:700;list-style-position:inside}
.timed-evidence-guidance,.timed-evidence-card p{font-size:13px;line-height:1.5;margin:6px 0}
.timed-evidence-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:10px;margin-top:10px}
.timed-evidence-card{border:1px solid var(--border,#e0e4e9);border-radius:8px;padding:10px;background:var(--surface-soft,#f7f8fa)}
.timed-evidence-card-head{display:flex;align-items:flex-start;gap:9px;flex-wrap:wrap;font-size:12px}
.timed-evidence-card-head>b{font-size:11px;letter-spacing:.06em;white-space:nowrap}
