:root{font-family:"Segoe UI","Microsoft YaHei",sans-serif;color:#23283d;background:#f6f7fb;--primary:#5454e8;--muted:#8790a5;--line:#e9ebf2;--radius:15px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #e1e4ef;background:#fff;color:#41485f;padding:10px 15px;border-radius:9px;transition:.16s}button:hover{border-color:#8585f2;background:#f8f8ff}button:disabled{opacity:.5;cursor:not-allowed}button.primary,.primary{background:var(--primary);color:#fff;border-color:var(--primary)}button.primary:hover{background:#4544cf}.danger{color:#c44f5b}.small{padding:6px 10px;font-size:12px}.ghost{border:0;background:transparent}.link{border:0;background:transparent;color:var(--primary);padding:4px}.inline{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.gap{gap:18px}.muted{color:var(--muted)}.label{font-size:12px;color:var(--muted);margin:0 0 8px}.badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:6px;background:#edf0ff;color:#6262ce;font-size:11px;line-height:1.4}.badge.green{background:#e8f7f0;color:#289b78}.badge.orange{background:#fff1dd;color:#b57d25}.badge.gray{background:#f0f1f5;color:#83899b}.badge.red{background:#ffebed;color:#c45468}.demo-banner{background:#fff8e9;border:1px solid #f2dfb7;color:#9c7739;border-radius:10px;padding:10px 14px;font-size:12px;margin-bottom:20px}.sidebar{position:fixed;inset:0 auto 0 0;width:222px;background:#fff;border-right:1px solid var(--line);padding:29px 18px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;gap:11px;align-items:center;font-weight:750;font-size:19px;margin:0 8px 27px;color:#252a45}.brand-mark{width:35px;height:35px;border-radius:10px;background:#5454e8;color:white;display:grid;place-items:center;font-size:20px}.brand small{display:block;font-size:10px;font-weight:500;letter-spacing:2px;color:#969bb6;margin-top:3px}.nav-group{color:#a1a7ba;font-size:10px;letter-spacing:1.5px;margin:22px 13px 8px}.nav{display:flex;gap:12px;text-align:left;align-items:center;border:0;width:100%;padding:11px 13px;margin:3px 0;color:#737b91;border-radius:9px;font-size:13px}.nav.active{background:#efefff;color:#5454df;font-weight:650}.nav .symbol{width:20px;font-size:17px;text-align:center}.sidebar-bottom{margin-top:auto}.profile{border-top:1px solid var(--line);padding:19px 4px 0;display:flex;align-items:center;gap:10px;font-size:13px}.avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#ececff;color:#6d65d8;font-size:14px;font-weight:600;flex-shrink:0}.content{margin-left:222px;min-height:100vh}.topbar{height:76px;padding:0 34px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between}.topbar h1{font-size:18px;margin:0;font-weight:650}.topbar .sub{color:#b2b7c5;font-size:11px;margin-top:5px}.topbar-right{display:flex;gap:15px;align-items:center}.dot{height:7px;width:7px;background:#4dbca0;border-radius:50%;display:inline-block}.main{max-width:1600px;padding:29px 34px 45px}.page-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:25px}.page-title h2{font-size:23px;margin:0 0 7px;font-weight:650;letter-spacing:-.5px}.page-title p{color:#9098aa;font-size:12px;margin:0}.tabs{display:flex;gap:7px;border-bottom:1px solid var(--line);margin-bottom:22px}.tab{border:0;border-radius:0;padding:13px 16px;background:transparent;font-size:13px;color:#949bab}.tab.active{border-bottom:2px solid var(--primary);color:var(--primary)}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.course-card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;transition:.15s}.course-card:hover{border-color:#c8c8f7;transform:translateY(-2px);box-shadow:0 9px 25px #5354e809}.cover{height:150px;background:linear-gradient(125deg,#e9e9ff,#f4effc 65%,#e9f4ff);padding:23px;display:flex;justify-content:space-between;align-items:flex-start;position:relative;overflow:hidden}.cover:after{content:"";width:155px;height:155px;position:absolute;border:1px solid #fff;right:-28px;bottom:-75px;border-radius:50%;box-shadow:0 0 0 23px #ffffff30,0 0 0 48px #ffffff20}.cover-icon{font-size:42px;margin-top:25px;font-weight:300;color:#837ddb;position:relative;z-index:1}.cover-label{font-size:10px;letter-spacing:1.5px;color:#aaa2c6;align-self:flex-end;z-index:1}.cover.flashcard{background:linear-gradient(125deg,#e3f4f7,#eef7fb)}.cover.speech{background:linear-gradient(125deg,#ffeddd,#fff5eb)}.cover.examiner{background:linear-gradient(125deg,#f2e6fc,#f9f3ff)}.card-body{padding:18px 19px}.card-body h3{font-size:15px;margin:2px 0 11px;font-weight:650;line-height:1.5}.card-body p{font-size:12px;color:#939bac;line-height:1.8;margin:0 0 15px;min-height:42px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #f0f1f6;padding-top:13px;font-size:11px;color:#9ba2b3}.toolbar{display:flex;gap:11px;align-items:center;flex-wrap:wrap;margin-bottom:21px}.search{flex:1;min-width:180px;max-width:380px}input,select,textarea{border:1px solid #e2e5ef;border-radius:8px;background:#fff;color:#43495f;padding:10px 11px;width:100%;outline:0;font-size:13px}input:focus,textarea:focus,select:focus{border-color:#7e7fec;box-shadow:0 0 0 3px #5454e809}textarea{resize:vertical;min-height:85px;line-height:1.7}input[type=checkbox],input[type=radio]{width:auto;accent-color:var(--primary)}select.fit{width:160px}label{display:block;font-size:12px;color:#676e85;margin:13px 0 7px}.check{display:flex;align-items:center;gap:9px;font-size:13px;line-height:1.7}.check input{margin:0}.panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px;margin-bottom:20px}.panel h3{font-size:15px;margin:0 0 17px;font-weight:650}.panel h4{font-size:13px;margin:17px 0 9px}.panel p{font-size:13px;line-height:1.8}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:20px}.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:17px}.metric{background:white;border:1px solid var(--line);padding:20px;border-radius:13px}.metric .value{font-size:30px;font-weight:650;letter-spacing:-1px;margin:14px 0 11px}.metric .hint{font-size:10px;color:#a1a7b8}.metric .trend{font-size:11px;color:#54a990}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:12px}table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}th{font-weight:500;color:#9198ab;background:#f9fafe;padding:14px;text-align:left}td{padding:17px 14px;border-bottom:1px solid #f0f1f6;color:#60687f}tr:last-child td{border:0}.empty{padding:65px 22px;text-align:center;color:#a1a8bb;line-height:2}.empty .icon{font-size:40px;color:#c9caeb;margin-bottom:14px}.progress{height:5px;border-radius:5px;background:#eff0f8;overflow:hidden;min-width:90px}.progress div{height:100%;background:linear-gradient(90deg,#7d71ed,#5da4ed);border-radius:5px}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 315px;gap:20px}.editor-section{scroll-margin-top:20px}.section-number{width:24px;height:24px;background:#efefff;color:#6665d9;border-radius:6px;display:inline-grid;place-items:center;margin-right:8px;font-size:11px}.list-row{border:1px solid var(--line);border-radius:9px;padding:13px;margin-top:10px}.weight{width:75px}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}.note{padding:12px;background:#f5f6fc;color:#8b93a6;line-height:1.8;font-size:12px;border-radius:8px}.audit-note{font-size:11px;color:#a6acbd;margin-top:14px}.stat-chart{height:180px;display:flex;align-items:flex-end;gap:14px;padding:20px 6px;border-bottom:1px solid #eff0f6}.bar-group{flex:1;text-align:center;position:relative}.bar{background:linear-gradient(#a09af3,#6867e2);min-height:4px;border-radius:5px 5px 0 0;max-width:45px;margin:auto}.bar-group span{display:block;font-size:10px;color:#a0a7b8;position:relative;top:7px}.login-page{min-height:100vh;background:radial-gradient(ellipse at 25% 20%,#efedff 0,transparent 45%),#f6f7fc;display:grid;place-items:center;padding:25px}.login-card{background:white;padding:36px;border:1px solid #e8e8f3;border-radius:20px;max-width:440px;width:100%;box-shadow:0 20px 70px #35305a08}.login-card h1{font-size:23px;margin:25px 0 8px}.login-card p{font-size:12px;color:#9aa1b4;line-height:1.8}.login-card button.primary{width:100%;margin-top:21px}.login-card .brand{margin:0}.error{color:#c74e66;font-size:12px;line-height:1.7;min-height:20px;margin-top:12px}.login-samples{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.login-samples button{font-size:11px;padding:6px 10px}.mobile-shell{max-width:520px;min-height:100vh;margin:auto;background:linear-gradient(145deg,#eaf1ff00,#eaf1ff66 0,#f8f9ff 42%,#fafbfe 65%);position:relative;padding:25px 22px 90px}.mobile-head{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:13px}.mobile-head .brand{font-size:15px;margin:0;gap:8px}.mobile-head .brand-mark{width:29px;height:29px;font-size:17px}.welcome{padding:31px 0 25px}.welcome .eyebrow{font-size:11px;letter-spacing:2px;color:#9fa6bc}.welcome h1{font-size:28px;line-height:1.5;margin:10px 0}.welcome p{color:#949eb3;font-size:12px}.assistant-card{background:#fff;border:1px solid #eceef8;border-radius:12px;padding:15px;display:flex;align-items:center;gap:12px;margin-bottom:23px;box-shadow:0 4px 18px #6767a807}.assistant-card .spark{width:33px;height:33px;background:#eeebff;color:#7c68d7;border-radius:10px;display:grid;place-items:center;font-size:21px}.assistant-card p{margin:0;font-size:12px;color:#626a82;line-height:1.6}.mobile-nav{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:27px}.mobile-nav button{font-size:10px;padding:0;background:transparent;border:0;line-height:1.8;color:#9ba3b5}.mobile-nav .nav-icon{width:45px;height:45px;margin:0 auto 7px;display:grid;place-items:center;background:#fff;border:1px solid #efedf9;border-radius:15px;font-size:21px;color:#9c92d9}.mobile-nav button.active{color:#5b59de}.mobile-nav button.active .nav-icon{background:#ededff;color:#5d57dc;border-color:#deddfb}.mobile-section-title{font-size:17px;display:flex;justify-content:space-between;align-items:center;margin-bottom:17px;font-weight:650}.mobile-section-title small{font-size:11px;color:#a0a8bb;font-weight:400}.mobile-card{background:#fff;border:1px solid #eceef5;border-radius:14px;padding:17px;margin-bottom:15px}.mobile-card h3{font-size:15px;margin:7px 0 11px;line-height:1.6}.mobile-card p{font-size:12px;color:#939caf;line-height:1.8;margin:8px 0}.mobile-card .cover{height:145px;margin:-17px -17px 15px;border-radius:14px 14px 0 0}.mobile-card .bottom{display:flex;align-items:center;justify-content:space-between;margin-top:15px}.mobile-card .bottom span{font-size:11px;color:#9ba4b7}.mobile-back{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.mobile-back strong{font-size:14px}.mobile-score{background:linear-gradient(130deg,#e8f0ff,#ede9ff);border-radius:16px;padding:29px;text-align:center;margin-bottom:20px}.mobile-score .number{font-size:66px;font-weight:700;color:#6260dc;letter-spacing:-4px}.mobile-score p{color:#818aae;font-size:12px}.dimension{margin:12px 0;background:white;border:1px solid #edeef5;border-radius:12px;padding:18px}.dimension h4{font-size:13px;margin:0}.dimension p{font-size:12px;color:#8993a8;line-height:1.9}.quote{font-size:12px;background:#f5f6fc;padding:12px;border-left:3px solid #aaa2ef;border-radius:4px;line-height:1.8;color:#8a92a8;margin:12px 0}.messages{min-height:260px;max-height:55vh;overflow:auto;padding:5px 0 20px;display:flex;flex-direction:column;gap:15px}.bubble{max-width:89%;padding:14px 16px;font-size:13px;line-height:1.9;border-radius:14px;background:#fff;border:1px solid #eceef5;align-self:flex-start;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.user{background:linear-gradient(120deg,#6967ef,#628ce7);color:white;border:0;align-self:flex-end}.bubble .speaker{font-size:10px;opacity:.7;display:block;margin-bottom:5px}.chat-compose{position:sticky;bottom:0;background:#f8f9fd;border-top:1px solid #eee;padding-top:12px;display:flex;gap:8px;align-items:flex-end}.chat-compose textarea{min-height:46px;max-height:120px;font-size:13px}.chat-status{font-size:11px;color:#9da5b8;text-align:center;margin:16px 0}.mobile-actions{display:flex;gap:10px;margin-top:20px}.mobile-actions button{flex:1}.question-options{display:grid;gap:11px;margin:20px 0}.question-options .check{border:1px solid #e6e8f4;border-radius:9px;padding:13px;background:white}.sticky-action{position:sticky;bottom:12px;padding-top:12px}.sticky-action button{width:100%;border-radius:24px;padding:14px}.speech-slide{background:linear-gradient(120deg,#eaeaff,#f1f5ff);padding:29px;border-radius:12px;margin:16px 0;min-height:190px}.speech-slide h2{font-size:20px}.speech-slide p{font-size:14px;line-height:1.9}.script{line-height:2;font-size:14px;padding:20px;background:#fff;border-radius:12px;margin:20px 0}.boot{padding:70px;text-align:center;color:#8b92a8}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);padding:11px 19px;background:#30364e;color:white;border-radius:10px;z-index:50;font-size:12px;opacity:0;pointer-events:none;transition:.2s}#toast.show{opacity:1}dialog{border:1px solid #e7e8f2;border-radius:15px;padding:25px;width:min(660px,94vw);max-height:88vh;overflow:auto;color:#333951;box-shadow:0 30px 100px #24233322}dialog::backdrop{background:#23263b44}dialog h2{font-size:19px;margin:0 0 20px}.modal-buttons{display:flex;justify-content:flex-end;gap:10px;margin-top:23px}.modal-head{display:flex;justify-content:space-between;align-items:center}.report-tabs{display:flex;gap:8px;justify-content:center;margin-bottom:20px}.footer{font-size:10px;letter-spacing:.3px;color:#aab0bf;margin:25px 0 0;text-align:center}.loading{opacity:.65;pointer-events:none}.tree-item{padding:10px;background:#f7f8ff;border-radius:6px;font-size:13px;margin:6px 0}.top-error{padding:20px;background:#fff1f1;color:#a8495b;border-radius:12px}.answer-result{background:#edf7f0;padding:13px;border-radius:9px;font-size:12px;color:#41875c;margin-top:15px}.row-choices{max-height:260px;overflow:auto;border:1px solid #eee;border-radius:8px;padding:10px}.row-choices label{margin:9px}.flex1{flex:1}.spacer{height:10px}.pill{border-radius:20px;font-size:11px;padding:7px 12px}.mobile-shell .demo-banner{margin-top:15px;margin-bottom:10px}.mobile-shell .panel{padding:17px}.mini-brand{font-size:10px;letter-spacing:1px;color:#a6adbe;margin-top:40px;text-align:center}svg{vertical-align:middle}.hidden{display:none!important}@media(min-width:1400px){.cards{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1050px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-layout{grid-template-columns:1fr}.grid4{grid-template-columns:repeat(2,1fr)}.sidebar{width:190px}.content{margin-left:190px}.main{padding:24px}.topbar{padding:0 24px}}@media(max-width:760px){.sidebar{position:static;width:100%;height:auto;padding:15px;display:block;border-bottom:1px solid var(--line)}.sidebar .brand{margin:0 0 12px}.sidebar .nav-group,.sidebar-bottom{display:none}.sidebar nav{display:flex;overflow:auto;gap:5px}.sidebar .nav{width:auto;white-space:nowrap;font-size:11px;padding:8px}.content{margin:0}.topbar{height:65px;padding:0 18px}.main{padding:20px 16px}.topbar-right .muted{display:none}.cards{grid-template-columns:1fr}.grid2,.field-pair{grid-template-columns:1fr}.grid4{gap:10px}.metric{padding:16px}.metric .value{font-size:24px}.page-title h2{font-size:20px}.page-title{align-items:flex-start}.page-title .inline{flex-wrap:wrap;justify-content:flex-end}.cover{height:135px}.mobile-shell{padding:20px 18px 40px}.mobile-shell .grid2{grid-template-columns:1fr 1fr}.mobile-shell .main{padding:0}.modal-buttons{flex-wrap:wrap}}

.cover > .badge{flex-shrink:0;white-space:nowrap}.cover-icon{position:absolute;left:28px;bottom:27px;margin:0}.cover-label{position:absolute;right:20px;bottom:22px;font-size:9px;max-width:100px;text-align:right;line-height:1.6}
.sidebar nav{flex:1;min-height:0;overflow-y:auto}.sidebar .brand,.sidebar-bottom{flex-shrink:0}.sidebar-bottom{padding-top:10px}@media(max-width:760px){.sidebar nav{overflow-x:auto;overflow-y:hidden}.grid2[style]{grid-template-columns:1fr!important}}
.chat-compose textarea{flex:1;min-width:0;width:0}.chat-compose button{flex-shrink:0;white-space:nowrap;min-width:44px}
.slide-preview{position:relative;width:100%;overflow:hidden;background:#f1f2f7;border-radius:8px}.slide-preview img{position:absolute;width:100%;max-width:none;height:auto;left:0;top:0}.speech-slide .slide-preview{margin:12px 0}

/* K187: shared readable surfaces; existing controls and data remain unchanged. */
:root{--muted:#59647b;--line:#dfe3ee;color:#242b40;font-size:15px;line-height:1.6;--primary:#5054d8}
body{overflow-wrap:break-word}
button{font-size:14px;line-height:1.45;min-height:40px}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #7479e8;outline-offset:3px}
button:disabled{opacity:.65}
input,select,textarea{font-size:15px;color:#28324a;border-color:#c9d0df;min-height:42px}
input::placeholder,textarea::placeholder{color:#69758c;opacity:1}
input[type=checkbox],input[type=radio]{min-height:0;flex-shrink:0}
input:focus,textarea:focus,select:focus{border-color:#5d62d8;box-shadow:0 0 0 3px #5454e81c}
label,.check{font-size:14px;color:#414d66}
.small{font-size:13px;min-height:34px;padding:7px 11px}
.link{min-height:34px}
.inline,.page-title,.topbar,.card-footer,.mobile-back,.mobile-head{min-width:0}
.inline>*,.editor-layout>*,.grid2>*,.cards>*,.learner-grid>*,.learner-course-grid>*{min-width:0}
.label,.audit-note,.metric .hint,.chat-status,.footer,.mini-brand{font-size:13px;color:var(--muted)}
.muted{color:var(--muted)}
.badge{font-size:12px;font-weight:600;color:#4547aa;max-width:100%;overflow-wrap:anywhere}
.badge.green{color:#176b50}.badge.orange{color:#865512}.badge.gray{color:#555f74}.badge.red{color:#a42e47}
.note{font-size:14px;line-height:1.75;color:#485571;background:#eff2fb;border:1px solid #e0e5f3}
.error{font-size:14px;color:#a62e45;overflow-wrap:anywhere}
.demo-banner{font-size:14px;color:#79521c}
.empty{padding:36px 20px;font-size:15px;color:#5b667f}
.panel{padding:20px;margin-bottom:18px}
.panel h3{font-size:17px;margin-bottom:14px}.panel h4{font-size:15px}
.panel p{font-size:15px;line-height:1.75}
.brand small{font-size:11px;letter-spacing:.6px;color:#64708a}
.nav-group{font-size:12px;color:#626e86;letter-spacing:.5px}
.nav{font-size:14px;color:#515d77}.nav.active{color:#4145b6;background:#eeeefe}
.main{padding:24px 28px 40px}
.topbar .sub{font-size:13px;color:var(--muted)}
.page-title{margin-bottom:20px}.page-title h2{font-size:24px;letter-spacing:0}
.page-title p{font-size:14px;color:var(--muted);line-height:1.6}
.tabs{flex-wrap:wrap}.tab{font-size:14px;color:#59647c}
.toolbar{gap:10px;margin-bottom:18px}.toolbar .search{max-width:400px}
.toolbar select.fit{flex:0 1 175px;width:175px;max-width:100%}
#course-count{font-size:14px;color:#485571;white-space:nowrap}
.cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.course-card{display:flex;flex-direction:column;border-color:#dfe3ee}
.course-card:hover{transform:none;box-shadow:0 5px 18px #333b6910}
.course-card .cover{height:84px;padding:14px 16px;flex-shrink:0}
.course-card .cover-icon{font-size:29px;left:auto;right:18px;bottom:16px}
.course-card .cover-label{display:none}
.course-card .card-body{padding:16px;display:flex;flex-direction:column;flex:1}
.card-body h3{font-size:17px;line-height:1.55;overflow-wrap:anywhere;margin:0 0 10px}
.card-body p{font-size:14px;color:#59647b;line-height:1.65;min-height:46px;margin-bottom:12px}
.course-meta{font-size:13px;color:#59647b;display:flex;flex-wrap:wrap;gap:6px 12px;margin-bottom:10px}
.card-footer{flex-wrap:wrap;gap:10px;font-size:13px;color:#59647b;margin-top:auto;padding-top:12px}
.course-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;width:100%}
.course-actions button{max-width:100%;white-space:normal}
.table-wrap{min-width:0;max-width:100%;overflow:auto;overscroll-behavior-x:contain}
table{font-size:14px;white-space:normal;min-width:0}
.table-wrap table{min-width:640px}
th{font-size:13px;font-weight:650;color:#485571;padding:12px 14px;white-space:nowrap}
td{padding:12px 14px;color:#36425c;line-height:1.65;overflow-wrap:anywhere;max-width:340px}
.table-wrap td:first-child{min-width:120px}
.table-wrap th:last-child,.table-wrap td:last-child{min-width:150px}
td:last-child button{margin:2px 6px 2px 0;white-space:normal;vertical-align:middle}
td .muted,td .label{font-size:13px}
.metric .hint,.bar-group span{color:#59647b;font-size:12px}
.login-card{padding:32px;max-width:460px}
.login-card h1{font-size:25px;margin-top:24px}
.login-card p{font-size:15px;color:#56627b;line-height:1.75}
.login-card .brand{font-size:21px}.login-card label{font-size:15px}
.login-card button.primary{min-height:46px;font-size:16px}
.login-samples button{font-size:13px}

/* Course editor: one sticky header and an independently scrollable chapter row. */
.editor-page{--editor-header-height:76px}
.editor-page .editor-topbar{position:sticky;top:0;z-index:25;min-height:76px;height:auto;padding:14px 28px;gap:16px}
.editor-topbar>.inline{flex-wrap:wrap}
.editor-topbar>.inline:last-child{flex-shrink:0}
.editor-topbar>.inline:first-child{flex:1;flex-wrap:nowrap;overflow:hidden}
.editor-topbar h1{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.editor-section-nav{position:sticky;top:var(--editor-header-height,76px);z-index:24;display:flex;align-items:center;gap:8px;overflow-x:auto;max-width:100%;padding:10px 28px;background:#f6f7fb;border-bottom:1px solid var(--line);scrollbar-width:thin}
.editor-section-nav a{display:block;flex-shrink:0;padding:7px 12px;border:1px solid #d8ddef;border-radius:8px;background:#fff;color:#414aa8;text-decoration:none;font-size:14px;white-space:nowrap}
.editor-section-nav a:hover{background:#ededff;border-color:#999fe3}
.editor-page .editor-section,.editor-page #editor-section-0,.editor-page #editor-references,.editor-page #editor-readiness{scroll-margin-top:150px}
.editor-page .editor-layout{grid-template-columns:minmax(0,1fr) 300px;gap:18px}
.editor-page .field-pair{grid-template-columns:repeat(2,minmax(0,1fr))}
.editor-page pre{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere}
.editor-page #editor-error,.editor-page .error{scroll-margin-top:150px}
.editor-page .list-row .inline{flex-wrap:wrap}

/* Learner page widths are independent of the admin layout and individual grids. */
.mobile-shell{width:100%;max-width:780px;padding:24px 28px 48px}
.learner-home{max-width:1240px}
.learner-prepare{max-width:900px}
.learner-training{max-width:980px}
.learner-report{max-width:1040px}
.learner-detail{max-width:800px}
.mobile-head{font-size:14px;flex-wrap:wrap}
.welcome,.learner-welcome{padding:20px 0 16px}
.welcome h1,.learner-welcome h1{font-size:27px;line-height:1.45;margin:8px 0}
.welcome p,.learner-welcome p{font-size:15px;color:#59647b;margin:6px 0}
.welcome .eyebrow{font-size:12px;letter-spacing:.5px;color:#59647b}
.mobile-nav{max-width:760px;margin:8px auto 24px;gap:12px}
.mobile-nav button{font-size:14px;color:#56617b;min-height:72px}
.mobile-nav .nav-icon{color:#6865b7;border-color:#dfe2ef;margin-bottom:5px}
.mobile-nav button.active{color:#4145b6;font-weight:650}
.mobile-section-title{font-size:18px;margin:18px 0 14px;gap:12px;flex-wrap:wrap}
.mobile-section-title small{font-size:13px;color:#59647b}
.learner-grid,.learner-course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.learner-grid>.mobile-card,.learner-course-grid>.mobile-card{margin:0;display:flex;flex-direction:column}
.learner-grid>.empty,.learner-grid>.note,.learner-grid>.mobile-section-title,.learner-grid>.recovery-group,.learner-grid>.learner-course-catalog,.learner-course-grid>.empty{grid-column:1/-1}
.learner-course-catalog{min-width:0}
.learner-course-catalog .toolbar{margin-top:12px}
.mobile-card{padding:18px;border-color:#dfe3ee}
.mobile-card h3{font-size:17px;overflow-wrap:anywhere}
.mobile-card p{font-size:14px;line-height:1.75;color:#59647b}
.mobile-card .cover{height:90px;margin:-18px -18px 14px;padding:14px 16px}
.mobile-card .cover-icon{font-size:30px;bottom:16px;left:auto;right:18px}
.mobile-card .cover-label{display:none}
.mobile-card .bottom{gap:10px;flex-wrap:wrap;margin-top:auto;padding-top:14px}
.mobile-card .bottom span{font-size:13px;color:#59647b}
.recovery-group{margin:16px 0 22px}
.recovery-group>.mobile-card{margin-bottom:10px}
.recovery-more{background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px 16px}
.recovery-more>summary{color:#424ab0;font-size:14px;cursor:pointer;padding:3px 0}
.recovery-more[open]>summary{margin-bottom:12px}
.mobile-back{gap:12px;margin-bottom:18px;flex-wrap:wrap}
.mobile-back strong{font-size:16px;overflow-wrap:anywhere;flex:1;text-align:center}
.mobile-actions{flex-wrap:wrap}.mobile-actions button{min-width:120px}
.learner-prepare .sticky-action{background:#f8f9fd;padding-bottom:8px}

/* Training: keep long text inside the reading column and separate ending. */
.training-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:12px 0;color:#485571;font-size:14px}
.training-toolbar [role=status],#voice-playback-status{min-width:0;overflow-wrap:anywhere;font-size:14px;color:#56617b}
.chat-status{font-size:14px;color:#485571;margin:12px 0}
.messages{min-height:280px;max-height:52vh;max-height:52dvh;gap:14px;padding:12px 0 20px;scrollbar-gutter:stable}
.bubble{font-size:15px;line-height:1.8;max-width:86%;color:#2f3b55}
.bubble.user{color:#fff;background:linear-gradient(120deg,#5757ce,#456ac7)}
.bubble .speaker{font-size:12px;opacity:1;color:#66728a}
.bubble.user .speaker{color:#eef0ff}
.chat-compose{z-index:8;gap:10px;padding:12px 0 10px;border-color:#dce1ed;background:#f8f9fd;isolation:isolate}
.chat-compose textarea{font-size:16px;min-height:70px;max-height:180px;line-height:1.6}
.chat-compose button{min-height:42px;font-size:14px}
#message-status{font-size:14px;line-height:1.7;color:#485571;min-height:24px;padding:6px 0;overflow-wrap:anywhere}
.training-finish{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:18px;margin-top:20px}
.training-finish button{min-height:42px}
.speech-slide{padding:24px}.speech-slide h2{font-size:22px;overflow-wrap:anywhere}
.script{overflow-wrap:anywhere;font-size:16px}

/* Reports: state and limits stay visible; only supplied disclosure bodies fold. */
dialog{max-width:calc(100vw - 32px);padding:26px;font-size:15px;overscroll-behavior:contain}
dialog.report-dialog{width:min(1120px,calc(100vw - 48px));max-height:90vh;max-height:90dvh;padding:28px}
dialog.report-dialog .mobile-shell{max-width:none;min-height:0;padding:0}
.report-dialog .panel,.learner-report .panel{padding:20px}
.report-tabs{flex-wrap:wrap;gap:8px}
.mobile-score{padding:24px}.mobile-score .number{font-size:56px;letter-spacing:-2px;line-height:1.25;overflow-wrap:anywhere}
.mobile-score p{font-size:14px;color:#4e5b80}
.dimension{padding:20px;min-width:0}
.dimension h4{font-size:16px;overflow-wrap:anywhere}
.dimension .inline{flex-wrap:wrap;gap:8px}
.dimension p,.quote{font-size:14px;color:#505e78;line-height:1.8;overflow-wrap:anywhere}
.quote{border-left-color:#7776d3;background:#f0f2fa;white-space:pre-wrap}
.report-details{border:1px solid var(--line);background:#fff;border-radius:12px;margin:16px 0;padding:0 18px;min-width:0}
.report-details>summary{cursor:pointer;font-size:16px;font-weight:650;color:#414aa8;padding:16px 0;overflow-wrap:anywhere}
.report-details[open]{padding-bottom:14px}
.report-details .panel:last-child{margin-bottom:0}
.report-dialog pre,.learner-report pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}
.modal-buttons{flex-wrap:wrap}

@media(min-width:1600px){.cards{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1199px){
 .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .learner-grid,.learner-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .editor-page .editor-layout{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:900px){
 .editor-page .editor-topbar{position:relative;min-height:0;padding:14px 20px;flex-wrap:wrap}
 .editor-section-nav{top:0;padding:10px 20px}
 .editor-page .editor-section,.editor-page #editor-section-0,.editor-page #editor-references,.editor-page #editor-readiness,.editor-page #editor-error{scroll-margin-top:78px}
}
@media(max-width:760px){
 .main{padding:20px 16px 32px}.topbar{padding:12px 16px;min-height:65px;height:auto;gap:10px;flex-wrap:wrap}
 .topbar h1{font-size:18px}.page-title{flex-wrap:wrap}.page-title h2{font-size:22px}
 .page-title>.inline{width:100%;justify-content:flex-start}
 .cards{grid-template-columns:minmax(0,1fr)}
 .toolbar .search{min-width:0;flex-basis:100%;max-width:none}
 .toolbar select.fit{flex:1 1 140px;width:auto}
 .sidebar .nav{font-size:13px;min-height:40px}
 .panel{padding:16px}.login-card{padding:25px}.login-page{padding:20px 16px}
 .editor-section-nav{position:relative;padding:10px 16px}
 .editor-page .editor-topbar{padding:12px 16px}
 .editor-topbar>.inline:last-child{width:100%;flex-wrap:wrap}
 .editor-topbar>.inline:last-child button{flex:1}
 .editor-page .field-pair{grid-template-columns:minmax(0,1fr)}
 .editor-page .editor-section,.editor-page #editor-section-0,.editor-page #editor-references,.editor-page #editor-readiness,.editor-page #editor-error{scroll-margin-top:20px}
 .mobile-shell{max-width:100%;padding:20px 16px 32px}
 .learner-grid,.learner-course-grid{grid-template-columns:minmax(0,1fr)}
 .mobile-nav{gap:6px;margin-bottom:20px}.mobile-nav button{font-size:13px}
 .mobile-nav .nav-icon{width:42px;height:42px}
 .welcome,.learner-welcome{padding:16px 0 12px}.welcome h1,.learner-welcome h1{font-size:25px}
 .mobile-shell .grid2{grid-template-columns:repeat(2,minmax(0,1fr))}
 .messages{min-height:240px;max-height:46vh;max-height:46dvh}
 .bubble{max-width:94%;padding:12px 14px}
 .chat-compose{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;padding:10px 0}
 .chat-compose textarea{grid-column:1/-1;width:100%;min-height:76px;max-height:160px}
 .chat-compose button{white-space:normal;min-height:42px}
 .chat-compose button[type=submit]{justify-self:stretch}
 .training-finish{justify-content:stretch}.training-finish button{flex:1}
 dialog,dialog.report-dialog{width:calc(100vw - 24px);max-width:calc(100vw - 24px);padding:18px;max-height:90vh;max-height:90dvh}
 .report-dialog .panel,.learner-report .panel,.dimension{padding:16px}
 .report-details{padding-left:14px;padding-right:14px}
 .mobile-score .number{font-size:48px}
 .speech-slide{padding:18px}.speech-slide h2{font-size:20px}
}

/* K194 / approved D: white learning surfaces, purple actions, local imagery. */
:root{--primary:#6d28d2;--muted:#595c64;--line:#e0e1e6;--radius:10px;color:#2d2f31;background:#f7f9fa;font-family:"Segoe UI","Microsoft YaHei",sans-serif}
body{background:#f7f9fa;color:#2d2f31}
button,input,select,textarea{border-radius:8px;color:#2d2f31}
button{border-color:#c9cbd2;font-weight:550;background:#fff}
button:hover{border-color:#6d28d2;background:#f6f2ff}
button.primary,.primary{background:#6d28d2;border-color:#6d28d2;color:#fff}
button.primary:hover{background:#5620a8;border-color:#5620a8}
button:disabled{opacity:1;color:#767980;background:#f0f1f3;border-color:#d9dbe0;cursor:not-allowed}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #9d70df;outline-offset:3px}
input:focus,select:focus,textarea:focus{border-color:#6d28d2;box-shadow:0 0 0 3px #6d28d219}
.link{color:#6d28d2}.muted,.label{color:#595c64}.danger,.error{color:#a22b3c}
.sidebar{width:224px;padding:22px 14px;background:#fff;border-color:#e4e4ea}
.brand{color:#242229;font-size:22px;letter-spacing:-.5px}.brand-mark{background:#6d28d2;border-radius:10px}
.brand small,.nav-group{color:#63656e;letter-spacing:0}
.nav{color:#454750;border-radius:6px;padding:12px 14px;font-size:15px}
.nav.active{background:#f0e7ff;color:#6d28d2;box-shadow:inset 3px 0 #6d28d2}
.avatar{background:#f0e7ff;color:#6d28d2}.content{margin-left:224px}
.topbar{background:#fff;border-color:#e4e4ea;min-height:70px}.topbar h1{font-size:19px;color:#26252a}
.main{max-width:1640px;padding:28px 32px 42px}.page-title h2{font-size:28px;font-weight:750;color:#242229}
.page-title p{color:#595c64}.tabs{border-color:#dedfe5}.tab.active{color:#6d28d2;border-color:#6d28d2}
.toolbar{padding:0;gap:12px}.toolbar input,.toolbar select{min-height:44px;background:#fff}
#course-status-filter,#course-directory-filter{min-width:140px}#course-count{color:#595c64}
.cards,.course-grid{gap:20px;grid-template-columns:repeat(3,minmax(0,1fr))}
.course-card,.mobile-card,.panel,.dimension,.metric{border-radius:9px;border-color:#dedfe5;box-shadow:none;background:#fff}
.course-card:hover{border-color:#b8a0db;box-shadow:0 3px 14px #3024470c}
.course-card .cover,.mobile-card .cover{height:auto;aspect-ratio:16/9;padding:12px 14px;border-radius:0;background:#f0eafa;isolation:isolate}
.cover:after{content:none}.cover-icon{color:#6d28d2}.cover>.badge{position:relative;z-index:2;background:#ffffffed;color:#54219b;box-shadow:0 1px 4px #2d23451a}
.course-card .card-body{padding:16px}.card-body h3,.mobile-card h3{font-size:18px;font-weight:700;color:#242229;line-height:1.5}
.card-body p,.mobile-card p{color:#595c64;font-size:14px;line-height:1.7}
.card-footer{border-color:#ececf0;color:#64666f}.course-actions{gap:8px}.course-meta{gap:6px;margin:2px 0 12px}
.badge{background:#f0e7ff;color:#6423bc;border-radius:6px}.badge.green{background:#eaf7ef;color:#17683c}.badge.orange{background:#fff2dc;color:#8b4b0e}.badge.red{background:#ffedf0;color:#a22b3c}.badge.gray{background:#f0f1f3;color:#53565f}
.learning-cover-sheet{position:relative;background-image:url('assets/learning-covers.jpg');background-size:300% 200%;background-repeat:no-repeat;background-position:0 0;overflow:hidden}
.learning-cover-sheet.type-customer{background-position:0 0}.learning-cover-sheet.type-speech{background-position:50% 0}.learning-cover-sheet.type-examiner{background-position:100% 0}.learning-cover-sheet.type-flashcard{background-position:0 100%}.learning-cover-sheet.type-reading{background-position:50% 100%}.learning-cover-sheet.type-recitation{background-position:100% 100%}
.course-card .cover.learning-cover-sheet,.mobile-card .cover.learning-cover-sheet{background-image:url('assets/learning-covers.jpg');background-size:300% 200%}
.learning-cover-sheet .cover-icon{display:none}
.learning-hero,.learner-welcome{background:#f6f2ff url('assets/learning-hero.jpg') center right/cover no-repeat;border:1px solid #eee7f7;border-radius:10px;padding:36px;margin:0 0 26px;min-height:220px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;isolation:isolate}
.learner-welcome h1,.learner-welcome p,.learning-hero h1,.learning-hero p{background:#fffffff2;padding:3px 10px;margin:0;max-width:540px;color:#2d2f31}
.learner-welcome h1,.learning-hero h1{font-size:30px;font-weight:750;padding-top:12px;border-radius:8px 8px 0 0}.learner-welcome p,.learning-hero p{padding-bottom:12px;border-radius:0 0 8px 8px}
.mobile-shell{background:#fff;max-width:900px}.learner-home{max-width:1440px;padding:0 32px 40px;display:flex;flex-direction:column}.learner-home>.mobile-head{order:0}.learner-home>.mobile-nav{order:1}.learner-home>.learner-welcome{order:2}.learner-home>:not(.mobile-head):not(.mobile-nav):not(.learner-welcome){order:3}
.mobile-head{padding:18px 0;border-bottom:1px solid #ececf0;min-height:70px}.mobile-head .brand{font-size:23px}.mobile-nav{max-width:none;display:flex;justify-content:flex-start;gap:26px;padding:0;margin:0 0 24px;border-bottom:1px solid #e4e4ea}
.mobile-nav button{width:auto;min-height:54px;border-radius:0;padding:10px 4px;color:#35353c;font-size:15px;border-bottom:3px solid transparent;line-height:1.5}.mobile-nav button.active{border-bottom-color:#6d28d2;color:#6d28d2;background:#fff}.mobile-nav .nav-icon{display:none}
.learner-grid,.learner-course-grid{gap:20px;grid-template-columns:repeat(4,minmax(0,1fr))}.learner-home .mobile-card{overflow:hidden;padding:16px}.learner-home .mobile-card .cover{margin:-16px -16px 14px}.mobile-card .bottom{border-top:1px solid #ececf0;margin-top:auto;padding-top:12px}.mobile-section-title{font-size:22px;font-weight:750;color:#242229}
.learner-course-catalog .toolbar{padding:12px 0}.learner-course-catalog .search{max-width:none}.recovery-group{margin-top:0}.recovery-group .mobile-card{background:#faf8ff}.recovery-more{border-radius:8px}.recovery-more>summary{color:#6d28d2}
.list-pagination,.list-pager,.pagination,.learning-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;grid-column:1/-1;padding:20px 0 4px;color:#595c64;font-size:14px}
.list-pagination button,.list-pager button,.pagination button,.learning-pagination button{min-width:42px;min-height:40px}.list-pagination [aria-current=page],.pagination [aria-current=page]{border-color:#6d28d2;color:#6d28d2;background:#f6f2ff}
.list-controls,.learning-filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:16px 0}.list-controls input,.list-controls select,.learning-filters input,.learning-filters select{flex:1 1 150px;min-width:0}.list-result-count{color:#595c64;font-size:14px;grid-column:1/-1}
.note{background:#f6f2ff;border-color:#e6d9f8;color:#4a3e5c}.quote{background:#f7f9fa;border-left-color:#8d4edb;color:#41434b}.panel h3,.dimension h4{color:#25242a}
.bubble{background:#fff;border-color:#dcdde3;color:#2d2f31}.bubble.user{background:#f0e7ff;border:1px solid #e1d1f6;color:#2d2f31}.bubble.user .speaker{color:#69418b}.bubble .speaker{color:#63656e}.chat-compose{background:#fff;border-color:#dedfe5}.training-finish{border-color:#dedfe5}.messages{background:#fff}
.mobile-score,.score-panel,.speech-slide{background:#f6f2ff;border:1px solid #e5d9f5}.mobile-score .number{color:#6d28d2}.mobile-score p{color:#595067}.progress div,.bar{background:#6d28d2}.progress{background:#eee7f6}
.editor-section-nav{background:#fff}.editor-section-nav a{color:#6423bc;border-color:#ded5eb}.editor-section-nav a:hover{background:#f6f2ff}.section-number{background:#f0e7ff;color:#6423bc}.report-details>summary{color:#6423bc}.report-details{border-radius:8px}.table-wrap{border-radius:8px}th{background:#f7f9fa;color:#474950}td{color:#35373d}
.login-page{background:#f6f2ff}.login-card{border-radius:12px;border-color:#e1d9ed;box-shadow:0 14px 44px #34204f0d}.login-card p{color:#595c64}.assistant-card .spark{background:#f0e7ff;color:#6d28d2}
@media(min-width:1600px){.cards,.course-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1199px){.cards,.course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.learner-grid,.learner-course-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1050px){.sidebar{width:190px}.content{margin-left:190px}.main{padding:24px}.learner-home{padding:0 24px 32px}}
@media(max-width:900px){.learner-grid,.learner-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.learning-hero,.learner-welcome{padding:26px;min-height:190px}}
@media(max-width:760px){.sidebar{width:100%;padding:14px}.sidebar .nav{font-size:13px;box-shadow:none}.sidebar .nav.active{border-bottom:2px solid #6d28d2}.content{margin-left:0}.main{padding:20px 16px}.page-title h2{font-size:24px}.cards,.course-grid{grid-template-columns:minmax(0,1fr)}.mobile-shell{padding:18px 16px 32px}.learner-home{padding:0 16px 30px}.mobile-head{padding:14px 0;min-height:60px}.mobile-nav{gap:0;justify-content:space-between;margin-bottom:18px}.mobile-nav button{font-size:14px;padding:10px 3px;min-height:48px}.learning-hero,.learner-welcome{padding:18px;min-height:175px;margin-bottom:20px}.learner-welcome h1,.learning-hero h1{font-size:24px}.learner-welcome p,.learning-hero p{font-size:14px;max-width:85%}.learner-grid,.learner-course-grid{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.learner-home .mobile-card{padding:12px}.learner-home .mobile-card .cover{margin:-12px -12px 10px}.learner-home .mobile-card h3{font-size:15px}.learner-home .mobile-card p{font-size:13px}.mobile-card .bottom{flex-wrap:wrap}.mobile-card .bottom button{width:100%}.mobile-section-title{font-size:20px}.list-pagination,.list-pager,.pagination,.learning-pagination{justify-content:space-between;gap:8px;font-size:13px}.list-controls,.learning-filters{gap:8px}.report-dialog .mobile-score .number{font-size:44px}.editor-section-nav{padding:10px 16px}}
@media(max-width:359px){.learner-grid,.learner-course-grid{grid-template-columns:minmax(0,1fr)}.mobile-nav button{font-size:12px}}
/* Actual K194 shared-list and hero nodes. */
.learning-hero{position:relative;overflow:hidden}
.learning-hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;pointer-events:none}
.learning-hero-copy{position:relative;z-index:1;max-width:570px}
.learning-list{min-width:0;width:100%}.learning-list-tools{align-items:center}.learning-list-tools input[type=search]{flex:1 1 300px;min-width:0}.learning-list-tools select{flex:0 1 170px;width:170px;min-width:0}.learning-list-count{font-size:14px;color:#595c64;white-space:nowrap}
.learning-list-body{min-width:0}.learning-list-body>.empty{width:100%}
.learning-list-tools+.learner-grid>.empty,.learning-list-tools+.learner-course-grid>.empty{grid-column:1/-1}
@media(min-width:1100px){.learner-home{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:36px}.learner-home>.mobile-head{grid-column:1;grid-row:1;align-self:stretch;gap:20px}.learner-home>.mobile-nav{grid-column:2;grid-row:1;align-self:stretch;margin:0;justify-content:flex-end}.learner-home>:not(.mobile-head):not(.mobile-nav){grid-column:1/-1}.learner-home>.learning-hero{margin-top:24px}}
@media(max-width:760px){.learning-list-tools input[type=search]{flex-basis:100%}.learning-list-tools select{flex:1 1 130px;width:auto}.learning-list-count{white-space:normal}.learning-hero-copy{max-width:100%}.learning-hero h1,.learning-hero p{max-width:100%}.learning-hero-image{object-position:65% center}.learning-pagination button{min-height:40px}}

/* K194 root: bounded list previews, full detail/evidence stays available. */
.learning-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}

/* K199: directory navigation is scoped to the admin unit-course catalog. */
.course-catalog-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:22px;align-items:start;min-width:0}
.course-catalog-layout>.course-directory-panel{position:sticky;top:20px;min-width:0;max-width:100%;background:#fff;border:1px solid #dedfe5;border-radius:9px;padding:16px;max-height:calc(100vh - 40px);display:flex;flex-direction:column}
.course-directory-panel h3{font-size:16px;line-height:1.5;color:#2d2f31;margin:0 0 12px}
.course-directory-tools{flex-shrink:0;min-width:0;margin-bottom:12px}
.course-directory-search{display:block;width:100%;min-width:0;min-height:40px;font-size:14px;padding:9px 10px;border:1px solid #c9cbd2;border-radius:7px;background:#fff;color:#2d2f31}
.course-directory-search:focus{border-color:#6d28d2;box-shadow:0 0 0 3px #6d28d219}
.course-directory-tree{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:3px 3px 8px 0;max-height:calc(100vh - 160px)}
.course-directory-node{min-width:0;margin:3px 0}
.course-directory-row{display:flex;align-items:flex-start;gap:5px;min-width:0;border-radius:6px;color:#41434b}
.course-directory-row:hover{background:#faf7ff}
.course-directory-node>summary{display:list-item;list-style:disclosure-closed outside;margin-left:15px;padding:0 0 0 2px;cursor:pointer;color:#6b6574}
.course-directory-node[open]>summary{list-style-type:disclosure-open}
.course-directory-node>summary::marker{font-size:12px;color:#74687f}
.course-directory-node>summary.course-directory-row>.course-directory-select{width:100%;vertical-align:top}
.course-directory-select{display:inline-flex;align-items:flex-start;flex:1;min-width:0;max-width:100%;min-height:38px;padding:8px 7px;border:1px solid transparent;border-radius:6px;background:transparent;text-align:left;white-space:normal;overflow-wrap:anywhere;word-break:normal;font-size:14px;line-height:1.55;color:#41434b}
.course-directory-select:hover{background:#f6f2ff;border-color:#e3d5f4;color:#6423bc}
.course-directory-select[aria-current=true],.course-directory-select[aria-current=page],.course-directory-select[aria-pressed=true],.course-directory-select.selected,.course-directory-select.active{background:#f0e7ff;border-color:#d7bfef;color:#6423bc;font-weight:700}
.course-directory-row.selected,.course-directory-row.active{background:#f0e7ff}
.course-directory-select:focus-visible,.course-directory-node>summary:focus-visible{outline:2px solid #6d28d2;outline-offset:1px}
.course-directory-count{display:inline-block;flex:0 0 auto;min-width:28px;padding:10px 0 0;line-height:1.5;font-size:12px;color:#62646d;text-align:right;font-variant-numeric:tabular-nums;vertical-align:top}
.course-directory-node>summary.course-directory-row>.course-directory-count{width:36px}
.course-directory-select>span:first-child{flex:1;min-width:0}
.course-directory-select>.course-directory-count{padding:1px 0 0;margin-left:6px}
.course-directory-panel #course-directory-current{overflow-wrap:anywhere;line-height:1.6;margin:0 0 10px;font-size:12px}
.course-directory-children{min-width:0;margin:3px 0 5px 9px;padding-left:8px;border-left:1px solid #ece7f2}
.course-directory-panel .empty{padding:20px 4px;font-size:14px;white-space:normal;overflow-wrap:anywhere}
.course-catalog-content{min-width:0;max-width:100%}
.course-catalog-content>.toolbar{align-items:center}
.course-catalog-content .course-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0}
.course-catalog-content .course-grid>.empty{grid-column:1/-1}
.course-catalog-content .course-actions{flex-wrap:wrap}
.course-catalog-content .course-card{min-width:0}
@media(min-width:1700px){.course-catalog-content .course-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.course-catalog-layout{grid-template-columns:240px minmax(0,1fr);gap:16px}.course-catalog-content .course-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:900px){.course-catalog-layout{grid-template-columns:minmax(0,1fr);gap:18px}.course-catalog-layout>.course-directory-panel{position:static;max-height:320px;padding:14px}.course-directory-tree{max-height:220px}.course-catalog-content .course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.course-catalog-layout>.course-directory-panel{max-height:290px}.course-directory-tree{max-height:190px}.course-catalog-content .course-grid{grid-template-columns:minmax(0,1fr)}.course-directory-select{min-height:40px}.course-directory-search{font-size:16px}}
