@charset "UTF-8";
/* Getting started uses the same paper, type and controls as the workspace. */
.onboarding-choice,.onboarding-guide{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:clamp(20px,3vw,32px);margin-bottom:28px;max-width:920px}
.onboarding-choice>h2,.onboarding-guide h2{font:400 clamp(24px,3vw,32px)/1.2 var(--serif);margin:0 0 12px}
.onboarding-roles{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:24px 0}
.onboarding-role{display:flex;flex-direction:column;align-items:start;text-align:left;gap:12px;padding:24px;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);min-height:180px}
.onboarding-role:hover{border-color:var(--green)}.onboarding-role strong{font-size:20px}.onboarding-role>span:not(.text-button){color:var(--muted)}.onboarding-role .text-button{margin-top:auto}
.onboarding-guide .section-heading{align-items:start;gap:16px;margin-bottom:8px}.onboarding-guide .section-heading>.text-button{min-height:44px;flex-shrink:0}
.onboarding-next{max-width:640px}.onboarding-next>h3{font-size:20px;margin:4px 0 8px}.onboarding-next>p{margin:8px 0 18px}.onboarding-next>.note{font-size:12px;margin:0}.onboarding-guide details{margin-top:16px}.onboarding-guide summary,.lesson-format-help summary{cursor:pointer;padding:12px 0;min-height:44px;color:var(--green);font-weight:600}
.onboarding-steps{padding-left:24px;margin:12px 0}.onboarding-steps li{padding:10px 0 16px 8px}.onboarding-steps h3{font-size:16px;margin:0;display:flex;align-items:baseline;gap:16px;flex-wrap:wrap}.onboarding-steps p{color:var(--muted);margin:8px 0 12px;max-width:640px}.onboarding-done{font-size:12px;font-weight:500;color:var(--green)}.onboarding-footnote{font-size:13px;color:var(--muted);margin:20px 0 0;padding-top:16px;border-top:1px solid var(--line);max-width:720px}
.lesson-format-help{margin:0 0 20px;max-width:780px}.lesson-format-help dl{margin:0 0 16px}.lesson-format-help dt{font-weight:600;margin:12px 0 4px}.lesson-format-help dd{margin:0;color:var(--muted)}
@media(max-width:650px){.onboarding-roles{grid-template-columns:1fr;gap:12px}.onboarding-role{min-height:0;padding:20px}.onboarding-guide .section-heading{flex-wrap:wrap}.onboarding-guide .section-heading>h2{margin-bottom:0}.onboarding-guide .section-heading>.text-button{margin-top:-8px}.onboarding-next>.button{width:100%}}
:root{--paper:var(--laowai-paper);--white:var(--laowai-surface);--ink:var(--laowai-ink);--muted:var(--laowai-muted);--line:var(--laowai-line);--green:var(--laowai-forest);--soft:color-mix(in srgb,var(--laowai-sage) 42%,var(--laowai-surface));--rust:var(--laowai-danger);--gold:#b48b43;--red:var(--laowai-danger);--sans:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--serif:Georgia,"Times New Roman",serif;--hanzi:"Songti SC","Noto Serif CJK SC","STSong",serif;--radius:var(--laowai-card-radius);font-family:var(--sans);color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.55}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}a{color:inherit}button{border:0;background:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--rust);outline-offset:4px}input,select,textarea{border:1px solid var(--line);border-radius:7px;background:var(--white);padding:11px 13px;max-width:100%}textarea{resize:vertical;min-height:100px;line-height:1.7}label{display:block;font-weight:500}label>input:not([type=checkbox]):not([type=radio]),label>select,label>textarea{display:block;width:100%;margin-top:7px}input[type=checkbox],input[type=radio]{accent-color:var(--green)}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.2}h1{font-family:var(--serif);font-weight:400;font-size:43px;letter-spacing:-1.5px;margin-bottom:9px}h2{font-size:19px;letter-spacing:-.3px}h3{font-size:16px}p{margin-bottom:12px}small{font-size:12px}.muted{color:var(--muted)}.serif{font-family:var(--serif)}.hanzi{font-family:var(--hanzi);letter-spacing:.05em}.eyebrow{font-size:10px;font-weight:650;letter-spacing:.13em;text-transform:uppercase;color:var(--muted)}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.stack{display:flex;flex-direction:column;gap:16px}.spacer{height:16px}.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:10px 16px;border:1px solid var(--line);border-radius:7px;background:var(--white);font-weight:550;text-decoration:none;font-size:13px;white-space:nowrap}.button:hover{border-color:#aeb8ac;background:#f1f3eb}.primary{color:var(--white);background:var(--green);border-color:var(--green)}.primary:hover{background:#183f34;color:var(--white);border-color:#183f34}.quiet{background:none}.small{min-height:32px;padding:6px 10px;font-size:12px}.text-button{padding:5px 0;color:var(--green);font-size:13px;font-weight:550;display:inline-flex;gap:7px;align-items:center;text-decoration:none}.text-button:hover{text-decoration:underline}.danger{color:var(--red)}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:6px}.icon-button:hover{background:var(--soft)}.badge{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:500;padding:4px 8px;border-radius:4px;white-space:nowrap;background:var(--soft);color:var(--green)}.badge.outline{border:1px solid var(--line);background:transparent;color:var(--muted)}.badge.warm{background:#f3e8d8;color:#865d29}.badge.red{background:#f7e8e2;color:var(--red)}.skip{position:fixed;left:10px;top:-70px;background:var(--white);padding:12px;z-index:100}.skip:focus{top:10px}.loading{padding:50px}
/* Persistent workspace */
.sidebar{position:fixed;inset:0 auto 0 0;width:224px;border-right:1px solid var(--line);background:#eceee5;display:flex;flex-direction:column;padding:30px 19px 18px;z-index:20}.brand{text-decoration:none;display:flex;align-items:center;gap:10px;padding:0 12px}.brand-mark{width:33px;height:33px;background:var(--ink);color:var(--paper);display:grid;place-items:center;font:27px var(--serif);border-radius:8px}.brand-name{font-family:var(--serif);font-size:26px;line-height:1.1;letter-spacing:-.7px}.brand small{display:block;font:10px var(--sans);letter-spacing:.03em;color:var(--muted);margin-top:5px}.sidebar-label{margin:45px 12px 12px;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}.nav-link{display:flex;align-items:center;gap:11px;padding:11px 12px;margin-bottom:4px;text-decoration:none;border-radius:7px;color:#5c6a60;font-size:13px;font-weight:500}.nav-link:hover{background:#e0e5d9}.nav-link.active{background:var(--ink);color:var(--white)}.nav-link .count{margin-left:auto;font-size:11px;opacity:.6}.nav-divider{height:1px;background:var(--line);margin:20px 12px}.sidebar-bottom{margin-top:auto;padding:20px 10px 0}.prototype-note{font-size:11px;line-height:1.65;color:var(--muted);padding-top:12px;border-top:1px solid #d3d9ca;margin-top:18px}.prototype-note button{padding:0;text-decoration:underline;text-underline-offset:3px;font-size:11px;color:var(--muted)}.sidebar-bottom .text-button{font-size:12px}.shell{margin-left:224px}.topbar{height:79px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;border-bottom:1px solid var(--line);gap:20px}.global-search{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:12px;padding:9px 0}.global-search kbd{font:11px var(--sans);border:1px solid var(--line);padding:0 6px;border-radius:3px;margin-left:35px}.account{display:flex;align-items:center;gap:10px;font-size:12px}.avatar{display:inline-grid;place-items:center;width:33px;height:33px;flex-shrink:0;background:#dfe6d8;color:var(--green);font-size:11px;font-weight:600;border-radius:50%}.avatar.rust{background:#efe0d1;color:#80533d}.avatar.gold{background:#eee6cf;color:#8a7234}.avatar.sage{background:#dce7df;color:#3a6153}.topbar .mobile-menu{display:none}main{padding:35px 42px 60px;max-width:1600px;margin:auto}.breadcrumb{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:9px;margin-bottom:23px}.breadcrumb a{text-decoration:none}.breadcrumb a:hover{text-decoration:underline}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px}.page-heading>div>p{color:var(--muted);font-size:13px;margin:0}.page-heading .eyebrow{margin-bottom:10px}.summary{display:grid;grid-template-columns:repeat(3,1fr);border-block:1px solid var(--line);padding:21px 0;margin:0 0 31px;max-width:650px}.summary>div{padding-left:26px;border-left:1px solid var(--line)}.summary>div:first-child{padding-left:0;border:0}.summary strong{font-family:var(--serif);font-size:30px;font-weight:400;display:block;line-height:1.1;letter-spacing:-1px}.summary span{display:block;color:var(--muted);font-size:11px;margin-top:6px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 17px}.section-heading h2{margin:0}.class-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.class-card{border:1px solid var(--line);background:var(--white);border-radius:var(--radius);overflow:hidden;transition:transform .15s,border-color .15s;display:flex;flex-direction:column}.class-card:hover{border-color:#acb9a5;transform:translateY(-2px)}.class-card-top{padding:24px 26px 20px;display:flex;justify-content:space-between;align-items:start;gap:15px}.class-card h2{font-size:24px;font-family:var(--serif);font-weight:400;margin:15px 0 7px;letter-spacing:-.6px}.class-card h2 a{text-decoration:none}.class-card-top p{font-size:12px;color:var(--muted);margin:0}.class-monogram{display:grid;place-items:center;border:1px solid #cad4bf;background:#edf1e4;color:var(--green);height:49px;width:49px;border-radius:8px;font-family:var(--hanzi);font-size:24px;flex-shrink:0}.class-card-body{padding:0 26px 22px;flex:1}.lesson-line{display:flex;align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--line);margin-top:4px}.lesson-line>div{min-width:0}.lesson-line strong{display:block;font-size:12px;font-weight:550}.lesson-line span{display:block;font-size:11px;color:var(--muted);margin-top:3px}.lesson-line>.icon{color:#80917c}.class-card-foot{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:13px 26px;background:#fafaf5}.avatar-group{display:flex;align-items:center;padding-left:5px}.avatar-group .avatar{width:27px;height:27px;border:2px solid var(--white);margin-left:-5px;font-size:9px}.avatar-group small{margin-left:7px;font-size:11px;color:var(--muted)}.add-class{border:1px dashed #b9c4ae;border-radius:var(--radius);min-height:230px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:var(--muted);gap:9px}.add-class:hover{background:#eff2e8;color:var(--green)}.add-class .icon{width:24px;height:24px}.two-column{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:30px}.panel{border:1px solid var(--line);border-radius:10px;background:var(--white);padding:22px}.panel h2{font-size:16px}.next-panel{background:#e8eddf;border-color:#d6dfca}.next-panel .hanzi{font-size:24px;line-height:1.7;margin:14px 0 16px}.next-panel h3{font-size:16px;margin-bottom:8px}.next-panel p{font-size:12px;color:#65735f}.next-panel .button{width:100%;margin-top:8px}.rule-list{margin:0;padding-left:17px;font-size:12px;color:var(--muted)}.rule-list li{padding-bottom:10px}.lower-section{margin-top:35px}.empty{padding:42px 25px;border:1px solid var(--line);border-radius:10px;text-align:center;background:var(--white)}.empty h2{font-size:18px}.empty p{color:var(--muted);font-size:13px;max-width:420px;margin:0 auto 18px}.note{font-size:12px;color:var(--muted);line-height:1.7}.notice{border:1px solid #d6dfcc;background:#edf2e5;padding:12px 15px;font-size:12px;border-radius:7px;display:flex;gap:10px;align-items:start}.notice.warning{background:#f8eddf;border-color:#e5d0af;color:#865d29}.error{background:#faece6;color:var(--red);padding:12px 15px;border:1px solid #e4bbab;border-radius:7px}.tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:25px}.tab{padding:0 0 13px;color:var(--muted);font-size:12px;text-decoration:none;border-bottom:2px solid transparent}.tab.active{color:var(--ink);border-color:var(--ink);font-weight:600}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:23px}.search-field{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:7px;padding:0 12px;background:var(--white);min-width:220px}.search-field input{border:0;background:none;padding:11px 0;outline:none;width:100%;font-size:12px}.filter-row{display:flex;gap:6px;flex-wrap:wrap}.filter{border:1px solid transparent;border-radius:5px;padding:7px 11px;font-size:12px;color:var(--muted)}.filter.active{border-color:#c9d4be;background:#e7eddf;color:var(--green)}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:9px;background:var(--white)}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}th{font-size:10px;font-weight:500;color:var(--muted);background:#f9f9f3;padding:13px 18px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:17px 18px;border-bottom:1px solid var(--line);vertical-align:middle}tr:last-child td{border:0}td strong{font-weight:550;display:block}td small{font-size:11px;color:var(--muted)}.progress-track{height:5px;max-width:120px;min-width:70px;background:#e7eadd;border-radius:3px;overflow:hidden;margin-top:7px}.progress-track>span{display:block;height:100%;background:#739368;border-radius:3px}.list-item{padding:17px 0;border-top:1px solid var(--line);display:flex;gap:13px;align-items:center}.list-item:first-child{border-top:0;padding-top:0}.list-item:last-child{padding-bottom:0}.list-item h3{font-size:13px;margin:0 0 5px}.list-item p{font-size:11px;color:var(--muted);margin:0}.lesson-thumb{width:43px;height:48px;border:1px solid #d9ddce;background:#f1f2e9;display:grid;place-items:center;flex-shrink:0;border-radius:5px;font:22px var(--hanzi)}
/* Content library and editor */
.material-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.material-card{border:1px solid var(--line);border-radius:10px;background:var(--white);display:flex;flex-direction:column;overflow:hidden}.material-cover{height:95px;background:#e8eddf;padding:20px 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.material-cover.reading{background:#efe8db}.material-cover.vocabulary{background:#e7ece9}.material-cover .hanzi{font-size:26px;line-height:1.25}.material-cover small{font-size:9px;color:#697563;max-width:70px;text-align:right;text-transform:uppercase;letter-spacing:.08em}.material-content{padding:20px 22px;display:flex;flex-direction:column;flex:1}.material-content h2{font-size:16px;line-height:1.4;margin:11px 0 8px}.material-content p{font-size:12px;color:var(--muted);line-height:1.7;flex:1;margin-bottom:17px}.material-content .row{justify-content:space-between}.material-content .note{font-size:10px}.editor-header{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:23px}.editor-header h1{font-size:31px;margin:0}.editor-layout{display:grid;grid-template-columns:174px minmax(0,1fr) 235px;gap:22px;align-items:start}.lesson-outline{position:sticky;top:22px}.lesson-outline h2,.inspector h2{font-size:11px;color:var(--muted);font-weight:500;margin-bottom:14px}.outline-link{display:flex;gap:9px;text-decoration:none;align-items:center;font-size:11px;line-height:1.4;padding:10px 8px;border-left:2px solid transparent;color:var(--muted)}.outline-link:hover{border-left-color:var(--green);background:var(--soft);color:var(--ink)}.outline-link span:first-child{font-size:9px;opacity:.65}.outline-link span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lesson-paper{border:1px solid var(--line);background:var(--white);border-radius:9px;min-width:0;padding:28px}.lesson-title{font-family:var(--serif);font-size:30px;width:100%;border:0;border-radius:0;padding:0;margin-bottom:6px;letter-spacing:-.6px;background:none}.lesson-subtitle{width:100%;border:0;padding:4px 0;color:var(--muted);font-size:12px;background:none;margin-bottom:22px}.block{position:relative;border-top:1px solid var(--line);padding:22px 0;scroll-margin-top:20px}.block:last-child{padding-bottom:0}.block-label{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;color:var(--muted);font-size:10px}.block-tools{display:flex;gap:1px}.block-tools .icon-button{width:25px;height:25px}.block-tools .icon{width:14px;height:14px}.block h3{font-size:15px;line-height:1.5;margin:0 0 12px}.block p{white-space:pre-line;line-height:1.9;font-size:14px}.block .hanzi-body{font:23px/1.9 var(--hanzi);letter-spacing:.04em}.word-chips{display:flex;flex-wrap:wrap;gap:7px}.word-chip{padding:9px 12px;border:1px solid #dce1d2;border-radius:6px;background:#f4f6ed;text-align:left}.word-chip .hanzi{font-size:18px;display:block}.word-chip small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.word-chip:hover{background:#e7eedb;border-color:#afbf9f}.choice-preview{display:grid;grid-template-columns:1fr 1fr;gap:8px}.choice-option{display:flex;gap:10px;align-items:center;border:1px solid var(--line);border-radius:6px;padding:12px;font-size:15px;background:var(--white);text-align:left}.choice-option .option-key{font:10px var(--sans);color:var(--muted);border:1px solid var(--line);width:21px;height:21px;display:grid;place-items:center;border-radius:4px;flex-shrink:0}.choice-option.selected{border-color:var(--green);background:#edf2e5}.choice-option.correct{border-color:#789a68;background:#edf4e7}.choice-option.incorrect{border-color:#bb725b;background:#f9eee8}.token-row{display:flex;flex-wrap:wrap;gap:7px;margin:11px 0}.token{background:#f0f3e8;border:1px solid #d3ddc8;padding:8px 14px;border-radius:5px;font:20px var(--hanzi)}.token:hover{background:#dfe9d2}.token:disabled{opacity:.25}.answer-zone{min-height:61px;padding:9px 11px;border:1px dashed #b9c6ac;border-radius:7px;margin:13px 0}.answer-zone .token{background:var(--white)}.gap-preview{padding:15px;background:#f6f7ef;border-radius:6px;font:23px/1.8 var(--hanzi)}.inspector{position:sticky;top:20px}.inspector .panel{padding:16px;margin-bottom:15px}.insert-item{display:flex;gap:10px;align-items:center;width:100%;border-top:1px solid var(--line);padding:12px 0;text-align:left;font-size:11px}.insert-item:first-of-type{border-top:0}.insert-item .hanzi{font-size:19px;min-width:31px}.insert-item:hover{color:var(--rust)}.insert-item .icon{margin-left:auto;width:14px;height:14px}.add-block{width:100%;margin-top:18px;border:1px dashed #b8c4ac;padding:13px;border-radius:6px;font-size:12px;color:var(--green);display:flex;justify-content:center;gap:8px;align-items:center}.add-block:hover{background:var(--soft)}.source-link{font-size:10px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}.answer-key{font-size:11px;color:var(--muted);margin-top:11px;border-left:2px solid #cbd7bf;padding-left:9px}.editor-status{font-size:10px;color:var(--muted)}
/* Learner workspace */
.student-shell{max-width:1150px;margin:0 auto;padding:25px 35px 65px}.student-top{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-bottom:25px;margin-bottom:28px;border-bottom:1px solid var(--line)}.student-top .brand{padding:0}.student-layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:28px;align-items:start}.student-intro{padding-bottom:21px}.student-intro h1{font-size:37px}.student-intro p{color:var(--muted);font-size:13px}.student-layout .lesson-paper{padding:30px 35px}.student-sidebar{position:sticky;top:25px}.student-sidebar .panel{margin-bottom:15px}.student-sidebar h2{font-size:14px}.student-sidebar .progress-track{max-width:none;margin-top:12px;height:6px}.student-sidebar .note{font-size:11px}.student-note{font-size:10px;color:var(--muted);margin-top:10px}.feedback{margin-top:14px;padding:13px 15px;border-radius:6px;background:#edf3e5;border:1px solid #cfdfc1;font-size:12px;line-height:1.7}.feedback.bad{background:#faeee6;border-color:#e4c4b3}.feedback strong{display:block;margin-bottom:3px;font-size:12px}.student-block .check-answer{margin-top:15px}.student-block .gap-input{width:100%;margin-top:12px;font:20px var(--hanzi)}.done-message{background:#e6eddd;padding:24px;border-radius:9px;margin-top:25px}.done-message h2{font-family:var(--serif);font-size:27px;font-weight:400;margin-bottom:9px}.review-word{text-align:center;padding:22px 0}.review-word .hanzi{font-size:54px}.review-word .pinyin{font-size:16px;color:var(--muted);margin:12px 0 22px}.review-word .meaning{font-size:20px;margin:22px 0}.review-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mini-table{font-size:11px}.mobile-only{display:none}
/* Dialogs and transient messages */
dialog{width:min(600px,calc(100% - 34px));max-height:85dvh;border:1px solid var(--line);border-radius:12px;padding:0;background:var(--white);color:var(--ink);box-shadow:0 28px 100px #00000026}dialog::backdrop{background:#203c3560;backdrop-filter:blur(3px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:22px 26px 16px;border-bottom:1px solid var(--line)}.dialog-header h2{margin:0;font-family:var(--serif);font-size:25px;font-weight:400}.dialog-body{padding:24px 26px}.dialog-body form{display:flex;flex-direction:column;gap:17px}.dialog-body .button-row{display:flex;justify-content:flex-end;gap:10px;margin-top:9px}.dialog-body .field-hint{font-size:11px;color:var(--muted);margin-top:6px}.dialog-body .choice-row{display:flex;align-items:center;gap:10px;padding:11px 0;border-top:1px solid var(--line);font-size:12px;font-weight:400}.dialog-body .choice-row input{margin:0}.dialog-body .choice-row small{margin-left:auto}.dialog-body h3{margin-top:19px}.dialog-body ul{padding-left:20px}.dialog-body li{margin-bottom:8px}.dialog-body .notice{margin-bottom:20px}.modal-search{width:100%;margin-bottom:18px}.search-result{display:block;padding:13px 0;border-bottom:1px solid var(--line);text-decoration:none}.search-result strong{font-size:13px;font-weight:500}.search-result small{display:block;font-size:10px;color:var(--muted);margin-top:4px}#toast{position:fixed;bottom:24px;left:calc(50% + 110px);transform:translate(-50%,20px);padding:12px 20px;background:var(--ink);color:var(--white);border-radius:7px;font-size:12px;opacity:0;pointer-events:none;transition:.18s;z-index:80;max-width:calc(100% - 30px)}#toast.visible{opacity:1;transform:translate(-50%,0)}.error-banner{margin:15px 42px 0}.dialog-body .error{margin-bottom:14px}[hidden]{display:none!important}
@media(min-width:1500px){main{padding:45px 60px}.topbar{padding:0 60px}.class-grid{gap:24px}.two-column{gap:36px;grid-template-columns:minmax(0,1fr) 310px}.class-card-top{padding:27px 30px 22px}.class-card-body{padding:0 30px 24px}.class-card-foot{padding:15px 30px}}
@media(max-width:1190px){.sidebar{width:195px;padding-inline:13px}.shell{margin-left:195px}main{padding:28px}.topbar{padding:0 28px}.two-column{grid-template-columns:1fr 245px;gap:22px}.class-grid{grid-template-columns:1fr}.editor-layout{grid-template-columns:minmax(0,1fr) 220px}.lesson-outline{display:none}.material-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.class-card-top{padding:20px}.class-card-body{padding:0 20px 18px}.class-card-foot{padding:12px 20px}#toast{left:calc(50% + 95px)}}
@media(max-width:850px){.two-column{grid-template-columns:1fr}.right-column{display:grid;grid-template-columns:1fr 1fr;gap:18px}.right-column .panel{margin:0!important}.class-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.toolbar{align-items:start;flex-direction:column}.page-heading{align-items:start}.page-heading h1{font-size:36px}.page-heading>.row{flex-wrap:wrap;justify-content:flex-end}.editor-layout{grid-template-columns:1fr}.inspector{position:static;display:grid;grid-template-columns:1fr 1fr;gap:16px}.editor-header{align-items:start}.editor-header>.row{flex-wrap:wrap;justify-content:flex-end}.student-layout{grid-template-columns:1fr}.student-sidebar{position:static;display:grid;grid-template-columns:1fr 1fr;gap:16px}.student-sidebar .panel{margin:0}}
@media(max-width:650px){.sidebar{visibility:hidden;transform:translateX(-100%);transition:transform .2s;width:224px;box-shadow:none}.sidebar.open{visibility:visible;transform:translateX(0);box-shadow:0 0 0 100vmax #203c3555}.shell{margin-left:0}.topbar{height:64px;padding:0 20px;gap:12px}.topbar .mobile-menu{display:inline-flex}.topbar .global-search{margin-right:auto}.global-search span,.global-search kbd{display:none}.account>span:not(.avatar){display:none}.account>.badge{display:none}.mobile-only{display:block}main{padding:24px 20px 40px}.breadcrumb{margin-bottom:18px}.page-heading{gap:15px;margin-bottom:24px;flex-wrap:wrap}.page-heading>div:first-child{width:100%}.page-heading>.row{justify-content:flex-start}.page-heading h1{font-size:36px}.summary{margin-bottom:25px;padding-block:18px}.summary strong{font-size:27px}.summary>div{padding-left:17px}.summary span{font-size:10px}.class-grid{grid-template-columns:1fr}.right-column{grid-template-columns:1fr}.material-grid{grid-template-columns:1fr}.material-cover{height:83px}.material-content{padding:18px 20px}.filter-row{gap:2px}.filter{padding:7px 9px}.search-field{min-width:0;width:100%}.toolbar>.row{width:100%}.editor-header{flex-direction:column}.editor-header>.row{justify-content:flex-start}.lesson-paper{padding:20px}.lesson-title{font-size:26px}.inspector{grid-template-columns:1fr}.choice-preview{grid-template-columns:1fr}.student-shell{padding:20px 16px 40px}.student-top .brand small{display:none}.student-top .brand-name{font-size:23px}.student-top>.row{gap:5px}.student-top .button{font-size:10px;padding:7px 9px}.student-intro h1{font-size:31px}.student-layout .lesson-paper{padding:21px}.student-sidebar{grid-template-columns:1fr}.dialog-header{padding:18px 20px}.dialog-body{padding:20px}.dialog-header h2{font-size:23px}.tabs{gap:19px;overflow-x:auto;white-space:nowrap}.table-wrap{max-width:100%}th,td{padding:13px 12px}.error-banner{margin:12px 20px}#toast{left:50%}.student-top .badge{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Exercise authoring and student work */
.exercise{min-width:0}.exercise-prompt{white-space:pre-line;line-height:1.55;font-size:20px;letter-spacing:0}.exercise textarea{width:100%;line-height:1.85}.exercise-instruction{font-size:12px;color:var(--muted);margin:10px 0 14px}.exercise-audio{display:block;width:100%;max-width:560px;margin:12px 0 22px}.audio-credit{font-size:10px;line-height:1.6;margin-top:16px}.exercise .choice-option{text-align:left;width:100%;line-height:1.65;white-space:normal}.choice-option.selected{background:var(--soft);border-color:var(--green)}.choice-option[disabled]{opacity:.85}.blank-marker{display:inline-flex;align-items:center;justify-content:center;min-width:48px;border-bottom:2px solid #738d7e;color:var(--muted);font-size:14px;margin-inline:6px;vertical-align:middle}.cloze-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.cloze-fields label{font-size:12px;color:var(--muted)}.cloze-fields input{font-size:18px;color:var(--ink)}.matching-fields{display:flex;flex-direction:column;gap:12px}.match-field{display:grid;grid-template-columns:minmax(80px,.65fr) minmax(0,1fr);gap:18px;align-items:center;padding-bottom:12px;border-bottom:1px solid var(--line)}.match-field>span{font-size:20px;line-height:1.6}.match-field>select{margin:0!important;font-size:14px}.matching-stage{display:grid;grid-template-columns:1fr 1fr;gap:28px}.matching-stage>div{display:grid;gap:12px}.match-tile{border:1px solid var(--line);border-radius:8px;background:var(--white);padding:13px 16px;line-height:1.7;display:flex;gap:16px;align-items:center;font-size:19px}.match-tile small{color:var(--muted);font:12px var(--sans)}.presentation-answer-line{height:52px;border-bottom:2px solid var(--line);max-width:500px}.answer-receipt{display:flex;align-items:center;gap:12px;padding:15px 0;color:var(--green)}.receipt-mark{display:grid;place-items:center;width:26px;height:26px;background:var(--soft);border-radius:50%}.answer-receipt small{display:block;color:var(--muted);margin-top:3px}.exercise .feedback{margin-top:18px;padding:14px 18px;line-height:1.7}.exercise .feedback strong{display:block;margin-bottom:6px}.exercise .feedback p:last-child{margin-bottom:0}.exercise .solution{white-space:pre-line}.written-answer{white-space:pre-wrap;line-height:1.9;border:1px solid var(--line);background:var(--paper);padding:20px;border-radius:8px;margin-bottom:20px}.live-invitation{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;margin-bottom:12px;border-bottom:1px solid var(--line)}.live-invitation p{margin:7px 0 0}
/* Teacher controller and a separate screen-share presentation */
.live-shell{min-height:100dvh;background:var(--paper)}.live-header{display:flex;align-items:center;gap:24px;padding:18px 28px;border-bottom:1px solid var(--line);background:var(--white)}.live-brand{font:25px var(--serif);text-decoration:none;letter-spacing:-.8px;flex-shrink:0}.live-brand small{display:block;font:10px var(--sans);letter-spacing:.02em;color:var(--muted);margin-top:1px}.live-heading{flex:1;min-width:0}.live-heading h1{font:600 17px/1.4 var(--sans);letter-spacing:0;margin:0 0 3px;overflow-wrap:anywhere}.live-heading p{font-size:11px;color:var(--muted);margin:0}.live-header-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.live-connection-row{display:flex;gap:14px;align-items:center}.connection-status{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:10px;white-space:nowrap}.connection-status:before{content:"";width:6px;height:6px;background:#b48b43;border-radius:50%}.connection-status.is-online:before{background:#53876c}.live-timer{font-variant-numeric:tabular-nums;font-weight:600;color:var(--rust);font-size:17px;white-space:nowrap}.live-workspace{display:grid;gap:22px;padding:24px;max-width:1840px;margin:auto}.teacher-room:not(.presentation-room) .live-workspace{grid-template-columns:175px minmax(0,1fr) 252px}.live-main{margin:0;min-width:0;padding:0!important}.student-room .live-main{width:100%;max-width:900px;margin:auto}.live-outline{padding:13px 0;min-width:0}.live-outline h2{font-size:12px;color:var(--muted);font-weight:500;padding-inline:10px}.live-outline ol{list-style:none;padding:0;margin:0}.live-outline li{margin-bottom:5px}.live-outline button{display:flex;gap:10px;align-items:baseline;padding:10px;width:100%;text-align:left;border:1px solid transparent;border-radius:7px;font-size:12px;line-height:1.65}.live-outline button span{overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.live-outline small{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}.live-outline button:hover{background:#eeefe8}.live-outline button.is-current{background:var(--soft);border-color:#c7d4c5}.live-stage{padding:26px 36px 32px;background:var(--white);border:1px solid var(--line);border-radius:12px;min-height:480px;display:flex;flex-direction:column;min-width:0}.stage-meta{display:flex;justify-content:space-between;gap:12px;align-items:center;text-transform:uppercase;font-size:9px;letter-spacing:.12em;color:var(--muted);padding-bottom:22px}.stage-content{margin-block:auto;width:100%}.stage-content>h3{font-size:22px}.stage-content>p{font-size:18px;line-height:1.95!important;white-space:pre-line}.stage-content.stage-short-text>p{font-size:clamp(22px,3.2vw,39px);line-height:1.85!important}.live-stage .exercise-prompt{font-family:var(--serif);font-size:clamp(22px,2vw,32px);font-weight:400;line-height:1.65;margin-bottom:24px}.live-stage .choice-preview{gap:12px}.live-stage .choice-option{padding:17px 19px;min-height:70px;font-size:17px;background:#fcfcf7}.live-stage .choice-option.selected{background:var(--soft)}.live-stage .choice-option .option-key{font-size:11px}.live-stage .gap-input{font-size:22px;padding:15px}.live-stage .word-chips{margin-top:18px}.live-stage .token{font-size:20px;padding:10px 16px}.live-stage .answer-zone{font-size:23px;min-height:68px;margin-top:16px}.live-stage .note{font-size:11px}.live-stage .answer-key{border:0;border-left:3px solid #76927c;border-radius:0;background:#f0f3e9;padding:14px 20px;font-size:18px;margin-top:24px}.live-stage .answer-key strong{font:11px var(--sans);text-transform:uppercase;letter-spacing:.1em;color:#5a705e}.live-stage .answer-key p{margin:7px 0 0;white-space:pre-line}.live-stage .answer-key p:last-child{font-size:15px}.live-footer{display:flex;justify-content:space-between;gap:16px;font-size:10px;color:var(--muted);padding:18px 2px}.teacher-controls{background:var(--paper);padding-top:18px}.slide-navigation{display:flex;gap:10px;justify-content:space-between}.answer-controls{display:flex;align-items:end;gap:10px;padding-top:14px;flex-wrap:wrap}.timer-control{font-size:10px;color:var(--muted);margin-right:auto}.timer-control select{font-size:12px;min-height:42px;padding:7px 11px;margin-top:4px!important}.live-student-note{padding:22px 2px}.live-student-note>span,.live-student-note>strong{font-weight:600;font-size:15px}.live-student-note p{font-size:12px;color:var(--muted);margin:7px 0 15px}.live-student-note .button{margin-right:8px}.live-ended-actions{display:flex;align-items:center;gap:12px;padding-top:20px;flex-wrap:wrap}.live-ended-actions>strong{width:100%;font-size:18px}.live-roster{padding-top:13px;min-width:0}.roster-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.roster-title h2{font-size:14px;margin:0}.roster-title>span{font-size:11px;color:var(--muted)}.live-roster>.note{font-size:11px;margin:9px 0 20px}.live-person{display:flex;align-items:center;gap:10px;padding:13px 0;border-top:1px solid var(--line)}.live-person .avatar{width:28px;height:28px;font-size:12px;flex-shrink:0}.live-person a{font-size:12px;font-weight:550;text-decoration:none;overflow-wrap:anywhere}.live-person small{display:block;font-size:10px;line-height:1.6;color:var(--muted);margin-top:3px}.live-person .text-button{font-size:10px}.roster-empty{padding:20px 0}.roster-empty h3{font-size:13px}.roster-empty p{font-size:12px;color:var(--muted)}.teacher-notes{font-size:12px;line-height:1.75;border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.teacher-notes summary{cursor:pointer;font-size:11px;color:var(--muted)}.teacher-notes p{margin-top:15px;white-space:pre-line}.class-results{margin-top:26px;padding-top:20px;border-top:1px solid var(--line);font-size:13px}.class-results>strong{display:block}.class-results>span{font-size:11px;color:var(--muted)}.option-distribution{display:grid;gap:7px;margin-top:16px;max-width:460px}.option-distribution>div{display:flex;align-items:center;gap:10px;font-size:11px}.option-distribution>div>span{width:12px;color:var(--muted)}.option-distribution i{display:block;position:relative;height:7px;background:#edf0e7;flex:1;border-radius:2px}.option-distribution i:before{content:"";display:block;height:100%;width:var(--value);background:#78967b;border-radius:2px}.option-distribution strong{font-weight:500;min-width:16px}.presentation-room .live-workspace{display:block;max-width:1320px}.presentation-room .live-stage{min-height:calc(100dvh - 190px);padding:28px 64px 36px}.presentation-room .live-header{padding-block:14px}.presentation-room .live-stage .exercise-prompt{font-size:clamp(28px,3vw,46px)}.presentation-room .live-stage .choice-option{font-size:22px;min-height:90px}.presentation-room .stage-content>p{font-size:26px}.presentation-room .stage-short-text>p{font-size:clamp(30px,4vw,52px)}
/* Evidence-based learning reports */
.progress-summary{display:grid;grid-template-columns:repeat(3,1fr);border-block:1px solid var(--line);padding:22px 0;margin-bottom:28px}.progress-summary>div{padding-inline:25px;border-left:1px solid var(--line)}.progress-summary>div:first-child{padding-left:0;border-left:0}.progress-summary strong{display:block;font:35px var(--serif);letter-spacing:-1px}.progress-summary strong small{font:19px var(--serif);letter-spacing:0;color:var(--muted)}.progress-summary span{display:block;font-size:11px;color:var(--muted);margin-top:7px}.progress-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px}.progress-layout .panel{min-width:0}.skill-row{padding:16px 0;border-top:1px solid var(--line)}.skill-row:first-of-type{border:0}.skill-row>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:10px;flex-wrap:wrap}.skill-row strong{font-size:13px;font-weight:550}.skill-row span{font-size:11px;color:var(--muted)}.skill-row>small{font-size:10px;display:block;margin-top:7px}.skill-meter{height:5px;background:#ebeee5;border-radius:3px;overflow:hidden}.skill-meter>i{display:block;height:100%;background:#7e9c80;max-width:100%}.activity-chart{display:grid;grid-template-columns:repeat(7,1fr);gap:12px;height:190px;margin-top:25px}.activity-day{display:flex;flex-direction:column;align-items:center;gap:9px}.activity-day>strong{font-size:11px;font-weight:500}.activity-day>div{height:130px;width:100%;max-width:23px;display:flex;align-items:end;border-bottom:1px solid var(--line)}.activity-day i{display:block;width:100%;max-height:100%;background:#829b7b;border-radius:3px 3px 0 0}.activity-day span{font-size:10px;color:var(--muted)}.progress-history{padding-block:0}.progress-event{border-top:1px solid var(--line)}.progress-event:first-child{border:0}.progress-event summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:15px;padding:19px 0}.progress-event summary::-webkit-details-marker{display:none}.progress-event summary:after{content:"＋";font-size:15px;color:var(--muted)}.progress-event[open] summary:after{content:"−"}.progress-event summary strong{display:block;font-size:13px;font-weight:550;line-height:1.7;white-space:pre-line}.progress-event summary .grow>span{display:block;font-size:10px;color:var(--muted);margin-top:4px;line-height:1.7}.progress-event-body{padding-bottom:24px;line-height:1.8;font-size:13px}.progress-event-body .answer-text{white-space:pre-wrap;font-size:16px}.progress-event-body>.row{margin-top:17px}.progress-history+.button{margin-top:20px}
@media(max-width:1200px){.teacher-room:not(.presentation-room) .live-workspace{grid-template-columns:minmax(0,1fr) 240px}.live-outline{display:none}.live-header{gap:18px}.live-header-actions{gap:8px}.live-stage{padding:24px 28px}.live-brand{font-size:21px}.live-connection-row{gap:8px}.live-heading h1{font-size:15px}}
@media(max-width:850px){.teacher-room:not(.presentation-room) .live-workspace{grid-template-columns:1fr;max-width:760px}.live-roster{border-top:1px solid var(--line);padding-top:22px}.live-students{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.live-header{flex-wrap:wrap;gap:12px 20px}.live-header-actions{width:100%;justify-content:flex-end}.live-heading{min-width:40%}.live-connection-row{margin-left:auto}.progress-layout{grid-template-columns:1fr}.presentation-room .live-stage{padding:24px 30px}.live-stage{min-height:390px}}
@media(max-width:650px){.live-header{padding:14px 18px;gap:10px 16px}.live-brand{font-size:20px}.live-brand small{font-size:8px}.live-heading h1{font-size:13px;max-height:38px;overflow:hidden}.live-heading p{font-size:9px}.live-connection-row{width:100%;justify-content:space-between;order:3;border-top:1px solid var(--line);padding-top:10px}.live-header-actions{width:100%;justify-content:flex-start;gap:10px;order:4}.live-header-actions .button{font-size:10px;min-height:34px;padding:7px 10px}.live-header-actions .text-button{margin-left:auto;font-size:10px}.live-workspace{padding:18px 14px;gap:20px}.live-stage{padding:20px;min-height:350px;border-radius:10px}.live-stage .exercise-prompt{font-size:24px;margin-bottom:19px}.live-stage .choice-option{padding:14px;font-size:16px;min-height:62px}.live-stage .choice-preview{grid-template-columns:1fr}.live-stage .gap-input{font-size:18px}.live-stage .token{font-size:19px;padding:8px 13px}.live-stage .answer-zone{font-size:20px}.stage-meta{font-size:8px;padding-bottom:19px}.stage-content>p{font-size:17px}.stage-content.stage-short-text>p{font-size:25px}.teacher-controls{padding-top:14px}.slide-navigation .button{font-size:12px;padding:10px 12px}.answer-controls{align-items:center;gap:9px}.answer-controls .button{font-size:11px;padding:10px 11px;flex:1}.timer-control{width:100%;display:flex;align-items:center;gap:10px;margin:0}.timer-control select{margin:0!important;flex:1;max-width:180px}.live-students{grid-template-columns:1fr}.live-person a{font-size:14px}.live-person small{font-size:11px}.live-person .text-button{font-size:12px}.presentation-room .live-stage{padding:20px;min-height:calc(100dvh - 230px)}.presentation-room .live-stage .exercise-prompt{font-size:27px}.presentation-room .live-stage .choice-option{font-size:17px;min-height:65px}.presentation-room .stage-content>p{font-size:22px}.matching-stage{gap:12px}.match-tile{font-size:15px;padding:10px;gap:8px}.match-field{grid-template-columns:minmax(60px,.6fr) minmax(0,1fr);gap:12px}.match-field>span{font-size:18px}.match-field>select{font-size:12px;padding-inline:8px}.cloze-fields{grid-template-columns:1fr}.live-invitation{flex-wrap:wrap;gap:14px}.progress-summary{padding:18px 0;gap:8px}.progress-summary>div{padding-inline:12px}.progress-summary strong{font-size:29px}.progress-summary strong small{font-size:15px}.progress-summary span{font-size:10px;line-height:1.7}.progress-layout{gap:18px}.progress-event summary{flex-wrap:wrap;gap:8px}.progress-event summary .grow{width:100%;flex-basis:100%}.progress-event summary:after{margin-left:auto}.progress-event summary strong{font-size:14px}.progress-event summary .grow>span{font-size:11px}.activity-chart{gap:8px}}
.live-stage .stage-content{max-height:calc(100dvh - 340px);overflow:auto;overscroll-behavior:contain;padding-right:4px}.live-reading p{margin:14px 0;line-height:1.85}.live-reading .reading-chinese{font-family:var(--hanzi);font-size:25px}.live-reading .reading-translation{font-size:17px;color:#617264}.stage-short-text .live-reading .reading-chinese{font-size:34px}.presentation-room .live-stage .stage-content{max-height:calc(100dvh - 260px)}.presentation-room .live-reading .reading-chinese{font-size:34px}.presentation-room .stage-short-text .live-reading .reading-chinese{font-size:46px}.presentation-room .live-reading .reading-translation{font-size:22px}.live-stage{min-height:min(480px,calc(100dvh - 280px))}@media(max-width:650px){.live-stage{min-height:340px}.live-stage .stage-content{max-height:60dvh}.live-reading .reading-chinese,.stage-short-text .live-reading .reading-chinese{font-size:27px}.live-reading .reading-translation{font-size:16px}.presentation-room .stage-short-text .live-reading .reading-chinese{font-size:33px}.presentation-room .live-reading .reading-translation{font-size:18px}}

/* Classroom adapts the shared Laowai system; palette lives in /laowai-design.css. */
.classroom-page { font-size:15px; color:var(--laowai-ink); background:var(--laowai-paper); }
.classroom-page :is(button,a,input,select,textarea,summary):focus-visible { outline:3px solid var(--laowai-forest); outline-offset:3px; }
.classroom-page :is(input,select,textarea) { border-radius:var(--laowai-control-radius); background:var(--laowai-surface); font-size:16px; min-height:44px; }
.classroom-page :is(input[type=checkbox],input[type=radio]) { min-height:0; }
.classroom-page .button { min-height:44px; border-radius:var(--laowai-control-radius); font-size:14px; font-weight:600; }
.classroom-page .button.small { font-size:13px; }
.classroom-page .primary { background:var(--laowai-forest); border-color:var(--laowai-forest); color:#fff; }
.classroom-page .primary:hover { background:#193c2c; border-color:#193c2c; color:#fff; }
.classroom-page .icon-button { min-width:44px; min-height:44px; border-radius:var(--laowai-control-radius); }
.classroom-page .text-button { min-height:44px; font-size:14px; }
.classroom-page .eyebrow { font-size:11px; letter-spacing:.07em; }
.classroom-page .note { font-size:13px; }
.classroom-page .sidebar { width:240px; background:var(--laowai-surface); padding:26px 16px 18px; }
.classroom-page .shell { margin-left:240px; }
.classroom-page .brand { padding:0 10px; gap:12px; }
.classroom-page .brand-mark { width:40px; height:40px; border-radius:10px; background:none; }
.classroom-page .brand-name { font:600 26px/1.1 var(--serif); letter-spacing:-.035em; }
.classroom-page .brand small { font-size:11px; letter-spacing:0; margin-top:6px; }
.classroom-page .nav-link { min-height:46px; font-size:14px; border-radius:var(--laowai-control-radius); color:var(--laowai-muted); }
.classroom-page .nav-link:hover { background:var(--soft); }
.classroom-page .nav-link.active { background:var(--laowai-forest); color:#fff; }
.classroom-page .nav-link.active .count { opacity:.85; }
.classroom-page .workspace-switch { border-radius:var(--laowai-control-radius); background:var(--laowai-paper); margin-top:26px; }
.classroom-page .workspace-switch button { border-radius:9px; min-height:40px; font-size:13px; font-weight:600; }
.classroom-page .workspace-switch [aria-pressed=true] { background:var(--laowai-forest); color:#fff; }
.classroom-page .sidebar-bottom .text-button { font-size:12px; }
.classroom-page .analytics-choice { min-height:36px; font-size:11px; margin-top:4px; }
.classroom-page .global-search { font-size:14px; min-height:44px; }
.classroom-page .account { font-size:13px; }
.classroom-page .avatar { background:var(--soft); color:var(--laowai-forest); }
.classroom-page :is(.panel,.empty,.class-card,.material-card,.lesson-paper,.live-stage,.quick-preview) { border-radius:var(--laowai-card-radius); background-color:var(--laowai-surface); border-color:var(--laowai-line); }
.classroom-page .panel { padding:24px; }
.classroom-page .panel h2 { font-size:19px; }
.classroom-page .class-card h2 { font:650 24px/1.3 var(--font-body); letter-spacing:-.025em; }
.classroom-page .class-card-foot { background:var(--laowai-paper); }
.classroom-page .class-card:hover { transform:none; }
.classroom-page .filter { min-height:44px; font-size:14px; padding:9px 13px; border-radius:var(--laowai-control-radius); }
.classroom-page .filter.active { background:var(--soft); border-color:var(--laowai-line); color:var(--laowai-forest); }
.classroom-page .material-card { --material-accent:var(--laowai-sage); background:linear-gradient(var(--material-accent),var(--material-accent)) top/100% 7px no-repeat,var(--laowai-surface); }
.classroom-page .material-card[data-kind=audio] { --material-accent:var(--laowai-blue); }
.classroom-page .material-card[data-kind=vocabulary] { --material-accent:var(--laowai-honey); }
.classroom-page .material-card[data-kind=grammar] { --material-accent:var(--laowai-pink); }
.classroom-page .material-content { padding:26px 24px 22px; }
.classroom-page .material-content h2 { font:650 20px/1.35 var(--font-body); letter-spacing:-.02em; margin-top:14px; }
.classroom-page .material-content p { font-size:13px; }
.classroom-page .material-content>.row:last-child { flex-wrap:wrap; gap:8px; }
.classroom-page :is(.choice-option,.match-tile,.token,.word-chip,.recording-control,fieldset,.previous-attempt,.notice) { border-radius:var(--laowai-control-radius); }
.classroom-page :is(button.choice-option,button.match-tile,.token,.word-chip) { min-height:44px; }
.classroom-page .choice-option.selected { border-color:var(--laowai-forest); background:var(--soft); }
.classroom-page .choice-option.selected .option-key { background:var(--laowai-forest); color:#fff; }
.classroom-page .exercise-prompt { line-height:1.65; }
.classroom-page .skill-meter>i { background:var(--laowai-forest); }
.classroom-page .lesson-paper .block-tools .icon-button { min-width:44px; min-height:44px; }
.classroom-page dialog { border-radius:var(--laowai-card-radius); background:var(--laowai-surface); }
.classroom-page .dialog-header h2 { font:400 27px/1.25 var(--serif); }
.classroom-page .live-brand { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.classroom-page .live-brand img { width:36px; height:36px; border-radius:9px; }
.classroom-page .live-stage .choice-option { background:var(--laowai-surface); }
.classroom-page .live-stage .choice-option.selected { background:var(--soft); }
.classroom-page .live-stage .exercise-prompt { font-family:var(--font-body); font-weight:600; }
@media(max-width:1190px) {
  .classroom-page .sidebar { width:224px; padding-inline:12px; }
  .classroom-page .shell { margin-left:224px; }
}
@media(max-width:850px) {
  .classroom-page .material-content { padding:26px 20px 20px; }
}
@media(max-width:650px) {
  .classroom-page .sidebar { width:264px; padding-top:32px; }
  .classroom-page .shell { margin-left:0; }
  .classroom-page .global-search { font-size:13px; }
  .classroom-page .panel { padding:22px; }
  .classroom-page .material-content h2 { font-size:21px; }
  .classroom-page .material-content p { font-size:14px; }
  .classroom-page .filter-row { gap:4px; }
  .classroom-page .filter { padding-inline:11px; }
  .classroom-page .dialog-header h2 { font-size:25px; }
  .classroom-page .live-brand { font-size:22px; }
  .classroom-page .live-header-actions .button { min-height:44px; font-size:12px; }
}

.classroom-page .material-content>.hanzi { flex:0; margin:6px 0 14px; line-height:1.5; }
.classroom-page .dialog-body .block>p { font-size:16px; }
.classroom-page .mobile-brand { display:none; }
@media(max-width:650px) {
  .classroom-page .mobile-brand { display:inline-flex; align-items:center; gap:8px; text-decoration:none; font:600 22px/1 var(--serif); letter-spacing:-.035em; }
  .classroom-page .mobile-brand img { border-radius:8px; }
  .classroom-page .topbar { gap:10px; }
}
@media(max-width:360px) { .classroom-page .mobile-brand span { display:none; } }

.classroom-page { --account-green:var(--laowai-forest); --account-paper:var(--laowai-surface); --account-muted:var(--laowai-muted); --account-line:var(--laowai-line); }
.classroom-page .search-field { border-radius:var(--laowai-control-radius); }
.classroom-page .search-field input { min-width:0; background:none; }
.classroom-page #classroom-signin .account-form-card { border:0; border-radius:0; padding:0; box-shadow:none; }
.classroom-page #classroom-signin .account-form-card h1 { font-size:32px; letter-spacing:-.035em; }
/* Authoring controls use the shared paper, ink and green action palette. */
.editor-header{position:sticky;top:0;z-index:8;background:var(--paper,#f3f0e8);padding:12px 0;border-bottom:1px solid var(--line)}
.block-picker-group{margin-bottom:24px}.block-picker-group h3{font-size:13px;color:var(--muted);margin-bottom:10px}.block-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.block-picker .button{min-height:48px;justify-content:flex-start;text-align:left}
.exercise-items{border:0;padding:0;margin:24px 0;min-width:0}.exercise-items legend{font-weight:600;margin-bottom:12px}.author-row{display:flex;align-items:flex-start;gap:8px;padding:8px 0}.author-row-fields{flex:1;min-width:0;display:grid;gap:8px}.author-row input{margin:0;min-height:48px;font-size:16px}.correct-control{position:relative;width:44px;min-height:48px;display:flex;align-items:center;justify-content:center;flex:none;cursor:pointer}.correct-control input{width:24px;height:24px;min-height:24px;accent-color:var(--green)}.correct-control span{position:absolute;right:-1px;bottom:-1px;font-size:10px;color:var(--muted)}.author-row-tools{display:flex;flex-direction:column;flex:none}.author-row-tools button{width:44px;min-height:44px}.item-number{width:24px;line-height:48px;color:var(--muted);font-size:12px;text-align:center}.author-details summary{min-height:48px;display:flex;align-items:center;cursor:pointer;font-weight:600}.author-details[open] summary{margin-bottom:12px}.author-actions{position:sticky;bottom:-24px;background:var(--white);padding:16px 0 8px;margin:16px 0 0;border-top:1px solid var(--line);z-index:2}.author-preview{background:var(--paper);padding:20px}.invitation-summary{padding:16px 0 22px}.invitation-summary h3{font-size:24px;margin:0 0 8px}.invitation-summary p{color:var(--muted);margin:0}.block-more{position:relative}.block-more summary{list-style:none;cursor:pointer;min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center}.block-more summary::-webkit-details-marker{display:none}.block-more[open]>div{position:absolute;right:0;top:46px;display:flex;flex-wrap:wrap;width:154px;padding:8px;gap:2px;background:var(--white);box-shadow:0 8px 24px #0002;border:1px solid var(--line);border-radius:12px;z-index:5}.block-more .icon-button{min-height:44px;min-width:44px}.draft-recovery{margin-bottom:20px}
@media(max-width:700px){.editor-header{top:0;gap:8px;align-items:flex-start;flex-direction:column;padding:12px 0}.editor-header h1{font-size:23px}.editor-header>.row{width:100%;gap:6px}.editor-header .button{padding:9px 12px;min-height:44px;font-size:12px}.editor-header [data-live-action],.editor-header [data-action=assign-dialog]{flex:1}.lesson-paper{padding:18px 14px}.lesson-title{font-size:27px}.block-label{gap:8px;align-items:center}.block-label>span{flex:1;min-width:0}.block-tools{gap:2px}.dialog-body{padding-bottom:max(22px,env(safe-area-inset-bottom))}#block-author input,#block-author textarea,#block-author select{font-size:16px}.author-row.pair .author-row-fields{grid-template-columns:1fr}.block-picker .button{font-size:13px;padding:10px}.author-actions{bottom:-22px}.editor-layout .inspector{grid-column:1}.editor-layout .lesson-outline{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.editor-use{position:relative}.editor-use summary{list-style:none;cursor:pointer}.editor-use summary::-webkit-details-marker{display:none}.editor-use[open]>div{position:absolute;right:0;top:50px;min-width:180px;display:grid;gap:8px;background:var(--white);padding:12px;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px #0002}.editor-actions{flex-wrap:nowrap!important}@media(max-width:700px){.editor-header>div:first-child{display:flex;align-items:baseline;gap:12px}.editor-header .editor-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px}.editor-header .editor-actions .button{width:100%;white-space:nowrap}.editor-use[open]>div{top:48px}}

.board-template-empty{padding:8px 0 16px}.board-template-empty h3{font-size:20px;margin:0 0 12px}.board-template-empty p{color:var(--muted);line-height:1.6;margin:0 0 20px}.board-template-empty .button{margin:0 8px 8px 0}.board-template-options{border:0;padding:0;min-width:0}.board-template-options legend{font-size:13px;color:var(--muted);margin-bottom:12px}.board-template-option{display:flex;gap:14px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--white);margin-bottom:10px;cursor:pointer}.board-template-option input{width:22px;height:22px;min-height:22px;flex:none;margin:0;accent-color:var(--green)}.board-template-option span{display:grid;gap:6px;min-width:0}.board-template-option small{color:var(--muted);font-size:16px}.board-template-option:has(input:checked){border-color:var(--green);background:var(--soft)}

/* The mobile drawer owns interaction until it is dismissed. */
.nav-backdrop{position:fixed;inset:0;z-index:19;border:0;border-radius:0;background:#203c3555;padding:0}
@media(min-width:651px){.nav-backdrop{display:none}}
@media(max-width:650px){body:has(.sidebar.open){overflow:hidden}.classroom-page .sidebar.open{box-shadow:none}}
.classroom-page .material-content h2{margin-top:0}
.classroom-page .material-meta{color:var(--muted);font-size:13px;text-transform:capitalize;margin:8px 0 14px}
.classroom-page .feedback.partial{background:#f4e8cd;border-color:#bc9e62}
.classroom-page .feedback.pending{background:var(--soft);border-color:var(--line)}

.classroom-page .workspace-switch button{min-height:44px}
@media(prefers-reduced-motion:reduce){.classroom-page .sidebar{transition:none}}

/* Language choice remains available beside the account on narrow screens. */
.classroom-language { display:block; flex:0 0 auto; margin-left:auto; }
.classroom-page .classroom-language select { width:128px; max-width:128px; min-height:44px; padding:8px 24px 8px 10px; font-size:14px; }
.classroom-page .classroom-language + .account { margin-left:0; }
@media(max-width:650px) {
  .classroom-page .topbar { gap:4px; padding-inline:12px; }
  .classroom-page .topbar .global-search { min-width:44px; min-height:44px; justify-content:center; flex-shrink:0; }
  .classroom-page .mobile-brand span { display:none; }
  .classroom-page .classroom-language select { width:128px; max-width:128px; }
}
@media(max-width:420px) {
  .classroom-page .topbar { height:auto; min-height:79px; flex-wrap:wrap; padding-block:10px; }
  .classroom-page .classroom-language { order:1; flex-basis:100%; text-align:right; }
  .classroom-page .classroom-language select { margin-left:auto; }
  .classroom-page .topbar .account { margin-left:auto; }
}

.lesson-sources { margin-top:24px; padding-top:14px; border-top:1px solid var(--line); }
.lesson-sources summary { min-height:44px; cursor:pointer; }
.lesson-sources p { overflow-wrap:anywhere; }

/* Translated editor actions keep their full labels on a phone. */
.classroom-page .editor-header { flex-wrap:wrap; }
.classroom-page .editor-layout .inspector,.classroom-page .editor-layout .inspector .panel { min-width:0; }
.classroom-page .editor-layout .inspector .button { max-width:100%; white-space:normal; text-align:center; }
@media(max-width:850px) {
  .classroom-page .editor-layout { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:850px) {
  .classroom-page .editor-header { flex-direction:column; align-items:flex-start; }
  .classroom-page .editor-header>div:first-child { min-width:0; flex-wrap:wrap; }
  .classroom-page .editor-header .editor-actions { display:grid; width:100%; grid-template-columns:repeat(2,minmax(0,1fr)); min-width:0; }
  .classroom-page .editor-actions>[data-action="save-lesson"] { grid-column:1/-1; grid-row:1; }
  .classroom-page .editor-header .editor-actions .button { width:100%; min-width:0; white-space:normal; text-align:center; }
  .classroom-page .lesson-title,.classroom-page .lesson-subtitle { min-width:0; }
}
@media(max-width:650px) {
  .classroom-page .topbar .avatar { min-width:44px; min-height:44px; }
}
