/* HoR Learning Path — DESIGN FREEZE 22.09.2026 — Stage 2.1 core implementation */
:root{--hor-navy:#202867;--hor-yellow:#FFCF3F;--hor-white:#fff;--hor-canvas:#F7F8FC;--hor-soft:#F2F4FA;--hor-border:#DDE2F0;--hor-muted:#69708F;--hor-success:#18794E;--hor-error:#B42318;--hor-radius-s:10px;--hor-radius-m:14px;--hor-radius-l:18px;--hor-radius-xl:22px}
html{scroll-behavior:smooth}
body.hor-course-body{margin:0!important;background:#fff!important;color:var(--hor-navy)!important;overflow-x:hidden}
body.hor-course-body #page,body.hor-course-body .site,body.hor-course-body .site-content,body.hor-course-body .content-area,body.hor-course-body main.site-main{max-width:none!important;width:100%!important;margin:0!important;padding:0!important}
.hor-course-content{width:100%;min-height:100vh;background:#fff}
[data-hor-ui][data-hor-ui]{--hn:var(--hor-navy);--hy:var(--hor-yellow);--hl:var(--hor-border);--hm:var(--hor-muted);--pale:var(--hor-soft);--blue:var(--hor-navy);--green:var(--hor-success);font-family:Roboto,Arial,sans-serif;color:var(--hor-navy);font-size:16px;line-height:1.625}
[data-hor-ui][data-hor-ui] h1{font-size:36px;line-height:1.2;letter-spacing:-.035em}
[data-hor-ui][data-hor-ui] h2{font-size:28px;line-height:1.28;letter-spacing:-.025em}
[data-hor-ui][data-hor-ui] h3{font-size:22px;line-height:1.35;letter-spacing:-.015em}
[data-hor-ui][data-hor-ui] p{line-height:1.65}
[data-hor-ui][data-hor-ui] a:focus-visible,[data-hor-ui][data-hor-ui] button:focus-visible,[data-hor-ui][data-hor-ui] input:focus-visible,[data-hor-ui][data-hor-ui] select:focus-visible,[data-hor-ui][data-hor-ui] summary:focus-visible{outline:3px solid var(--hor-yellow)!important;outline-offset:3px}

/* shared frozen topbar */
[data-hor-ui][data-hor-ui] .hor-freeze-topbar{height:64px;min-height:64px;padding:0 28px;background:var(--hor-navy);color:#fff;display:flex;align-items:center;gap:24px;position:sticky;top:0;z-index:1000;box-shadow:none;border:0}
body.admin-bar [data-hor-ui][data-hor-ui] .hor-freeze-topbar{top:32px}
[data-hor-ui][data-hor-ui] .hor-freeze-brand{display:flex;align-items:center;gap:10px;color:#fff!important;flex:0 0 auto;white-space:nowrap}
[data-hor-ui][data-hor-ui] .hor-freeze-brand img{width:34px;height:34px;object-fit:contain}
[data-hor-ui][data-hor-ui] .hor-freeze-brand strong{font-size:16px;color:#fff;font-weight:700}
[data-hor-ui][data-hor-ui] .hor-freeze-course-name{font-weight:700;font-size:15px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
[data-hor-ui][data-hor-ui] .hor-freeze-account,[data-hor-ui][data-hor-ui] .hor-lesson-account{display:inline-flex;align-items:center;gap:8px;color:#fff!important;margin-left:auto;font-size:14px;white-space:nowrap}
[data-hor-ui][data-hor-ui] .hor-freeze-account svg,[data-hor-ui][data-hor-ui] .hor-lesson-account svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
[data-hor-ui][data-hor-ui] .hor-knowledge-btn{display:inline-flex!important;align-items:center;justify-content:center;min-height:42px!important;padding:0 16px!important;border:1px solid rgba(255,255,255,.65)!important;border-radius:10px!important;background:transparent!important;color:#fff!important;font-size:14px!important;font-weight:600}

/* Dashboard */
[data-hor-ui][data-hor-ui].hor-freeze-dashboard{min-height:100vh;background:#fff}
[data-hor-ui][data-hor-ui] .hor-freeze-dashboard-main{width:min(1080px,calc(100% - 40px));margin:0 auto;padding:28px 0 64px}
[data-hor-ui][data-hor-ui] .hor-freeze-dashboard-head{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:40px;align-items:end;margin-bottom:18px}
[data-hor-ui][data-hor-ui] .hor-freeze-dashboard-head h1{margin:0 0 6px;font-size:36px}
[data-hor-ui][data-hor-ui] .hor-freeze-dashboard-head p{margin:0;color:var(--hor-muted);font-size:16px}
[data-hor-ui][data-hor-ui] .hor-freeze-course-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;align-items:center;font-size:13px;color:var(--hor-muted)}
[data-hor-ui][data-hor-ui] .hor-freeze-course-progress>span{grid-column:1/-1;color:var(--hor-navy);font-weight:600}
[data-hor-ui][data-hor-ui] .hor-freeze-course-progress>div{height:8px;background:var(--hor-border);border-radius:999px;overflow:hidden}
[data-hor-ui][data-hor-ui] .hor-freeze-course-progress i{display:block;height:100%;background:var(--hor-yellow);border-radius:999px}
[data-hor-ui][data-hor-ui] .hor-freeze-course-progress strong{font-size:16px;color:var(--hor-navy)}
[data-hor-ui][data-hor-ui] .hor-freeze-course-progress small{grid-column:1/-1;color:var(--hor-muted);font-size:12px}
[data-hor-ui][data-hor-ui] .hor-freeze-dashboard-tabs{display:flex;align-items:center;gap:28px;border-bottom:1px solid var(--hor-border);margin-bottom:20px;overflow-x:auto;scrollbar-width:none}
[data-hor-ui][data-hor-ui] .hor-freeze-dashboard-tabs::-webkit-scrollbar{display:none}
[data-hor-ui][data-hor-ui] .hor-freeze-dashboard-tabs a{display:inline-flex;align-items:center;min-height:46px;padding:0 2px;color:var(--hor-navy);font-weight:600;white-space:nowrap;border-bottom:3px solid transparent}
[data-hor-ui][data-hor-ui] .hor-freeze-dashboard-tabs a.active{border-bottom-color:var(--hor-yellow)}
[data-hor-ui][data-hor-ui] .hor-freeze-continue{display:grid;grid-template-columns:minmax(0,1fr) 42%;border:1px solid var(--hor-border);border-radius:var(--hor-radius-l);overflow:hidden;background:#fff;margin-bottom:24px;min-height:250px}
[data-hor-ui][data-hor-ui] .hor-freeze-continue-copy{padding:28px 30px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
[data-hor-ui][data-hor-ui] .hor-freeze-kicker{font-size:12px;font-weight:700;letter-spacing:.03em;margin-bottom:4px}
[data-hor-ui][data-hor-ui] .hor-freeze-continue h2{font-size:28px;margin:0 0 10px}
[data-hor-ui][data-hor-ui] .hor-freeze-continue p{margin:0 0 14px;max-width:560px;color:var(--hor-navy)}
[data-hor-ui][data-hor-ui] .hor-freeze-continue-meta{display:flex;gap:20px;flex-wrap:wrap;color:var(--hor-muted);font-size:13px;margin-bottom:18px}
[data-hor-ui][data-hor-ui] .hor-freeze-continue-meta span+span{max-width:360px}
[data-hor-ui][data-hor-ui] .hor-freeze-primary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 24px;border-radius:12px;background:var(--hor-navy);color:#fff!important;font-weight:700}
[data-hor-ui][data-hor-ui] .hor-freeze-continue>img{width:100%;height:100%;object-fit:cover;min-height:250px}
[data-hor-ui][data-hor-ui] .hor-freeze-module-section{margin-top:18px}
[data-hor-ui][data-hor-ui] .hor-freeze-section-head{display:flex;justify-content:space-between;align-items:center;margin:0 0 10px}
[data-hor-ui][data-hor-ui] .hor-freeze-section-head h2{font-size:22px;margin:0}
[data-hor-ui][data-hor-ui] .hor-freeze-section-head span{font-size:13px;color:var(--hor-muted)}
[data-hor-ui][data-hor-ui] .hor-freeze-module-list{display:grid;gap:8px}
[data-hor-ui][data-hor-ui] .hor-freeze-module-row{display:grid;grid-template-columns:52px minmax(0,1fr) auto 20px;gap:16px;align-items:center;min-height:76px;padding:10px 18px;border:1px solid var(--hor-border);border-radius:14px;background:#fff;color:var(--hor-navy)!important}
[data-hor-ui][data-hor-ui] .hor-freeze-module-row.is-current{background:#FFF9E8;border-color:#F4D56A}
[data-hor-ui][data-hor-ui] .hor-freeze-module-row.is-locked{background:#FBFCFE;color:#7B819A!important}
[data-hor-ui][data-hor-ui] .hor-freeze-module-num{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:var(--hor-navy);color:#fff;font-size:18px;box-shadow:inset 0 0 0 4px rgba(255,255,255,.18)}
[data-hor-ui][data-hor-ui] .hor-freeze-module-row.is-locked .hor-freeze-module-num{background:#9AA1B8}
[data-hor-ui][data-hor-ui] .hor-freeze-module-copy{min-width:0;display:grid;gap:2px}
[data-hor-ui][data-hor-ui] .hor-freeze-module-copy strong{font-size:15px;line-height:1.35;color:inherit}
[data-hor-ui][data-hor-ui] .hor-freeze-module-copy small{font-size:13px;line-height:1.45;color:var(--hor-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
[data-hor-ui][data-hor-ui] .hor-freeze-status{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 12px;border-radius:999px;background:var(--hor-soft);font-size:13px;white-space:nowrap}
[data-hor-ui][data-hor-ui] .hor-freeze-status.current{background:var(--hor-yellow);color:var(--hor-navy);font-weight:700}
[data-hor-ui][data-hor-ui] .hor-freeze-chevron{font-size:26px;line-height:1}
[data-hor-ui][data-hor-ui] .hor-freeze-utility-view{padding:20px 0}
[data-hor-ui][data-hor-ui] .hor-freeze-utility-view>.hor-content-card{border:1px solid var(--hor-border);border-radius:var(--hor-radius-l);background:var(--hor-canvas);padding:24px;margin:16px 0}

/* Lesson frozen shell */
[data-hor-ui][data-hor-ui] .hor-lesson-top{height:64px;padding:0 24px;gap:24px}
[data-hor-ui][data-hor-ui] .hor-lesson-top .hor-freeze-brand{margin-right:12px}
[data-hor-ui][data-hor-ui] .hor-lesson-top .hor-top-module{font-size:14px;font-weight:700;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff}
[data-hor-ui][data-hor-ui] .hor-lesson-top .hor-top-progress{display:grid;grid-template-columns:200px;gap:5px;min-width:200px;margin-left:auto}
[data-hor-ui][data-hor-ui] .hor-lesson-top .hor-top-progress span{font-size:12px;color:#fff}
[data-hor-ui][data-hor-ui] .hor-lesson-top .hor-top-progress>div{height:6px;border-radius:999px;background:rgba(255,255,255,.35);overflow:hidden}
[data-hor-ui][data-hor-ui] .hor-lesson-top .hor-top-progress i{display:block;height:100%;background:var(--hor-yellow);border-radius:999px}
[data-hor-ui][data-hor-ui] .hor-menu-btn{display:none!important}
[data-hor-ui][data-hor-ui] .hor-lesson-grid{max-width:none;margin:0;display:grid;grid-template-columns:272px minmax(0,1fr);min-height:calc(100vh - 64px);background:#fff}
[data-hor-ui][data-hor-ui] .hor-lesson-side{position:sticky;top:64px;align-self:start;height:calc(100vh - 64px);overflow:auto;padding:26px 16px;background:var(--hor-canvas);border-right:1px solid var(--hor-border)}
body.admin-bar [data-hor-ui][data-hor-ui] .hor-lesson-side{top:96px;height:calc(100vh - 96px)}
[data-hor-ui][data-hor-ui] .hor-side-back{display:flex;align-items:center;min-height:44px;color:var(--hor-navy)!important;font-size:14px;margin:0 6px 18px}
[data-hor-ui][data-hor-ui] .hor-lesson-side-head{padding:0 8px 14px;font-size:18px}
[data-hor-ui][data-hor-ui] .hor-lesson-side nav{display:grid;gap:8px}
[data-hor-ui][data-hor-ui] .hor-step-link{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:start;min-height:64px;padding:12px 10px;border-radius:12px;color:var(--hor-navy)!important;border-left:4px solid transparent}
[data-hor-ui][data-hor-ui] .hor-step-link.is-current{background:#FFF9E8;border-left-color:var(--hor-navy);font-weight:700}
[data-hor-ui][data-hor-ui] .hor-step-num{width:32px;height:32px;display:grid;place-items:center;border:1px solid #B8C0D6;border-radius:50%;font-size:12px}
[data-hor-ui][data-hor-ui] .hor-step-link.is-current .hor-step-num{background:var(--hor-navy);color:#fff;border-color:var(--hor-navy)}
[data-hor-ui][data-hor-ui] .hor-lesson-main{width:min(100%,1100px);margin:0 auto;padding:28px 32px 80px;min-width:0}
[data-hor-ui][data-hor-ui] .hor-lesson-title h1{font-size:36px;line-height:1.2;margin:0 0 10px}
[data-hor-ui][data-hor-ui] .hor-lesson-meta{display:flex;align-items:center;gap:0;flex-wrap:wrap;margin-bottom:22px;color:var(--hor-muted);font-size:14px}
[data-hor-ui][data-hor-ui] .hor-lesson-meta span{display:inline-flex;align-items:center;min-height:24px}
[data-hor-ui][data-hor-ui] .hor-lesson-meta span+span:before{content:'';width:1px;height:18px;background:var(--hor-border);margin:0 16px}
[data-hor-ui][data-hor-ui] .hor-content-goals{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 18px;align-items:start;padding:18px 22px;border-radius:14px;background:linear-gradient(90deg,#F4F7FF,#F8FAFF);margin-bottom:18px}
[data-hor-ui][data-hor-ui] .hor-content-goals:before{content:'◎';grid-row:1/3;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#EAF0FF;color:#1246E5;font-size:23px}
[data-hor-ui][data-hor-ui] .hor-content-goals strong{font-size:16px;line-height:1.35}
[data-hor-ui][data-hor-ui] .hor-content-goals>div{grid-column:2}
[data-hor-ui][data-hor-ui] .hor-content-goals p{margin:0!important;font-size:16px;color:var(--hor-navy)}

/* 5 phases */
[data-hor-ui][data-hor-ui] .hor-stage-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 18px;overflow:visible}
[data-hor-ui][data-hor-ui] .hor-content-tab{min-height:64px!important;padding:8px 12px!important;border:1px solid var(--hor-border)!important;border-radius:12px!important;background:#FAFBFE!important;color:var(--hor-navy)!important;display:grid!important;grid-template-columns:36px minmax(0,1fr);align-items:center;text-align:left;gap:8px;box-shadow:none!important}
[data-hor-ui][data-hor-ui] .hor-content-tab>span{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#EEF1F7;color:var(--hor-navy);font-style:normal}
[data-hor-ui][data-hor-ui] .hor-content-tab em{font-style:normal!important;font-weight:700;font-size:14px;line-height:1.2;display:grid;gap:2px}
[data-hor-ui][data-hor-ui] .hor-content-tab small{display:block;font-weight:400;color:var(--hor-muted);font-size:11px;line-height:1.2}
[data-hor-ui][data-hor-ui] .hor-content-tab.active{background:var(--hor-navy)!important;color:#fff!important;border-color:var(--hor-navy)!important}
[data-hor-ui][data-hor-ui] .hor-content-tab.active>span{background:#fff;color:var(--hor-navy)}
[data-hor-ui][data-hor-ui] .hor-content-tab.active small{color:#DCE1F3}

/* Content surfaces: remove giant phase wrapper */
[data-hor-ui][data-hor-ui] .hor-activity{border:0!important;border-radius:0!important;background:transparent!important;padding:0!important;box-shadow:none!important}
[data-hor-ui][data-hor-ui] [data-hor-unit]{padding:0;margin:0}
[data-hor-ui][data-hor-ui] [data-hor-unit]+[data-hor-unit]{margin-top:32px!important;padding-top:32px!important;border-top:1px solid var(--hor-border)!important}
[data-hor-ui][data-hor-ui] .hor-stage-demo.hor-content-screen{border:0!important;background:transparent!important;border-radius:0!important;padding:0!important;margin:0!important}
[data-hor-ui][data-hor-ui] .hor-content-screen>h2{font-size:26px;margin:0 0 14px}
[data-hor-ui][data-hor-ui] .hor-content-screen>h3{margin-top:24px}
[data-hor-ui][data-hor-ui] .hor-content-card,[data-hor-ui][data-hor-ui] .hor-speaking-card,[data-hor-ui][data-hor-ui] .hor-callout{border:1px solid var(--hor-border)!important;border-radius:var(--hor-radius-l)!important;background:var(--hor-canvas)!important;box-shadow:none!important;padding:24px!important}
[data-hor-ui][data-hor-ui] .hor-task-card{background:var(--hor-soft)!important}
[data-hor-ui][data-hor-ui] .hor-task-card>p>label,[data-hor-ui][data-hor-ui] .hor-task-card label:has(input[type=radio]),[data-hor-ui][data-hor-ui] .hor-task-card label:has(input[type=checkbox]){width:100%;display:flex!important;align-items:center;gap:12px;min-height:52px;padding:10px 14px;border:1px solid var(--hor-border);border-radius:14px;background:#fff;margin:8px 0;cursor:pointer}
[data-hor-ui][data-hor-ui] .hor-task-card input[type=radio],[data-hor-ui][data-hor-ui] .hor-task-card input[type=checkbox]{width:22px;height:22px;flex:0 0 22px;margin:0}
[data-hor-ui][data-hor-ui] .hor-task-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
[data-hor-ui][data-hor-ui] .hor-task-primary{min-height:48px!important;padding:0 22px!important;border-radius:12px!important;background:var(--hor-yellow)!important;color:var(--hor-navy)!important;font-weight:700!important}
[data-hor-ui][data-hor-ui] .hor-task-secondary{min-height:48px!important;padding:0 18px!important;border-radius:12px!important;border:1px solid var(--hor-navy)!important;background:#fff!important;color:var(--hor-navy)!important;font-weight:600!important}
[data-hor-ui][data-hor-ui] .hor-task-feedback{margin-top:14px;padding:14px 16px;border-radius:14px;background:#fff;border:1px solid var(--hor-border)}
[data-hor-ui][data-hor-ui] details.hor-task-hint,[data-hor-ui][data-hor-ui] .hor-content-answer{margin-top:10px;border:0!important;background:transparent!important}
[data-hor-ui][data-hor-ui] details.hor-task-hint>summary,[data-hor-ui][data-hor-ui] .hor-content-answer>summary{display:inline-flex;align-items:center;min-height:44px;color:var(--hor-navy);font-weight:600;cursor:pointer}

/* Navigation */
[data-hor-ui][data-hor-ui] .hor-lesson-nav{display:flex;justify-content:space-between;gap:16px;margin-top:36px}
[data-hor-ui][data-hor-ui] .hor-content-prev,[data-hor-ui][data-hor-ui] .hor-content-next{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 24px;border-radius:999px;font-weight:600}
[data-hor-ui][data-hor-ui] .hor-content-prev{border:1px solid var(--hor-border);background:#fff;color:var(--hor-navy)!important}
[data-hor-ui][data-hor-ui] .hor-content-next{background:var(--hor-navy);color:#fff!important;border:1px solid var(--hor-navy)}

/* Knowledge drawer */
[data-hor-ui][data-hor-ui] .hor-knowledge{position:fixed;top:0;right:0;bottom:0;width:min(470px,92vw);z-index:1100;background:var(--hor-canvas);border-left:1px solid var(--hor-border);box-shadow:-16px 0 40px rgba(32,40,103,.12);overflow:auto;padding:0 20px 28px}
body.admin-bar [data-hor-ui][data-hor-ui] .hor-knowledge{top:32px}
[data-hor-ui][data-hor-ui] .hor-knowledge-head{position:sticky;top:0;z-index:2;background:var(--hor-canvas);display:flex;align-items:center;justify-content:space-between;padding:22px 0 16px;border-bottom:1px solid var(--hor-border)}
[data-hor-ui][data-hor-ui] .hor-knowledge-head h2{font-size:28px}
[data-hor-ui][data-hor-ui] .hor-knowledge-section{border:0!important;background:transparent!important;padding:18px 0!important;margin:0!important}
[data-hor-ui][data-hor-ui] .hor-knowledge-section+.hor-knowledge-section{border-top:1px solid var(--hor-border)!important}
[data-hor-ui][data-hor-ui] .hor-package-action{border-top:0!important}
[data-hor-ui][data-hor-ui] .hor-package-btn{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;align-items:center;padding:16px 18px;border-radius:14px;background:var(--hor-yellow);color:var(--hor-navy)!important}
[data-hor-ui][data-hor-ui] .hor-package-btn strong{font-size:16px}
[data-hor-ui][data-hor-ui] .hor-package-btn small{grid-column:1;font-size:12px;color:var(--hor-navy)}
[data-hor-ui][data-hor-ui] .hor-package-btn span{grid-column:2;grid-row:1/3;font-size:28px}
[data-hor-ui][data-hor-ui] .hor-overlay{position:fixed;inset:0;background:rgba(32,40,103,.25);z-index:1050}

@media(max-width:980px){
 [data-hor-ui][data-hor-ui] .hor-freeze-course-name{display:none}
 [data-hor-ui][data-hor-ui] .hor-lesson-top .hor-top-module{max-width:260px}
 [data-hor-ui][data-hor-ui] .hor-lesson-grid{grid-template-columns:230px minmax(0,1fr)}
 [data-hor-ui][data-hor-ui] .hor-lesson-main{padding-left:24px;padding-right:24px}
 [data-hor-ui][data-hor-ui] .hor-stage-tabs{gap:6px}
 [data-hor-ui][data-hor-ui] .hor-content-tab{padding:7px 8px!important;grid-template-columns:32px minmax(0,1fr)}
}

@media(max-width:780px){
 body.admin-bar [data-hor-ui][data-hor-ui] .hor-freeze-topbar{top:46px}
 [data-hor-ui][data-hor-ui] h1{font-size:30px;line-height:1.26}
 [data-hor-ui][data-hor-ui] h2{font-size:26px;line-height:1.3}
 [data-hor-ui][data-hor-ui]{font-size:17px;line-height:1.65}
 [data-hor-ui][data-hor-ui] .hor-freeze-topbar{height:58px;min-height:58px;padding:0 18px;gap:12px}
 [data-hor-ui][data-hor-ui] .hor-freeze-brand img{width:32px;height:32px}
 [data-hor-ui][data-hor-ui] .hor-freeze-brand strong{font-size:15px}
 [data-hor-ui][data-hor-ui] .hor-freeze-account span{display:none}
 [data-hor-ui][data-hor-ui] .hor-freeze-account{margin-left:auto}

 /* dashboard mobile */
 [data-hor-ui][data-hor-ui] .hor-freeze-dashboard-main{width:calc(100% - 32px);padding:22px 0 120px}
 [data-hor-ui][data-hor-ui] .hor-freeze-dashboard-head{grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:start;margin-bottom:14px}
 [data-hor-ui][data-hor-ui] .hor-freeze-dashboard-head h1{font-size:30px;max-width:260px}
 [data-hor-ui][data-hor-ui] .hor-freeze-dashboard-head p{font-size:15px}
 [data-hor-ui][data-hor-ui] .hor-freeze-course-progress{width:86px;display:grid;grid-template-columns:1fr;text-align:center;justify-items:center;gap:3px}
 [data-hor-ui][data-hor-ui] .hor-freeze-course-progress>span,[data-hor-ui][data-hor-ui] .hor-freeze-course-progress>div,[data-hor-ui][data-hor-ui] .hor-freeze-course-progress>small{display:none}
 [data-hor-ui][data-hor-ui] .hor-freeze-course-progress strong{width:72px;height:72px;display:grid;place-items:center;border:8px solid var(--hor-border);border-top-color:var(--hor-yellow);border-radius:50%;font-size:20px}
 [data-hor-ui][data-hor-ui] .hor-freeze-dashboard-tabs{gap:10px;border:0;margin:4px -2px 18px;padding-bottom:2px;scroll-snap-type:x proximity}
 [data-hor-ui][data-hor-ui] .hor-freeze-dashboard-tabs a{min-height:48px;padding:0 18px;border:1px solid var(--hor-border);border-radius:12px;scroll-snap-align:start;background:#fff}
 [data-hor-ui][data-hor-ui] .hor-freeze-dashboard-tabs a.active{background:var(--hor-navy);color:#fff!important;border-color:var(--hor-navy)}
 [data-hor-ui][data-hor-ui] .hor-freeze-continue{grid-template-columns:minmax(0,1fr) 34%;min-height:0;margin-bottom:26px}
 [data-hor-ui][data-hor-ui] .hor-freeze-continue-copy{padding:22px 20px}
 [data-hor-ui][data-hor-ui] .hor-freeze-continue h2{font-size:24px}
 [data-hor-ui][data-hor-ui] .hor-freeze-continue p{grid-column:1/-1;font-size:16px}
 [data-hor-ui][data-hor-ui] .hor-freeze-continue-meta{font-size:13px}
 [data-hor-ui][data-hor-ui] .hor-freeze-primary{width:100%;background:var(--hor-yellow);color:var(--hor-navy)!important}
 [data-hor-ui][data-hor-ui] .hor-freeze-continue>img{min-height:170px;object-fit:cover}
 [data-hor-ui][data-hor-ui] .hor-freeze-module-row{grid-template-columns:50px minmax(0,1fr) auto 18px;gap:10px;min-height:104px;padding:12px 12px}
 [data-hor-ui][data-hor-ui] .hor-freeze-module-copy small{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px}
 [data-hor-ui][data-hor-ui] .hor-freeze-status{padding:0 9px;font-size:12px;max-width:105px}

 /* lesson mobile */
 [data-hor-ui][data-hor-ui] .hor-lesson-top{height:auto;min-height:94px;padding:10px 16px;display:grid;grid-template-columns:1fr auto auto;grid-template-rows:40px 34px;gap:4px 8px}
 [data-hor-ui][data-hor-ui] .hor-lesson-top .hor-freeze-brand{grid-column:1;grid-row:1;min-width:0}
 [data-hor-ui][data-hor-ui] .hor-lesson-top .hor-freeze-brand strong{display:none}
 [data-hor-ui][data-hor-ui] .hor-lesson-top .hor-top-module{grid-column:1/4;grid-row:2;max-width:none;font-size:13px;align-self:center}
 [data-hor-ui][data-hor-ui] .hor-lesson-top .hor-top-progress{display:none}
 [data-hor-ui][data-hor-ui] .hor-lesson-top .hor-lesson-account{grid-column:2;grid-row:1;margin:0}
 [data-hor-ui][data-hor-ui] .hor-lesson-top .hor-lesson-account span{display:none}
 [data-hor-ui][data-hor-ui] .hor-lesson-top .hor-knowledge-btn{grid-column:3;grid-row:1;min-height:38px!important;padding:0 10px!important;font-size:12px!important}
 [data-hor-ui][data-hor-ui] .hor-menu-btn{display:inline-flex!important;position:fixed;right:16px;top:118px;z-index:999;min-height:44px!important;padding:0 14px!important;border:1px solid var(--hor-border)!important;border-radius:12px!important;background:#fff!important;color:var(--hor-navy)!important}
 body.admin-bar [data-hor-ui][data-hor-ui] .hor-menu-btn{top:164px}
 [data-hor-ui][data-hor-ui] .hor-lesson-grid{display:block;min-height:calc(100vh - 94px)}
 [data-hor-ui][data-hor-ui] .hor-lesson-side{display:none;position:fixed;inset:0 auto 0 0;width:min(320px,88vw);height:100dvh;z-index:1150;background:#fff;padding:24px 16px;box-shadow:20px 0 50px rgba(32,40,103,.18)}
 [data-hor-ui][data-hor-ui] .hor-lesson-side.open{display:block}
 [data-hor-ui][data-hor-ui] .hor-lesson-side-head button{display:block}
 [data-hor-ui][data-hor-ui] .hor-lesson-main{width:100%;padding:72px 20px 110px;margin:0}
 [data-hor-ui][data-hor-ui] .hor-lesson-title h1{font-size:30px;line-height:1.25;margin-bottom:10px}
 [data-hor-ui][data-hor-ui] .hor-lesson-meta{font-size:14px;margin-bottom:18px}
 [data-hor-ui][data-hor-ui] .hor-lesson-meta span+span:before{margin:0 10px}
 [data-hor-ui][data-hor-ui] .hor-content-goals{grid-template-columns:auto minmax(0,1fr);padding:16px 16px;margin-bottom:18px}
 [data-hor-ui][data-hor-ui] .hor-content-goals p{font-size:17px}
 [data-hor-ui][data-hor-ui] .hor-stage-tabs{display:flex!important;gap:8px;margin:0 -20px 20px;padding:0 20px 6px;overflow-x:auto!important;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
 [data-hor-ui][data-hor-ui] .hor-stage-tabs::-webkit-scrollbar{display:none}
 [data-hor-ui][data-hor-ui] .hor-content-tab{flex:0 0 138px!important;min-width:138px!important;scroll-snap-align:center;min-height:64px!important;grid-template-columns:34px minmax(0,1fr)}
 [data-hor-ui][data-hor-ui] .hor-content-tab small{font-size:10px}
 [data-hor-ui][data-hor-ui] [data-hor-unit]+[data-hor-unit]{margin-top:24px!important;padding-top:24px!important}
 [data-hor-ui][data-hor-ui] .hor-content-card,[data-hor-ui][data-hor-ui] .hor-speaking-card,[data-hor-ui][data-hor-ui] .hor-callout{padding:20px!important}
 [data-hor-ui][data-hor-ui] .hor-task-card{padding:18px!important}
 [data-hor-ui][data-hor-ui] .hor-task-actions{display:grid;grid-template-columns:1fr;gap:8px}
 [data-hor-ui][data-hor-ui] .hor-task-actions button{width:100%!important}
 [data-hor-ui][data-hor-ui] .hor-lesson-nav{position:fixed;left:0;right:0;bottom:0;z-index:900;margin:0;padding:10px 20px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--hor-border);display:grid;grid-template-columns:1fr 1fr;gap:12px}
 [data-hor-ui][data-hor-ui] .hor-content-prev,[data-hor-ui][data-hor-ui] .hor-content-next{width:100%;min-height:52px;padding:0 16px;border-radius:999px}
 [data-hor-ui][data-hor-ui] .hor-knowledge{width:100vw;max-width:none;padding:0 20px 32px;border-left:0}
 body.admin-bar [data-hor-ui][data-hor-ui] .hor-knowledge{top:46px}
 [data-hor-ui][data-hor-ui] .hor-knowledge-head h2{font-size:26px}
}

@media(max-width:520px){
 [data-hor-ui][data-hor-ui] .hor-freeze-dashboard-main{width:calc(100% - 24px)}
 [data-hor-ui][data-hor-ui] .hor-freeze-dashboard-head{grid-template-columns:minmax(0,1fr) 74px}
 [data-hor-ui][data-hor-ui] .hor-freeze-dashboard-head h1{font-size:28px}
 [data-hor-ui][data-hor-ui] .hor-freeze-continue{display:block}
 [data-hor-ui][data-hor-ui] .hor-freeze-continue>img{width:100%;height:180px;min-height:0}
 [data-hor-ui][data-hor-ui] .hor-freeze-module-row{grid-template-columns:46px minmax(0,1fr) auto;}
 [data-hor-ui][data-hor-ui] .hor-freeze-chevron{display:none}
 [data-hor-ui][data-hor-ui] .hor-freeze-status{font-size:11px}
 [data-hor-ui][data-hor-ui] .hor-lesson-main{padding-left:16px;padding-right:16px}
 [data-hor-ui][data-hor-ui] .hor-stage-tabs{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}
 [data-hor-ui][data-hor-ui] .hor-content-tab{flex-basis:132px!important;min-width:132px!important}
 [data-hor-ui][data-hor-ui] .hor-lesson-meta{display:grid;gap:4px}
 [data-hor-ui][data-hor-ui] .hor-lesson-meta span+span:before{display:none}
}

/* Stage 2.1b live-test correction — clearer dashboard + explicit course navigation */
[data-hor-ui][data-hor-ui].hor-dashboard-classic{background:#fff;min-height:100vh}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-dashboard-grid{max-width:1280px;grid-template-columns:220px minmax(0,1fr);min-height:calc(100dvh - 64px)}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-dash-side{padding:28px 18px;background:#F7F8FC;border-right:1px solid var(--hor-border)}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-side-course{padding:0 10px 18px;display:grid;gap:3px}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-side-course strong{font-size:15px}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-side-course small{font-size:12px;color:var(--hor-muted)}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-dash-side nav{display:grid;gap:5px}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-dash-side nav a{min-height:44px;padding:10px 12px;border-radius:10px;color:var(--hor-navy);font-size:14px;align-items:center}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-dash-side nav a.active{background:#E9ECF6;color:var(--hor-navy);font-weight:700}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-side-label{margin-top:22px;padding:18px 10px 8px;border-top:1px solid var(--hor-border);font-size:13px;font-weight:700}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-dashboard-account-links a{font-size:13px!important;color:var(--hor-muted)!important}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-dash-main{padding:32px 34px 64px;min-width:0}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-dash-titlebar{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:22px;min-height:78px}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-dash-titlebar h1{font-size:34px;line-height:1.16;margin:0 0 8px}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-dash-titlebar p{font-size:15px;color:var(--hor-muted)}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-dash-ring{width:72px;height:72px;background:conic-gradient(var(--hor-navy) 0 22%,var(--hor-border) 22% 100%)}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-dash-ring:before{background:#fff}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-dash-ring span{font-size:18px}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-dash-ring small{top:76px;font-size:11px}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-welcome-course{min-height:150px;height:auto;border:1px solid var(--hor-border);border-radius:18px;background:#F7F8FC;margin-bottom:26px;overflow:hidden}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-welcome-course .hor-welcome-copy{max-width:calc(100% - 210px);padding:24px 28px;align-items:flex-start}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-welcome-course .hor-welcome-avatar{display:flex;flex:0 0 34px;border-right:1px solid var(--hor-border);padding-right:14px;min-height:78px}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-welcome-course .hor-welcome-avatar svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-welcome-course h2{font-size:21px;margin:0 0 6px}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-welcome-course p{font-size:14px;line-height:1.5;max-width:600px;margin-bottom:14px}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-welcome-course a{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:10px;background:var(--hor-navy);color:#fff!important;font-weight:700;font-size:14px}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-welcome-course>img{width:210px;height:170px;right:6px;bottom:-12px;object-fit:contain;mix-blend-mode:multiply}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-list-title{display:flex;justify-content:space-between;align-items:center;font-size:18px;font-weight:700;margin:0 0 12px}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-list-title span{font-size:12px;color:var(--hor-muted);font-weight:500}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-module-list{display:grid;gap:8px}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-module-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:14px;align-items:center;min-height:78px;padding:12px 16px;border:1px solid var(--hor-border);border-radius:14px;background:#fff;color:var(--hor-navy)!important}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-module-row.is-current{background:#FFF9E8;border-color:#F4D56A}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-module-row.is-locked{background:#FBFCFE;color:#8B92AA!important;cursor:not-allowed}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-module-dot{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:var(--hor-navy);color:#fff;font-size:18px;box-shadow:inset 0 0 0 4px rgba(255,255,255,.18)}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-module-row.is-locked .hor-module-dot{background:#A3AAC0}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-module-text{min-width:0}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-module-text h3{font-size:15px;line-height:1.35;margin:0 0 3px}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-module-text p{font-size:13px;line-height:1.45;color:var(--hor-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-module-status{display:flex;align-items:center;gap:12px;white-space:nowrap;font-size:13px}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-module-status b{font-size:25px;font-weight:400}
[data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-module-row.is-current .hor-status-label{display:inline-flex;min-height:34px;align-items:center;padding:0 12px;border-radius:999px;background:var(--hor-yellow);font-weight:700}
[data-hor-ui][data-hor-ui] .hor-mobile-dashboard-nav{display:none}
[data-hor-ui][data-hor-ui] .hor-utility-back{margin-bottom:12px}
[data-hor-ui][data-hor-ui] .hor-utility-back a{color:var(--hor-navy);font-weight:600}

/* Lesson: dashboard is always a visible destination, not a hidden logo behavior. */
[data-hor-ui][data-hor-ui] .hor-dashboard-home{display:inline-flex;align-items:center;min-height:40px;padding:0 10px;border-radius:9px;color:#fff!important;font-size:13px!important;font-weight:700;white-space:nowrap;background:rgba(255,255,255,.08)}
[data-hor-ui][data-hor-ui] .hor-side-back{display:flex;align-items:center;min-height:44px;margin:0 0 18px;padding:0 8px;color:var(--hor-navy)!important;font-weight:700;font-size:14px}

@media(max-width:980px) and (min-width:781px){
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-dashboard-grid{grid-template-columns:190px minmax(0,1fr)}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-dash-main{padding:28px 24px 54px}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-welcome-course .hor-welcome-copy{max-width:calc(100% - 160px)}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-welcome-course>img{width:165px}
 [data-hor-ui][data-hor-ui] .hor-lesson-top .hor-freeze-brand strong{display:none}
 [data-hor-ui][data-hor-ui] .hor-dashboard-home{padding:0 8px}
}

@media(max-width:780px){
 /* dashboard mobile: keep the older readable hierarchy, but without Notes/Favorites */
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-dashboard-grid{display:block;min-height:calc(100dvh - 58px)}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-dash-side{display:none!important}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-dash-main{padding:20px 16px 90px}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-mobile-dashboard-nav{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 22px}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-mobile-dashboard-nav a{display:flex;align-items:center;justify-content:center;min-height:48px;padding:0 10px;border:1px solid var(--hor-border);border-radius:12px;background:#fff;color:var(--hor-navy)!important;font-size:14px;font-weight:600}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-mobile-dashboard-nav a.active{background:var(--hor-navy);border-color:var(--hor-navy);color:#fff!important}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-dash-titlebar{margin-bottom:24px;min-height:76px;align-items:flex-start}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-dash-titlebar h1{font-size:28px;line-height:1.18;margin:0 0 8px}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-dash-titlebar p{display:block;font-size:14px;line-height:1.45}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-dash-ring{width:64px;height:64px}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-dash-ring small{display:none}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-welcome-course{min-height:168px;margin-bottom:26px}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-welcome-course .hor-welcome-copy{display:block;max-width:calc(100% - 104px);padding:20px}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-welcome-course .hor-welcome-avatar{display:none}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-welcome-course h2{font-size:20px}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-welcome-course p{font-size:14px;max-width:none}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-welcome-course>img{width:112px;height:120px;right:-4px;bottom:-8px}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-welcome-course a{max-width:calc(100% - 5px)}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-list-title{font-size:20px;margin-bottom:12px}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-module-row{grid-template-columns:46px minmax(0,1fr) auto;gap:10px;min-height:92px;padding:12px}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-module-dot{width:42px;height:42px;font-size:17px}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-module-text h3{font-size:15px}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-module-text p{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-module-status{font-size:12px}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-module-status b{display:none}

 /* lesson mobile navigation = Dashboard -> Lekcje / Wiedza -> phase */
 [data-hor-ui][data-hor-ui] .hor-lesson-top{height:auto;min-height:104px;padding:10px 14px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:44px 40px;gap:4px 8px}
 [data-hor-ui][data-hor-ui] .hor-lesson-top .hor-freeze-brand{display:none}
 [data-hor-ui][data-hor-ui] .hor-dashboard-home{grid-column:1;grid-row:1;justify-self:start;min-height:40px;padding:0 12px;background:rgba(255,255,255,.10);font-size:13px!important}
 [data-hor-ui][data-hor-ui] .hor-menu-btn{display:inline-flex!important;position:static!important;grid-column:2;grid-row:1;align-items:center;justify-content:center;min-height:40px!important;padding:0 12px!important;border:1px solid rgba(255,255,255,.55)!important;border-radius:10px!important;background:transparent!important;color:#fff!important;font-size:13px!important;font-weight:700!important}
 [data-hor-ui][data-hor-ui] .hor-knowledge-btn{grid-column:3!important;grid-row:1!important;min-height:40px!important;padding:0 12px!important;font-size:13px!important;white-space:nowrap}
 [data-hor-ui][data-hor-ui] .hor-lesson-account{display:none!important}
 [data-hor-ui][data-hor-ui] .hor-lesson-top .hor-top-module{grid-column:1/3;grid-row:2;display:block!important;max-width:none;font-size:12px;align-self:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 [data-hor-ui][data-hor-ui] .hor-lesson-top .hor-top-progress{grid-column:3;grid-row:2;display:grid!important;grid-template-columns:118px;min-width:118px;margin:0;align-self:center}
 [data-hor-ui][data-hor-ui] .hor-lesson-top .hor-top-progress span{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 [data-hor-ui][data-hor-ui] .hor-lesson-top .hor-top-progress>div{height:5px}
 [data-hor-ui][data-hor-ui] .hor-lesson-main{padding-top:24px!important}
 [data-hor-ui][data-hor-ui] .hor-lesson-side{padding-top:18px}
 [data-hor-ui][data-hor-ui] .hor-lesson-side .hor-side-back{margin-bottom:10px;border-bottom:1px solid var(--hor-border);padding-bottom:10px}
}

@media(max-width:430px){
 [data-hor-ui][data-hor-ui] .hor-lesson-top{grid-template-columns:minmax(0,1fr) auto auto;padding-left:10px;padding-right:10px;gap:4px 6px}
 [data-hor-ui][data-hor-ui] .hor-dashboard-home{padding:0 9px;font-size:12px!important}
 [data-hor-ui][data-hor-ui] .hor-menu-btn,[data-hor-ui][data-hor-ui] .hor-knowledge-btn{padding:0 9px!important;font-size:12px!important}
 [data-hor-ui][data-hor-ui] .hor-lesson-top .hor-top-progress{grid-template-columns:105px;min-width:105px}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-dash-main{padding-left:12px;padding-right:12px}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-mobile-dashboard-nav a{font-size:13px;padding:0 6px}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-welcome-course .hor-welcome-copy{max-width:calc(100% - 88px);padding:18px}
 [data-hor-ui][data-hor-ui].hor-dashboard-classic .hor-welcome-course>img{width:94px}
}

/* Stage 2.1c — live mobile UX correction: visible course navigation + secondary info collapsed */
[data-hor-ui][data-hor-ui] .hor-secondary-details{
  margin:14px 0 18px;
  border:1px solid var(--hor-border);
  border-radius:14px;
  background:#F7F8FC;
  overflow:hidden;
}
[data-hor-ui][data-hor-ui] .hor-secondary-details>summary{
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:11px 16px;
  cursor:pointer;
  list-style:none;
  color:var(--hor-navy);
  font-size:15px;
  line-height:1.35;
  font-weight:700;
}
[data-hor-ui][data-hor-ui] .hor-secondary-details>summary::-webkit-details-marker{display:none}
[data-hor-ui][data-hor-ui] .hor-secondary-details>summary::marker{content:''}
[data-hor-ui][data-hor-ui] .hor-details-chevron{font-size:18px;line-height:1;transition:transform .18s ease;color:var(--hor-muted)}
[data-hor-ui][data-hor-ui] .hor-secondary-details[open] .hor-details-chevron{transform:rotate(180deg)}
[data-hor-ui][data-hor-ui] .hor-secondary-details-body{padding:0 16px 16px;color:var(--hor-navy)}
[data-hor-ui][data-hor-ui] .hor-secondary-details-body>:first-child{margin-top:0!important}
[data-hor-ui][data-hor-ui] .hor-secondary-details-body>:last-child{margin-bottom:0!important}
[data-hor-ui][data-hor-ui] .hor-content-goals{display:block!important;padding:0!important;background:#F7F8FC!important;margin-bottom:18px!important}
[data-hor-ui][data-hor-ui] .hor-content-goals:before{display:none!important;content:none!important}
[data-hor-ui][data-hor-ui] .hor-content-goals>summary{font-size:15px!important}
[data-hor-ui][data-hor-ui] .hor-content-goals .hor-secondary-details-body{font-size:16px}
[data-hor-ui][data-hor-ui] .hor-content-goals p{font-size:16px!important;line-height:1.6;margin:0!important}
[data-hor-ui][data-hor-ui] .hor-module-goal-details{margin:4px 0 24px;background:#fff}
[data-hor-ui][data-hor-ui] .hor-module-goal-details>summary{font-size:16px}
[data-hor-ui][data-hor-ui] .hor-module-goal-details .hor-secondary-details-body{font-size:16px;line-height:1.65}

@media(max-width:780px){
  /* Override the older reference stylesheet with equal/higher specificity. */
  .hor-lesson-reference[data-hor-ui][data-hor-ui] .hor-lesson-top,
  [data-hor-ui][data-hor-ui] .hor-lesson-top.hor-freeze-topbar{
    background:var(--hor-navy)!important;
    color:#fff!important;
    min-height:104px!important;
    padding:10px 14px!important;
    grid-template-columns:minmax(0,1fr) auto auto!important;
    grid-template-rows:44px 40px!important;
    gap:4px 8px!important;
  }
  .hor-lesson-reference[data-hor-ui][data-hor-ui] .hor-dashboard-home{
    grid-column:1!important;
    grid-row:1!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    justify-self:start!important;
    min-height:40px!important;
    padding:0 12px!important;
    border:1px solid #fff!important;
    border-radius:10px!important;
    background:#fff!important;
    color:var(--hor-navy)!important;
    font-size:13px!important;
    font-weight:800!important;
    opacity:1!important;
    visibility:visible!important;
    text-decoration:none!important;
  }
  .hor-lesson-reference[data-hor-ui][data-hor-ui] .hor-menu-btn,
  .hor-lesson-reference[data-hor-ui][data-hor-ui] .hor-knowledge-btn{
    display:inline-flex!important;
    position:static!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:40px!important;
    padding:0 12px!important;
    border:1px solid rgba(255,255,255,.82)!important;
    border-radius:10px!important;
    background:transparent!important;
    color:#fff!important;
    font-size:13px!important;
    font-weight:800!important;
    opacity:1!important;
    visibility:visible!important;
    text-shadow:none!important;
  }
  .hor-lesson-reference[data-hor-ui][data-hor-ui] .hor-menu-btn{grid-column:2!important;grid-row:1!important}
  .hor-lesson-reference[data-hor-ui][data-hor-ui] .hor-knowledge-btn{grid-column:3!important;grid-row:1!important;max-width:none!important;white-space:nowrap!important}
  .hor-lesson-reference[data-hor-ui][data-hor-ui] .hor-lesson-top .hor-top-module{
    grid-column:1/3!important;
    grid-row:2!important;
    display:block!important;
    color:#fff!important;
    font-size:12px!important;
    font-weight:700!important;
    max-width:none!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  .hor-lesson-reference[data-hor-ui][data-hor-ui] .hor-lesson-top .hor-top-progress{
    grid-column:3!important;
    grid-row:2!important;
    display:grid!important;
    grid-template-columns:118px!important;
    min-width:118px!important;
    margin:0!important;
    align-self:center!important;
  }
  .hor-lesson-reference[data-hor-ui][data-hor-ui] .hor-lesson-top .hor-top-progress span{color:#fff!important;font-size:10px!important}
  .hor-lesson-reference[data-hor-ui][data-hor-ui] .hor-lesson-top .hor-top-progress>div{background:rgba(255,255,255,.35)!important}
  [data-hor-ui][data-hor-ui] .hor-lesson-main{padding-top:24px!important}
  [data-hor-ui][data-hor-ui] .hor-lesson-title{margin-bottom:6px}
  [data-hor-ui][data-hor-ui] .hor-content-goals{margin-top:10px!important;margin-bottom:14px!important}
  [data-hor-ui][data-hor-ui] .hor-content-goals>summary{min-height:46px;padding:10px 14px;font-size:14px!important}
  [data-hor-ui][data-hor-ui] .hor-content-goals .hor-secondary-details-body{padding:0 14px 14px}
  [data-hor-ui][data-hor-ui] .hor-content-goals p{font-size:15px!important;line-height:1.55}
  [data-hor-ui][data-hor-ui] .hor-module-goal-details{margin:0 0 18px}
  [data-hor-ui][data-hor-ui] .hor-module-goal-details>summary{min-height:46px;padding:10px 14px;font-size:14px}
  [data-hor-ui][data-hor-ui] .hor-module-goal-details .hor-secondary-details-body{padding:0 14px 14px;font-size:15px}
}

@media(max-width:430px){
  .hor-lesson-reference[data-hor-ui][data-hor-ui] .hor-lesson-top{padding-left:10px!important;padding-right:10px!important;gap:4px 6px!important}
  .hor-lesson-reference[data-hor-ui][data-hor-ui] .hor-dashboard-home{padding:0 9px!important;font-size:12px!important}
  .hor-lesson-reference[data-hor-ui][data-hor-ui] .hor-menu-btn,
  .hor-lesson-reference[data-hor-ui][data-hor-ui] .hor-knowledge-btn{padding:0 9px!important;font-size:12px!important}
  .hor-lesson-reference[data-hor-ui][data-hor-ui] .hor-lesson-top .hor-top-progress{grid-template-columns:105px!important;min-width:105px!important}
}


/* Stage 2.1d — lesson-context knowledge action + final navigation polish */
/* The lesson knowledge action belongs to the lesson header on desktop, not the global course bar. */
[data-hor-ui][data-hor-ui] .hor-lesson-heading-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}
[data-hor-ui][data-hor-ui] .hor-lesson-heading-row h1{margin-right:auto}
[data-hor-ui][data-hor-ui] .hor-title-knowledge-btn{
  flex:0 0 auto;
  min-height:44px;
  padding:0 16px;
  margin-top:1px;
  border:1px solid var(--hor-border);
  border-radius:12px;
  background:#fff;
  color:var(--hor-navy);
  font:600 14px/1.2 Roboto,Arial,sans-serif;
  cursor:pointer;
  white-space:nowrap;
}
[data-hor-ui][data-hor-ui] .hor-title-knowledge-btn:hover{background:var(--hor-canvas);border-color:#C8CFE2}
@media(min-width:781px){
  [data-hor-ui][data-hor-ui] .hor-lesson-top>.hor-knowledge-btn{display:none!important}
}
@media(max-width:780px){
  [data-hor-ui][data-hor-ui] .hor-title-knowledge-btn{display:none!important}
}

/* Secondary goals should feel secondary: one disclosure indicator, no duplicate plus icon. */
[data-hor-ui][data-hor-ui] .hor-secondary-details>summary:before,
[data-hor-ui][data-hor-ui] .hor-module-goal-details>summary:before,
[data-hor-ui][data-hor-ui] .hor-content-goals>summary:before{
  display:none!important;
  content:none!important;
}

/* The theme's floating scroll-to-top competes with the course Next action. Hide it only inside course pages. */
body.hor-course-body #ast-scroll-top,
body.hor-course-body .ast-scroll-to-top-right,
body.hor-course-body .ast-scroll-top-icon,
body.hor-course-body #scrollUp,
body.hor-course-body #scroll-top,
body.hor-course-body .scroll-to-top,
body.hor-course-body .back-to-top,
body.hor-course-body .to-top{display:none!important}
