
:root{font-family:Inter,"Microsoft YaHei",system-ui,sans-serif;color:#202b2b;background:#f5f7f6;font-synthesis:none;--green:#176b50;--line:#e3e9e5;--muted:#7e8983}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;transition:.18s;border:1px solid var(--line);background:white;border-radius:8px;padding:10px 15px;color:inherit}button:hover{border-color:#8aaf9e;background:#f0f7f3}button:disabled{opacity:.45;cursor:wait}a{color:var(--green)}.sidebar{width:222px;height:100vh;position:fixed;background:#fff;border-right:1px solid var(--line);padding:34px 20px;display:flex;flex-direction:column}.brand{text-decoration:none;font-size:26px;letter-spacing:3px;font-weight:800;color:#172e24;margin:0 12px 44px}.brand span{color:var(--green)}.brand b{display:block;font-size:10px;letter-spacing:4px;font-weight:400;color:#929d96;margin-top:8px}.nav-caption{font-size:9px;font-weight:600;letter-spacing:2px;color:#9aa59f;margin:22px 12px 12px}.nav{border:0;width:100%;display:flex;gap:13px;align-items:center;text-align:left;padding:14px;margin-bottom:6px;color:#758179;background:transparent}.nav.active{background:#eaf3ed;color:#176b50}.nav span{font-size:13px;flex:1}.nav small{font-size:10px;color:#7c998b}.sidebar-bottom{margin-top:auto;font-size:10px;color:#73857a;line-height:2}.sidebar-bottom p{color:#a0aaa4;margin-left:12px}.live-dot{background:#74a58c;width:5px;height:5px;border-radius:50%;display:inline-block;margin-right:5px}.app{margin-left:222px}.topbar{height:78px;background:#ffffffbb;border-bottom:1px solid var(--line);padding:0 38px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#89938c}.topbar span{margin:0 15px;color:#b9c1bc}.topbar strong{color:#58655d;font-weight:500}.user-pill{font-size:12px;border-radius:24px;padding:9px 18px;background:#fafcfb}main{max-width:1510px;padding:36px 38px;margin:auto}.eyebrow{font-size:10px;letter-spacing:2.5px;color:#678574;font-weight:600}.heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:25px}h1{font-size:28px;font-weight:650;letter-spacing:-1px;margin:10px 0}h2{font-size:17px;margin:0 0 20px}h3{font-size:14px;margin:0 0 8px}p{line-height:1.8}.subtitle{font-size:12px;color:var(--muted);margin:0}.badge{font-size:11px;padding:7px 12px;border-radius:5px;background:#eaf2ed;color:#4c795f}.steps{display:flex;gap:16px;align-items:center;background:#fff;border:1px solid var(--line);padding:18px 24px;border-radius:12px;margin-bottom:25px;font-size:12px;color:#99a39d}.steps i{height:1px;background:#e2e9e4;flex:1}.step{display:flex;align-items:center;gap:9px;white-space:nowrap}.step b{width:24px;height:24px;background:#f2f5f3;text-align:center;line-height:24px;border-radius:50%;font-size:11px}.step.active{color:var(--green)}.step.active b{background:var(--green);color:white}.studio-grid{display:grid;grid-template-columns:minmax(320px,1fr) minmax(330px,1.03fr);gap:24px;align-items:start}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px;margin-bottom:20px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.panel-head h2{margin:0}.section-number{font-size:10px;color:#789282;margin-right:8px}.muted{color:var(--muted);font-size:12px}.categories{display:flex;gap:8px;flex-wrap:wrap}.chip{padding:9px 16px;font-size:12px;border-radius:6px;background:#fafcfb}.chip.selected{background:#e9f2ec;border-color:#89b59d;color:var(--green)}.template-card{border:1px solid #e3e9e3;background:linear-gradient(120deg,#f8faf8,#eff4ef);padding:22px;border-radius:9px;margin-top:19px;position:relative;overflow:hidden}.template-card:after{content:'”';font-family:Georgia;position:absolute;right:15px;top:-5px;font-size:100px;color:#dce8dd;pointer-events:none}.template-card h3{position:relative;z-index:1;font-size:15px;max-width:85%;line-height:1.7}.template-card p{font-size:12px;color:#7c897f;max-width:85%;margin:8px 0 18px}.tag{font-size:10px;letter-spacing:1px;color:#6f8d78}.row{display:flex;gap:10px;align-items:center}.row.wrap{flex-wrap:wrap}.spread{justify-content:space-between}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#12573f;color:white}.full{width:100%}.small{font-size:11px;padding:8px 12px}.hint{font-size:11px;line-height:1.8;color:#89968c;margin-top:12px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}label{font-size:12px;color:#5d6c61;display:block}input,textarea,select{display:block;width:100%;padding:11px 12px;border:1px solid #dfe7e0;border-radius:6px;background:#fff;color:#29372d;margin-top:7px;outline:none;font-size:12px}input:focus,textarea:focus,select:focus{border-color:#659c7c;box-shadow:0 0 0 3px #edf4ef}textarea{resize:vertical;line-height:1.7;min-height:85px}.avatars{display:flex;gap:18px;margin:20px 0}.avatar-control{flex:1;border:1px dashed #dbe4dc;padding:12px;border-radius:7px;font-size:11px;color:#6e8174;display:flex;gap:10px;align-items:center;cursor:pointer}.avatar-control img{width:37px;height:37px;object-fit:cover;border-radius:6px}.avatar-control input{display:none}.preview-panel{background:#edf1ed;border:1px solid #dfe6e0;border-radius:12px;overflow:hidden}.preview-top{display:flex;justify-content:space-between;padding:18px 22px;font-size:12px;color:#64746a;border-bottom:1px solid #dfe6e0}.preview-top small{font-size:10px;color:#8b9b90}.preview-stage{padding:24px 32px;max-height:720px;overflow:auto;background-image:radial-gradient(#cfdacf 1px,transparent 1px);background-size:14px 14px;display:flex;justify-content:center;align-items:flex-start;min-height:430px}canvas{display:block;width:100%;max-width:390px;height:auto;box-shadow:0 8px 30px #283f2520;border-radius:3px}.preview-actions{background:#fff;padding:18px 22px;display:flex;gap:10px}.preview-actions button{flex:1;font-size:12px}.caption{white-space:pre-wrap;font-size:12px;line-height:1.9;padding:14px;background:#f6f8f5;border-radius:7px;margin-bottom:12px;min-height:60px}.notice{padding:12px 16px;background:#fff9ea;color:#8d7742;border:1px solid #eee4c7;border-radius:8px;font-size:12px;line-height:1.8;margin-bottom:18px}.empty{padding:40px 20px;text-align:center;color:#8b9a8e;font-size:13px;line-height:2}.edit-row{display:grid;grid-template-columns:55px 1fr 30px;gap:8px;align-items:center;margin-bottom:10px}.edit-row textarea{margin:0;min-height:70px}.edit-row select{padding:8px 2px;margin:0}.edit-row button{padding:6px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th,td{padding:14px 10px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}th{font-size:11px;color:#8a978d;font-weight:500}td button{font-size:11px;padding:7px 10px}.admin-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.admin-tabs .selected{background:var(--green);color:#fff}.plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:22px}.plan{padding:30px;background:#fff;border:1px solid var(--line);border-radius:12px}.plan-price{font-size:38px;color:#174b32;margin:25px 0}.plan-price small{font-size:12px;color:#89998c}.plan ul{padding-left:18px;font-size:12px;color:#6f8275;line-height:2.8;margin-bottom:28px}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.account-grid input{margin-bottom:18px}dialog{border:1px solid var(--line);border-radius:15px;padding:32px;width:min(620px,94vw);max-height:90vh;overflow:auto;box-shadow:0 30px 100px #142f2740}dialog::backdrop{background:#1b322b66;backdrop-filter:blur(3px)}.close{float:right;border:0;font-size:24px;padding:0 5px;position:relative;z-index:2}dialog label{margin:14px 0}dialog h2{margin-top:6px}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#263e30;color:white;padding:13px 23px;border-radius:8px;box-shadow:0 5px 30px #0002;font-size:13px;display:none;z-index:100}footer{padding:15px 38px 25px;display:flex;justify-content:space-between;font-size:10px;color:#9aa69e;gap:20px}.source-preview{max-height:280px;max-width:100%;display:block;margin:15px auto}.inline{display:inline-block;width:auto;margin:0 5px}.qr{max-width:220px;width:100%;display:block;margin:20px auto}.view-warning{font-size:11px;color:#a58a4b;margin-top:10px}@media(min-width:1500px){main{padding-top:45px}.preview-stage{max-height:850px}canvas{max-width:440px}}@media(max-width:1000px){.sidebar{width:180px;padding:28px 12px}.app{margin-left:180px}main{padding:24px}.studio-grid{gap:16px;grid-template-columns:1fr 1fr}.panel{padding:18px}.preview-stage{padding:20px}.form-grid{gap:10px}.avatars{gap:8px}.avatar-control{padding:8px;font-size:10px}.brand{font-size:24px}.account-grid{grid-template-columns:1fr}}@media(max-width:760px){.sidebar{width:100%;height:auto;position:static;padding:16px;display:block;border-bottom:1px solid var(--line)}.brand{display:inline-block;margin:0 20px 15px 0;font-size:22px}.brand b,.nav-caption,.sidebar-bottom{display:none}.sidebar .nav{display:inline-flex;width:auto;padding:9px;margin:0}.sidebar .nav small{display:none}#admin-nav{display:inline}.sidebar #admin-nav[hidden]{display:none}.app{margin:0}.topbar{height:55px;padding:0 20px}main{padding:22px 16px}.heading{align-items:start}h1{font-size:24px}.steps{padding:14px 12px;gap:6px;font-size:10px}.step{gap:5px}.studio-grid{grid-template-columns:1fr}.preview-stage{max-height:none;padding:18px}.panel{padding:19px}.form-grid{gap:15px}.account-grid{grid-template-columns:1fr}footer{padding:15px 20px;display:block;line-height:2}footer span{display:block}.badge{white-space:nowrap}.heading .badge{font-size:10px;padding:6px}}

/* Brand subtitle stays visible on phones as well. */
.brand b{font-size:11px;letter-spacing:1px;white-space:nowrap}@media(max-width:760px){.brand b{display:inline-block;margin:0 0 0 10px;vertical-align:middle}}

/* Compact two-row brand and navigation across screen sizes. */
.sidebar{position:static;width:100%;height:auto;padding:14px 24px 8px;display:flex;flex-direction:column;gap:10px;border-right:0;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:baseline;flex-wrap:wrap;gap:0;margin:0;font-size:25px;line-height:1.3;letter-spacing:2px}
.brand b{display:inline-block;font-size:11px;letter-spacing:1px;margin:0 0 0 12px;color:#7e8983;white-space:nowrap}
.main-nav{display:flex;align-items:center;gap:5px;width:100%;overflow-x:auto;white-space:nowrap}
.sidebar .nav{display:inline-flex;align-items:center;gap:6px;width:auto;flex:none;margin:0;padding:8px 12px}
.sidebar .nav span{font-size:13px}.sidebar .nav small,.nav-caption,.sidebar-bottom{display:none}
#admin-nav{display:flex;flex:none}#admin-nav[hidden]{display:none}
.app{margin-left:0}.topbar{height:46px;padding:0 24px}main{padding-top:22px}
@media(max-width:760px){.sidebar{padding:12px 12px 7px;gap:9px}.brand{font-size:23px}.brand b{font-size:11px;margin-left:9px}.main-nav{gap:2px}.sidebar .nav{padding:8px;gap:4px}.sidebar .nav span{font-size:12px}.topbar{height:42px;padding:0 16px}main{padding-top:18px}}

.material-original{display:block;width:auto;max-width:100%;max-height:480px;object-fit:contain;margin:16px auto;border-radius:8px}.template-card:after{pointer-events:none}

/* Keep account access in the brand row without a separate breadcrumb bar. */
.sidebar{position:relative}.sidebar .brand{max-width:calc(100% - 150px)}
.sidebar .user-pill{position:absolute;top:15px;right:24px;max-width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
footer{flex-wrap:wrap}.site-filing{width:100%;display:flex;gap:16px;justify-content:center;flex-wrap:wrap;padding-top:8px;line-height:1.8}.site-filing[hidden]{display:none}.site-filing a{color:inherit;text-decoration:none}.site-filing a:hover{text-decoration:underline}
@media(max-width:760px){.sidebar .brand{max-width:calc(100% - 110px)}.sidebar .user-pill{top:12px;right:12px;max-width:105px;padding:7px 10px}.site-filing{gap:8px}}

.avatar-choice{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.avatar-choice .avatar-control{flex:1;min-width:0}.avatar-choice button{flex:none;padding:8px;font-size:11px}.avatars>.avatar-control{flex:1;min-width:0}.avatar-control img{width:44px;height:44px;object-fit:cover;border-radius:8px;flex:none}@media(max-width:460px){.avatars{flex-wrap:wrap}.avatar-choice,.avatars>.avatar-control{flex-basis:100%}}
.avatars{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.avatar-choice{display:grid;grid-template-columns:minmax(0,1fr) auto;border:1px dashed #dbe4dc;border-radius:7px;gap:0}.avatar-choice .avatar-control{border:0;padding:10px 8px}.avatar-choice button{align-self:stretch;border:0;border-left:1px dashed #dbe4dc;border-radius:0 7px 7px 0;background:#f6faf7;padding:8px;color:var(--green)}.avatars>.avatar-control{margin:0;padding:10px 8px}.avatar-control{gap:7px}.avatar-control small{font-size:10px}.avatar-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:16px}.avatar-library-card{padding:12px;border:1px solid var(--line);border-radius:8px;text-align:center;font-size:12px;overflow-wrap:anywhere}.avatar-library-card img{width:80px;height:80px;object-fit:cover;border-radius:8px}.avatar-library-card button{margin-top:8px}@media(max-width:460px){.avatars{gap:6px}.avatar-control{gap:4px;font-size:10px}.avatar-control img{width:30px;height:30px}.avatar-choice .avatar-control,.avatars>.avatar-control{padding:8px 4px}.avatar-choice button{padding:6px 4px;font-size:10px;max-width:36px}.avatar-control small{font-size:9px}}
.message-edit{grid-template-columns:55px minmax(0,1fr)}.message-edit-right{grid-template-columns:minmax(0,1fr) 55px}.message-edit-right textarea{grid-column:1;grid-row:1}.message-edit-right>span{grid-column:2;grid-row:1;text-align:right}
.chat-background-control{border:1px dashed #dbe4dc;border-radius:7px;padding:12px;margin:0 0 18px;display:flex;flex-wrap:wrap;align-items:center;gap:12px}.chat-background-control label{flex:1;min-width:140px}.chat-background-control .hint{width:100%;margin:0}
.background-settings{margin:0 0 18px;border:1px dashed #dbe4dc;border-radius:7px}.background-settings summary{list-style:none;display:flex;justify-content:space-between;align-items:center;cursor:pointer;padding:13px 12px;font-size:12px;color:#5d6c61}.background-settings summary::-webkit-details-marker{display:none}.background-settings summary span{font-size:18px;transition:transform .15s}.background-settings[open] summary span{transform:rotate(180deg)}.background-settings .chat-background-control{border:0;border-top:1px dashed #dbe4dc;border-radius:0;margin:0}
.payment-controls{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.payment-controls select,.payment-controls input{width:auto;max-width:100%;flex:1;min-width:80px;font-size:11px;padding:6px;margin:0}.payment-controls [hidden]{display:none}.message-edit-right>.message-content{grid-column:1;grid-row:1}






.course-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid #e5e7eb}.course-item strong{overflow-wrap:anywhere}.course-item button{flex-shrink:0}.course-body img,.course-body video{display:block;width:100%;height:auto;border-radius:8px;margin:16px 0}.course-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}.course-edit-block{padding:14px;border:1px solid #e5e7eb;border-radius:8px;margin:14px 0}.course-edit-media{max-width:100%;max-height:240px;display:block;margin-top:12px}

.course-article-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:10px;background:#f5f8f6;border:1px solid #dce5df;border-radius:8px 8px 0 0}.course-article-toolbar span{font-size:12px;color:#708078}.course-article{min-height:380px;padding:20px;border:1px solid #dce5df;border-top:0;border-radius:0 0 8px 8px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;background:white;outline:none}.course-article:focus{border-color:#238263;box-shadow:0 0 0 2px #23826312}.course-article p{margin:0 0 14px}.course-article figure{display:block;position:relative;margin:18px 0;white-space:normal}.course-article figure img,.course-article figure video{display:block;width:100%;height:auto;max-height:500px;object-fit:contain;border-radius:6px;background:#f5f6f5}.course-article figure button{display:block;margin:6px 0 0 auto;font-size:12px;padding:4px 10px}.course-article[contenteditable=false]{opacity:.75}

.course-media-picker{position:relative;display:inline-flex;align-items:center;border:1px solid #dce5df;border-radius:6px;background:white;padding:8px 12px;margin:0;cursor:pointer;overflow:hidden}.course-media-picker input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0;padding:0}

.course-article-toolbar{position:sticky;top:0;z-index:20;box-shadow:0 3px 10px #173c2414}.course-article p,.course-article figure{scroll-margin-top:85px}

/* Keep article dismissal available while reading long courses. */
#modal.course-reading > .close{position:sticky;top:0;z-index:30;background:#fff;border:1px solid var(--line);border-radius:8px;padding:8px 12px;font-size:14px;box-shadow:0 2px 10px #173c2420}
