/* Stage 4.2D3.1 — stable render contract: semantic lists + mission-linear shell. */
[data-hor-ui][data-hor-ui] .hor-readable-list{margin:12px 0 18px;padding-left:1.35rem;display:grid;gap:8px;line-height:1.55}
[data-hor-ui][data-hor-ui] .hor-readable-list li{margin:0;padding-left:3px}
[data-hor-ui][data-hor-ui] .hor-check-list{list-style:none;padding-left:0}
[data-hor-ui][data-hor-ui] .hor-check-list li{position:relative;padding-left:30px}
[data-hor-ui][data-hor-ui] .hor-check-list li::before{content:'✓';position:absolute;left:0;top:.05em;width:21px;height:21px;border-radius:50%;display:grid;place-items:center;background:#FFF5D6;color:#2A2F70;font-size:12px;font-weight:800}
[data-hor-ui][data-hor-ui] .hor-step-list{padding-left:1.55rem}
[data-hor-ui][data-hor-ui] .hor-semantic-block{margin:22px 0;padding:18px 20px;border-left:4px solid #E8A924;background:#FAFBFE;border-radius:0 14px 14px 0}
[data-hor-ui][data-hor-ui] .hor-semantic-block>h3{margin:0 0 10px;font-size:1.08rem;line-height:1.35}
[data-hor-ui][data-hor-ui] .hor-semantic-block>p:last-child,[data-hor-ui][data-hor-ui] .hor-semantic-block>.hor-readable-list:last-child{margin-bottom:0}
[data-hor-ui][data-hor-ui] .hor-chat-thread{display:grid;gap:10px;margin:12px 0 18px;max-width:760px}
[data-hor-ui][data-hor-ui] .hor-chat-message{max-width:82%;padding:12px 14px;border:1px solid #E1E5EF;border-radius:16px;background:#F7F8FC}
[data-hor-ui][data-hor-ui] .hor-chat-message.is-learner{justify-self:end;background:#FFF8E6;border-color:#F0D98B}
[data-hor-ui][data-hor-ui] .hor-chat-message strong{display:block;font-size:.82rem;margin-bottom:3px}
[data-hor-ui][data-hor-ui] .hor-chat-message p{margin:0}
[data-hor-ui][data-hor-ui] .hor-menu-table-wrap{overflow-x:auto;margin:12px 0 18px}
[data-hor-ui][data-hor-ui] .hor-menu-table{width:min(100%,620px);border-collapse:separate;border-spacing:0;border:1px solid #E1E5EF;border-radius:14px;overflow:hidden;background:#fff}
[data-hor-ui][data-hor-ui] .hor-menu-table th,[data-hor-ui][data-hor-ui] .hor-menu-table td{padding:11px 14px;text-align:left;border-bottom:1px solid #E1E5EF}
[data-hor-ui][data-hor-ui] .hor-menu-table th{font-weight:700;background:#F7F8FC}
[data-hor-ui][data-hor-ui] .hor-menu-table tr:last-child td{border-bottom:0}
[data-hor-ui][data-hor-ui] .hor-translation-pairs{display:grid;gap:10px;margin:12px 0 18px}
[data-hor-ui][data-hor-ui] .hor-translation-pairs p{margin:0;padding:10px 12px;border-left:3px solid #E1E5EF;background:#FAFBFE;border-radius:0 10px 10px 0}
[data-hor-ui][data-hor-ui].hor-mission-linear .hor-lesson-title{margin-bottom:20px}
[data-hor-ui][data-hor-ui].hor-mission-linear [data-hor-unit]{padding-top:6px;margin-top:18px}
[data-hor-ui][data-hor-ui].hor-mission-linear [data-hor-unit]+[data-hor-unit]{border-top:1px solid #EEF0F6;padding-top:26px;margin-top:26px}
[data-hor-ui][data-hor-ui].hor-mission-linear .hor-stage-demo>h2{margin-top:0}
[data-hor-ui][data-hor-ui] .hor-adaptive-hints{margin:14px 0 20px}
@media (max-width:700px){
 [data-hor-ui][data-hor-ui] .hor-semantic-block{padding:15px 16px;margin:18px 0}
 [data-hor-ui][data-hor-ui] .hor-chat-message{max-width:92%}
 [data-hor-ui][data-hor-ui] .hor-readable-list{gap:7px}
}


/* Stage 4.2D3.2 — one saveable lesson self-assessment, only at the end of Podsumuj. */
[data-hor-ui][data-hor-ui] .hor-lesson-end-self{margin-top:30px;padding:26px 28px;border:1px solid #D9E0F1;border-radius:20px;background:#F8FAFF}
[data-hor-ui][data-hor-ui] .hor-lesson-end-self>h2{margin:0 0 8px;color:var(--hor-navy,#202867)}
[data-hor-ui][data-hor-ui] .hor-lesson-end-self>p{margin:0 0 18px;color:var(--hor-muted,#667085)}
@media(max-width:720px){[data-hor-ui][data-hor-ui] .hor-lesson-end-self{padding:20px 16px;border-radius:16px}}


/* Stage 4.2D3.3 — stable lesson-header separation after removing the old header goals block.
   Previous Stage 3.1b spacing targeted .hor-lesson-heading-row + .hor-content-goals,
   so it stopped matching once the duplicate header can-do block was removed. */
@media (min-width:781px){
 [data-hor-ui][data-hor-ui][data-presentation-mode="phased"] .hor-lesson-title{margin-bottom:18px!important}
 [data-hor-ui][data-hor-ui][data-presentation-mode="phased"] .hor-lesson-heading-row{position:relative;z-index:2;min-width:0;align-items:flex-start}
 [data-hor-ui][data-hor-ui][data-presentation-mode="phased"] .hor-lesson-heading-row h1{min-width:0}
 [data-hor-ui][data-hor-ui][data-presentation-mode="phased"] .hor-title-knowledge-btn{position:static!important;flex:0 0 auto;margin:0!important}
 [data-hor-ui][data-hor-ui][data-presentation-mode="phased"] .hor-stage-tabs{position:relative;z-index:1;clear:both}
}
@media (min-width:781px) and (max-width:1100px){
 [data-hor-ui][data-hor-ui][data-presentation-mode="phased"] .hor-lesson-heading-row{flex-wrap:wrap;row-gap:12px}
 [data-hor-ui][data-hor-ui][data-presentation-mode="phased"] .hor-title-knowledge-btn{margin-left:auto!important}
}
