@font-face{font-family:Lato;src:url('/fonts/Lato-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Lato;src:url('/fonts/Lato-Semibold.ttf') format('truetype');font-weight:600 800;font-display:swap}
:root{--ink:#243b3a;--muted:#6b7876;--teal:#214a49;--teal-light:#e7eeeb;--paper:#f7f5ef;--line:#e3e7df;--coral:#c17759;--blue:#416b82;--white:#fff;--sidebar:244px;--shadow:0 8px 28px #263d3610}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Lato,Arial,sans-serif;font-size:16px;line-height:1.55}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}a{color:inherit}svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}button{border:0}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #d7a069;outline-offset:3px}input,textarea{border:1px solid #cdd8d1;background:#fff;border-radius:9px;color:var(--ink);padding:11px 13px;transition:border-color .15s,box-shadow .15s}input:focus,textarea:focus{border-color:#638d7e;box-shadow:0 0 0 3px #e6efea;outline:0}input::placeholder,textarea::placeholder{color:#9baca6}textarea{resize:vertical;min-height:76px;line-height:1.5}[hidden]{display:none!important}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3,h4{line-height:1.25}h1{font-family:Georgia,serif;font-size:44px;font-weight:400;letter-spacing:-1.3px;margin-bottom:13px}h2{font-size:24px;font-weight:600}h3{font-size:19px;font-weight:600}p{margin-bottom:16px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;left:12px;top:-70px;z-index:100;background:white;padding:12px}.skip-link:focus{top:12px}.initial-loading{padding:15vh 24px;text-align:center;color:var(--muted)}.eyebrow{font-size:11px;font-weight:700;letter-spacing:1.7px;color:var(--muted)}.muted{color:var(--muted)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none}.brand img{width:42px;height:42px}.brand strong{display:block;font-family:Georgia,serif;font-size:25px;font-weight:400;letter-spacing:-.5px}.brand small{display:block;font-size:9px;letter-spacing:2px;opacity:.65;line-height:1.6}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:var(--teal);color:#f6f3e9;padding:32px 24px;display:flex;flex-direction:column;z-index:20}.sidebar .brand{margin-bottom:48px}.nav-label{font-size:10px;letter-spacing:1.8px;color:#b2c6be;font-weight:600;margin:28px 12px 11px}.nav-item{display:flex;align-items:center;gap:12px;padding:12px 13px;margin:3px 0;border-radius:8px;color:#dce7e0;text-decoration:none;font-size:14px;transition:background .15s}.nav-item:hover{background:#ffffff0d}.nav-item.active{background:#ffffff17;color:white}.nav-item.active:before{content:'';position:absolute;left:0;height:30px;width:3px;background:#d7b083;border-radius:0 3px 3px 0}.nav-item .page-number{border:1px solid #ffffff38;border-radius:5px;min-width:27px;height:28px;text-align:center;font-size:12px;line-height:26px}.nav-item .nav-done{margin-left:auto;font-size:12px;color:#c9dfc8}.sidebar-bottom{margin-top:auto;padding-top:40px}.sidebar-note{font-family:Georgia,serif;color:#c6d5cd;font-size:17px;line-height:1.5;margin:15px 12px}.sidebar-note span{display:block;font-family:Lato,Arial,sans-serif;font-size:11px;color:#92afa1;margin-top:7px}.sidebar .profile-switch{background:#ffffff0e;color:white;padding:14px 12px;width:100%;border:1px solid #ffffff15;border-radius:10px;display:flex;align-items:center;gap:10px;text-align:left}.profile-switch strong{font-size:14px;display:block}.profile-switch small{display:block;font-size:11px;color:#b7ccc0}.profile-switch svg{margin-left:auto;width:17px}.avatar{height:38px;width:38px;border-radius:50%;background:#cce0d7;color:#234e47;display:inline-flex;align-items:center;justify-content:center;font-family:Georgia,serif;font-size:21px;flex-shrink:0}.avatar.thera{background:#f0ddd2;color:#8c503c}.workspace{margin-left:var(--sidebar);min-height:100vh}.topbar{height:86px;border-bottom:1px solid var(--line);padding:0 48px;display:flex;align-items:center;justify-content:space-between;background:#fbfaf6;gap:15px}.topbar .breadcrumb{font-size:11px;letter-spacing:1.5px;color:var(--muted)}.topbar .breadcrumb span{padding:0 9px;color:#bbc3bb}.topbar-right{display:flex;align-items:center;gap:19px}.save-status{display:flex;align-items:center;gap:7px;color:#6b8173;font-size:12px;white-space:nowrap}.save-status:before{content:'';width:6px;height:6px;background:#78997e;border-radius:50%}.save-status.error{color:#a3543f}.save-status.error:before{background:#c17759}.save-status button{background:transparent;text-decoration:underline;padding:0;color:inherit}.mobile-menu{display:none}.main{max-width:1160px;margin:0 auto;padding:48px 48px 140px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.page-heading .eyebrow{display:block;margin-bottom:12px}.page-heading p{font-size:16px;color:var(--muted);max-width:620px;margin:0}.pill{border:1px solid #d9e2d9;border-radius:50px;padding:6px 12px;font-size:11px;letter-spacing:.5px;color:#5f7767;background:#eff3eb;white-space:nowrap}.button{display:inline-flex;justify-content:center;align-items:center;gap:9px;padding:12px 20px;border-radius:8px;background:var(--teal);color:#fff;text-decoration:none;font-size:14px;font-weight:600;min-height:45px;transition:background .15s,transform .15s}.button:hover{background:#2e6260;transform:translateY(-1px)}.button.secondary{background:#fff;color:var(--teal);border:1px solid #cad8ce}.button.secondary:hover{background:#f0f5f0}.text-button{display:inline-flex;align-items:center;gap:6px;padding:6px 0;background:none;color:var(--teal);font-size:13px}.text-button svg{width:16px;height:16px}.hero{display:grid;grid-template-columns:1fr 170px;gap:20px;background:#e7ede6;border-radius:15px;padding:34px 36px;margin:30px 0 34px;overflow:hidden;position:relative}.hero .eyebrow{color:#59756a}.hero h2{font-family:Georgia,serif;font-size:31px;font-weight:400;margin:12px 0;letter-spacing:-.5px}.hero p{color:#647a6c;max-width:470px;font-size:14px;margin-bottom:22px}.hero .button{width:max-content}.tile-art{display:grid;grid-template-columns:repeat(2,56px);grid-template-rows:repeat(2,56px);align-content:center;justify-content:center;gap:5px;transform:rotate(9deg);opacity:.87}.tile-art i{background:#f7f5eb;position:relative;border:1px solid #476e642b}.tile-art i:before{content:'';position:absolute;inset:12px;border:2px solid #678f7e;transform:rotate(45deg);border-radius:40% 0}.tile-art i:nth-child(2):before,.tile-art i:nth-child(3):before{border-color:#c29361}.section-heading{display:flex;justify-content:space-between;align-items:baseline;margin:26px 0 18px;gap:12px}.section-heading h2{margin:0;font-size:20px}.section-heading span{font-size:12px;color:var(--muted)}.dashboard-grid{display:grid;grid-template-columns:1fr 265px;gap:24px}.lesson-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.lesson-card{padding:25px;background:#fff;border:1px solid var(--line);border-radius:12px;text-decoration:none;transition:transform .15s,box-shadow .15s;display:flex;flex-direction:column;min-height:220px}.lesson-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.lesson-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.lesson-card-top .page-label{font-size:11px;font-weight:700;letter-spacing:1.3px;color:#7e8c80}.lesson-card-top svg{color:#8c9f90;width:18px}.lesson-card h3{font-family:Georgia,serif;font-size:23px;font-weight:400;margin-bottom:6px}.lesson-card p{font-size:13px;color:var(--muted);margin-bottom:20px}.progress-bar{height:4px;border-radius:8px;background:#edf0e9;overflow:hidden}.progress-bar span{height:100%;display:block;background:#739682;border-radius:8px;transition:width .3s}.progress-caption{font-size:11px;color:var(--muted);margin-top:9px;display:flex;justify-content:space-between}.aside-card{padding:26px 22px;border:1px solid var(--line);border-radius:12px;background:#f0ede3}.aside-card>svg{height:29px;width:29px;color:#b48255;margin-bottom:22px}.aside-card h3{font-family:Georgia,serif;font-size:23px;font-weight:400;margin-bottom:9px}.aside-card p{font-size:13px;color:var(--muted)}.aside-card .text-button{font-weight:600;font-size:13px}.profile-mini{padding:22px 2px;border-bottom:1px solid var(--line);display:flex;gap:12px;align-items:center}.profile-mini strong{font-size:13px;display:block}.profile-mini span:not(.avatar){font-size:11px;color:var(--muted)}.profile-mini .avatar{height:33px;width:33px;font-size:18px}.study-note{margin-top:35px;font-size:12px;color:#8b958a;display:flex;align-items:center;gap:8px}.study-note svg{width:15px;height:15px}.page-tabs{display:flex;gap:8px;margin-bottom:28px;flex-wrap:wrap}.page-tab{padding:8px 14px;border:1px solid var(--line);background:transparent;border-radius:7px;text-decoration:none;font-size:12px;color:var(--muted)}.page-tab.active{background:#e7eee8;border-color:#c7d6ca;color:var(--teal);font-weight:600}.page-heading .page-subtitle{font-family:Georgia,serif;font-size:21px;margin-top:0;color:#708379}.exercise{background:#fff;border:1px solid var(--line);border-radius:13px;margin-bottom:25px;overflow:hidden;scroll-margin-top:25px}.exercise-header{padding:25px 28px 22px;border-bottom:1px solid #eef0e9;display:flex;gap:16px;align-items:flex-start}.exercise-badge{min-width:39px;padding:6px 8px;text-align:center;border-radius:7px;color:#627e6f;background:#edf2eb;font-size:13px;font-weight:600;line-height:1.4;flex-shrink:0}.exercise-heading{flex:1;min-width:0}.exercise-heading h2{font-size:19px;line-height:1.45;margin:0 0 5px}.exercise-heading p{color:var(--blue);font-size:13px;line-height:1.5;margin:0}.type-tag{font-size:9px;letter-spacing:1.1px;font-weight:700;color:#819285;white-space:nowrap;padding-top:10px}.exercise-body{padding:25px 28px}.answer-row{display:grid;grid-template-columns:26px 1fr;gap:10px;padding:16px 0;border-bottom:1px solid #eef0e9}.answer-row:first-child{padding-top:0}.answer-row:last-child{border-bottom:0;padding-bottom:0}.question-index{color:#9ba99b;font-size:13px;padding-top:3px}.answer-row label{display:block;font-size:16px;margin-bottom:9px}.answer-row input,.answer-row textarea{display:block;width:100%}.feedback{font-size:12px;line-height:1.5;margin-top:6px;color:#7a7255}.feedback.good{color:#4b7b59}.exercise-footer{padding:15px 28px;background:#fbfcf9;border-top:1px solid #eef0e9;display:flex;align-items:center;justify-content:space-between;gap:12px}.complete-toggle{display:inline-flex;align-items:center;gap:8px;background:transparent;color:#6b7a6d;font-size:12px;padding:6px 0}.complete-toggle .check-circle{height:20px;width:20px;border:1px solid #bdccbe;border-radius:50%;display:grid;place-items:center}.complete-toggle .check-circle svg{width:13px;height:13px}.complete-toggle.done{color:#426c4e}.complete-toggle.done .check-circle{background:#6a9374;color:#fff;border-color:#6a9374}.audio-button{display:inline-flex;align-items:center;gap:9px;border-radius:8px;background:#eaf1ee;color:#376555;padding:10px 13px;font-size:12px;font-weight:600;border:1px solid #dce7df}.audio-button:hover{background:#ddebe2}.audio-button svg{width:17px;height:17px}.audio-button.playing{background:#d6e8dc;color:#28563c}.audio-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:23px}.audio-toolbar p{font-size:12px;color:var(--muted);margin:0}.numbers-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.number-cell{display:flex;gap:12px;align-items:center;background:#f7f8f3;border-radius:7px;padding:9px 11px;font-size:14px}.number-cell strong{color:#68917b;font-size:12px;min-width:18px}.dictation-grid{display:grid;gap:13px}.dictation-grid label{display:grid;grid-template-columns:50px 1fr;align-items:center;gap:12px;font-size:12px;color:var(--muted)}.dictation-grid input{width:100%;font-size:15px}.reading-passage{background:#f0f3ed;border-radius:10px;margin-bottom:26px;padding:25px;display:grid;grid-template-columns:150px 1fr;gap:23px;align-items:start}.reading-passage img{width:150px;border-radius:7px;object-fit:cover;max-height:170px}.reading-passage p{line-height:1.9;font-size:16px;margin:0}.grammar-examples h3{font-size:12px;letter-spacing:.7px;color:var(--muted);margin:0 0 12px}.grammar-examples p{margin:6px 0;font-size:16px}.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.choice-card{border:1px solid var(--line);border-radius:10px;padding:18px}.choice-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.choice-card h3{font-size:15px;margin:0}.choice-card h3 small{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:4px}.choice-card .audio-button{padding:8px}.choice-options{display:flex;gap:10px}.choice-option{flex:1;position:relative;display:block}.choice-option input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}.choice-option span{display:block;border:1px solid #d6dfd5;border-radius:8px;text-align:center;padding:10px 14px;font-size:15px;background:#fff}.choice-option input:checked+span{border-color:#668c73;background:#e7f0e6;color:#315e3b;box-shadow:inset 0 0 0 1px #668c73}.choice-option input:focus-visible+span{outline:3px solid #d7a069;outline-offset:3px}.profiles-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.person-card{border:1px solid var(--line);border-radius:12px;padding:22px;background:#fdfdfb}.person-top{display:flex;align-items:center;gap:13px;margin-bottom:18px}.person-top img{width:57px;height:57px;object-fit:cover;border-radius:50%}.person-top h3{font-family:Georgia,serif;font-size:23px;font-weight:400;margin:0}.person-top .letter{font-size:11px;color:#8c9d8e;margin-bottom:2px}.person-card p{font-size:15px;line-height:1.85;margin-bottom:19px}.true-false-row{padding:18px 0;border-bottom:1px solid #eef0e9}.true-false-row:first-child{padding-top:0}.true-false-row:last-child{border-bottom:0}.true-false-line{display:flex;align-items:center;justify-content:space-between;gap:20px}.true-false-line p{margin:0;font-size:15px}.true-false-line .question-index{display:inline-block;margin-right:7px}.true-false-line .choice-options{min-width:182px}.true-false-line .choice-option span{font-size:11px;padding:9px 10px;white-space:nowrap}.correction{margin:12px 0 0 24px}.correction label{display:block;font-size:12px;color:var(--muted);margin-bottom:7px}.correction input{width:100%}.word-bank{display:flex;flex-wrap:wrap;gap:7px;padding:17px;background:#f3f5ee;border-radius:10px;margin-bottom:24px}.word-bank span{background:#fff;border:1px solid #e1e7dd;padding:4px 10px;border-radius:20px;font-size:12px;color:#51705c}.word-bank small{color:#8c9b87;font-size:10px;margin-left:3px}.table-person{border:1px solid var(--line);border-radius:10px;padding:21px;margin-bottom:17px}.table-person:last-child{margin-bottom:0}.table-person-header{display:flex;align-items:center;gap:11px;margin-bottom:19px}.table-person-header img{height:38px;width:38px;border-radius:50%;object-fit:cover}.table-person-header h3{font-size:15px;margin:0}.table-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.table-field label{display:block;font-size:12px;font-weight:600;margin-bottom:6px}.table-field label small{display:block;font-size:11px;font-weight:400;color:var(--blue)}.table-field input{width:100%;font-size:14px;padding:9px 10px}.given-answer{background:#f1f4ed;border-radius:8px;padding:9px 10px;font-size:14px;color:#627267;min-height:41px}.fill-row{display:flex;align-items:baseline;gap:11px;padding:17px 0;border-bottom:1px solid #eef0e9}.fill-row:first-child{padding-top:0}.fill-row:last-child{border-bottom:0}.fill-sentence{line-height:2.8;flex:1;font-size:16px}.inline-answer{width:115px;max-width:100%;padding:5px 9px;border-radius:6px;text-align:center;vertical-align:baseline;font-size:15px;margin:0 4px}.reference-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.reference-grid>.supported-text{padding:13px 17px;background:#f3f5ee;border-radius:8px;font-family:Georgia,serif;font-size:21px;color:#4b6756}.workbook-note{font-size:12px;border-left:2px solid #d2aa72;padding:10px 17px;margin:28px 0;color:#7d8375}.workbook-note span{display:block;color:#93998c;font-size:11px}.page-bottom-nav{display:flex;justify-content:space-between;align-items:center;margin-top:35px}.page-bottom-nav a{display:inline-flex;align-items:center;gap:9px;font-size:13px;text-decoration:none;color:var(--teal)}.page-bottom-nav a:last-child{margin-left:auto}.accent-tools{position:sticky;bottom:18px;margin-top:22px;background:#fffef9ed;border:1px solid #dddccf;border-radius:10px;box-shadow:var(--shadow);padding:10px 13px;display:flex;gap:6px;align-items:center;flex-wrap:wrap;backdrop-filter:blur(8px);z-index:5;width:max-content;max-width:100%}.accent-tools span{font-size:10px;color:#8b9385;margin-right:7px}.accent-tools button{background:#f1f3ec;border-radius:5px;width:30px;height:30px;font-size:15px;color:#4c6857}.accent-tools button:hover{background:#dde8d9}.media-list{display:grid;grid-template-columns:1fr 1fr;gap:15px}.media-card{display:flex;align-items:center;gap:17px;background:#fff;border:1px solid var(--line);border-radius:11px;padding:23px}.media-card .media-icon{height:45px;width:45px;display:grid;place-items:center;background:#eef3eb;border-radius:10px;color:#59816a;flex-shrink:0}.media-card .media-info{flex:1}.media-card strong{font-size:14px;display:block;margin-bottom:5px}.media-card small{font-size:11px;color:var(--muted);display:block}.media-card .audio-button{padding:9px}.video-card{margin-top:28px;padding:27px 30px;background:#ebe5d9;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:20px}.video-card h2{font-family:Georgia,serif;font-weight:400;font-size:29px;margin:7px 0}.video-card p{font-size:13px;color:#817864;margin:0}.audio-player{position:fixed;bottom:0;left:var(--sidebar);right:0;padding:13px 26px;background:#fffcf6;border-top:1px solid #dce5d7;box-shadow:0 -8px 30px #18322a0b;display:flex;align-items:center;gap:20px;z-index:40}.player-label{display:flex;align-items:center;gap:10px;min-width:150px;flex:1}.player-icon{height:34px;width:34px;background:#e7eee3;border-radius:7px;display:grid;place-items:center;color:#729077}.player-label strong{font-size:12px;display:block}.player-label span:not(.player-icon){font-size:10px;color:var(--muted);display:block}.audio-player audio{height:36px;flex:2;min-width:160px;max-width:430px}.speed-label{font-size:10px;color:var(--muted);display:flex;flex-direction:column;gap:2px}.speed-label select{padding:3px 5px;font-size:12px;border-radius:5px;border:1px solid #d8e0d3;background:#fff}.icon-button{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;background:transparent;color:var(--muted);font-size:16px;border-radius:7px;flex-shrink:0}.icon-button:hover{background:#e9eee4}.media-error{font-size:12px;color:#a65b43;margin:0;flex-basis:100%}.audio-player:has(.media-error:not([hidden])){flex-wrap:wrap}.video-dialog{max-width:850px;width:calc(100% - 36px);border:1px solid var(--line);border-radius:15px;padding:26px;background:#fbfaf6;color:var(--ink)}.video-dialog::backdrop{background:#122e2acc;backdrop-filter:blur(4px)}.video-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.video-heading h2{margin:6px 0 0;font-family:Georgia,serif;font-size:28px;font-weight:400}.video-dialog video{width:100%;border-radius:8px;background:#132827;max-height:65vh}.video-dialog>p{font-size:12px;color:var(--muted);margin:12px 0 0}.welcome{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:55px 24px;background:radial-gradient(ellipse at top,#e9eee2 0,transparent 65%),var(--paper)}.welcome .brand{margin-bottom:62px}.welcome .brand strong{font-size:30px}.welcome h1{text-align:center;font-size:48px;margin:13px 0 18px}.welcome>p{text-align:center;color:var(--muted);max-width:390px;font-size:15px;margin-bottom:34px}.profile-choices{display:grid;grid-template-columns:1fr 1fr;gap:20px;width:min(540px,100%)}.profile-choice{background:#fff;border:1px solid #dfe6d9;padding:35px 25px;border-radius:14px;text-align:center;box-shadow:0 7px 20px #253b2710;transition:transform .15s,box-shadow .15s;color:var(--ink)}.profile-choice:hover{transform:translateY(-4px);box-shadow:0 14px 30px #253b2717}.profile-choice .avatar{height:67px;width:67px;font-size:34px;margin-bottom:20px}.profile-choice strong{display:block;font-family:Georgia,serif;font-size:29px;font-weight:400;margin-bottom:9px}.profile-choice small{color:var(--muted);font-size:12px}.welcome-note{font-size:11px;color:#879582;margin-top:32px;display:flex;align-items:center;gap:7px}.welcome-note svg{height:15px;width:15px}.fatal-error{text-align:center;padding:15vh 24px}.fatal-error .button{margin-top:10px}
@media(min-width:1500px){.main{padding-top:58px}.topbar{padding-left:65px;padding-right:65px}}
@media(max-width:1120px){:root{--sidebar:215px}.sidebar{padding:28px 18px}.topbar{padding:0 30px}.main{padding:35px 30px 140px}.dashboard-grid{grid-template-columns:1fr 225px;gap:18px}.lesson-card{padding:20px}.hero{padding:28px}.hero h2{font-size:28px}.exercise-header,.exercise-body{padding:23px}.exercise-footer{padding:14px 23px}.numbers-grid{grid-template-columns:repeat(3,1fr)}.profiles-grid{grid-template-columns:1fr}.audio-player{padding:12px 18px;gap:13px}}
@media(max-width:900px){.dashboard-grid{grid-template-columns:1fr}.dashboard-aside{display:grid;grid-template-columns:1fr 1fr;gap:20px}.profile-mini{border-bottom:0;padding:12px}.reading-passage{grid-template-columns:1fr}.reading-passage img{width:100%;max-height:220px}.true-false-line{align-items:flex-start;flex-direction:column;gap:11px}.true-false-line .choice-options{min-width:200px}.media-list{grid-template-columns:1fr}.table-fields{grid-template-columns:1fr 1fr}.audio-player .player-label{min-width:90px}.audio-player .player-icon{display:none}}
@media(max-width:700px){:root{--sidebar:0px}.sidebar{width:244px;transform:translateX(-100%);transition:transform .2s;box-shadow:20px 0 70px #102b2930}.sidebar.open{transform:translateX(0)}.workspace{margin-left:0}.topbar{height:68px;padding:0 19px;gap:12px}.topbar .breadcrumb{font-size:9px;letter-spacing:.8px}.topbar .breadcrumb span{padding:0 5px}.topbar-right{gap:8px}.topbar-right>.avatar{display:none}.save-status{font-size:10px;gap:5px}.mobile-menu{display:inline-flex;background:none;color:var(--teal);padding:6px}.main{padding:29px 19px 140px}h1{font-size:35px;letter-spacing:-.8px}.page-heading{margin-bottom:24px;align-items:flex-start}.page-heading p{font-size:14px}.page-heading .pill{display:none}.hero{padding:25px;grid-template-columns:1fr 75px;gap:8px;margin-top:22px}.hero h2{font-size:27px}.hero p{font-size:13px}.tile-art{grid-template-columns:repeat(2,33px);grid-template-rows:repeat(2,33px);gap:3px}.tile-art i:before{inset:7px;border-width:1.5px}.lesson-grid{gap:12px}.lesson-card{padding:17px;min-height:205px}.lesson-card h3{font-size:21px}.lesson-card p{font-size:12px}.lesson-card-top{margin-bottom:18px}.dashboard-aside{grid-template-columns:1fr}.profile-mini{padding:10px 0}.profile-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}.aside-card{padding:23px}.aside-card>svg{float:left;margin:0 17px 0 0}.aside-card h3{font-size:21px}.page-tabs{gap:7px;margin-bottom:24px}.page-tab{padding:7px 12px;font-size:11px}.exercise-header{padding:20px 17px;gap:10px}.exercise-heading h2{font-size:16px;line-height:1.5}.exercise-heading p{font-size:12px}.exercise-badge{min-width:32px;font-size:11px;padding:6px}.type-tag{display:none}.exercise-body{padding:21px 17px}.exercise-footer{padding:13px 17px;gap:8px;flex-wrap:wrap}.complete-toggle,.exercise-footer .text-button{font-size:11px}.answer-row{grid-template-columns:20px 1fr;gap:6px}.answer-row label{font-size:15px}.numbers-grid{grid-template-columns:1fr 1fr;gap:7px}.number-cell{font-size:13px;padding:8px;gap:8px}.audio-toolbar{align-items:flex-start;flex-direction:column;gap:10px}.choice-grid{gap:11px}.choice-card{padding:14px}.choice-card-top{gap:6px}.choice-card h3{font-size:13px}.choice-options{gap:6px}.choice-option span{padding:8px 10px}.person-card{padding:18px}.person-card p{font-size:14px}.table-person{padding:16px}.table-fields{gap:14px 11px}.table-field input{font-size:13px;padding:9px 8px}.table-field label{font-size:11px}.table-field label small{font-size:10px}.word-bank{padding:13px;gap:6px}.word-bank span{font-size:11px;padding:4px 9px}.inline-answer{width:98px;font-size:14px;margin:0 2px}.fill-sentence{font-size:15px}.reference-grid{gap:7px}.reference-grid>.supported-text{font-size:18px;padding:12px}.accent-tools{bottom:11px;padding:8px;gap:4px}.accent-tools span{display:none}.accent-tools button{width:28px;height:28px;font-size:14px}.audio-player{left:0;padding:10px 12px;gap:10px;flex-wrap:wrap}.player-label{flex-basis:calc(100% - 75px);order:0}.audio-player audio{order:3;flex-basis:100%;max-width:none}.speed-label{order:1;font-size:0}.audio-player>.icon-button{order:2;width:24px;height:24px}.media-error{order:4}.accent-tools.with-player{bottom:108px}.video-card{padding:23px;align-items:flex-start;flex-direction:column}.video-card h2{font-size:26px}.media-card{padding:18px;gap:12px}.media-card .media-icon{height:40px;width:40px}.media-card strong{font-size:13px}.welcome{padding:40px 20px}.welcome .brand{margin-bottom:45px}.welcome h1{font-size:38px}.profile-choices{gap:13px}.profile-choice{padding:27px 18px}.profile-choice strong{font-size:26px}.profile-choice .avatar{width:57px;height:57px;font-size:30px}.welcome-note{font-size:10px}.video-dialog{padding:19px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.fill-sentence .feedback:empty{display:none}.fill-sentence .feedback:not(:empty){display:block;line-height:1.5}

@media(max-width:700px){.sidebar{visibility:hidden}.sidebar.open{visibility:visible}}

/* Learning aids sit beside the original text and never replace an answer. */
.mini-control{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:5px;flex-shrink:0;border:1px solid transparent;border-radius:6px;background:transparent;color:#678178;vertical-align:middle}
.mini-control svg{width:17px;height:17px}
.mini-control:hover{background:#e4ece2;border-color:#d5dfd1;color:#315f4c}
.mini-control.revealed,.mini-control.playing{background:#dfece1;color:#315f4c;border-color:#c4d8c5}
.reveal-button{color:#7d8989}
.question-top,.phrase-line{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.question-top label{margin:2px 0 0;flex:1}
.phrase-line>p{margin:0;flex:1;min-width:0}
.supported-text{min-width:0}
.supported-text .pronunciation,.answer-row .pronunciation,.number-cell .pronunciation,.fill-content .pronunciation,.grammar-table .pronunciation{font-family:Lato,Arial,sans-serif;font-size:12px;font-weight:400;line-height:1.6;color:#657061;margin:5px 0 11px;overflow-wrap:anywhere}
.pronunciation>span{font-size:10px;letter-spacing:.2px;color:#8c9488;margin-right:4px}
.supported-text .translation,.answer-row .translation,.number-cell .translation,.fill-content .translation,.grammar-table .translation{font-family:Lato,Arial,sans-serif;font-size:13px;font-weight:400;line-height:1.6;color:#4b6b61;background:#eff5ed;border-left:2px solid #b7cdb7;border-radius:0 5px 5px 0;padding:8px 11px;margin:8px 0 12px;overflow-wrap:anywhere}
.translation-label{display:block;text-transform:uppercase;font-size:9px;font-weight:600;letter-spacing:1px;color:#8a9b83;margin-bottom:1px}
.answer-row .question-top+.pronunciation{margin-top:1px}
.audio-toolbar>p svg{display:inline-block;vertical-align:middle;width:13px;height:13px;margin:0 2px}
.number-cell.number-with-tools{display:block;padding:12px 11px;min-width:0}
.number-top{display:grid;grid-template-columns:17px minmax(0,1fr) auto;gap:7px;align-items:start}
.number-top>strong{padding-top:4px;font-weight:600}
.number-portuguese{padding-top:3px;line-height:1.6;overflow-wrap:normal}
.number-controls{display:flex;gap:1px;margin-right:-4px}
.number-controls .mini-control{width:27px;height:29px;padding:4px}
.number-cell .pronunciation{font-size:12px;margin:3px 0 0 24px;line-height:1.5}
.number-cell .pronunciation>span{display:none}
.number-cell .translation{font-size:12px;margin:9px 0 0 24px;padding:6px 8px}
.pronunciation-guide{font-size:12px;border:1px solid #dfe6db;border-radius:8px;background:#f1f4ec;margin:-7px 0 24px;padding:11px 15px;color:#687b68}
.pronunciation-guide summary,.long-pronunciation summary{cursor:pointer;width:fit-content;font-size:12px;color:#668071}
.pronunciation-guide[open] summary{margin-bottom:10px}
.pronunciation-guide p{margin:0 0 8px;max-width:770px;font-size:12px}
.pronunciation-guide ul{padding-left:17px;margin:0;max-width:820px}
.pronunciation-guide li{padding:2px 0}
.long-pronunciation{margin:7px 0 13px;padding:0}
.long-pronunciation .pronunciation{margin:7px 0}
.person-card .supported-text{margin-bottom:18px}
.reading-passage .phrase-line>p{line-height:1.9;font-size:16px}
.grammar-examples .supported-text{margin:0 0 15px}
.grammar-examples .phrase-line>p{font-size:16px;margin:0}
.grammar-examples .supported-text .pronunciation{margin:3px 0 0}
.statement{display:flex;gap:7px;flex:1;min-width:0}
.statement>.supported-text{flex:1}
.true-false-line .statement .phrase-line>p{font-size:15px;line-height:1.6}
.true-false-line .statement .question-index{margin:0}
.true-false-line .statement .pronunciation{margin:3px 0 0}
.fill-content{flex:1;min-width:0}
.fill-line{display:flex;align-items:flex-start;gap:11px}
.fill-line>.reveal-button{margin-top:6px}
.fill-content .pronunciation{margin:4px 0 0}
.reference-grid>.supported-text{font-size:20px}
.reference-grid .phrase-line{background:transparent;padding:0;font-family:inherit}
.reference-grid .phrase-line>p{font-family:Georgia,serif;line-height:1.5;font-size:20px}
.reference-grid .pronunciation{font-size:11px;margin:4px 0 0}
.reference-grid .translation{font-size:12px}
@media(max-width:1120px){.number-top{grid-template-columns:16px minmax(0,1fr) auto;gap:5px}.number-controls .mini-control{width:25px}.number-cell .pronunciation{margin-left:21px}}
@media(max-width:700px){
  .numbers-grid{gap:9px}
  .number-cell.number-with-tools{padding:10px 9px}
  .number-top{grid-template-columns:16px minmax(0,1fr);gap:5px}
  .number-controls{grid-column:2;justify-content:flex-end;margin-top:2px;margin-right:0}
  .number-controls .mini-control{width:30px;height:30px}
  .number-cell .pronunciation{margin:2px 0 0 21px;font-size:12px}
  .number-cell .translation{margin-left:0}
  .question-top,.phrase-line{gap:8px}
  .supported-text .pronunciation,.answer-row .pronunciation,.fill-content .pronunciation{font-size:11px}
  .supported-text .translation,.answer-row .translation,.fill-content .translation{font-size:12px}
  .pronunciation-guide{padding:10px 12px;margin-bottom:20px}
  .reading-passage .phrase-line>p{font-size:15px}
  .true-false-line .statement{width:100%}
  .reference-grid>.supported-text{padding:12px}
  .reference-grid .phrase-line{gap:3px}
  .reference-grid .phrase-line>p{font-size:17px}
  .reference-grid .mini-control{width:25px;height:27px;padding:3px}
  .reference-grid .pronunciation{font-size:10px}
}

/* Earlier chapter pages: readable dialogues, photo choices and verb comparisons. */
.sidebar .brand{margin-bottom:24px;flex-shrink:0}
.sidebar nav{overflow-y:auto;min-height:0;scrollbar-width:thin;scrollbar-color:#66877d transparent}
.sidebar-bottom{padding-top:18px;flex-shrink:0}
.sidebar .nav-item{gap:9px;padding:10px;font-size:13px}
.exercise-note,.dialogue-footnote{font-size:12px;color:var(--muted);margin:0 0 21px}
.dialogue-footnote{margin:22px 0 0}
.dialogue-footnote span{display:block}
.dialogue-lines{display:grid;gap:15px}
.dialogue-line{display:flex;align-items:flex-start;gap:13px;min-width:0}
.dialogue-speaker{width:55px;flex-shrink:0;padding-top:1px;font-size:13px;color:var(--teal)}
.dialogue-dash{color:#8e9b90}
.dialogue-line>.supported-text{flex:1}
.dialogue-line .pronunciation{margin-bottom:0}
.answer-context{font-size:12px;color:var(--teal);font-weight:600;margin:0 0 6px}
.answer-with-stem{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.answer-with-stem input,.answer-with-stem textarea{flex:1;width:100%;min-width:90px}
.answer-with-stem span{white-space:pre-wrap}
.sentence-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:25px}
.sentence-columns>div{padding:15px;background:#f3f5ee;border-radius:9px;min-width:0}
.sentence-columns h3{font-size:13px;margin:0 0 15px}
.sentence-columns h3 small,.verb-comparison h3 small{display:block;font-size:11px;color:var(--blue);font-weight:400;margin-top:4px}
.sentence-columns .supported-text+.supported-text{margin-top:9px}
.sentence-columns .phrase-line{gap:2px}
.sentence-columns .phrase-line>p{font-size:14px}
.sentence-columns .pronunciation{font-size:10px;margin:3px 0 0}
.sentence-columns .mini-control{width:25px;height:25px;padding:3px}
.sentence-fields{display:grid;gap:17px}
.sentence-fields label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
.sentence-fields input{width:100%}
.photo-bank{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:26px}
.photo-bank figure{position:relative;margin:0;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#f1f4ed}
.photo-bank img{width:100%;height:150px;object-fit:contain;display:block}
.photo-bank figcaption{position:absolute;left:8px;top:8px;border-radius:5px;background:#fffcf0ed;padding:2px 8px;font-size:13px;color:var(--teal)}
.matching-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.matching-card,.multiple-choice-card{border:1px solid var(--line);border-radius:10px;padding:20px;min-width:0}
.matching-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:17px}
.matching-card-header>div{flex:1;min-width:0}
.matching-card-header .phrase-line>p{font-weight:600}
.matching-card-header .audio-button{padding:7px}
.matching-card .dialogue-lines{gap:13px;margin-bottom:22px}
.matching-card .dialogue-line{gap:7px}
.matching-card .dialogue-line .phrase-line>p{font-size:14px}
.matching-label{display:block;font-size:12px;color:var(--muted);margin:18px 0 6px}
.matching-card select{width:100%;max-width:100%;padding:11px 10px;border:1px solid #cdd8d1;border-radius:8px;background:#fff;color:var(--ink);font-size:14px}
.matching-photo{display:block;width:100%;height:145px;object-fit:contain;margin-bottom:17px;border-radius:7px}
.answer-bank{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-bottom:25px;padding:18px;background:#f3f5ee;border-radius:9px}
.answer-bank>div{display:flex;align-items:flex-start;gap:9px;min-width:0}
.answer-bank strong{font-size:12px;padding-top:3px;color:#7d9484}
.answer-bank .supported-text{flex:1}
.answer-bank .phrase-line>p{font-size:14px}
.answer-bank .pronunciation{font-size:11px;margin:2px 0 0}
.multiple-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.multiple-choice-card>.question-top{justify-content:flex-start;gap:10px;margin-bottom:18px}
.multiple-choice-card>.question-top>.supported-text{flex:1}
.multiple-choice-card>.question-top .phrase-line>p{font-weight:600}
.phrase-choices{display:grid;gap:10px}
.phrase-option{display:flex;align-items:flex-start;gap:9px;padding:10px 8px;background:#f8f9f5;border-radius:7px;border:1px solid transparent}
.phrase-option:has(input:checked){background:#eaf2e8;border-color:#b5cdb2}
.phrase-option-radio{display:flex;gap:6px;align-items:center;cursor:pointer;font-size:12px;padding-top:3px;color:#7c8c7d}
.phrase-option-radio input{accent-color:#547c62;width:16px;height:16px;margin:0}
.phrase-option-text{flex:1;min-width:0}
.phrase-label{display:block;flex:1;min-width:0;cursor:pointer;font-size:14px;padding-top:1px}
.phrase-option .pronunciation{font-size:11px;margin:3px 0 0}
.phrase-option .mini-control{width:25px;height:25px;padding:3px}
.verb-comparison-grid{display:grid;gap:24px;margin-bottom:27px}
.verb-comparison{border:1px solid var(--line);border-radius:9px;padding:18px;min-width:0}
.verb-comparison h3{font-size:20px;margin-bottom:18px}
.verb-comparison table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px}
.verb-comparison th,.verb-comparison td{text-align:left;vertical-align:top;padding:10px 9px;border-bottom:1px solid #e7ecdf;overflow-wrap:anywhere}
.verb-comparison thead th{font-size:12px;font-weight:600;color:#59715d}
.verb-comparison thead th:first-child{width:21%}
.verb-comparison thead small{display:block;font-size:10px;font-weight:400;color:var(--blue);margin-top:2px}
.verb-comparison tbody th{font-size:12px;font-weight:400;color:var(--muted);white-space:pre-line}
.verb-comparison tbody tr:last-child>*{border-bottom:0}
.verb-comparison .phrase-line{gap:4px}
.verb-comparison .phrase-line>p{font-size:14px;color:#40664e}
.verb-comparison .mini-control{width:25px;height:25px;padding:3px}
.verb-comparison .pronunciation{font-size:10px;margin:3px 0 0}
.verb-comparison .translation{font-size:11px;padding:6px;margin:6px 0 0}
@media(max-height:800px){.sidebar-note{display:none}.sidebar-bottom{padding-top:14px}}
@media(max-width:900px){.matching-grid,.multiple-choice-grid{grid-template-columns:1fr}}
@media(max-width:700px){
 .sentence-columns{gap:7px}.sentence-columns>div{padding:11px 8px}.sentence-columns h3{font-size:11px}.sentence-columns h3 small{font-size:10px}.sentence-columns .phrase-line{flex-wrap:wrap}.sentence-columns .phrase-line>p{font-size:12px;flex-basis:100%}.sentence-columns .pronunciation{font-size:10px}
 .dialogue-line{gap:9px}.dialogue-speaker{width:40px;font-size:12px}.dialogue-lines{gap:15px}
 .photo-bank{gap:7px}.photo-bank img{height:95px}.photo-bank figcaption{left:5px;top:5px;padding:1px 6px;font-size:11px}
 .matching-card,.multiple-choice-card{padding:15px}.answer-bank{grid-template-columns:1fr;padding:14px}
 .verb-comparison{padding:13px 9px}.verb-comparison th,.verb-comparison td{padding:9px 5px}.verb-comparison thead th:first-child{width:25%}.verb-comparison .phrase-line{flex-wrap:wrap}.verb-comparison .phrase-line>p{font-size:13px;flex-basis:100%}.verb-comparison tbody th{font-size:11px}
}
.dialogue-photo{display:block;width:100%;max-height:240px;object-fit:contain;background:#f4f5ef;border-radius:9px;margin-bottom:26px}
.prompt-instruction-da{font-size:13px;color:var(--blue);margin:0 0 10px}

/* Chapter headings remain reachable while their links are folded away. */
.nav-chapter{margin-top:15px}.nav-chapter>summary{display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:44px;padding:10px;border-radius:7px;list-style:none;cursor:pointer;font-size:10px;font-weight:600;letter-spacing:1.2px;text-transform:uppercase;color:#b2c6be}.nav-chapter>summary::-webkit-details-marker{display:none}.nav-chapter>summary::marker{content:''}.nav-chapter>summary>span{min-width:0}.nav-chapter>summary>svg{width:16px;height:16px;flex-shrink:0;transition:transform .15s}.nav-chapter[open]>summary>svg{transform:rotate(90deg)}.nav-chapter>summary:hover{background:#ffffff0d;color:#edf3ed}.nav-chapter.is-current>summary{color:#f1dfbd}.nav-chapter>summary:focus-visible{outline:2px solid #d7b083;outline-offset:-2px}.nav-chapter-links{padding-bottom:3px}

/* Book introduction uses the existing exercise frame and reveal controls. */
.book-intro-card{margin:26px 0}.book-intro-card .chapter-symbol svg{width:28px;height:28px}
.intro-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 25px}.intro-toolbar>p{font-size:13px;color:var(--muted);margin:0;max-width:450px}.intro-toolbar>button{flex-shrink:0;min-height:44px}
.intro-prose{font-size:16px;line-height:1.9}.intro-block{position:relative;padding-right:48px}.intro-block+.intro-block{border-top:1px solid var(--line);padding-top:24px;margin-top:24px}.intro-original p{margin:0 0 15px}.intro-original p:last-child{margin-bottom:0}.intro-original ul{padding-left:22px;margin:12px 0 0}.intro-original li+li{margin-top:5px}.intro-block>.reveal-button{position:absolute;right:0;top:0;width:40px;height:40px}.intro-block+.intro-block>.reveal-button{top:24px}
.intro-translation{background:#eff5ed;color:#3c6054;border-left:3px solid #b7cdb7;padding:18px 21px;border-radius:0 8px 8px 0;margin-top:19px;font-size:15px;line-height:1.85}.intro-translation p{margin:10px 0}.intro-translation ul{padding-left:20px}.intro-translation li+li{margin-top:5px}.intro-translation>.translation-label{font-size:10px}.intro-authors{font-size:13px;color:var(--muted);margin:27px 0 0;font-style:italic}
.intro-index-heading{margin-bottom:13px}.intro-index-heading h2{margin-bottom:5px}.intro-index-heading p{margin:0;font-size:13px;color:var(--blue)}.intro-course-note{font-size:13px;color:var(--muted);line-height:1.8;max-width:720px;margin:0 0 24px}
.intro-course{display:grid;gap:13px;margin-bottom:27px}.intro-unit{background:var(--white);border:1px solid var(--line);border-radius:12px;overflow:hidden}.intro-unit>summary{display:flex;align-items:center;gap:16px;padding:20px 24px;cursor:pointer;list-style:none}.intro-unit>summary::-webkit-details-marker{display:none}.intro-unit>summary:after{content:'+';margin-left:auto;font-size:24px;color:#6a8773;flex-shrink:0}.intro-unit[open]>summary:after{content:'−'}.intro-unit>summary:focus-visible{outline:3px solid #d7a069;outline-offset:-4px}.intro-unit-number{flex-shrink:0;width:39px;height:39px;display:grid;place-items:center;border-radius:9px;background:#edf2e7;color:#52705e;font-family:Georgia,serif;font-size:23px}.intro-unit-title{min-width:0}.intro-unit-title strong{display:block;font-family:Georgia,serif;font-size:21px;font-weight:400;line-height:1.4;overflow-wrap:anywhere}.intro-unit-title small{display:block;font-size:12px;color:var(--blue);margin-top:5px}.intro-unit-page{font-size:10px;color:var(--muted);margin-left:auto;white-space:nowrap}.intro-unit-body{padding:0 24px 24px;border-top:1px solid var(--line)}.intro-reveal-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0}.intro-reveal-row>span{font-size:11px;color:var(--muted)}.intro-reveal-row>.reveal-button{width:40px;height:40px;flex-shrink:0}
.intro-curriculum-grid,.intro-review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.intro-curriculum-grid:empty{display:none}.intro-curriculum-grid h4,.intro-review-grid h4{font-size:14px;line-height:1.6;margin:0 0 14px;font-weight:600}.intro-curriculum-grid h4 small,.intro-review-grid h4 small{display:block;color:var(--blue);font-weight:400;font-size:11px;margin-top:3px}.intro-curriculum-grid ul{font-size:13px;line-height:1.8;padding-left:18px;margin:0 0 22px}.intro-curriculum-grid li+li{margin-top:8px}.intro-page-list{padding:0!important;list-style:none;margin:0;font-size:13px;line-height:1.75}.intro-page-list li{display:flex;align-items:baseline;gap:14px;padding:10px 0;border-top:1px solid #e3e7df}.intro-book-page{flex-shrink:0;min-width:28px;color:#6a8773;font-size:11px}.intro-translation .intro-page-list{margin-bottom:0}.intro-review{background:#f1f3e9}.intro-review .intro-unit-title strong{font-family:Lato,Arial,sans-serif;font-size:14px}.intro-source-note{font-size:11px;color:var(--muted);line-height:1.8;margin:22px 0}
@media(max-width:1120px){.intro-curriculum-grid,.intro-review-grid{grid-template-columns:1fr;gap:8px}}
@media(max-width:700px){.intro-toolbar{align-items:flex-start;flex-direction:column;gap:13px}.intro-toolbar>p{font-size:12px}.intro-prose{font-size:15px}.intro-block{padding-right:0;padding-top:46px}.intro-block+.intro-block{padding-top:65px}.intro-block+.intro-block>.reveal-button{top:17px}.intro-translation{padding:14px;font-size:14px;margin-top:15px}.intro-unit>summary{padding:17px 15px;gap:11px;flex-wrap:wrap}.intro-unit-title{flex:1}.intro-unit-title strong{font-size:18px}.intro-unit-title small{font-size:11px}.intro-unit-page{width:100%;margin:0 0 0 50px;order:1}.intro-unit-body{padding:0 16px 19px}.intro-curriculum-grid ul{font-size:13px}.intro-review .intro-unit-title strong{font-size:13px}.intro-review>summary{align-items:flex-start}.intro-review .intro-unit-number{margin-top:3px}.intro-resources .exercise-body{padding-top:5px}.book-intro-card{margin-top:22px}.book-intro-card p{line-height:1.7}}

/* Chapter 0 reuses the lesson cards, colours and exercise frame. */
.chapter-intro-card{display:flex;align-items:center;gap:20px;padding:24px 27px;border:1px solid var(--line);border-radius:13px;background:#fff;text-decoration:none;margin-bottom:35px;box-shadow:var(--shadow)}
.chapter-intro-card .chapter-symbol{display:grid;place-items:center;width:55px;height:55px;border-radius:12px;background:var(--teal-light);font-family:Georgia,serif;font-size:35px;color:var(--teal);flex-shrink:0}
.chapter-intro-card>div{flex:1;min-width:0}.chapter-intro-card h3{font-family:Georgia,serif;font-weight:400;font-size:25px;margin:0 0 7px}.chapter-intro-card p{font-size:13px;color:var(--muted);margin:0}
.chapter-overview{background:#e9eee3;border:1px solid #dce5d6;border-radius:13px;padding:28px;margin-bottom:33px}.chapter-overview p{max-width:750px;font-size:15px;color:#58715e;margin-bottom:20px}
.chapter-lessons{grid-template-columns:repeat(2,minmax(0,1fr))}.chapter-back{margin:0 0 20px}.unit-description{font-size:14px;color:var(--muted);max-width:760px;margin-bottom:26px}
.source-note{margin-top:25px;font-size:11px;color:var(--muted)}.source-note summary{cursor:pointer;width:fit-content}.source-note ul{padding-left:18px}
.sidebar .page-number{flex-shrink:0}.sidebar .nav-label{margin-top:21px}
.glossary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.glossary-grid>.supported-text{background:#f4f6ef;border:1px solid #e6ebdf;border-radius:9px;padding:16px;min-width:0}.glossary-grid .phrase-line>p{font-size:19px;font-family:Georgia,serif}.glossary-grid .pronunciation{margin:5px 0 0}
.alphabet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
.alphabet-letter{border:1px solid var(--line);border-radius:9px;background:#fdfdfa;min-width:0;overflow:hidden}.alphabet-letter>summary{display:flex;align-items:center;gap:12px;padding:15px;cursor:pointer;font-size:15px;color:#486b53;list-style:none}.alphabet-letter>summary::-webkit-details-marker{display:none}.alphabet-letter>summary:after{content:'+';margin-left:auto;color:#8e9e8a;font-size:19px}.alphabet-letter[open]>summary:after{content:'−'}.alphabet-symbol{font-family:Georgia,serif;font-size:29px;line-height:1.1;color:var(--teal);min-width:28px}.alphabet-body{padding:0 15px 17px}.alphabet-rule{font-size:13px;color:#61765f;margin:16px 0;line-height:1.7}.alphabet-body>.supported-text .phrase-line>p{font-size:13px}.alphabet-examples{border-top:1px solid var(--line);padding-top:13px}.alphabet-examples>.supported-text+.supported-text{margin-top:13px}.alphabet-examples .phrase-line>p{font-size:14px}.alphabet-examples .pronunciation{font-size:11px;margin:3px 0 0}
.vocabulary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.vocabulary-card{border:1px solid var(--line);border-radius:10px;padding:19px;min-width:0;background:#fdfdfb}.vocabulary-lead>.supported-text .phrase-line>p{font-family:Georgia,serif;font-size:21px}.vocabulary-lead>small{display:block;font-size:10px;color:var(--muted);margin:5px 0 17px}.vocabulary-lead .pronunciation{margin:4px 0 0}.vocabulary-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 11px}.vocabulary-fields h3{font-size:11px;margin:0 0 7px;font-weight:600}.vocabulary-fields h3 small{display:block;font-size:10px;color:var(--blue);font-weight:400;margin-top:3px}.vocabulary-fields .phrase-line{gap:3px}.vocabulary-fields .phrase-line>p{font-size:14px;overflow-wrap:anywhere}.vocabulary-fields .pronunciation{font-size:11px;margin:3px 0 0}.vocabulary-fields .mini-control{width:25px;height:25px;padding:3px}
.notes-grid{display:grid;gap:18px}.grammar-note{border:1px solid var(--line);border-radius:9px;background:#f7f8f2;padding:21px}.grammar-note h3,.translation-task h3{font-size:18px;margin:0 0 15px}.grammar-note h3 small,.translation-task h3 small{display:block;font-size:12px;color:var(--blue);font-weight:400;margin-top:5px}.grammar-note>p{font-size:14px;color:#657560;line-height:1.8;margin-bottom:18px}.note-examples{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.note-examples .phrase-line>p{font-size:16px}.note-examples .pronunciation{font-size:11px;margin:4px 0 0}
.translation-tasks{display:grid;gap:30px}.translation-task+.translation-task{border-top:1px solid var(--line);padding-top:28px}.translation-prompt{font-size:16px;line-height:1.9;padding:18px 20px;border-radius:9px;background:#f1f4eb;border-left:3px solid #c2d0b7}.translation-task>label{display:block;font-size:12px;color:var(--muted);margin:20px 0 8px}.translation-task textarea{display:block;width:100%;min-height:220px;line-height:1.8;font-size:15px}.model-answer{margin-top:17px;border:1px solid #dbe4d3;border-radius:8px;padding:13px 16px;background:#fafbf6}.model-answer summary{cursor:pointer;font-size:12px;color:#58765c;width:fit-content}.model-answer p{font-size:15px;line-height:1.9;margin:18px 0 13px}.model-answer small{font-size:11px;color:var(--muted);display:block}
.reading-passage:not(:has(img)){display:block}
@media(max-width:1120px){.alphabet-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.vocabulary-grid{grid-template-columns:1fr}}
@media(max-width:700px){
 .chapter-intro-card{padding:20px 18px;gap:13px}.chapter-intro-card .chapter-symbol{width:43px;height:43px;font-size:29px}.chapter-intro-card h3{font-size:21px}.chapter-intro-card p{font-size:12px}.chapter-overview{padding:22px}.chapter-overview p{font-size:14px}.chapter-lessons{grid-template-columns:1fr}.chapter-lessons .lesson-card{min-height:180px}
 .glossary-grid{grid-template-columns:1fr;gap:11px}.glossary-grid>.supported-text{padding:15px}.alphabet-grid{gap:9px}.alphabet-letter>summary{gap:9px;padding:13px 11px;font-size:13px}.alphabet-symbol{font-size:26px;min-width:23px}.alphabet-body{padding:0 11px 13px}.alphabet-rule{font-size:12px}.alphabet-body .mini-control{width:25px;height:25px;padding:3px}.alphabet-examples .phrase-line{flex-wrap:wrap}.alphabet-examples .phrase-line>p{font-size:13px;flex-basis:100%}
 .vocabulary-card{padding:16px}.vocabulary-fields{gap:13px 9px}.vocabulary-fields .phrase-line{flex-wrap:wrap}.vocabulary-fields .phrase-line>p{flex-basis:100%}.grammar-note{padding:17px}.grammar-note>p{font-size:13px}.note-examples{grid-template-columns:1fr}.translation-prompt{font-size:15px;padding:15px}.translation-task textarea{min-height:250px}.model-answer{padding:12px}.model-answer p{font-size:14px}.page-bottom-nav{gap:18px}.page-bottom-nav a{max-width:48%;font-size:12px}
}

.auth-welcome{justify-content:flex-start;padding-top:70px}.auth-welcome .brand{margin-bottom:40px}.auth-welcome h1{font-size:41px}.auth-welcome>p{max-width:510px}.auth-card{width:min(400px,100%);background:#fff;border:1px solid var(--line);border-radius:14px;padding:28px;box-shadow:var(--shadow);text-align:left}.auth-card>label{display:block;font-size:13px;color:var(--muted);margin:0 0 7px}.auth-card>input,.auth-card>select{display:block;width:100%;margin:0 0 21px;padding:11px 12px;border:1px solid #cdd8d1;border-radius:8px;background:#fff;color:var(--ink)}.auth-card .button{width:100%;justify-content:center}.auth-card>small{display:block;text-align:center;font-size:11px;color:var(--muted);margin-top:19px}.auth-message{font-size:13px;color:#a3543f;margin:0 0 15px;line-height:1.6}.auth-message:empty{display:none}.auth-setup-link{margin-top:24px;font-size:13px}.setup-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;width:min(820px,100%)}.setup-grid .auth-card{width:100%;box-shadow:none}.setup-form h2{font-family:Georgia,serif;font-weight:400;font-size:29px;margin:11px 0 25px}.auth-configured{color:#52795e;font-size:14px;margin:0}.setup-form .avatar{width:48px;height:48px}.setup-welcome{padding-bottom:60px}
@media(max-width:700px){.auth-welcome{padding-top:45px}.auth-welcome .brand{margin-bottom:35px}.auth-welcome h1{font-size:34px}.auth-card{padding:24px}.setup-grid{grid-template-columns:1fr;gap:18px}.setup-form h2{font-size:26px}}
/* Verb reference: keep whole pronouns readable and give aids the full row. */
.grammar-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));align-items:start;gap:24px}
.grammar-conjugations,.grammar-grid>.grammar-examples{min-width:0;border:1px solid var(--line);border-radius:10px;padding:20px}
.grammar-conjugations{background:#f5f7f0}
.grammar-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:16px}
.grammar-table caption,.grammar-grid>.grammar-examples h3{text-align:left;font-size:19px;font-weight:600;line-height:1.3;letter-spacing:0;color:var(--ink);margin:0 0 18px}
.grammar-table caption small,.grammar-grid>.grammar-examples h3 small{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:4px}
.grammar-person-column{width:46%}
.grammar-table thead th{text-align:left;vertical-align:top;font-size:11px;font-weight:600;color:var(--muted);padding:0 12px 10px 0;border-bottom:1px solid #dce4d7}
.grammar-table thead small{display:block;font-size:10px;font-weight:400;margin-top:2px}
.grammar-conjugation-row th,.grammar-conjugation-row td{vertical-align:top;text-align:left;font-weight:400;padding:13px 12px 5px 0}
.grammar-conjugation-row td{padding-right:0}
.grammar-pronouns{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 5px;padding-top:3px;font-size:15px;line-height:1.6}
.grammar-pronoun{white-space:nowrap}
.grammar-separator{color:#9aab9b}
.grammar-form{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0}
.grammar-form>span{font-size:19px;line-height:30px;font-weight:600;color:#4f7761}
.grammar-form .mini-control{width:30px;height:30px}
.grammar-help-row td{padding:0 0 13px;border-bottom:1px solid #dce4d7}
.grammar-table tbody:last-child .grammar-help-row td{border-bottom:0;padding-bottom:0}
.grammar-table .pronunciation{font-size:12px;line-height:1.65;margin:0;color:#657061;overflow-wrap:normal}
.grammar-table .pronunciation>span{font-size:10px}
.grammar-table .translation{margin:8px 0 0;font-size:13px;background:#eaf0e4}
.grammar-grid>.grammar-examples .supported-text{margin:0;padding:15px 0;border-bottom:1px solid var(--line)}
.grammar-grid>.grammar-examples .supported-text:first-of-type{padding-top:0}
.grammar-grid>.grammar-examples .supported-text:last-child{padding-bottom:0;border-bottom:0}
.grammar-grid>.grammar-examples .phrase-line>p{font-size:17px;line-height:1.6}
.grammar-grid>.grammar-examples .pronunciation{font-size:12px;margin-top:5px;line-height:1.65;overflow-wrap:normal}
@media(max-width:700px){
  .grammar-grid{gap:16px}
  .grammar-conjugations,.grammar-grid>.grammar-examples{padding:16px}
  .grammar-table caption,.grammar-grid>.grammar-examples h3{font-size:18px}
  .grammar-pronouns{font-size:14px;gap:2px 4px}
  .grammar-form>span{font-size:18px}
  .grammar-grid>.grammar-examples .phrase-line>p{font-size:16px}
}
