.sor2-shell { max-width: 72rem; margin: 0 auto; padding: 2rem 1rem 4rem; color: #17324d; }
.sor2-shell h1 { margin: .35rem 0 .8rem; }
.sor2-shell a:not(.btn) { color: #075568; }
.sor2-note { padding: .85rem 1rem; border-left: 4px solid #1fa6a2; background: #ecf7f4; }
.sor2-path { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,18rem),1fr)); gap: 1rem; margin: 1.5rem 0; }
.sor2-path-card, .sor2-stage { padding: 1.4rem; border: 1px solid #c6dcd8; border-radius: 1.2rem; background: #fffdfa; box-shadow: 0 8px 24px #17324d12; }
.sor2-path-card h4 { margin: .35rem 0; font-size: 1.2rem; }
.sor2-path-card { display: flex; flex-direction: column; align-items: start; }
.sor2-path-card p.fine { margin-top: auto; }
.sor2-progress { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; list-style: none; margin: 1.2rem 0; }
.sor2-progress li { padding: .4rem .7rem; border-radius: 2rem; background: #e8efed; font-size: .9rem; font-weight: 700; }
.sor2-progress .is-current { background: #075568; color: white; }
.sor2-progress .is-done { background: #d9eee7; }
.sor2-stage { max-width: 52rem; }
.sor2-stage h2 { margin-top: 0; }
.sor2-model { padding: 1rem; border-radius: .7rem; background: #e8f5f2; font-weight: 600; }
.sor2-boxes { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0; }
.sor2-box { display: grid; place-items: center; min-width: 4.2rem; min-height: 4.2rem; padding: .4rem; border: 2px solid #075568; border-radius: .65rem; background: white; font-size: 1.35rem; }
.sor2-box small { font-size: .85rem; }
.sor2-tiles { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0; }
.sor2-tiles button { min-width: 3.3rem; min-height: 3.3rem; border: 2px solid #075568; border-radius: .5rem; background: #fff4d8; color: #17324d; font-size: 1.15rem; font-weight: 800; cursor: pointer; }
.sor2-tiles button[aria-pressed="true"] { background: #075568; color: white; }
.sor2-tiles button:disabled { opacity: .5; cursor: default; }
.sor2-tiles button:focus-visible, .sor2-stage button:focus-visible, .sor2-stage input:focus-visible, .sor2-stage textarea:focus-visible { outline: 3px solid #f2c15b; outline-offset: 2px; }
.sor2-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.sor2-stage label { display: grid; gap: .45rem; max-width: 38rem; margin: 1rem 0; font-weight: 700; }
.sor2-stage input, .sor2-stage textarea { width: 100%; min-height: 3rem; padding: .7rem; border: 2px solid #819c9e; border-radius: .55rem; background: white; color: #17324d; font: inherit; }
.sor2-passage { max-width: 38rem; padding: 1.3rem; border-radius: .8rem; background: #f7f4ec; font-size: clamp(1.2rem,2vw,1.5rem); line-height: 1.7; }
.sor2-feedback { max-width: 52rem; padding: 1rem; border-left: 4px solid #1fa6a2; border-radius: .4rem; background: #e8f5f2; font-weight: 700; }
/* Phonics Path: progress, levels, units */
.sor2-meter { height: .7rem; margin: .4rem 0 .8rem; border-radius: 1rem; background: #dfe9e6; overflow: hidden; }
.sor2-meter span { display: block; height: 100%; border-radius: 1rem; background: linear-gradient(90deg, #1fa6a2, #075568); transition: width .4s ease; }
.sor2-resume { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.4rem 0; padding: 1.2rem 1.4rem; border: 2px solid #075568; border-radius: 1.2rem; background: #fff4d8; }
.sor2-resume > div { flex: 1 1 18rem; }
.sor2-levelnav { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: .6rem; padding: .6rem 0; margin-bottom: 1rem; background: #fffdfaee; }
.sor2-levelnav a { display: grid; padding: .55rem 1.1rem; border: 2px solid #075568; border-radius: 2rem; background: white; text-decoration: none; line-height: 1.2; }
.sor2-levelnav a:hover, .sor2-levelnav a:focus-visible { background: #075568; color: white !important; }
.sor2-levelnav span { font-size: .85rem; }
.sor2-level { margin-top: 2.5rem; scroll-margin-top: 4.5rem; }
.sor2-level > h2 { margin-bottom: .2rem; padding-bottom: .4rem; border-bottom: 4px solid #1fa6a2; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.sor2-level > h2 small { font-size: .5em; font-weight: 700; color: #3f5c66; }
.sor2-unit { margin: 1.8rem 0; scroll-margin-top: 4.5rem; }
.sor2-unit h3 { margin: 0 0 .3rem; font-size: 1.4rem; }
.sor2-skills { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: .6rem 0; list-style: none; }
.sor2-skills li { padding: .25rem .7rem; border-radius: 2rem; background: #e8f5f2; color: #0b4b5a; font-size: .85rem; font-weight: 700; }
.sor2-path-card.is-done { border-color: #1fa6a2; background: #f1faf7; }
.sor2-scope { margin: 2.5rem 0 1rem; padding: 1rem 1.2rem; border: 1px solid #c6dcd8; border-radius: 1rem; background: #fffdfa; }
.sor2-scope summary { cursor: pointer; font-weight: 800; }
.sor2-scope table { width: 100%; margin: 1rem 0; border-collapse: collapse; font-size: .92rem; }
.sor2-scope caption { position: absolute; left: -9999px; }
.sor2-scope th, .sor2-scope td { padding: .6rem; border-bottom: 1px solid #d5e4e1; text-align: left; vertical-align: top; }
/* Lesson stages */
.sor2-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .8rem; padding: 0; margin: 1rem 0; list-style: none; }
.sor2-card { position: relative; display: grid; justify-items: center; gap: .1rem; padding: .9rem .6rem .7rem; border: 2px solid #075568; border-radius: 1rem; background: white; text-align: center; }
.sor2-pic { font-size: 2.4rem; line-height: 1.1; }
.sor2-g { font-size: 2rem; color: #075568; }
.sor2-sound { font-weight: 700; color: #3f5c66; }
.sor2-key { font-size: 1rem; }
.sor2-mini { position: absolute; top: .35rem; right: .35rem; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; padding: 0; border: 2px solid #075568; border-radius: 50%; background: #fff4d8; color: #075568; cursor: pointer; }
.sor2-pile .sor2-mini, .sor2-card .sor2-mini { min-width: 0; min-height: 0; }
.sor2-mini .ico, .sor2-hear .ico, .sor2-chip .ico { width: 1.1em; height: 1.1em; }
.sor2-hear { display: inline-flex; align-items: center; gap: .4rem; margin-left: .3rem; vertical-align: middle; }
.sor2-trick { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.sor2-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border: 2px solid #075568; border-radius: 2rem; background: #fff4d8; color: #17324d; font-size: 1.05rem; font-weight: 800; cursor: pointer; }
.sor2-buckets { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 1rem 0; }
.sor2-bucket { min-height: 8rem; padding: .9rem 1rem; border: 3px dashed #075568; border-radius: 1rem; background: #f1faf7; }
.sor2-bucket h3 { margin: 0; font-size: 1.25rem; }
.sor2-bucket ul { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: .6rem 0 0; list-style: none; }
.sor2-bucket li { padding: .3rem .8rem; border-radius: .5rem; background: #075568; color: white; font-size: 1.15rem; font-weight: 800; }
.sor2-pile { display: grid; gap: .6rem; padding: 0; margin: 1rem 0; list-style: none; }
.sor2-pile li { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .6rem .8rem; border: 2px solid #c6dcd8; border-radius: .8rem; background: white; }
.sor2-pile b { min-width: 5rem; font-size: 1.4rem; }
.sor2-pile .sor2-mini { position: static; }
.sor2-win { padding: .8rem 1rem; border-left: 4px solid #1fa6a2; border-radius: .4rem; background: #e8f5f2; font-weight: 700; }
.sor2-stars { margin: .4rem 0; font-size: 2.6rem; letter-spacing: .3rem; color: #6b7f86; }
.sor2-stars span::before { content: "\2606"; }
.sor2-stars .is-on { color: #b36b00; }
.sor2-stars .is-on::before { content: "\2605"; }
.sor2-complete .sor2-actions { margin-top: 1rem; }
.sor2-complete .sor2-actions .btn { text-decoration: none; }
.sor2-reset { max-width: 38rem; margin: 2rem 0 1rem; padding: .8rem 1.1rem; border: 1px solid #c6dcd8; border-radius: .9rem; background: #fffdfa; }
.sor2-reset .fine { display: block; margin-top: .3rem; }
.sor2-reset summary { cursor: pointer; font-weight: 800; color: #0b4b5a; }
.sor2-reset .btn { margin-top: .4rem; }
.footer-link-button { display: block; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: underline; cursor: pointer; }
.start-fresh { max-width: min(32rem, calc(100vw - 2rem)); padding: 1.4rem 1.6rem; border: 2px solid #075568; border-radius: 1.1rem; background: #fffdfa; color: #17324d; box-shadow: 0 18px 48px #17324d38; }
.start-fresh::backdrop { background: #0f2a3bb3; }
.start-fresh h2 { margin-top: 0; }
.start-fresh-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.start-fresh-status { min-height: 1.4em; font-weight: 700; }
@media print { .sor2-levelnav, .sor2-resume, .sor2-level, .sor2-note, .sor2-reset { display: none; } .sor2-scope { border: 0; } }
@media (prefers-reduced-motion: reduce) { .sor2-shell *, .sor2-shell *::before, .sor2-shell *::after { scroll-behavior: auto !important; transition: none !important; } }
