/* Visible lesson totals for learners and a polished, searchable Admin video history. */
.learner-course-overview{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:17px 0}
.learner-course-overview span{padding:11px 9px;border:1px solid #e3e8e5;border-radius:10px;background:#f8faf9;text-align:center}
.learner-course-overview b,.learner-course-overview small{display:block}.learner-course-overview b{color:var(--role-accent);font-size:18px}.learner-course-overview small{margin-top:3px;color:var(--muted);font-size:8px;font-weight:700}
.workflow-course-card .workflow-course-content>p.course-publish-state{margin-bottom:0}
.workflow-course-card .workflow-course-actions{margin-top:4px}

.video-history-toolbar{display:flex;align-items:center;gap:11px;padding:15px 0 18px;border-top:1px solid var(--line)}
.video-history-toolbar label{height:42px;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:#fafcfb;color:var(--muted);font-size:10px;font-weight:700}
.video-history-toolbar label:first-child{min-width:250px;flex:1;max-width:430px}.video-history-toolbar input,.video-history-toolbar select{min-width:0;border:0;background:transparent;outline:0;font:inherit;color:var(--ink)}.video-history-toolbar input{flex:1}.video-history-toolbar select{min-width:190px;height:100%}
.video-history-toolbar>span{margin-left:auto;padding:7px 11px;border-radius:20px;background:var(--role-soft);color:var(--role-accent);font-size:9px;font-weight:900;white-space:nowrap}
.video-history-v6-list{display:grid;gap:13px}
.video-history-v6-card{display:grid;grid-template-columns:132px minmax(0,1fr) auto;gap:18px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(135deg,#fff,#fbfcfc);transition:.2s}
.video-history-v6-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--role-accent) 35%,var(--line));box-shadow:var(--shadow-soft)}
.video-history-thumb{height:90px;position:relative;overflow:hidden;border-radius:12px;background:linear-gradient(145deg,var(--role-soft),#e4ebe7)}.video-history-thumb img{width:100%;height:100%;object-fit:cover}.video-history-thumb>span{position:absolute;left:8px;bottom:8px;padding:5px 7px;border-radius:7px;background:rgba(20,31,26,.78);color:#fff;font-size:8px;font-weight:800}.video-history-thumb-empty{height:100%;display:grid;place-items:center;color:var(--role-accent);font-size:25px}
.video-history-main>small{color:var(--role-accent);font-size:8px;font-weight:900;letter-spacing:.5px}.video-history-main h3{margin:6px 0 4px;font-size:13px}.video-history-main>p{margin:0;color:var(--muted);font-size:9px}
.video-history-stats{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px}.video-history-stats span{padding:6px 8px;border-radius:8px;background:#f2f5f3;color:#4f5e56;font-size:8px}.video-history-stats b{color:var(--ink)}
.video-history-v6-card>.secondary{min-width:112px;padding:10px 14px;color:var(--role-accent);font-size:10px;font-weight:800}
.video-history-empty{padding:36px;text-align:center;border:1px dashed var(--line);border-radius:14px;color:var(--muted)}.video-history-empty b{display:block;margin-bottom:6px;color:var(--ink)}

.video-history-dialog-v6{max-width:980px}.video-history-profile{display:grid;gap:20px}.video-history-profile-hero{display:flex;justify-content:space-between;gap:22px;padding:24px;border-radius:18px;background:linear-gradient(130deg,#252a28,#343c38);color:#fff}.video-history-profile-hero>div>span{font-size:9px;font-weight:900;letter-spacing:.8px;color:#a9d8c3}.video-history-profile-hero h2{margin:8px 0;font-size:24px}.video-history-profile-hero p{margin:0;color:#cad2ce;font-size:10px}.video-history-score{width:82px;height:82px;flex:none;display:grid;place-items:center;border:5px solid rgba(255,255,255,.18);border-radius:50%;background:var(--role-accent);text-align:center}.video-history-score b,.video-history-score small{display:block}.video-history-score b{font-size:22px}.video-history-score small{font-size:7px}
.video-history-profile-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.video-history-profile-grid span{padding:15px;border:1px solid var(--line);border-radius:12px;background:#fafcfb}.video-history-profile-grid b,.video-history-profile-grid small{display:block}.video-history-profile-grid b{font-size:15px}.video-history-profile-grid small{margin-top:5px;color:var(--muted);font-size:8px}
.video-history-profile section>h3{margin:0 0 11px;font-size:15px}.video-history-note{padding:15px;border-left:4px solid var(--role-accent);border-radius:9px;background:var(--role-soft);font-size:11px;line-height:1.6}
.history-evidence-v6{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.history-evidence-v6 figure{margin:0;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#f5f7f6}.history-evidence-v6 img{width:100%;height:180px;object-fit:cover}.history-evidence-v6 figcaption{padding:8px;color:var(--muted);font-size:8px}.history-no-evidence{grid-column:1/-1;padding:25px;border:1px dashed var(--line);border-radius:12px;text-align:center;color:var(--muted);font-size:10px}
@media(max-width:850px){.video-history-v6-card{grid-template-columns:100px 1fr}.video-history-v6-card>.secondary{grid-column:2;width:max-content}.video-history-profile-grid{grid-template-columns:repeat(2,1fr)}.history-evidence-v6{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.video-history-toolbar{align-items:stretch;flex-direction:column}.video-history-toolbar label:first-child{min-width:0;max-width:none}.video-history-toolbar select{min-width:0}.video-history-toolbar>span{margin-left:0;width:max-content}.video-history-v6-card{grid-template-columns:1fr}.video-history-thumb{height:155px}.video-history-v6-card>.secondary{grid-column:auto;width:100%}.video-history-profile-hero{align-items:flex-start;flex-direction:column}.video-history-profile-grid,.history-evidence-v6{grid-template-columns:1fr}}
