.textbook-learning{--subject-accent:var(--mint);--subject-tint:#e9f8f0;min-width:0;color:var(--ink);margin-top:18px;font-size:16px}.textbook-english .textbook-course-heading{box-shadow:none;gap:10px;margin-bottom:12px;padding:10px 14px}.textbook-english .textbook-course-heading label{gap:8px;display:flex}.textbook-english .textbook-course-heading label>span,.textbook-english .textbook-course-icon,.textbook-english .textbook-course-heading p{display:none}.textbook-english .textbook-save-status{font-size:12px}.textbook-media-toolbar{justify-content:space-between;align-items:center;gap:14px;margin:0 0 14px;display:flex}.textbook-media-toolbar .textbook-unit-label{white-space:nowrap;flex:1;align-items:center;gap:10px;min-width:0;margin:0;display:flex}.textbook-media-toolbar select{width:100%;max-width:520px}.textbook-media-toolbar button{flex:none}.textbook-media-body{min-width:0}.textbook-media-return{margin-bottom:14px}.textbook-media-body .english-lab,.textbook-media-body .course-learning-lab{margin-top:0}.textbook-media-body .english-tabs,.textbook-media-body .ui-tab-list{margin-top:0;margin-bottom:14px}.textbook-media-body .english-instruction{margin:8px 0 14px}.textbook-media-body .course-word-grid{margin-top:0}@media (max-width:600px){.textbook-english .textbook-course-heading{gap:3px;margin-bottom:10px;padding:8px 10px}.textbook-english .textbook-course-heading select{font-size:13px}.textbook-english .textbook-save-status{font-size:11px}.textbook-media-toolbar{flex-wrap:wrap;align-items:stretch;gap:8px;margin-bottom:12px}.textbook-media-toolbar .textbook-unit-label{flex-basis:100%;gap:8px;font-size:12px}.textbook-media-toolbar button{min-height:40px;margin-left:auto;font-size:13px}.textbook-media-body .english-tabs,.textbook-media-body .ui-tab-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%;display:grid}.textbook-media-body .english-tabs button,.textbook-media-body .ui-tab-list button{min-width:0;padding:10px 7px;font-size:13px}.practice-dialog-actions .ui-button{min-width:0}}.textbook-learning[data-subject=chinese]{--subject-accent:var(--coral);--subject-tint:#fff1ed}.textbook-learning[data-subject=math]{--subject-accent:var(--sky);--subject-tint:#edf5ff}.textbook-subject-tabs{gap:12px;margin:0 0 18px;display:flex}.textbook-subject-tabs button{--tab-color:var(--mint);--tab-tint:#e9f8f0;min-width:132px;min-height:50px;color:var(--tab-color);border-radius:var(--radius-control,14px);background:var(--tab-tint);border:2px solid #0000;justify-content:center;align-items:center;gap:9px;padding:11px 20px;font-size:17px;font-weight:750;transition:transform .15s,box-shadow .15s;display:inline-flex}.textbook-subject-tabs .textbook-subject-chinese{--tab-color:var(--coral);--tab-tint:#fff1ed}.textbook-subject-tabs .textbook-subject-math{--tab-color:var(--sky);--tab-tint:#edf5ff}.textbook-subject-tabs button span{font-size:13px;font-weight:500}.textbook-subject-tabs button[aria-selected=true]{border-color:var(--tab-color);box-shadow:0 3px 0 color-mix(in srgb,var(--tab-color) 25%,transparent);background:var(--white,#fff)}.textbook-subject-tabs button:hover:not(:disabled){transform:translateY(-2px)}.textbook-course-heading{background:var(--white,#fff);border:1px solid var(--line);border-radius:var(--radius-card,20px);box-shadow:var(--shadow-card);align-items:center;gap:16px;margin-bottom:20px;padding:16px 20px;display:flex}.textbook-course-icon{color:var(--subject-accent);flex:none}.textbook-course-heading>div{flex:1;min-width:0}.textbook-course-heading label{color:var(--muted);align-items:center;gap:14px;font-size:13px;display:flex}.textbook-course-heading label>span{flex:none}.textbook-course-heading select,.textbook-unit-label select{border:1px solid var(--line);background:var(--paper,#f5faf7);border-radius:var(--radius-control,12px);min-height:44px;color:var(--ink);max-width:100%;padding:9px 30px 9px 12px;font-size:15px}.textbook-course-heading select{flex:1;width:100%;min-width:0}.textbook-course-heading p{color:var(--muted);margin:8px 0 0;font-size:13px;line-height:1.7}.textbook-save-status{color:var(--mint);align-items:center;gap:6px;max-width:220px;font-size:13px;line-height:1.6;display:flex}.textbook-save-status svg{flex:none}.textbook-workspace{grid-template-columns:250px minmax(0,1fr);align-items:start;gap:20px;display:grid}.textbook-directory{background:var(--white,#fff);border:1px solid var(--line);border-radius:var(--radius-card,20px);box-shadow:var(--shadow-card);max-height:calc(100dvh - 50px);padding:18px;position:sticky;top:20px;overflow-y:auto}.textbook-directory h3{color:var(--deep);align-items:center;gap:8px;margin:0 0 18px;font-size:16px;display:flex}.textbook-unit-label{color:var(--muted);gap:9px;margin-bottom:16px;font-size:13px;display:grid}.textbook-unit-label select{width:100%;font-size:14px}.textbook-topics{gap:8px;display:grid}.textbook-topics button{text-align:left;color:var(--ink);background:0 0;border:1px solid #0000;border-radius:12px;align-items:flex-start;gap:10px;width:100%;min-height:68px;padding:12px 20px 12px 10px;transition:background .15s;display:flex;position:relative}.textbook-topics button:hover:not(:disabled){background:var(--paper,#f5faf7)}.textbook-topics button[aria-current=page]{border-color:color-mix(in srgb,var(--subject-accent) 30%,white);background:var(--subject-tint);color:var(--subject-accent)}.textbook-topic-number{background:var(--paper,#f5faf7);width:30px;height:30px;color:var(--muted);border-radius:10px;flex:none;place-items:center;font-size:13px;font-weight:800;display:grid}.textbook-topics button[aria-current=page] .textbook-topic-number{background:var(--subject-accent);color:#fff}.textbook-topic-copy{gap:5px;min-width:0;display:grid}.textbook-topic-copy strong{font-size:15px;font-weight:700;line-height:1.6}.textbook-topics small{color:var(--muted);font-size:13px;line-height:1.6}.textbook-topics svg{position:absolute;top:18px;right:4px}.textbook-topics button:disabled{opacity:.6;cursor:default}.textbook-body{background:var(--white,#fff);border:1px solid var(--line);border-radius:var(--radius-card,20px);min-width:0;box-shadow:var(--shadow-card);padding:26px;scroll-padding-bottom:150px}.textbook-reading-heading h2{color:var(--ink);margin:0 0 6px;font-size:25px;line-height:1.5}.textbook-reading-heading p{color:var(--muted);margin:0 0 18px;font-size:13px;line-height:1.7}.textbook-body .course-topic-heading{display:none}.textbook-body .illustrated-topic{border:0;padding:0}.textbook-body .course-lab-tabs{margin:18px 0}.textbook-body .course-reading-text{white-space:pre-wrap}.textbook-lab-link{background:var(--subject-tint);border:1px solid color-mix(in srgb,var(--subject-accent) 30%,white);border-radius:var(--radius-control,12px);min-height:44px;color:var(--subject-accent);justify-content:center;align-items:center;gap:8px;padding:9px 13px;font-size:14px;font-weight:700;display:inline-flex}.textbook-welcome{text-align:center;color:var(--muted);padding:40px 20px}.textbook-welcome>svg{margin:0 auto 18px;display:block}.textbook-welcome h2{color:var(--ink);margin:0 0 14px;font-size:23px}.textbook-welcome p{margin:8px 0;font-size:16px;line-height:1.9}.textbook-welcome button{margin:20px auto 0}.textbook-directory-note{color:var(--muted);font-size:13px;line-height:1.9}.textbook-error{background:#fff6e0;border:1px solid #f0d999;border-radius:16px;align-items:center;gap:16px;margin:14px 0;padding:14px 18px;display:flex}.textbook-error p{flex:1;margin:0;font-size:14px;line-height:1.8}.textbook-loading{background:var(--white,#fff);border-radius:var(--radius-card,20px);justify-content:center;align-items:center;gap:9px;padding:50px;font-size:16px;display:flex}.textbook-learning button.textbook-directory-trigger{display:none}.textbook-drawer-overlay{z-index:1200;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#123a3066;justify-content:flex-end;display:flex;position:fixed;inset:0}.textbook-drawer{background:var(--white,#fff);width:min(420px,100vw);height:100dvh;padding:24px;overflow-y:auto;box-shadow:-12px 0 50px #163f3820}.textbook-drawer header{z-index:1;background:var(--white,#fff);justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px;padding:8px 0 16px;display:flex;position:sticky;top:0}.textbook-drawer header h2{margin:0;font-size:20px}.textbook-drawer header button{background:var(--paper,#f5faf7);border:1px solid var(--line);border-radius:var(--radius-control,12px);flex:none;justify-content:center;align-items:center;width:44px;height:44px;display:inline-flex}:is(.textbook-learning button:focus-visible,.textbook-learning select:focus-visible){outline:3px solid var(--subject-accent);outline-offset:3px}.textbook-reading-heading h2:focus{outline:none}@media (max-width:1180px){.textbook-workspace{grid-template-columns:1fr}.textbook-directory{display:none}.textbook-learning button.textbook-directory-trigger{text-align:left;justify-content:flex-start;max-width:100%;margin-bottom:16px;display:flex}.textbook-directory-trigger svg:last-child{margin-left:auto}.textbook-course-heading{gap:12px}.textbook-course-heading label{gap:6px;display:grid}.textbook-course-heading p span{display:block}.textbook-save-status{max-width:170px}}@media (max-width:600px){.textbook-learning{margin-top:12px}.textbook-subject-tabs{gap:8px;margin-bottom:14px}.textbook-subject-tabs button{flex:1;gap:6px;min-width:0;padding:10px 8px;font-size:15px}.textbook-subject-tabs button span{display:none}.textbook-course-heading{flex-wrap:wrap;margin-bottom:16px;padding:14px}.textbook-course-icon{display:none}.textbook-course-heading>div{flex:100%}.textbook-course-heading p span{display:inline}.textbook-save-status{max-width:none}.textbook-body{padding:20px 16px}.textbook-reading-heading h2{font-size:22px}.textbook-welcome{padding:26px 4px}.textbook-welcome h2{font-size:21px}.textbook-error{flex-wrap:wrap}.textbook-drawer{width:100%;padding:20px}.textbook-learning button.textbook-directory-trigger{width:100%;font-size:14px}.textbook-learning[data-subject=chinese]{margin-top:4px}.textbook-learning[data-subject=chinese] .textbook-subject-tabs{margin-bottom:9px}.textbook-learning[data-subject=chinese] .textbook-course-heading{gap:3px;margin-bottom:10px;padding:9px 11px}.textbook-learning[data-subject=chinese] .textbook-course-heading label{align-items:center;gap:6px;display:flex}.textbook-learning[data-subject=chinese] .textbook-course-heading label>span{white-space:nowrap;font-size:12px}.textbook-learning[data-subject=chinese] .textbook-course-heading select{min-height:44px;font-size:13px}.textbook-learning[data-subject=chinese] .textbook-course-heading p{display:none}.textbook-learning[data-subject=chinese] .textbook-save-status{font-size:11px}.textbook-learning[data-subject=chinese] .textbook-reading-heading{display:none}.textbook-learning[data-subject=chinese] .textbook-body{padding:14px 13px}.textbook-learning[data-subject=chinese] button.textbook-directory-trigger{margin-bottom:10px}}@media (prefers-reduced-motion:reduce){.textbook-subject-tabs button,.textbook-topics button{transition:none}.textbook-subject-tabs button:hover:not(:disabled):hover{transform:none}}
