@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#263b38;background:#f7f7f3;font-size:15px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:#225f55}h1,h2,h3,h4,p{margin:0}h1,h2,h3{line-height:1.3}h1,h2{font-family:'Playfair Display',Georgia,serif;font-weight:600}h1{font-size:clamp(1.9rem,3vw,2.55rem)}h2{font-size:1.6rem}h3{font-size:1.12rem;font-family:'DM Sans',sans-serif}p{line-height:1.6}.muted{color:#667673}.small{font-size:.84rem}.tiny{font-size:.73rem}.eyebrow{font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:#618076}.tag{display:inline-flex;border:1px solid #d9e6dc;background:#f1f7f1;color:#346552;padding:.24rem .58rem;border-radius:99px;font-size:.75rem;font-weight:700}.tag.alt{background:#f7f1e8;border-color:#ecddcb;color:#8a6b45}.tag.gray{background:#f5f6f3;border-color:#dedfda;color:#596662}.shell{display:grid;grid-template-columns:242px minmax(0,1fr);min-height:100vh}.sidebar{background:#173f39;color:#e9f4ed;padding:30px 20px;display:flex;flex-direction:column;gap:22px}.brand{font-family:'Playfair Display',Georgia,serif;font-size:1.6rem;line-height:1.1;color:#fff;text-decoration:none}.brand small{display:block;font:500 .63rem 'DM Sans',sans-serif;letter-spacing:.18em;text-transform:uppercase;line-height:1.9;color:#c1d4c9}.sidebar .label{color:#b6cec4;font-size:.72rem;letter-spacing:.13em;text-transform:uppercase;padding:0 12px}.nav{display:flex;flex-direction:column;gap:5px}.nav button{width:100%;text-align:left;padding:12px 14px;border:0;border-radius:10px;background:transparent;color:#ebf2ed;transition:background .2s}.nav button.active,.nav button:hover{background:#38675b}.sidebar-footer{margin-top:auto;display:grid;gap:10px}.sidebar-footer a,.sidebar-footer button{font-size:.85rem;color:#c3d8cd;text-decoration:none;border:0;background:none;text-align:left;padding:8px 10px}.main{min-width:0;padding:28px clamp(20px,4vw,64px) 64px;max-width:1500px;width:100%;margin:auto}.topbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:36px;padding-bottom:16px;border-bottom:1px solid #e2e8e1}.topbar .user{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.topbar .user strong{font-size:.85rem}.section-head{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:14px;margin-bottom:22px}.section-head p{margin-top:8px}.stack{display:grid;gap:18px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.card{padding:23px;border:1px solid #e4e9e1;border-radius:18px;background:#fff;box-shadow:0 8px 32px rgba(29,67,53,.035);min-width:0}.card.tint{background:#ecf3eb}.card.soft{background:#fffaf4}.card h3{margin-bottom:8px}.card p + p{margin-top:6px}.stat{font-size:2.3rem;font-weight:700;color:#25584b;line-height:1.4}.progress{height:8px;background:#e6ede7;border-radius:99px;overflow:hidden;margin:12px 0}.progress>span{display:block;height:100%;background:#76a08d;border-radius:99px}.button{border:0;background:#23594f;color:#fff;padding:10px 16px;border-radius:9px;font-weight:700;display:inline-flex;justify-content:center;align-items:center;gap:7px;text-decoration:none}.button:hover{background:#173f39}.button.secondary{background:#eaf2ec;color:#245448}.button.secondary:hover{background:#d7e5dc}.button.outline{border:1px solid #bcd0c4;background:#fff;color:#23594f}.button.danger{background:#f9e9e6;color:#9b3d2c}.button.slim{padding:7px 12px;font-size:.83rem}.button[disabled]{opacity:.5;cursor:not-allowed}.inline-buttons{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.field{display:grid;gap:7px;font-size:.84rem;font-weight:700;color:#3a5650}.field input,.field select,.field textarea{font-weight:400;width:100%;background:#fff;border:1px solid #cbd8cf;border-radius:9px;padding:11px 12px;color:#1e3b35;outline-offset:2px}.field textarea{min-height:105px;resize:vertical}.field small{font-weight:400;color:#687d74}.field input:focus,.field select:focus,.field textarea:focus{border-color:#518f7a;outline:2px solid #e5f3e9}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid .wide{grid-column:1/-1}.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 12% 15%,#dce9dd,transparent 35%),radial-gradient(circle at 90% 85%,#f0e8dc,transparent 38%),#f7f7f2}.auth-card{max-width:465px;width:100%;background:#fff;border:1px solid #dee9e1;border-radius:24px;padding:clamp(24px,5vw,44px);box-shadow:0 18px 65px #23453e19;display:grid;gap:20px}.auth-card h1{font-size:2.05rem}.auth-card form{display:grid;gap:15px}.startup{height:80vh;display:grid;place-content:center;justify-items:center;gap:15px;color:#496b5b}.spinner{width:34px;height:34px;border:3px solid #c1d9c6;border-top-color:#326d5d;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.note{background:#f1f6ee;border-left:3px solid #7da788;color:#3e5e50;border-radius:8px;padding:12px 14px;line-height:1.5}.warning{background:#fff7e7;border-color:#c8984e;color:#795b31}.error{background:#fff0ee;border-left-color:#bd6154;color:#8d423a}.empty{padding:36px 18px;text-align:center;color:#667a72;border:1px dashed #d8e5d9;border-radius:13px;background:#fff}.item{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:16px 0;border-bottom:1px solid #ecf0eb}.item:last-child{border-bottom:0;padding-bottom:0}.item:first-child{padding-top:0}.item .content{min-width:0;display:grid;gap:7px}.item p{overflow-wrap:anywhere}.item .actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.course-title{font-size:1.17rem;font-weight:700;margin:6px 0}.hr{border:0;border-top:1px solid #edf0e9;margin:18px 0}.bars{display:grid;gap:7px}.table-wrap{overflow-x:auto}.table{border-collapse:collapse;width:100%;font-size:.85rem}.table th,.table td{text-align:left;padding:11px 9px;border-bottom:1px solid #e7ede5;vertical-align:middle}.table th{font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:#667d74}.table td .button{margin:2px}.table select{max-width:180px;padding:7px;background:white;border:1px solid #d1dcd4;border-radius:7px}.table tr:last-child td{border:0}.filterbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:20px}.filterbar select,.filterbar input{padding:10px 12px;border:1px solid #cddcd0;border-radius:8px;background:white}.muted-box{padding:15px;background:#f7f9f5;border-radius:10px;white-space:pre-wrap;line-height:1.6;overflow-wrap:anywhere}.expand{margin-top:12px}.expand summary{cursor:pointer;font-weight:700;color:#2b6355;padding:8px 0}.expand[open]{padding-bottom:8px}.checkbox-row{display:flex;gap:10px;align-items:center;margin:9px 0}.checkbox-row input{accent-color:#23594f}.quiz-choice{display:block;border:1px solid #dce7df;border-radius:8px;padding:10px;margin:7px 0;cursor:pointer}.quiz-choice input{margin-right:8px}.status{font-size:.81rem;font-weight:700}.status.good{color:#3e7954}.status.wait{color:#92682d}.status.bad{color:#aa4e45}.footer{padding-top:30px;margin-top:40px;color:#789085;font-size:.75rem;border-top:1px solid #e4ebe5}.toast{position:fixed;bottom:20px;right:20px;padding:14px 20px;max-width:min(460px,calc(100vw - 40px));border-radius:11px;background:#214d40;color:white;box-shadow:0 14px 35px #173f393b;z-index:50}.toast.error{background:#a53f39;color:#fff}.file-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.pill-link{text-decoration:none;display:inline-block;padding:8px 12px;border-radius:9px;background:#edf3eb;color:#24564a;font-size:.85rem;font-weight:700}.pill-link:hover{background:#dceadd}.certificate{border:9px double #7eab94;background:#fffdf7;text-align:center;padding:44px 25px}.certificate h2{font-size:2.4rem}.certificate .name{font-family:Georgia,serif;font-size:2rem;margin:22px 0;color:#255b4d}.search{max-width:350px;width:100%}button:focus-visible,a:focus-visible{outline:3px solid #86b39f;outline-offset:2px}@media(max-width:950px){.shell{grid-template-columns:1fr}.sidebar{padding:16px 18px;gap:12px}.nav{flex-direction:row;flex-wrap:wrap}.nav button{width:auto;padding:8px 12px}.sidebar-footer{display:none}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{margin-bottom:22px}.main{padding:24px 18px 48px}}@media(max-width:600px){.grid,.grid.two,.form-grid{grid-template-columns:1fr}.main{padding:20px 14px 45px}.card{padding:17px}.form-grid .wide{grid-column:auto}.section-head{align-items:flex-start}.item{flex-direction:column}.item .actions{width:100%}.topbar{display:block}.topbar .user{margin-top:10px}}@media print{.sidebar,.topbar,.footer,.button,.nav,.auth-card,.toast,.section-head{display:none!important}.shell{display:block}.main{padding:0}.certificate{page-break-inside:avoid;margin:20mm 0}}

/* Classroom chat extension */
.hb-chat-feed{max-height:330px;overflow:auto;border:1px solid #dfe7e0;border-radius:12px;padding:12px;background:#fafcf9;display:flex;flex-direction:column;gap:10px}.hb-chat-bubble{background:white;border:1px solid #e1e9e2;border-radius:12px;padding:10px 12px;max-width:94%;overflow-wrap:anywhere}.hb-chat-bubble.mine{background:#e8f2ed;align-self:flex-end}.hb-chat-bubble b{font-size:12px}.hb-chat-bubble p{margin:5px 0;white-space:pre-wrap}.hb-chat-bubble small{color:#64766c;font-size:11px}
