main .view:not(#homeView){width:100%;max-width:1100px;margin-inline:auto;min-width:0}
.page-navigation{display:flex;justify-content:flex-start;margin:0 0 16px;scroll-margin-top:12px}
main .view .page-home{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:10px 18px;border:2px solid #174e52;border-radius:14px;background:#fffaf0;color:#173e45;font:800 16px/1.3 "Trebuchet MS",sans-serif;box-shadow:0 3px 10px #062f3c26;cursor:pointer;text-shadow:none}
.page-home>span:first-child{font-size:26px;line-height:1}.page-home:hover{background:#e7f1e9}.page-home:focus-visible{outline:3px solid #fff;outline-offset:2px;box-shadow:0 0 0 6px #166d77}
main .view .page-legacy-back{display:none!important}
main .view .sectionhead{grid-template-columns:minmax(0,1fr) auto}
main .view .sectionhead h2,#aiCoachView .sectionhead h2{color:#183e50!important;text-shadow:none}
main .view .sectionhead small,#aiCoachView .sectionhead small{color:#435b48!important}
main .view>.reader-shell,main .view>.coach-shell{margin-inline:auto}
@media(max-width:600px){main .view .sectionhead{grid-template-columns:minmax(0,1fr)}main .view .sectionhead .progressmeta{grid-column:1}.page-navigation{margin-bottom:12px}}
.coach-presence{display:flex;align-items:center;gap:12px;margin:16px 0;padding:12px 16px;border-radius:14px;background:#ede6f4;color:#4b3364;font-weight:700}
.coach-wave{display:flex;align-items:center;justify-content:center;gap:4px;height:30px;min-width:44px}.coach-wave i{display:block;width:5px;height:8px;border-radius:8px;background:#674482}
.coach-presence[data-state="thinking"] .coach-wave i{animation:coach-pulse 1.2s ease-in-out infinite}.coach-presence[data-state="speaking"] .coach-wave i{animation:coach-wave .7s ease-in-out infinite alternate}.coach-wave i:nth-child(2){animation-delay:.15s!important}.coach-wave i:nth-child(3){animation-delay:.3s!important}.coach-wave i:nth-child(4){animation-delay:.45s!important}
@keyframes coach-wave{to{height:28px;background:#16777b}}@keyframes coach-pulse{50%{opacity:.3;transform:translateY(-5px)}}
#aiCoachView .coach-intro img{width:230px;max-width:35%;height:auto}
@media(prefers-reduced-motion:reduce){.coach-presence .coach-wave i{animation:none!important}.coach-presence[data-state="speaking"] .coach-wave i:nth-child(even){height:24px}}
