/* Geometry outside the header and native heading is intentionally untouched. */
body:not([data-p2-header-match]) :is(#p2-top-font,#p2-top-backup,.p2-match-caption){display:none!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match]{--p2-head-bg:#173e50;--p2-head-button:#254e61;--p2-head-line:#628390;--p2-head-text:#f0f4f3;--p2-ref-head:clamp(64px,8.5dvh,78px);--p2-ref-progress:26px}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match][data-hzn-tone=dark]{--p2-head-bg:#102d3a;--p2-head-button:#1c3f4e;--p2-head-line:#496472;--p2-head-text:#e8eeee}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .topbar{position:relative!important;height:var(--p2-native-header)!important;min-height:var(--p2-native-header)!important;max-height:var(--p2-native-header)!important;padding:0!important;display:block!important;overflow:visible!important;background:var(--p2-head-bg)!important;z-index:25}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .topbar>:not(#p2-match-shell){display:none!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .lesson-heading{height:var(--p2-native-heading)!important;min-height:var(--p2-native-heading)!important;max-height:var(--p2-native-heading)!important;background:var(--p2-head-bg)!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .lesson-heading>div{opacity:0!important;pointer-events:none!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell{position:absolute!important;inset:0 0 auto!important;height:var(--p2-native-band)!important;padding:4px 6px!important;box-sizing:border-box!important;display:grid!important;grid-template-rows:var(--p2-ref-head) var(--p2-ref-progress)!important;gap:4px!important;background:var(--p2-head-bg)!important;color:var(--p2-head-text)!important;overflow:visible!important;font-family:Tahoma,Arial,sans-serif!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell *{box-sizing:border-box}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-frame{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:minmax(0,.46fr) minmax(0,.54fr)!important;gap:4px 12px!important;min-height:0!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-top{grid-column:1!important;grid-row:1!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;min-height:0!important;min-width:0!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-top .brand{display:flex!important;align-items:center!important;width:clamp(100px,12vw,150px)!important;max-width:65%!important;height:100%!important;margin:0!important;padding:0!important;background:white!important;border-radius:4px!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-top .brand img{display:block!important;width:100%!important;height:100%!important;max-height:34px!important;object-fit:contain!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell :is(button,select,summary){font-family:Tahoma,Arial,sans-serif!important;color:var(--p2-head-text)!important;background:var(--p2-head-button)!important;border:1px solid var(--p2-head-line)!important;border-radius:10px!important;box-shadow:inset 0 1px 0 #ffffff0d!important;margin:0!important;min-width:0!important;min-height:0!important;max-height:none!important;cursor:pointer}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell #hzn-lessons-button{height:100%!important;width:auto!important;font-size:12px!important;line-height:16px!important;padding:2px 12px!important;white-space:nowrap!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell .hzn-top-controls{grid-column:2!important;grid-row:1!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 36px!important;gap:6px!important;height:100%!important;width:100%!important;align-items:stretch!important;min-height:0!important;min-width:0!important;margin:0!important;padding:0!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell .hzn-top-controls>:not(.hzn-home-language):not(#hzn-presentation-trigger):not(#hzn-experience-button){display:none!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell .hzn-top-controls>*{height:100%!important;min-height:0!important;max-height:none!important;min-width:0!important;width:100%!important;font-size:12px!important;line-height:16px!important;padding:2px 7px!important;margin:0!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell .hzn-home-language{display:block!important;grid-column:2!important;padding:0!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell #hzn-home-language{height:100%!important;width:100%!important;max-width:none!important;min-height:0!important;padding:2px 7px!important;font-size:12px!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell #hzn-presentation-trigger{grid-column:1!important;grid-row:1!important;display:block!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell #hzn-experience-button{grid-column:3!important;grid-row:1!important;display:flex!important;align-items:center!important;justify-content:center!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell #p2-home-tools{grid-column:1/-1!important;grid-row:2!important;display:grid!important;grid-template-columns:minmax(0,4fr) minmax(0,3fr)!important;grid-template-rows:minmax(0,1fr)!important;gap:6px!important;height:100%!important;min-height:0!important;min-width:0!important;margin:0!important;padding:0!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-primary,body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-secondary{display:grid!important;grid-template-rows:minmax(0,1fr)!important;gap:6px!important;min-height:0!important;min-width:0!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-primary{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-secondary{grid-template-columns:repeat(3,minmax(0,1fr))!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools>div>button,body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools>div>details,body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools>div>details>summary{height:100%!important;min-height:0!important;max-height:none!important;min-width:0!important;width:100%!important;padding:2px 6px!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:6px!important;margin:0!important;font-size:12px!important;line-height:14px!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools>div>details{padding:0!important;display:block!important;position:relative!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools :is(summary,button)>span{display:inline!important;font-size:12px!important;line-height:13px!important;white-space:normal!important;text-align:center!important;color:var(--p2-head-text)!important;opacity:1!important;min-width:0!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell svg{width:19px!important;height:19px!important;flex:none!important;color:var(--p2-head-text)!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools summary{list-style:none!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools summary::-webkit-details-marker{display:none}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-progress{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;min-height:0!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell .p2-match-progress>:is(.progress-box,#p2-progress){display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:minmax(0,1fr) 5px!important;gap:2px!important;position:static!important;height:100%!important;min-height:0!important;max-height:none!important;padding:2px 7px!important;margin:0!important;min-width:0!important;border:1px solid var(--p2-head-line)!important;border-radius:8px!important;background:var(--p2-head-button)!important;color:var(--p2-head-text)!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-progress :is(span,b){font-size:11px!important;line-height:14px!important;color:var(--p2-head-text)!important;white-space:nowrap!important;grid-row:1!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell :is(.meter,progress){grid-column:1/-1!important;grid-row:2!important;display:block!important;position:static!important;width:100%!important;height:5px!important;min-height:5px!important;max-height:5px!important;margin:0!important;border:0!important;border-radius:5px!important;overflow:hidden!important;background:#14313f!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell .meter i{display:block!important;height:100%!important;background:#c7ae73!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell progress::-webkit-progress-bar{background:#14313f}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell progress::-webkit-progress-value{background:#5fb5b2;border-radius:5px}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell progress::-moz-progress-bar{background:#5fb5b2}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell :is(.p2-match-menu,.p2-palette-menu){position:fixed!important;top:calc(var(--p2-ref-head) + 10px)!important;inset-inline:8px!important;width:auto!important;max-width:none!important;max-height:calc(100dvh - var(--p2-ref-head) - 40px)!important;overflow:auto!important;display:grid;gap:6px!important;padding:8px!important;background:var(--p2-panel,#fbf9f1)!important;color:var(--p2-ink,#173e50)!important;border:1px solid var(--p2-head-line)!important;border-radius:12px!important;box-shadow:0 10px 35px #102d4a33!important;z-index:100!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell details:not([open])>div{display:none!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell details>div :is(button,select){min-height:36px!important;height:auto!important;width:100%!important;font-size:14px!important;padding:6px!important;white-space:normal!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell :is(button,summary,select):focus-visible{outline:2px solid #e7c887!important;outline-offset:1px}
@media(orientation:portrait) and (min-width:601px){body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match]{--p2-ref-head:80px}}
@media(min-width:1101px) and (max-height:700px),(min-width:601px) and (min-height:601px) and (max-height:700px){body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match]{--p2-ref-head:9dvh;--p2-ref-progress:3.5dvh}}
@media(max-width:600px) and (orientation:portrait){body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match]{--p2-ref-head:clamp(48px,9dvh,78px);--p2-ref-progress:clamp(18px,3.5dvh,32px)}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-frame{grid-template-columns:132px minmax(0,1fr)!important;gap:3px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-top{gap:3px!important;justify-content:space-between!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-top .brand{width:80px!important;max-width:80px!important;flex:none!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-top .brand img{max-height:25px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell #hzn-lessons-button{width:46px!important;min-width:46px!important;padding:2px!important;font-size:10px!important;border:0!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell .hzn-top-controls{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) 24px!important;gap:3px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell .hzn-top-controls>*,body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell #hzn-home-language{font-size:9px!important;line-height:12px!important;padding:1px!important;border-radius:5px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell #p2-home-tools{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:1px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-primary,body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-secondary{display:contents!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools>div>button,body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools>div>details>summary{flex-direction:column!important;gap:1px!important;font-size:8px!important;padding:0 1px!important;border:0!important;border-radius:4px!important;line-height:1.1!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools :is(summary,button)>span{font-size:8px!important;line-height:10px!important;width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools svg{width:17px!important;height:17px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-progress{gap:7px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-progress :is(span,b){font-size:9px!important;line-height:12px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell .p2-match-progress>:is(.progress-box,#p2-progress){padding:2px 5px!important;border-radius:7px!important}}
@media(orientation:landscape) and (max-width:1100px) and (max-height:479px){body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match]{--p2-ref-head:9dvh;--p2-ref-progress:4dvh}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell{padding:3px 6px!important;gap:3px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-frame{grid-template-columns:110px 170px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;gap:4px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-top{gap:3px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-top .brand{width:64px!important;max-width:64px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell #hzn-lessons-button{font-size:9px!important;padding:2px!important;min-width:36px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell .hzn-top-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 25px!important;gap:3px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell .hzn-top-controls>*,body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell #hzn-home-language{font-size:9px!important;padding:2px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell #p2-home-tools{grid-row:1!important;grid-column:3!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:2px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-primary,body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-secondary{display:contents!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools>div>button,body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools>div>details>summary{flex-direction:column!important;gap:0!important;padding:0 1px!important;font-size:9px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools :is(summary,button)>span{font-size:8px!important;line-height:9px!important;white-space:normal!important;overflow-wrap:anywhere!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools svg{width:14px!important;height:14px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell .p2-match-progress>:is(.progress-box,#p2-progress){grid-template-rows:minmax(0,1fr) 4px!important;padding:0 4px!important;gap:1px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-progress :is(span,b){font-size:8px!important;line-height:10px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell :is(.meter,progress){height:4px!important;min-height:4px!important;max-height:4px!important}}

body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell .hzn-top-controls>*,body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell #hzn-home-language{max-width:none!important;justify-self:stretch!important;white-space:nowrap!important}
@media(max-width:600px) and (orientation:portrait),(orientation:landscape) and (max-width:1100px) and (max-height:479px){body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools [data-tool=plan]{order:0!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools #p2-palette{order:1!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools #p2-sound{order:2!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools [data-tool=print]{order:3!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools #p2-top-backup{order:4!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools [data-tool=progress]{order:5!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools #p2-top-font{order:6!important}}

/* Same compact wide-screen typography as the Lesson 01 shell. */
@media(min-width:1101px) and (max-height:600px),(min-width:760px) and (min-height:480px) and (max-height:600px){body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match]{--p2-ref-head:54px;--p2-ref-progress:22px}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell{padding:2px 6px!important;gap:2px!important;grid-template-rows:var(--p2-ref-head) var(--p2-ref-progress)!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-frame{gap:3px 12px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell .hzn-top-controls>*,body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell #hzn-home-language,body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell #hzn-lessons-button{font-size:11px!important;line-height:12px!important;padding:0 4px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools>div>button,body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools>div>details>summary{font-size:11px!important;line-height:12px!important;padding:1px 3px!important;gap:3px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools :is(summary,button)>span{font-size:11px!important;line-height:12px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell svg{width:16px!important;height:16px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell .p2-match-progress>:is(.progress-box,#p2-progress){grid-template-rows:minmax(0,1fr) 4px!important;padding:1px 5px!important;gap:1px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-progress :is(span,b){font-size:10px!important;line-height:12px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell :is(.meter,progress){height:4px!important;min-height:4px!important;max-height:4px!important}}
@media(orientation:landscape) and (max-width:1100px) and (max-height:479px){body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match]{--p2-ref-progress:max(18px,4dvh)}}

/* Native progress-label carries a bottom margin; Lesson 01 labels do not. */
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell .p2-match-progress :is(span,b){display:block!important;position:static!important;margin:0!important;padding:0!important;min-height:0!important;max-height:none!important;height:auto!important;align-self:center!important;line-height:12px!important}
@media(max-width:600px) and (orientation:portrait){body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell .p2-match-progress :is(span,b){font-size:9px!important;line-height:10px!important}}
@media(orientation:landscape) and (max-width:1100px) and (max-height:479px){body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell .p2-match-progress :is(span,b){font-size:8px!important;line-height:9px!important}}
@media(min-width:1101px) and (max-height:600px),(min-width:760px) and (min-height:480px) and (max-height:600px){body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell .p2-match-progress :is(span,b){font-size:10px!important;line-height:11px!important}}

/* R12: measured Lesson 01 discover header; native activity geometry remains reserved. */
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match]{--p2-ref-head:clamp(48px,9dvh,78px);--p2-ref-progress:clamp(18px,3.5dvh,32px)}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-frame{grid-template-rows:calc((var(--p2-ref-head) - 3px)*.46) minmax(0,1fr)!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools #p2-top-backup{order:0!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools [data-tool=progress]{order:1!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools #p2-top-font{order:2!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-progress{gap:7px!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell .p2-match-progress>:is(.progress-box,#p2-progress){padding:2px 5px!important;border-radius:7px!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell #p2-home-tools>div>details{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell #p2-home-tools>div>details>summary::after{content:"⌄";font-size:18px;line-height:1;margin-inline-start:5px}
@media(max-width:600px) and (orientation:portrait),(orientation:landscape) and (max-width:1100px) and (max-height:479px){body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools #p2-top-backup{order:4!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools [data-tool=progress]{order:5!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-home-tools #p2-top-font{order:6!important}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell #p2-home-tools summary::after{display:none!important}}
@media(orientation:landscape) and (max-width:1100px) and (max-height:479px){body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match]{--p2-ref-head:9dvh;--p2-ref-progress:max(18px,4dvh)}body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .p2-match-frame{grid-template-rows:minmax(0,1fr)!important}}

/* No extra title row or painted title band: the masthead ends immediately after its two progress bars. */
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell{height:calc(var(--p2-ref-head) + var(--p2-ref-progress) + 12px)!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] .lesson-heading{background:transparent!important}
@media(orientation:landscape) and (max-width:1100px) and (max-height:479px){body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell{height:calc(var(--p2-ref-head) + var(--p2-ref-progress) + 9px)!important}}
@media(min-width:1101px) and (max-height:600px),(min-width:760px) and (min-height:480px) and (max-height:600px){body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match] #p2-match-shell{height:calc(var(--p2-ref-head) + var(--p2-ref-progress) + 6px)!important}}

/* R15: Colors menu only. The R14 header composition above is unchanged. */
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match][data-p2-colors-menu="20261029-r15"]{
  --p2-colors-panel:#f0efe9;--p2-colors-ink:#17394a;--p2-colors-line:#c4cbc6;
  --p2-colors-selected:#dff3f1;--p2-colors-selected-line:#008c95;
}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match][data-p2-colors-menu="20261029-r15"][data-hzn-tone=dark]{
  --p2-colors-panel:#1d303a;--p2-colors-ink:#e9eeed;--p2-colors-line:#3f5660;
  --p2-colors-selected:#214e55;--p2-colors-selected-line:#55d4cd;
}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match][data-p2-colors-menu="20261029-r15"] #p2-match-shell #p2-palette>.p2-palette-menu{
  display:none!important;position:fixed!important;box-sizing:border-box!important;
  width:240px!important;min-width:0!important;max-width:100vw!important;
  height:auto!important;min-height:0!important;max-height:var(--p2-colors-max-height,calc(100dvh - 8px))!important;
  inset-inline:auto!important;left:var(--p2-colors-left,8px)!important;right:auto!important;
  top:var(--p2-colors-top,calc(var(--p2-ref-head) + 10px))!important;bottom:auto!important;
  grid-template-columns:minmax(0,1fr)!important;grid-auto-rows:42px!important;
  gap:5px!important;padding:8px!important;margin:0!important;
  background:var(--p2-colors-panel)!important;color:var(--p2-colors-ink)!important;
  border:1px solid var(--p2-colors-line)!important;border-radius:12px!important;
  box-shadow:0 10px 35px #102d4a33!important;overflow:auto!important;z-index:100!important;
}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match][data-p2-colors-menu="20261029-r15"] #p2-match-shell #p2-palette[open]>.p2-palette-menu{display:grid!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match][data-p2-colors-menu="20261029-r15"] #p2-match-shell #p2-palette>.p2-palette-menu>button{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;
  box-sizing:border-box!important;width:auto!important;min-width:0!important;max-width:none!important;
  height:42px!important;min-height:42px!important;max-height:42px!important;margin:0!important;padding:6px 10px!important;
  font-family:Tahoma,Arial,sans-serif!important;font-size:15px!important;font-weight:400!important;line-height:18.75px!important;
  color:var(--p2-colors-ink)!important;background:var(--p2-colors-panel)!important;
  border:1px solid var(--p2-colors-line)!important;border-radius:10px!important;box-shadow:none!important;
  text-align:start!important;white-space:nowrap!important;cursor:pointer;
}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match][data-p2-colors-menu="20261029-r15"] #p2-match-shell #p2-palette>.p2-palette-menu>button[aria-pressed=true]{background:var(--p2-colors-selected)!important;border-color:var(--p2-colors-selected-line)!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match][data-p2-colors-menu="20261029-r15"] #p2-match-shell #p2-palette>.p2-palette-menu>button>.p2-swatch{
  display:block!important;box-sizing:content-box!important;flex:0 0 16px!important;width:16px!important;min-width:16px!important;max-width:16px!important;
  height:16px!important;min-height:16px!important;max-height:16px!important;padding:0!important;margin:0!important;margin-inline-end:7px!important;
  border:1px solid #53616a!important;border-radius:50%!important;box-shadow:0 0 0 2px rgba(255,255,255,.565)!important;overflow:hidden!important;
}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match][data-p2-colors-menu="20261029-r15"] #p2-match-shell #p2-palette>.p2-palette-menu>button>.p2-color-label{
  display:block!important;flex:1 1 auto!important;width:auto!important;min-width:0!important;max-width:none!important;
  height:auto!important;padding:0!important;margin:0!important;border:0!important;background:none!important;
  font-family:Tahoma,Arial,sans-serif!important;font-size:15px!important;font-weight:400!important;line-height:18.75px!important;
  color:inherit!important;text-align:start!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;opacity:1!important;
}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match][data-p2-colors-menu="20261029-r15"] #p2-match-shell #p2-palette [data-color=mint]>.p2-swatch{background:#329b91!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match][data-p2-colors-menu="20261029-r15"] #p2-match-shell #p2-palette [data-color=sea]>.p2-swatch{background:#1a75ad!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match][data-p2-colors-menu="20261029-r15"] #p2-match-shell #p2-palette [data-color=lavender]>.p2-swatch{background:#9271c2!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match][data-p2-colors-menu="20261029-r15"] #p2-match-shell #p2-palette [data-color=sand]>.p2-swatch{background:#b98949!important}
body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match][data-p2-colors-menu="20261029-r15"] #p2-match-shell #p2-palette [data-color=forest]>.p2-swatch{background:#287b59!important}
@media(max-width:600px) and (orientation:portrait){
  body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match][data-p2-colors-menu="20261029-r15"] #p2-match-shell #p2-palette>.p2-palette-menu{width:max-content!important;min-width:124px!important;max-width:100vw!important}
  body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match][data-p2-colors-menu="20261029-r15"] #p2-match-shell #p2-palette>.p2-palette-menu>button{padding:6px!important}
}

@media(orientation:landscape) and (max-width:1100px) and (max-height:479px){
  body.hzn-focus[data-course=phonics][data-focus-view=lesson][data-p2-header-match][data-p2-colors-menu="20261029-r15"] #p2-match-shell #p2-palette>.p2-palette-menu{width:calc(100vw - 12px)!important;min-width:0!important;max-width:calc(100vw - 12px)!important}
}
