@font-face {
 font-family: "Noto Sans Sinhala"; src: url("../fonts/NotoSansSinhala-Regular.ttf") format("truetype");
 font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
 font-family: "Noto Sans Sinhala"; src: url("../fonts/NotoSansSinhala-Bold.ttf") format("truetype");
 font-style: normal; font-weight: 700; font-display: swap;
}
@font-face {
 font-family: "Noto Serif Sinhala"; src: url("../fonts/NotoSerifSinhala-Regular.ttf") format("truetype");
 font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
 font-family: "Noto Serif Sinhala"; src: url("../fonts/NotoSerifSinhala-Bold.ttf") format("truetype");
 font-style: normal; font-weight: 700; font-display: swap;
}
:root{--ink:#171c37;--muted:#79819a;--line:#e9eaf2;--paper:#fff;--surface:#f7f8fc;--primary:#6956ec;--primary-dark:#5841db;--teal:#15bda9;--nav:#10132b;--shadow:0 8px 30px rgba(35,42,87,.055);--radius:18px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);margin:0;background:var(--surface);font-size:14px;line-height:1.5}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer}svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;fill:none;flex-shrink:0}.svg-sprite{position:absolute;width:0;height:0;overflow:hidden}h1,h2,h3,h4,p{margin-top:0}h1{font-size:32px;font-weight:790;letter-spacing:-1.15px;line-height:1.18;margin-bottom:9px}h2{font-size:19px;letter-spacing:-.45px;font-weight:750}h3{font-size:16px;letter-spacing:-.2px}p{line-height:1.62}.muted{color:var(--muted)}.eyebrow{font-size:10px;font-weight:850;letter-spacing:2.05px;color:#8170ed;margin-bottom:10px}.meta-caps{font-size:10px;letter-spacing:1.3px;color:#8d92a9;font-weight:850}.tiny-text{font-size:12px}.block-small{display:block;font-size:11px;color:var(--muted)}
.app-shell{display:flex;min-height:100vh}.sidebar{width:248px;background:var(--nav);color:#fff;flex:0 0 248px;min-height:100vh;padding:31px 17px 17px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;z-index:40}.brand{display:flex;align-items:center;gap:11px;color:#fff;padding:0 14px;font-size:22px;font-weight:840;letter-spacing:-1.0px;line-height:1}.brand-mark{width:37px;height:37px;background:linear-gradient(135deg,#8a6cf8,#4dcbdf);display:grid;place-items:center;border-radius:12px;box-shadow:0 5px 17px #7f67ed55}.brand-mark svg{width:21px;height:21px;stroke-width:2.4}.brand-accent{color:#9b86ff}.brand small{display:block;font-weight:760;font-size:8px;letter-spacing:2.35px;color:#aeb2ce;margin-top:7px}.sidebar-context{font-size:9px;letter-spacing:2px;color:#707997;font-weight:850;margin:58px 17px 12px}.sidebar-context-space{margin-top:29px}.side-nav{display:flex;flex-direction:column;gap:5px}.nav-link{display:flex;align-items:center;gap:12px;padding:12px 14px;color:#a6acc9;border-radius:11px;font-weight:600;font-size:12.5px;transition:.16s}.nav-link svg{width:18px;height:18px;stroke-width:1.65}.nav-link:hover{background:#222540;color:#fff}.nav-link.active{background:#2d295d;color:#f9f7ff;box-shadow:inset 3px 0 0 #8e7cff}.nav-link.active svg{color:#b7a5ff}.nav-mini{margin-left:auto;color:#666f99}.sidebar-promo{margin: auto 5px 18px;border-radius:15px;padding:19px 17px;background:radial-gradient(circle at top right,#4c458b 0,transparent 55%),linear-gradient(132deg,#292858,#20213f);border:1px solid #3f3b68;min-height:178px}.promo-dot{color:#c0b2ff;font-size:22px;margin-bottom:10px}.sidebar-promo strong{display:block;font-size:12.5px}.sidebar-promo p{font-size:11px;color:#aaaed1;margin:5px 0 13px}.sidebar-promo a{font-size:10.5px;font-weight:800;color:#ded6ff}.sidebar-promo a span{margin-left:8px}.sidebar-signout{margin:0 4px}.sidebar-signout button{background:none;border:0;color:#a9abc9;display:flex;align-items:center;gap:12px;padding:11px 14px;width:100%;text-align:left;font-size:12.5px}.sidebar-signout button:hover{color:white}.sidebar-signout svg{width:18px;height:18px}
.site-content{min-width:0;flex:1}.topbar{height:79px;background:white;display:flex;align-items:center;justify-content:space-between;padding:0 39px;border-bottom:1px solid #ededf4;position:sticky;top:0;z-index:25}.breadcrumb{color:#8f94a8;font-size:12px}.breadcrumb span{margin:0 13px;color:#d1d3df}.breadcrumb strong{color:#3b3f57;font-weight:750}.topbar-right{display:flex;align-items:center;gap:25px}.role-chip{border:1px solid #e9e4ff;color:#6e5ce0;background:#f8f6ff;padding:7px 13px;border-radius:30px;font-size:10.5px;font-weight:780}.user-mini{display:flex;align-items:center;gap:11px}.avatar{width:35px;height:35px;border-radius:10px;background:linear-gradient(140deg,#c4afff,#8b7ff7);display:grid;place-items:center;color:#fff;font-weight:850;flex-shrink:0}.mini-user-text{display:flex;flex-direction:column}.mini-user-text strong{font-size:11px;font-weight:800;max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mini-user-text small{font-size:10px;color:#9a9eb0}.mobile-menu.icon-btn{display:none}.main-content{max-width:1470px;margin:auto;padding:34px 39px 85px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:28px}.page-heading p{margin-bottom:0}.wave{color:#f6ae49;font-size:27px}.btn{border:1px solid transparent;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:43px;padding:11px 19px;font-weight:760;font-size:12px;line-height:1.3;white-space:nowrap;transition:transform .13s,box-shadow .13s,background .13s}.btn:hover{transform:translateY(-1px)}.btn svg{height:16px;width:16px;stroke-width:2}.btn-primary{background:linear-gradient(112deg,#7564f2,#6350e3);color:white;box-shadow:0 7px 20px rgba(111,91,235,.19)}.btn-primary:hover{box-shadow:0 8px 23px rgba(111,91,235,.28)}.btn-secondary{background:white;color:#56566f;border-color:#e6e7f0}.btn-secondary:hover{background:#f9f8ff}.btn-white{background:#fff;color:#6153d6}.btn-green{background:#19b793;color:#fff}.btn-small{padding:7px 12px;min-height:34px;font-size:11px;border-radius:9px}.btn-full{width:100%}.btn-quiet-danger{background:#fff3f3;color:#d15468;border-color:#ffe0e3}.btn-quiet-danger:hover{background:#ffe5e8}.text-link{color:#7661ed;font-size:12px;font-weight:760}.small-link{margin-left:auto;color:#6753dd;font-size:11px;font-weight:800}.back-link{display:inline-block;color:#8489a5;font-size:12px;font-weight:680;margin-bottom:17px}.back-link:hover{color:#6755ed}
.hero-banner{background:linear-gradient(113deg,#5543c7,#7773ef 62%,#8ba4f8);border-radius:22px;color:#fff;min-height:236px;margin-bottom:21px;position:relative;display:flex;overflow:hidden;box-shadow:0 14px 34px #6d59d827}.hero-copy{padding:32px 42px;position:relative;z-index:2;max-width:610px}.hero-kicker{display:inline-flex;border:1px solid #ffffff3d;background:#ffffff19;padding:6px 12px;font-weight:780;font-size:10px;letter-spacing:1.5px;border-radius:30px}.hero-copy h2{font-size:28px;margin:13px 0 7px;letter-spacing:-.9px;line-height:1.15}.hero-copy h2 span{color:#cfefef}.hero-copy p{color:#e7e3ff;font-size:12px;max-width:450px;margin-bottom:20px}.hero-copy .btn{padding:10px 17px;min-height:39px}.hero-decoration{position:absolute;right:90px;top:20px;width:290px;height:240px}.hero-ring{position:absolute;inset:0;border:1px solid #ffffff44;border-radius:50%;transform:rotate(25deg)}.ring-two{inset:24px 40px;transform:rotate(-40deg)}.hero-calculator{position:absolute;inset:53px 35px 63px;display:flex;align-items:center;justify-content:center;gap:23px;transform:rotate(-13deg);background:#ffffff27;backdrop-filter:blur(11px);box-shadow:0 15px 30px #21205933;border:1px solid #ffffff6d;border-radius:25px;font-size:41px;font-weight:800;color:#e6ecff}.hero-calculator span{color:#afedfa;transform:rotate(23deg)}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:32px}.stat-card{background:#fff;border:1px solid #eff0f5;border-radius:16px;padding:20px;display:flex;align-items:center;gap:15px;box-shadow:var(--shadow)}.stat-symbol{width:51px;height:52px;border-radius:14px;display:grid;place-items:center;flex:0 0 51px;font-size:23px}.stat-symbol svg{width:23px;height:23px}.purple-bg{background:#f0ebff!important;color:#7861ed!important}.aqua-bg{background:#e4faf6!important;color:#23b6a1!important}.orange-bg{background:#fff2e4!important;color:#ec9b46!important}.pink-bg{background:#ffeaf0!important;color:#e77c9e!important}.stat-label{display:block;color:#858ba1;font-weight:670;font-size:10.5px}.stat-card strong{font-size:29px;font-weight:840;line-height:1.13;display:block;margin-top:5px;letter-spacing:-.8px}.stat-card small{display:block;color:#a0a6b5;font-size:10px;margin-top:4px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:0 0 16px}.section-title h2{margin:0 0 3px}.section-title p{font-size:12px;margin:0}
.course-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px;margin-bottom:30px}.course-card{background:#fff;border:1px solid #eceef4;border-radius:18px;overflow:hidden;box-shadow:var(--shadow);transition:transform .18s,box-shadow .18s;min-width:0}.course-card:hover{transform:translateY(-4px);box-shadow:0 16px 33px #3539591a}.course-cover{height:130px;padding:17px 19px;position:relative;overflow:hidden}.cover-purple{background:linear-gradient(115deg,#6654d8,#b0a1ff);color:white}.cover-cyan{background:linear-gradient(115deg,#168eaf,#78d4dd);color:white}.cover-orange{background:linear-gradient(115deg,#e78e5f,#ffcc8e);color:white}.cover-pink{background:linear-gradient(115deg,#dc618f,#e9a6c6);color:white}.cover-green{background:linear-gradient(115deg,#268c77,#a0d2a4);color:white}.course-cover-chip{border:1px solid #ffffff82;border-radius:20px;padding:6px 10px;display:inline-block;max-width:78%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-transform:uppercase;font-weight:800;font-size:9px;letter-spacing:.8px}.cover-art{position:absolute;font-size:110px;right:25px;top:-19px;line-height:1.3;color:#ffffff70;font-family:Georgia,serif;font-style:italic;transform:rotate(-15deg)}.course-card-body{padding:21px 20px 16px}.course-card-body h3{font-size:17px;margin:6px 0 5px;min-height:25px}.course-card-body p{font-size:11.5px;color:#8b90a4;min-height:36px;margin:0 0 18px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.course-card-footer{border-top:1px solid #f0f1f5;padding-top:13px;display:flex;justify-content:space-between;align-items:center}.course-card-footer>span:first-child{font-size:11px;font-weight:650;color:#898da1;display:flex;align-items:center;gap:6px}.course-card-footer svg{width:15px;height:15px}.circular-arrow{width:30px;height:30px;border-radius:50%;background:#f4f2ff;color:#7262e9;display:grid;place-items:center;font-size:16px}
.dashboard-columns{display:grid;grid-template-columns:1.15fr 1fr;gap:20px;margin-top:25px}.panel{padding:24px;background:#fff;border:1px solid #edecf3;border-radius:17px;box-shadow:var(--shadow);min-width:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:13px;margin-bottom:18px}.panel-heading h2{margin:0}.section-icon{font-size:21px;color:#a3a5df}.feed-item{display:flex;gap:13px;padding:14px 0;border-bottom:1px solid #f0f1f6}.feed-item:last-child{border-bottom:0}.feed-icon{width:37px;height:37px;border-radius:11px;display:grid;place-items:center;flex-shrink:0}.feed-icon svg{width:17px;height:17px}.feed-item strong,.upcoming-row strong,.resource-mini strong{display:block;font-weight:760;font-size:12px}.feed-item small,.upcoming-row small,.resource-mini small{display:block;color:#a1a5b8;font-size:10px;margin-top:4px}.feed-item p{font-size:11.5px;color:#747b93;margin:6px 0 0}.upcoming-row{display:flex;align-items:center;gap:12px;padding:11px 0}.date-icon{width:45px;height:48px;border-radius:10px;background:#f2efff;color:#7360dc;display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:850;font-size:18px;line-height:1}.date-icon small{font-size:10px;font-weight:750;margin-top:5px}.soft-divider{border:0;border-top:1px solid #eeeef5;margin:19px 0}.resource-mini{display:flex;align-items:center;gap:12px;padding:10px 0}.resource-mini>span:nth-child(2){flex:1;min-width:0}.resource-mini>svg{height:17px;width:17px;color:#9a9bb1}.file-square{width:39px;height:40px;border-radius:10px;background:#fff1e8;color:#e7925d;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:11px;font-weight:840}.empty-inline{padding:23px 0;color:#9b9db0;font-size:12px}.flash{padding:12px 17px;border-radius:11px;margin-bottom:17px;font-weight:650;font-size:12px;display:flex;align-items:center;gap:12px}.flash button{margin-left:auto;border:0;background:none;color:inherit;font-size:20px}.flash-success{background:#ecfaf5;color:#218f6c}.flash-error{background:#fff0f0;color:#bc445c}.empty-state{padding:54px 25px;border:1px dashed #d9d9e9;border-radius:17px;background:#fff;text-align:center;margin-bottom:20px}.empty-state>span{font-size:39px;color:#a18bef}.empty-state h3{margin:9px 0 5px}.empty-state p{color:#9a9db1;font-size:12px;margin-bottom:16px}
.course-head{display:flex;align-items:center;gap:21px;padding:20px 0 27px}.course-head-icon{width:99px;height:96px;border-radius:18px;flex:0 0 99px;display:grid;place-items:center;font-size:63px;font-family:Georgia,serif;font-style:italic}.course-head-copy{flex:1;min-width:0}.course-head h1{font-size:27px}.course-head p{font-size:12px;color:#8188a1;margin:0 0 11px}.course-metadata{display:flex;gap:18px;color:#8c90a3;font-size:11px;font-weight:650}.course-metadata span{display:flex;align-items:center;gap:5px}.course-metadata svg{width:14px;height:14px}.course-head-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;justify-content:flex-end}.tabs-scroll{overflow-x:auto;white-space:nowrap;border-bottom:1px solid #e1e3ed;margin-bottom:24px;scrollbar-width:none}.tabs-scroll::-webkit-scrollbar{display:none}.course-tabs{display:flex;gap:25px;min-width:max-content}.course-tabs a{color:#9499aa;font-size:12px;font-weight:700;padding:12px 0 13px;border-bottom:3px solid transparent}.course-tabs a.selected{color:#6e5be7;border-bottom-color:#7967f2}.course-tabs a:hover{color:#6e5be7}.course-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(230px,1fr);gap:20px}.course-layout>div:first-child{display:flex;flex-direction:column;gap:20px}.course-rail{display:flex;flex-direction:column;gap:19px}.panel-feature{padding:33px;background:linear-gradient(105deg,#fff,#f7f5ff)}.panel-feature h2{font-size:22px;margin:8px 0 0}.panel-feature p{font-size:12px;max-width:520px;margin-bottom:23px}.feature-star{font-size:48px;color:#c7bcff}.announcement-item{display:flex;gap:13px;border-bottom:1px solid #f1f2f7;padding:15px 0}.announcement-item:last-child{border-bottom:0}.announcement-dot{height:33px;width:33px;flex:0 0 33px;background:#f4efff;color:#8570f7;display:grid;place-items:center;border-radius:10px}.announcement-item strong{display:block;font-size:12px}.announcement-item small{font-size:10px;color:#a0a3b4;display:block;margin-top:2px}.announcement-item p{color:#7f8499;font-size:11.5px;margin:5px 0;white-space:pre-line}.quick-actions{display:flex;flex-direction:column;gap:5px}.quick-actions a{display:flex;gap:12px;align-items:center;padding:12px 10px;border-radius:10px;color:#646983;font-size:12px;font-weight:700}.quick-actions a:hover{background:#f8f6ff;color:#6955ec}.quick-actions span{width:32px;height:32px;border-radius:9px;background:#f1edff;color:#755df1;display:grid;place-items:center;font-size:16px}.join-panel{background:#f9f7ff;border-color:#e7e1ff}.join-code{font-size:25px;letter-spacing:3px;font-weight:850;margin:5px 0}.join-panel p{font-size:11px;color:#82849e;margin-bottom:17px}.tab-heading{display:flex;justify-content:space-between;align-items:center;margin:28px 0 17px;gap:12px}.tab-heading h2{font-size:22px;margin:0 0 5px}.tab-heading p{margin:0;font-size:12px}.item-list{display:flex;flex-direction:column;gap:11px}.row-card{padding:18px 21px;border-radius:14px;border:1px solid #ededf4;background:#fff;display:flex;align-items:center;gap:17px;box-shadow:var(--shadow)}.row-card:hover{border-color:#d5cafe;background:#fefeff}.row-icon{width:48px;height:48px;border-radius:13px;font-size:18px;font-weight:850;display:grid;place-items:center;flex-shrink:0}.row-main{flex:1;min-width:0}.row-main strong{font-size:13px}.row-main p{font-size:11.5px;color:#82899d;margin:4px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row-main small{color:#a2a5b6;font-size:10.5px}.row-chevron{font-size:23px;color:#aaabd1}.tag{background:#f1effb;color:#786ad1;padding:6px 10px;border-radius:30px;font-size:10px;font-weight:820;white-space:nowrap;display:inline-block}.tag-green{background:#e7faf1;color:#1fa77e}.tag-orange{background:#fff2e1;color:#c58428}.padded-none{padding:0;overflow:hidden}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;text-align:left;min-width:590px}.data-table thead{background:#fafaff}.data-table th{font-weight:820;color:#9da1b2;font-size:10px;letter-spacing:.45px;text-transform:uppercase}.data-table th,.data-table td{padding:15px 19px;border-bottom:1px solid #f1f2f5;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.data-table td{color:#767c91;font-size:11.5px}.data-table td strong{color:#2b3050;font-size:12px}.file-name{display:flex;align-items:center;gap:10px}.file-name small{display:block;font-size:10px;margin-top:3px;color:#a2a4b4}.table-actions{display:flex;align-items:center;gap:7px}.table-actions form{margin:0}.table-heading{padding:22px 22px 6px}.table-heading h2{margin-bottom:2px}.table-heading p{font-size:11px;margin-bottom:0}.meeting-panel{margin-bottom:12px}.meeting-header{display:flex;align-items:center;gap:16px}.meeting-info{flex:1}.meeting-info h3{margin:0 0 4px}.meeting-info p{margin:0;color:#8990a3;font-size:12px}.meeting-links{display:flex;gap:8px}.big-date{width:55px;height:58px}.attendance-details{margin-top:15px;border-top:1px solid var(--line);padding-top:12px}.attendance-details summary{font-weight:750;color:#6455dc;cursor:pointer;font-size:12px}.attendance-details .btn{margin-top:13px}.member-name{display:flex;align-items:center;gap:11px}.avatar-small{width:32px;height:32px;border-radius:9px;font-size:12px}.course-edit-panel{margin-top:23px;max-width:690px}.course-edit-panel h2{margin-bottom:20px}.leave-course{margin-top:17px}.discussion-layout{display:grid;grid-template-columns:340px 1fr;gap:20px}.discussion-feed{display:flex;flex-direction:column;gap:12px}.discussion-post{padding:18px}.discussion-post p{white-space:pre-line;font-size:12.5px;color:#656b7b;margin:12px 0 0}.discussion-author{display:flex;align-items:center;gap:10px}.discussion-author strong{display:block;font-size:12px}.discussion-author small{display:block;color:#a0a4b3;font-size:10px}
.lesson-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(245px,1fr);gap:20px}.lesson-layout aside{display:flex;flex-direction:column;gap:18px}.lesson-content{padding:35px}.lesson-content h2{font-size:24px;margin:17px 0 22px}.lesson-text{font-size:14px;white-space:pre-wrap;line-height:1.95;color:#494e64;overflow-wrap:anywhere;min-height:65px}.delete-lesson{margin-top:15px}.assignment-submit{margin-top:20px}.assignment-submit h2{margin:0}.grade-summary{background:#f2f1ff;border-radius:13px;padding:24px;display:flex;gap:24px;align-items:center;margin-bottom:15px}.grade-summary strong{font-size:42px;font-weight:900;color:#6755df;display:block;line-height:1}.grade-summary strong small{font-size:16px}.grade-summary span{color:#80799a;display:block;margin-top:7px}.grade-summary p{margin:0;font-size:12px;white-space:pre-line}.submission-entry{padding:22px;border-top:1px solid #edf0f5}.submission-header{display:flex;align-items:center;gap:12px}.submission-header>div{flex:1}.submission-header strong{display:block}.submission-header small{display:block;font-size:10px;color:#a2a5b7;margin-top:2px}.submitted-answer{white-space:pre-line;background:#f9f9fc;border:1px solid #f1f1f6;border-radius:9px;padding:15px;font-size:12px;margin:13px 0}.grade-form{display:flex;align-items:flex-end;gap:10px;margin-top:14px}.grade-form label:first-child{max-width:110px}.grade-form label:nth-child(2){flex:1}.grade-form .btn{margin-bottom:0}.quiz-two-col{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(295px,.8fr);gap:19px}.quiz-two-col>div{display:flex;flex-direction:column;gap:20px}.sticky-panel{position:sticky;top:108px}.teacher-question{padding:14px 0;border-bottom:1px solid #edf0f5}.teacher-question:last-child{border:0}.teacher-question-top{display:flex;justify-content:space-between;gap:10px;margin-bottom:12px}.teacher-question-top strong{font-size:13px}.teacher-question-top span{font-size:11px;color:#9587d8}.teacher-choice{padding:7px 10px;border-radius:8px;font-size:11.5px;color:#797d8f}.teacher-choice span{display:inline-grid;place-items:center;background:#f2f2f8;border-radius:6px;width:22px;height:22px;margin-right:9px;font-weight:800}.teacher-choice.correct-choice{background:#e7f9ee;color:#1e976c;font-weight:760}.teacher-choice.correct-choice span{background:#bdefd2;color:#178459}.teacher-question form{margin-top:10px}.student-quiz{max-width:870px}.student-question{margin-bottom:15px;padding:28px}.question-count{font-size:10px;letter-spacing:1.3px;color:#7460d8;font-weight:850;display:flex;justify-content:space-between}.question-count span{color:#9b9eb1}.student-question h2{font-size:18px;margin:13px 0 22px}.quiz-options{display:grid;gap:10px}.quiz-option{display:flex;align-items:center;gap:14px;padding:13px 16px;border:1px solid #e9e9f2;border-radius:12px;cursor:pointer;font-size:13px}.quiz-option:hover{background:#faf8ff;border-color:#c9bffc}.quiz-option:has(input:checked){background:#f0edff;border-color:#8e7bf9}.quiz-option input{accent-color:#7562ef}.choice-letter{width:28px;height:28px;border-radius:8px;background:#f0effb;display:grid;place-items:center;font-weight:840;color:#7666e8}.btn-quiz-submit{min-width:255px}.quiz-result{text-align:center;padding:65px 20px;max-width:640px;margin:5px auto;background:#fff;border-radius:19px;border:1px solid #ecebf7}.quiz-trophy{display:block;color:#bea3ee;font-size:60px}.quiz-result h2{font-size:24px;margin-bottom:12px}.quiz-result>strong{font-size:65px;color:#6b58ed;display:block}.quiz-result>strong small{font-size:24px;color:#aca2c4}.quiz-result p{color:#9c9aad;font-size:12px;margin:12px 0 22px}.settings-layout{display:grid;grid-template-columns:300px 1fr;gap:18px;max-width:950px}.profile-panel{text-align:center;padding:32px 15px;height:fit-content}.profile-large{width:85px;height:85px;border-radius:25px;background:linear-gradient(140deg,#a18df9,#6c5adf);color:white;margin:0 auto 20px;display:grid;place-items:center;font-size:36px;font-weight:850}.profile-panel h2{margin-bottom:6px}.profile-panel p{font-size:12px;color:#a0a4b6}.subsection-title{font-weight:780;margin-top:8px;border-top:1px solid #e9eaf2;padding-top:20px}.subsection-title small{font-weight:500;color:#a4a8b6}.error-card{max-width:650px;background:white;margin:8vh auto;border-radius:20px;padding:50px;text-align:center}.error-code{font-size:90px;font-weight:900;color:#8272ee}.error-card p{color:#858ba0}
.form-stack{display:flex;flex-direction:column;gap:16px}.form-stack label,.grade-form label{display:block;font-size:11.5px;font-weight:740;color:#555a72}.form-stack label small,.grade-form label small{font-weight:550;color:#a4a6b5}.form-stack input,.form-stack textarea,.form-stack select,.grade-form input,.grade-form textarea{display:block;width:100%;background:#fff;border:1px solid #e1e3ed;border-radius:10px;padding:12px 13px;color:#313653;font-size:12px;margin-top:7px;outline:none;transition:border .15s,box-shadow .15s}.form-stack input:focus,.form-stack textarea:focus,.form-stack select:focus,.grade-form input:focus,.grade-form textarea:focus{border-color:#9b89f2;box-shadow:0 0 0 3px #9280ed22}.form-stack input:disabled{background:#f8f8fc;color:#a3a5b1}.form-stack textarea,.grade-form textarea{resize:vertical;min-height:75px}.form-stack input[type=file]{border:1px dashed #cfc8ed;background:#fbfaff;cursor:pointer}.form-stack input[type=number]{min-width:0}.form-row{display:flex;gap:12px}.form-row>*{flex:1;min-width:0}.form-stack .btn{margin-top:5px}.uppercase-input{text-transform:uppercase;letter-spacing:3px}.modal{display:none;position:fixed;inset:0;z-index:100;align-items:center;justify-content:center;padding:20px}.modal-open{display:flex}.modal-shade{position:absolute;inset:0;background:#121329a3;backdrop-filter:blur(5px)}.modal-card{position:relative;background:#fff;border-radius:22px;width:min(480px,95vw);padding:29px;max-height:90vh;overflow:auto;box-shadow:0 30px 80px #05061745;animation:rise .17s ease}.modal-wide{width:min(760px,95vw)}@keyframes rise{from{transform:translateY(10px);opacity:.6}to{transform:translateY(0);opacity:1}}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}.modal-head h2{font-size:23px;margin:0}.modal-card>.muted{font-size:12px;margin-bottom:23px}.modal-close{width:31px;height:31px;background:#f1f1f7;border:0;border-radius:9px;color:#757a9a;font-size:24px}.modal-card .form-stack{margin-top:20px}.icon-btn{border:0;background:none;display:grid;place-items:center}.nav-link,.btn,input[type=radio],.row-card{-webkit-tap-highlight-color:transparent}#snackbar{position:fixed;z-index:200;bottom:22px;right:25px;padding:13px 20px;border-radius:12px;background:#20233d;color:#fff;box-shadow:0 7px 20px #2223;transform:translateY(50px);opacity:0;transition:.2s;font-weight:750;font-size:12px;pointer-events:none}#snackbar.snack-show{transform:translateY(0);opacity:1}
/* Landing / sign in */
.auth-body{background:#fff}.auth-page{min-height:100vh;display:grid;grid-template-columns:1.03fr .97fr}.auth-left{background:#211d65;color:#fff;position:relative;overflow:hidden;padding:42px 63px;display:flex;flex-direction:column;justify-content:space-between;min-height:760px}.auth-left:before{content:'';position:absolute;width:780px;height:780px;background:radial-gradient(circle,#604cde77,transparent 66%);left:-210px;top:50px;pointer-events:none}.auth-left:after{content:'';position:absolute;width:520px;height:520px;border:1px solid #ffffff20;border-radius:50%;right:-270px;bottom:-220px;pointer-events:none}.brand-light{padding:0;position:relative;z-index:2}.auth-story{position:relative;z-index:2;margin-top:30px}.eyebrow-light{color:#b6b4ff;font-size:10px}.auth-story h1{font-size:clamp(37px,3.3vw,58px);line-height:1.11;letter-spacing:-2.1px;max-width:540px;font-weight:835;margin:10px 0 20px}.auth-story h1 em{font-style:normal;color:#9eeae1}.auth-story>p{max-width:460px;color:#cbcbea;font-size:14px}.auth-feature-row{display:flex;flex-wrap:wrap;gap:9px;margin-top:23px}.auth-feature-row span{color:#e9e6ff;border:1px solid #ffffff2b;background:#ffffff12;border-radius:30px;padding:7px 11px;font-weight:660;font-size:10px}.auth-illustration{height:260px;position:relative;margin:10px 15px 25px}.ill-board{position:absolute;left:13%;top:15px;width:75%;height:232px;border-radius:20px;background:#fff;transform:rotate(-3deg);box-shadow:0 20px 45px #0a084d99;overflow:hidden;color:#585a83}.ill-board-top{height:36px;background:#eeecfb;display:flex;align-items:center;gap:6px;padding:0 14px}.ill-board-top span{width:7px;height:7px;border-radius:50%;background:#b2a7e1}.ill-board-top span:nth-child(2){background:#a9e7d9}.ill-board-top span:nth-child(3){background:#ffc4ae}.ill-formula{font-family:Georgia,serif;font-size:26px;color:#6154d4;text-align:center;margin:17px 0 2px}.ill-formula span{border-bottom:1px solid #7365d6}.ill-graph{height:83px;margin:0 20px;background:repeating-linear-gradient(0deg,#fff,#fff 18px,#eef2fa 19px),repeating-linear-gradient(90deg,transparent,transparent 18px,#edf1f6 19px)}.ill-graph svg{width:100%;height:100%;stroke:none}.ill-board-bottom{display:flex;justify-content:space-between;font-size:10px;font-weight:780;padding:10px 20px;color:#969ab9}.ill-board-bottom span:last-child{color:#19aa94}.ill-card{position:absolute;z-index:2;display:flex;flex-direction:column;gap:3px;background:#fff;border-radius:12px;box-shadow:0 12px 30px #0a084b80;color:#37365f}.ill-note{top:44px;left:1%;padding:14px 18px;transform:rotate(9deg)}.ill-note span{font-family:Georgia,serif;font-size:38px;color:#8f67ff;line-height:1}.ill-note small{font-size:9px}.ill-users{right:0;bottom:0;padding:15px 18px;transform:rotate(6deg)}.ill-users span{font-size:20px;color:#22ad9b}.ill-users small{font-size:9px;color:#7b7794}.ill-users strong{font-size:14px}.auth-footer{position:relative;z-index:2;font-size:10px;color:#a3a2d8}.auth-right{display:flex;justify-content:center;align-items:center;padding:30px}.auth-panel{width:min(410px,95%);padding:28px 0}.auth-panel h2{font-size:31px;margin:4px 0 8px;letter-spacing:-1px}.auth-panel>.muted{font-size:13px;margin-bottom:32px}.auth-panel .form-stack{gap:19px}.auth-panel .form-stack label{font-size:12px}.auth-panel .form-stack input{padding:15px 14px;font-size:13px}.auth-panel .btn{margin-top:8px;min-height:49px}.auth-switch{text-align:center;color:#9799ab;font-size:12px;margin-top:24px}.auth-switch a{color:#6d5be8;font-weight:800}.demo-box{border:1px solid #ecebf5;background:#fafafe;border-radius:13px;padding:17px;margin-top:27px;font-size:11px;color:#777b90;line-height:1.8}.demo-box strong{color:#444667;display:block;font-size:12px;margin-bottom:7px}.demo-box code{font-size:10.5px;color:#6756ce;background:#eeebff;padding:1px 4px;border-radius:4px}.demo-separator{height:9px}.auth-error{background:#fff2f2;color:#b74457;border-radius:10px;padding:12px;margin-bottom:15px;font-size:12px}
/* Full whiteboard workspace */
.board-body .main-content{max-width:none;padding:25px 28px 40px}.board-topline{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:7px}.board-topline h1{font-size:25px;margin:0}.board-live{display:inline-block;vertical-align:middle;border-radius:30px;background:#e7faf2;color:#1ca781;padding:6px 10px;font-size:10px;letter-spacing:0;font-weight:800;margin-left:10px}.board-live[data-state=error]{background:#fff0ee;color:#d26c57}.board-live[data-state=saving]{background:#fff7e9;color:#c99042}.board-topline .back-link{margin-bottom:8px}.board-top-actions{display:flex;gap:7px;flex-wrap:wrap}.board-intro{font-size:11.5px;color:#9b9bb1;margin-bottom:17px}.whiteboard-app{background:#fff;border:1px solid #e6e5ef;border-radius:18px;box-shadow:0 10px 25px #24203b13;overflow:hidden}.whiteboard-toolbar{padding:11px 14px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #e9e9f3;overflow-x:auto}.tool-set{display:flex;align-items:center;gap:2px;flex-shrink:0}.tool-group-label{display:none}.tool-divider{border-left:1px solid #e9e9f3;height:42px;flex-shrink:0;margin:0 5px}.wb-tool{width:55px;height:53px;border:1px solid transparent;background:#fff;color:#596080;border-radius:10px;font-weight:760;font-size:23px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;flex-shrink:0}.wb-tool small{font-weight:700;font-size:9px;color:#898c9f}.wb-tool:hover{background:#f7f5ff}.wb-tool.selected{background:#f1edff;color:#6f5bed;border-color:#e5dfff}.wb-tool.selected small{color:#7865e5}.highlight-icon{transform:rotate(-25deg);font-size:22px;color:#e4b845}.color-label,.size-label{height:53px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px}.color-label{width:51px}.color-label input{width:31px;height:31px;padding:0;border:0;background:none;cursor:pointer}.color-label small,.size-label small{font-size:9px;font-weight:700;color:#898c9f}.size-label{width:78px}.size-label input{width:69px;accent-color:#6f5de8}.board-workspace{background:#e7eaf3;padding:18px;position:relative}.board-canvas-outer{overflow:auto;max-height:calc(100vh - 335px);min-height:350px;display:flex;align-items:flex-start;justify-content:flex-start;border-radius:5px}.board-paper{width:100%;min-width:540px;flex-shrink:0;aspect-ratio:16/9;box-shadow:0 4px 18px #33385225;background:#fff}.board-paper canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}.board-bottom-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 16px;background:#fff}.board-pages,.board-view-controls{display:flex;align-items:center;gap:9px}.board-pages>span:first-child{font-size:9px;color:#9fa2b1;letter-spacing:1.5px;font-weight:850;margin-right:4px}.board-nav-btn{width:31px;height:31px;border:1px solid #ededf3;background:#fff;color:#677089;border-radius:8px;font-size:19px;display:grid;place-items:center}.board-nav-btn:hover{background:#f4f0ff;color:#6c57e8}.page-counter,#zoom-level{font-size:11px;font-weight:800;color:#65697c;min-width:53px;text-align:center}.board-view-controls label{font-size:10px;color:#9396a9;display:flex;gap:9px;align-items:center;margin-right:6px}.board-view-controls select{background:#fafaff;border:1px solid #ebe9f5;border-radius:7px;padding:6px 7px;font-size:11px;color:#65697c}.board-help{display:flex;justify-content:space-between;gap:20px;margin-top:14px;color:#9b9db1;font-size:10.5px}.board-help strong{color:#7e72d4}.board-help>div:last-child{text-align:right;white-space:nowrap}.student-board-banner{padding:13px 17px;display:flex;align-items:center;gap:12px;background:#f7f5ff;color:#705cde;border-bottom:1px solid #eae6fd}.student-board-banner span{font-size:11px;color:#9090aa}.math-palette{position:fixed;z-index:50;right:44px;top:185px;width:290px;padding:16px;background:#fff;border:1px solid #e8e5f4;border-radius:17px;box-shadow:0 20px 55px #2020402a}.math-palette[hidden]{display:none}.math-palette>div:first-child{display:flex;justify-content:space-between;align-items:center}.math-palette>div:first-child button{border:0;background:none;font-size:23px;color:#9e9cae}.math-palette p{font-size:10.5px;color:#a3a0b6;margin:7px 0 14px}.math-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}.math-grid button{background:#f6f5fd;border:1px solid #eeeafa;border-radius:7px;height:33px;font-size:18px;color:#6961bd}.math-grid button:hover{background:#e6e0ff}
@media(max-width:1200px){.main-content{padding:28px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar{width:225px;flex-basis:225px}.course-head{flex-wrap:wrap}.course-head-actions{width:100%;justify-content:flex-start}.course-card-grid{gap:12px}.hero-decoration{right:0;opacity:.65}.auth-left{padding:35px}}
@media(max-width:920px){.sidebar{position:fixed;transform:translateX(-100%);transition:transform .2s;box-shadow:20px 0 40px #1112}.sidebar.show{transform:translateX(0)}.mobile-menu.icon-btn{display:grid}.topbar{padding:0 22px;height:65px;gap:10px}.site-content{width:100%}.main-content{padding:24px 20px}.course-layout,.lesson-layout,.quiz-two-col{grid-template-columns:1fr}.discussion-layout{grid-template-columns:1fr}.settings-layout{grid-template-columns:1fr}.auth-page{grid-template-columns:1fr}.auth-left{min-height:350px;padding:27px}.auth-illustration,.auth-footer{display:none}.auth-story{margin:30px 0 10px}.auth-story h1{font-size:43px}.auth-right{padding:25px}.auth-panel{padding:25px 0}.board-body .main-content{padding:19px 15px}.whiteboard-toolbar{gap:4px}.wb-tool{width:49px}.tool-divider{margin:0 3px}.board-canvas-outer{min-height:260px;max-height:60vh}}
@media(max-width:620px){h1{font-size:27px}.topbar .role-chip{display:none}.topbar-right{gap:4px}.mini-user-text{display:none}.breadcrumb{font-size:10px}.hero-banner{min-height:250px}.hero-copy{padding:27px}.hero-copy h2{font-size:25px}.hero-decoration{opacity:.14;right:-140px}.stats-grid{gap:9px}.stat-card{padding:13px;gap:9px}.stat-symbol{width:40px;height:42px;flex-basis:40px}.stat-card strong{font-size:23px}.stat-label{font-size:9px}.stat-card small{font-size:8px}.course-card-grid{grid-template-columns:1fr}.dashboard-columns{grid-template-columns:1fr}.page-heading{align-items:flex-start;flex-direction:column}.course-head{gap:12px}.course-head-icon{width:67px;height:66px;flex-basis:67px;font-size:41px}.course-head h1{font-size:23px}.course-head-actions{gap:5px}.course-metadata{gap:8px;font-size:10px;flex-wrap:wrap}.course-tabs{gap:17px}.row-card{padding:14px;gap:9px}.row-icon{width:40px;height:40px}.row-card .tag{display:none}.grade-form{flex-direction:column;align-items:stretch}.grade-form label:first-child{max-width:none}.meeting-header{flex-wrap:wrap}.meeting-links{width:100%}.board-topline{flex-direction:column;align-items:stretch}.board-topline h1{font-size:21px}.board-intro{font-size:10px}.board-bottom-bar{flex-direction:column;align-items:flex-start;gap:11px}.board-view-controls{width:100%;flex-wrap:wrap}.board-help{flex-direction:column;gap:6px}.board-help>div:last-child{text-align:left}.auth-story h1{font-size:36px}.auth-left{min-height:340px}.auth-feature-row{gap:5px}.auth-feature-row span{font-size:9px}.form-row{flex-direction:column}.sidebar-promo{margin-top:auto}}

/* Cross-course workspace hubs */
.hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.hub-card{background:#fff;border:1px solid #eeedf6;border-radius:18px;padding:24px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:11px;transition:.17s}.hub-card:hover{transform:translateY(-3px);border-color:#cfc6ff}.hub-card-top{display:flex;justify-content:space-between;align-items:center}.hub-icon{width:53px;height:53px;border-radius:15px;background:#f0eaff;color:#7964e8;display:grid;place-items:center}.hub-icon svg{width:24px;height:24px}.hub-card h3{font-size:17px;margin:3px 0 0}.hub-card p{font-size:11.5px;color:#888da0;margin:0;flex:1}.hub-card>div:last-child{display:flex;justify-content:space-between;border-top:1px solid #f0eff5;padding-top:13px;color:#7563e4;font-size:11px;font-weight:790}.hub-card-stats{font-size:10px;color:#9b9eae}.hub-overview{margin:0 0 25px}.hub-overview p{font-size:13px;color:#8c91a5}.hub-subtitle{font-size:17px;margin:28px 0 13px}.hub-table{margin-bottom:20px}@media(max-width:900px){.hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.hub-grid{grid-template-columns:1fr}}

/* ============================================================
   SmartBoard Studio 2.0 — immersive teaching and annotation UI
   ============================================================ */
.board-body{background:#f2f5fd}
.board-body .main-content{padding:19px 24px 36px;max-width:none}
.board-topline{margin:0 0 17px;align-items:center}
.board-topline h1{font-size:23px;letter-spacing:-.4px}
.board-body .board-live{font-size:10px;margin-left:9px;background:#ecf4ff;color:#5476c8}
.board-body .board-top-actions{align-items:center}
.board-body .board-intro{margin:0;font-size:12px}
.whiteboard-app.smartboard{--studio-dark:#222b43;border:1px solid #e4e6f4;border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 20px 52px #232d5717;position:relative;min-height:690px}
.smartboard *{box-sizing:border-box}
.smartboard button,.smartboard select,.smartboard input{font-family:inherit}
.smartboard button{cursor:pointer}
.smartboard button:disabled,.smartboard input:disabled,.smartboard select:disabled{cursor:not-allowed;opacity:.36}
.sb-header{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:13px;padding:11px 21px;background:#fff;border-bottom:1px solid #ebeaf5}
.sb-brand{display:flex;align-items:center;gap:12px;min-width:160px}
.sb-brand-symbol{width:46px;height:46px;border-radius:15px;background:linear-gradient(130deg,#7969f9,#5f9cff 65%,#6de3bf);box-shadow:0 6px 14px #796af535;color:#fff;display:grid;place-items:center;font-size:26px}
.sb-brand strong{font-size:16px;letter-spacing:-.3px;display:block;color:#262d50;font-weight:850}
.sb-brand small{display:block;font-size:10px;color:#9a9cb2;max-width:220px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;margin-top:3px}
.sb-header-center{display:flex;flex-direction:column;gap:4px;align-items:center;text-align:center;flex:1}
.sb-permission{font-weight:800;color:#554d88;font-size:11px;background:#f1eeff;padding:6px 11px;border-radius:999px}
.sb-saved{font-size:10px;color:#9b9eb1;max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sb-header-right{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.sb-header-display,.sb-header-utilities{display:contents}
.sb-top-btn{background:#fff;border:1px solid #e9e9f2;color:#66708b;display:inline-flex;align-items:center;gap:5px;font-weight:800;font-size:11px;border-radius:10px;padding:9px 11px;white-space:nowrap;min-height:36px}
.sb-top-btn:hover{background:#f5f4ff;transform:translateY(-1px)}
.sb-top-btn.sb-purple{background:#f4f1ff;border-color:#eee8ff;color:#6955e5}
.sb-top-btn.sb-blue{background:#eef8ff;border-color:#e6f2ff;color:#388bca}
.sb-top-btn.sb-green{background:#eafaf3;border-color:#daefe6;color:#169d7b}
.sb-top-btn.sb-fullscreen{background:linear-gradient(125deg,#7766f1,#a268f0);border-color:transparent;color:#fff;box-shadow:0 4px 12px #8164e83b}
.sb-collab-switch{display:flex;gap:7px;align-items:center;font-size:11px;font-weight:800;color:#53617b;padding:7px 9px;border-radius:9px;border:1px solid #e7eaf3;background:#fafbff;white-space:nowrap;cursor:pointer}
.sb-collab-switch input{accent-color:#35bba6;width:15px;height:15px;cursor:pointer}
.sb-studio{height:min(79vh,890px);min-height:560px;display:grid;grid-template-columns:186px minmax(0,1fr) 276px;overflow:hidden}
.sb-tools{background:linear-gradient(170deg,#fdfdff 3%,#fbfaff 80%,#f4fbff);border-right:1px solid #edf0f8;overflow-y:auto;overflow-x:hidden;padding:16px 12px 30px;min-height:0;scrollbar-width:thin}
.sb-rail-title{display:flex;justify-content:space-between;align-items:center;color:#778099;font-size:10px;font-weight:950;letter-spacing:2px;padding:0 7px;margin-bottom:13px;cursor:grab}
.sb-toolbox-grip{display:inline-grid;place-items:center;width:25px;height:25px;border:1px solid #e7e4f4;border-radius:7px;background:#f5f2ff;color:#6756be;font-size:16px;letter-spacing:0}
.sb-tools{user-select:none}
.sb-tools input,.sb-tools select{user-select:auto}
.sb-tools.sb-toolbox-dragging,.sb-tools.sb-toolbox-dragging *{cursor:grabbing!important}
.sb-deco{font-size:18px;color:#a485f9}
.sb-tool-section{margin-bottom:22px}
.sb-section-label{font-size:9px;letter-spacing:1.3px;color:#a1a5b9;font-weight:900;margin:0 0 8px 8px}
.sb-tool{display:flex;align-items:center;text-align:left;gap:10px;border:1px solid transparent;border-radius:13px;width:100%;min-height:48px;background:transparent;color:#454e6c;padding:5px 7px;margin:3px 0;transition:.15s}
.sb-tool>span:nth-child(2){min-width:0;flex:1;font-size:11px;font-weight:830}
.sb-tool small,.sb-material-btn small{font-weight:600;font-size:9px;display:block;color:#a0a5b5;margin-top:3px}
.sb-tool kbd{font-size:9px;color:#afb2c4;background:#fff;padding:2px 5px;border-radius:6px;border:1px solid #eeeef5}
.sb-tool:hover,.sb-tool-mini:hover,.sb-material-btn:hover{background:#fff;box-shadow:0 3px 10px #454c7210}
.sb-tool.selected{background:#fff;border-color:#e5ddff;box-shadow:0 5px 16px #7960de1a;color:#5a45cf}
.sb-tool.selected small{color:#8f81ce}
.sb-glyph{
 width:35px;height:35px;flex:0 0 35px;border-radius:11px;display:grid;place-items:center;
 font-size:20px;font-weight:900;border:1px solid #ffffffe6;
 box-shadow:inset 0 2px 1px #ffffffd9,inset 0 -3px 5px #42327120,0 2px 0 #5d4c842b,0 4px 8px #32245622;
 text-shadow:0 1px 0 #ffffffbc,0 2px 3px #35244b2b;transition:transform 130ms ease,box-shadow 130ms ease;
}
.sb-tools button:is(:hover,:focus-visible) .sb-glyph{transform:translateY(-1px);box-shadow:inset 0 2px 1px #ffffffd9,inset 0 -3px 5px #42327120,0 3px 0 #5d4c842c,0 6px 10px #3224562b}
.sb-tools button:active .sb-glyph{transform:translateY(1px)}
@media(prefers-reduced-motion:reduce){.sb-glyph{transition:none}}
.sb-glyph.purple{background:linear-gradient(140deg,#eae3ff,#f8f4ff);color:#745adf}
.sb-glyph.peach{background:linear-gradient(145deg,#fff0d7,#ffe6c7);color:#df9a39}
.sb-glyph.coral{background:linear-gradient(145deg,#ffe8ec,#ffdee3);color:#f36086}
.sb-glyph.yellow{background:linear-gradient(145deg,#fff6c9,#ffecb4);color:#c28d1b}
.sb-glyph.mint{background:linear-gradient(145deg,#ddfbf0,#c7f1e5);color:#16aa8a}
.sb-glyph.cyan{background:linear-gradient(145deg,#e0f6ff,#cdeafa);color:#2989cb}
.sb-glyph.violet{background:linear-gradient(145deg,#f3e4ff,#e6d7ff);color:#9760d9}
.sb-glyph.teal{background:linear-gradient(145deg,#defcf7,#bceee8);color:#168071}
.sb-tool-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px}
.sb-tool-mini{border:1px solid transparent;border-radius:12px;background:transparent;padding:7px 0;display:flex;flex-direction:column;align-items:center;gap:5px;color:#788198;font-size:10px;font-weight:800}
.sb-tool-mini .sb-glyph{width:37px;height:37px}
.sb-tool-mini.selected,.sb-material-btn.selected{background:#fff;border-color:#ddd4ff;color:#6651e8;box-shadow:0 4px 15px #5a4cd818}
.sb-material-btn{width:100%;display:flex;align-items:center;gap:7px;padding:7px 5px;background:transparent;border:1px solid transparent;border-radius:11px;text-align:left;color:#4b5574}
.sb-material-btn>span:nth-child(2){flex:1;min-width:0;font-weight:800;font-size:10.5px}
.sb-material-btn>span:last-child{font-size:16px;color:#b4b2c5}
.sb-middle{display:flex;flex-direction:column;min-width:0;min-height:0;background:#f3f5fb}
.sb-properties{min-height:58px;background:#fff;border-bottom:1px solid #e9eaf2;display:flex;align-items:center;gap:11px;padding:9px 15px;overflow-x:auto;scrollbar-width:thin;flex-shrink:0}
.sb-properties-group{display:flex;align-items:center;gap:6px;flex-shrink:0}
.sb-property-label{font-size:9px;font-weight:950;color:#999eb3;letter-spacing:1.1px;margin-right:3px;white-space:nowrap}
.sb-swatch{width:22px;height:22px;border-radius:50%;border:2px solid white;background:var(--swatch);box-shadow:0 0 0 1px #e6e6ee;position:relative;flex-shrink:0;padding:0}
.sb-swatch.active:after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;color:white;font-size:12px;font-weight:900}
.sb-swatch.active{box-shadow:0 0 0 2px #8471ed}
.sb-custom-color{font-size:18px;display:flex;align-items:center;position:relative;width:29px;cursor:pointer}
.sb-custom-color input{position:absolute;opacity:0;width:24px;height:30px;cursor:pointer}
.sb-properties input[type=range]{width:75px;accent-color:#7666ec;cursor:pointer}
.sb-value{font-size:10px;min-width:31px;color:#777d96;font-weight:800;white-space:nowrap}
.sb-properties select{border:1px solid #ececf4;border-radius:7px;padding:6px 3px;color:#5b6580;background:#fafaff;font-size:11px}
.sb-props-spacer{flex:1;min-width:8px}
.sb-small-button{background:#f7f8fc;border:1px solid #eceef7;color:#68728a;padding:6px 8px;font-size:10px;font-weight:800;border-radius:8px;white-space:nowrap}
.sb-small-button:hover{background:#efebff;color:#7462d9}
.sb-danger{color:#e8758d!important}
.sb-stage{position:relative;flex:1;min-height:0;overflow:auto;background:radial-gradient(circle at 6% 3%,#edf3ff,#f3f5fb 47%,#f8f6fd);padding:24px;display:block;scrollbar-width:thin}
.sb-empty-drop{position:sticky;top:15px;z-index:15;text-align:center;padding:18px;border:2px dashed #8f7bfb;background:#f4efffee;color:#6658d2;border-radius:15px;font-weight:900}
.sb-empty-drop[hidden]{display:none}
.smartboard .board-paper{min-width:0;width:100%;height:auto;aspect-ratio:16/9;position:relative;border-radius:3px;box-shadow:0 15px 35px #30385a29,0 0 0 1px #e4e6ee;background:white;overflow:hidden;flex:0 0 auto;display:block}
.smartboard .board-paper canvas{width:100%;height:auto;aspect-ratio:16/9;display:block;touch-action:none;cursor:crosshair}
.sb-text-frame{position:absolute;z-index:10}
.sb-text-frame[hidden]{display:none}
.sb-text-format{
 position:absolute;left:0;bottom:100%;z-index:1;display:flex;align-items:center;gap:5px;width:max-content;
 max-width:min(260px,65vw);margin:0 0 5px;padding:4px 5px 4px 8px;
 background:#fff;border:1px solid #e1d9fa;border-radius:9px;box-shadow:0 4px 12px #44357227;color:#46416f;
}
.sb-format-below .sb-text-format{top:100%;bottom:auto;margin:5px 0 0}
.sb-text-format label{display:flex;align-items:center;gap:5px;font-size:11px;font-weight:740;min-width:0}
.sb-text-format select,.sb-text-format button{background:#f8f5ff;color:#463684;border:1px solid #e5ddfa;border-radius:6px;min-height:26px;font-size:11px}
.sb-text-format select{min-width:0;padding:3px}
.sb-text-format button{padding:0 8px;font-weight:850}
.sb-inline-editor{display:block;width:100%;height:100%;resize:both;border:2px solid #8367ef;box-shadow:0 0 0 5px #7864f322;padding:0 4px;background:#ffffffea;font-family:system-ui,Arial,"Noto Sans Sinhala",sans-serif;font-weight:600;white-space:pre-wrap;overflow:auto;outline:0;color:#3b335f;border-radius:6px}
.sb-inline-editor.editing-sticky{background:#fff3b5;padding:13px;border-color:#dfb755;font-weight:600}
.sb-footer{background:#fff;border-top:1px solid #eaeaf3;padding:10px 14px;display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;min-height:57px}
.sb-pages,.sb-view{display:flex;gap:6px;align-items:center;color:#5c6381;font-size:10.5px;font-weight:800}
.sb-pages strong{margin-right:5px;white-space:nowrap}
.sb-pages>span,#zoom-level{white-space:nowrap;min-width:40px;text-align:center}
.sb-step{width:27px;height:28px;border:1px solid #ececf5;background:#fff;border-radius:8px;color:#707b98;font-size:17px;display:grid;place-items:center}
.sb-step:hover{background:#f2f0ff;color:#6d58e1}
.sb-add-page{padding:7px 9px;border:1px solid #ebe7ff;background:#f4f0ff;color:#6959da;font-size:10px;font-weight:850;border-radius:8px;white-space:nowrap}
.sb-view label{display:flex;align-items:center;gap:5px;margin-right:4px}
.sb-view select{background:#f9faff;border:1px solid #ebebf2;border-radius:7px;padding:5px;font-size:10px;color:#5d6581}
.sb-view{flex-wrap:wrap}
.sb-view input[type=color]{width:29px;height:26px;padding:2px;border:1px solid #dedff0;border-radius:7px;background:#fff;cursor:pointer}
.sb-notes{display:flex;flex-direction:column;min-height:0;overflow:hidden;background:linear-gradient(180deg,#fefeff 0%,#fcfaff 100%);border-left:1px solid #e9ebf5}
.sb-notes-header{border-bottom:1px solid #eff0f7;padding:18px 14px;display:flex;justify-content:space-between;align-items:center}
.sb-notes-header>div{display:flex;align-items:center;gap:9px}
.sb-notes-emoji{font-size:27px;filter:drop-shadow(0 3px 5px #6663a21b)}
.sb-notes-header strong{display:block;font-size:14px;color:#323a59;font-weight:870}
.sb-notes-header small{display:block;color:#a1a4b7;font-size:9.5px;margin-top:4px}
.sb-notes-header button{background:#f3f3fa;border:0;border-radius:9px;color:#8e94ab;width:28px;height:28px;font-size:18px}
.sb-notes-content{padding:16px 14px;flex:1;overflow-y:auto;display:flex;flex-direction:column;min-height:0}
.sb-note-label{color:#9881d8;font-size:10px;font-weight:900;letter-spacing:1.2px;margin-bottom:10px}
.sb-notes textarea{width:100%;min-height:160px;flex:1;max-height:430px;resize:vertical;border:1px solid #e7e5f5;border-radius:13px;background:#fff;padding:15px;color:#404866;font-size:12px;line-height:1.8;outline:0;box-shadow:0 5px 20px #45478d0b;transition:border-color .2s}
.sb-notes textarea:focus{border-color:#ac99ee;box-shadow:0 0 0 3px #9674ed14}
.sb-notes textarea[readonly]{background:#f8f8fd;color:#75809a}
.sb-notes textarea::placeholder{color:#b3b6c9}
.sb-note-sync{display:flex;justify-content:space-between;gap:6px;color:#a8a9bf;font-size:9px;margin:9px 0 17px}
.sb-quick-tips{background:linear-gradient(140deg,#f3efff,#eef8ff);border:1px solid #e9e5fc;border-radius:15px;padding:15px}
.sb-quick-tips strong{display:flex;align-items:center;gap:8px;color:#5e45b2;font-size:12px}
.sb-toolkit-icon{
 display:grid;place-items:center;width:28px;height:28px;border-radius:9px;color:white;
 background:linear-gradient(145deg,#aa90ff,#6d4dd0 66%,#5136a4);
 box-shadow:inset 0 1px 0 #ffffff66,0 3px 0 #483094,0 5px 8px #6041a73d;
}
.sb-toolkit-icon svg{width:18px;height:18px}
.sb-notes-preview{
 margin-top:8px;padding:9px;border:1px solid #dfd8f1;border-radius:10px;background:#faf8ff;color:#412e75;font-size:12px;
}
.sb-notes-preview .math-live-preview{max-height:190px;padding:4px 0 0}
.sb-quick-tips p{font-size:10.5px;color:#8185a5;line-height:1.65;margin:10px 0 0}
.sb-quick-tips b{color:#5959a0}
.sb-notes-bottom{font-size:9px;font-weight:650;color:#aea7c7;padding:12px;text-align:center;background:#fcfaff;border-top:1px solid #f1eff9}
.smartboard.sb-hide-notes .sb-studio{grid-template-columns:186px minmax(0,1fr)}
.smartboard.sb-hide-notes .sb-notes{display:none}
.sb-toast{position:absolute;z-index:150;right:20px;bottom:72px;padding:13px 17px;background:#2d2f53;color:#fff;font-size:12px;font-weight:750;border-radius:13px;box-shadow:0 12px 35px #24213f55;max-width:380px}
.sb-toast[hidden]{display:none}
.smartboard .math-palette{position:absolute;z-index:160;right:20px;top:84px;border-radius:15px;width:300px;max-width:95%;box-shadow:0 24px 60px #25234530}
.smartboard .math-grid button:hover{background:#eae4ff}
/* Fullscreen and focus mode work even when browser Fullscreen API is unavailable. */
body.board-focus{overflow:hidden}
body.board-focus .sidebar,body.board-focus .topbar{display:none!important}
body.board-focus .site-content{width:100vw!important;flex:1}
body.board-focus .main-content{padding:0!important}
body.board-focus .board-topline{display:none!important}
body.board-focus #whiteboard,.smartboard:fullscreen{position:fixed;z-index:9999;inset:0;width:100vw;height:100vh;height:100dvh;min-height:0;border:0;border-radius:0;box-shadow:none;background:#fff}
body.board-focus #whiteboard .sb-studio,.smartboard:fullscreen .sb-studio{height:calc(100vh - 78px);min-height:0}
body.board-focus #whiteboard .sb-stage,.smartboard:fullscreen .sb-stage{padding:8px 10px}
/* Colourful navigation icons across all LMS sections */
.side-nav:first-of-type .nav-link svg{background:linear-gradient(140deg,#6862e54a,#987aeb25);border-radius:8px;width:33px;height:33px;padding:7px;color:#a9a0ff;flex-shrink:0}
.side-nav:first-of-type .nav-link:nth-child(2) svg{background:linear-gradient(140deg,#fd7b8b55,#e28aeb29);color:#ff9eac}
.side-nav:first-of-type .nav-link:nth-child(3) svg{background:linear-gradient(140deg,#40cfbf50,#7df3bb21);color:#52e1c9}
.side-nav:first-of-type .nav-link:nth-child(4) svg{background:linear-gradient(140deg,#eab95155,#f7d76a24);color:#f4cb69}
.side-nav:first-of-type .nav-link:nth-child(5) svg{background:linear-gradient(140deg,#518eea58,#85bafd22);color:#92b8ff}
.side-nav:first-of-type .nav-link:nth-child(6) svg{background:linear-gradient(140deg,#ca83f652,#bd83ff28);color:#cea3f8}
/* Presenter remains practical on smaller laptop, tablet and phones */
@media(max-width:1500px){
 .sb-studio{grid-template-columns:170px minmax(0,1fr) 240px}
 .smartboard.sb-hide-notes .sb-studio{grid-template-columns:170px minmax(0,1fr)}
 .sb-header-center{display:none}
 .sb-header{padding:10px 15px}
 .sb-properties{gap:8px;padding:8px 10px}
 .sb-small-button span{display:none}
 .sb-studio .sb-tools{padding:13px 8px}
}
@media(max-width:1160px){
 .sb-studio{grid-template-columns:155px minmax(0,1fr) 215px}
 .smartboard.sb-hide-notes .sb-studio{grid-template-columns:155px minmax(0,1fr)}
 .sb-brand{min-width:auto}.sb-brand small{max-width:145px}
 .sb-top-btn span{display:none}.sb-top-btn{font-size:17px;padding:7px 10px}
 .sb-tool{gap:5px}.sb-glyph{width:32px;height:32px;flex-basis:32px}
 .sb-note-label{font-size:9px}
}
@media(max-width:850px){
 .board-body .main-content{padding:12px}
 .sb-header{flex-wrap:wrap;gap:8px}
 .sb-studio{display:grid;grid-template-columns:105px minmax(0,1fr);height:70vh;min-height:560px}
 .smartboard.sb-hide-notes .sb-studio{grid-template-columns:105px minmax(0,1fr)}
 .sb-notes{display:none;position:absolute;z-index:55;right:0;top:78px;bottom:0;width:min(300px,80vw);box-shadow:-13px 0 40px #30315421}
 .smartboard:not(.sb-hide-notes) .sb-notes{display:flex}
 .sb-tool{justify-content:center;padding:4px}.sb-tool>span:nth-child(2),.sb-tool kbd{display:none}
 .sb-tool-mini-grid{grid-template-columns:1fr 1fr}
 .sb-tool-mini{font-size:9px}.sb-tool-mini .sb-glyph{width:32px;height:32px}
 .sb-material-btn{flex-direction:column;gap:3px}.sb-material-btn>span:nth-child(2),.sb-material-btn>span:last-child{display:none}
 .sb-tool-section{margin-bottom:14px}
 .sb-section-label{font-size:7px;margin-left:0;text-align:center;letter-spacing:.4px}
 .sb-tools{padding:12px 5px}
 .sb-header-center{display:none}
 .sb-stage{padding:13px}
 .sb-footer{gap:5px;padding:7px}.sb-pages strong{display:none}
 .sb-quick-tips{display:none}
 body.board-focus #whiteboard .sb-studio{height:calc(100vh - 120px)}
}
@media(max-width:480px){
 .sb-header{padding:8px}
 .sb-brand-symbol{width:34px;height:34px;font-size:19px}
 .sb-brand strong{font-size:12px}.sb-brand small{font-size:8px;max-width:90px}
 .sb-collab-switch{font-size:9px;padding:6px}
 .sb-top-btn{padding:6px}
 .sb-studio{grid-template-columns:77px minmax(0,1fr)}
 .smartboard.sb-hide-notes .sb-studio{grid-template-columns:77px minmax(0,1fr)}
 .sb-tools{padding:8px 3px}
 .sb-tool-mini-grid{grid-template-columns:1fr}
 .sb-tool-mini small{display:none}
 .sb-footer{flex-direction:column;align-items:flex-start}
 .sb-stage{padding:6px}
 .sb-properties{padding:6px;min-height:45px}.sb-properties-group{gap:3px}
 .sb-property-label{font-size:7px}.sb-swatch{width:17px;height:17px}
 .sb-properties input[type=range]{width:53px}
 .sb-add-page{font-size:9px}
}

/* SmartClass Studio v3 — responsive navigation, brand, profile and assessment refresh */
.brand-mark,.brand-mark img{width:50px;height:50px;border-radius:50%;object-fit:contain}
.brand-mark{background:transparent;box-shadow:0 5px 20px #08bed630;flex:0 0 50px}
.brand-word{font-weight:880;letter-spacing:-.8px}
.brand-word small{letter-spacing:1.2px;font-weight:650}
.brand-accent{color:#33d7d0}
.avatar{overflow:hidden}.avatar img,.profile-large img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.profile-large{overflow:hidden}.avatar-upload-form{margin:25px 0 0;text-align:left;width:100%}.avatar-upload-form>label{font-weight:850;font-size:12px}.avatar-upload-form>small{color:#9096aa;font-size:10px}
.sidebar-collapse-button{margin:27px 8px 0;background:#252e4e;border:1px solid #414761;border-radius:10px;color:#ccdef6;min-height:35px;cursor:pointer;font-size:12px;font-weight:700;display:flex;align-items:center;gap:10px;padding:8px 12px}
.sidebar-collapse-button:hover{background:#344469}
.desktop-menu{border:1px solid #e5eafa;border-radius:10px;background:#f8faff;margin-right:18px;color:#485583;padding:9px 12px;cursor:pointer}
body.nav-collapsed .sidebar{width:76px;flex-basis:76px;padding:25px 8px 16px;transition:width .2s,flex-basis .2s}
body.nav-collapsed .sidebar .brand{padding:0 4px;justify-content:center}
body.nav-collapsed .sidebar .brand-word,body.nav-collapsed .sidebar-context,body.nav-collapsed .sidebar-promo,body.nav-collapsed .sidebar .nav-label,body.nav-collapsed .sidebar .nav-mini,body.nav-collapsed .sidebar-collapse-button span{display:none}
body.nav-collapsed .sidebar-collapse-button{justify-content:center;margin:24px 4px 0;padding:10px}
body.nav-collapsed .sidebar-collapse-button{font-size:0}
body.nav-collapsed .sidebar-collapse-button::before{content:'❯';font-size:15px}
body.nav-collapsed .sidebar .side-nav:first-of-type{margin-top:50px}
body.nav-collapsed .sidebar .nav-link,body.nav-collapsed .sidebar-signout button{justify-content:center;padding:14px 7px}
body.nav-collapsed .sidebar .nav-link svg{width:21px;height:21px}
.quiz-action-group{display:flex;gap:8px;flex-wrap:wrap}
.import-report{margin-bottom:22px;border-left:4px solid #14b8a5;background:linear-gradient(120deg,#f1fffc,#fff)}
.import-report h3{margin:0 0 8px}.import-report ul{font-size:12px;line-height:1.9;color:#69758c;max-height:260px;overflow:auto}
.quiz-free-answer{display:block;width:100%;max-width:700px;border:1px solid #dfe3f1;background:#fff;border-radius:10px;padding:14px;margin-top:10px}
button:disabled{opacity:.6;cursor:not-allowed}
@media(max-width:920px){.desktop-menu,.sidebar-collapse-button{display:none!important}body.nav-collapsed .sidebar{width:248px;flex-basis:248px;padding:31px 17px 17px}body.nav-collapsed .sidebar .brand-word,body.nav-collapsed .sidebar-context,body.nav-collapsed .sidebar-promo,body.nav-collapsed .sidebar .nav-label,body.nav-collapsed .sidebar .nav-mini{display:initial}body.nav-collapsed .sidebar .nav-link{justify-content:flex-start;padding:12px 14px}body.nav-collapsed .sidebar .side-nav:first-of-type{margin-top:0}}

/* SmartBoard 3.0 — mathematical instruments and formula studio */
.sb-geometry-tools{background:linear-gradient(145deg,#f3f9ff,#fcf5ff);border:1px solid #e9ebff;border-radius:16px;padding:13px 6px 10px;margin:4px -3px 20px}
.sb-geometry-config{display:flex;gap:7px;padding:7px 5px 4px}
.sb-geometry-config label{font-size:9px;font-weight:800;color:#646a83;display:flex;align-items:center;gap:4px;flex:1;min-width:0}
.sb-geometry-config input{min-width:0;width:35px;border:1px solid #dce2f6;border-radius:7px;padding:5px 2px;text-align:center;font-size:11px}
.sb-geometry-toggle{display:flex;align-items:center;gap:5px;font-size:10px;font-weight:690;color:#647089;padding:5px 6px}
.sb-measure-settings input{width:49px!important;border:1px solid #dce2ee;border-radius:6px;padding:4px;font-size:11px}
.sb-snap-label{display:flex;gap:3px;align-items:center;cursor:pointer}
.sb-snap-label input{accent-color:#06b6b3}
.sb-dialog-mask{position:fixed;inset:0;background:#0b1433a8;z-index:310;display:flex;align-items:center;justify-content:center;padding:18px;backdrop-filter:blur(5px)}
.sb-dialog-mask[hidden]{display:none!important}
.sb-dialog{background:white;border-radius:21px;box-shadow:0 20px 90px #0b134899;width:min(680px,94vw);max-height:87vh;overflow:auto;padding:25px}
.sb-dialog-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:15px}
.sb-dialog-header strong{font-size:19px;color:#263555;display:block}
.sb-dialog-header small{font-size:11px;color:#8795b3;line-height:1.5;display:block;margin-top:6px}
.sb-dialog-header button{flex:0 0 31px;border:0;background:#f2f3fa;color:#66728c;font-size:24px;border-radius:9px;cursor:pointer}
.sb-formula-presets{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0 17px}
.sb-formula-presets button{border:1px solid #dfe4f6;background:#f2f8ff;border-radius:9px;padding:7px 10px;color:#315895;font-size:11px;font-weight:780}
.sb-formula-presets button:hover{background:#ddf1ff}
.sb-math-label{font-size:11px;font-weight:850;color:#526482}
#formula-latex{display:block;width:100%;resize:vertical;margin:7px 0 13px;min-height:85px;border:2px solid #e2e6f6;border-radius:12px;font:15px/1.8 ui-monospace,monospace;padding:12px;color:#21345b}
#formula-latex:focus{outline:0;border-color:#39bdc5}
.sb-formula-preview{border:1px dashed #b8c9e9;border-radius:13px;background:repeating-linear-gradient(45deg,#f9fbff,#f9fbff 10px,#f3f8ff 10px,#f3f8ff 20px);min-height:130px;padding:13px;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:12px;text-align:center}
.sb-formula-preview>span{font-size:10px;font-weight:850;letter-spacing:1px;color:#7b8aa6}
.sb-formula-preview>div{font-size:11px;color:#73829d}
.sb-formula-preview img{max-width:100%;max-height:170px;object-fit:contain}
.sb-formula-help{font-size:10px;line-height:1.5;color:#8592aa;margin:13px 0}
.sb-dialog-actions{display:flex;justify-content:flex-end;gap:9px}
.sb-dialog-actions .sb-top-btn{font-size:12px;padding:12px 18px}
.sb-table-dialog{width:min(900px,95vw)}
.sb-table-editor{display:grid;gap:3px;max-width:100%;overflow:auto;padding:10px;border-radius:11px;border:1px solid #e2e8f4;background:#f7fbff;margin-bottom:18px}
.sb-table-editor input{min-width:75px;border:1px solid #dce4f2;padding:8px 6px;border-radius:6px;font-size:11px}
.sb-table-editor input:focus{outline:2px solid #53bed5}
@media(max-width:1120px){.sb-studio{grid-template-columns:158px minmax(0,1fr) 230px}.sb-geometry-config{flex-direction:column}}
@media(max-width:760px){.sb-measure-settings,.sb-snap-label{display:none}.sb-dialog{padding:16px}}

.sb-brand-image{background:transparent;box-shadow:none;border-radius:50%;overflow:hidden}.sb-brand-image img{width:46px;height:46px;object-fit:cover}

/* Polychrome navigation accents */
.sidebar .side-nav:first-of-type a:nth-child(1) svg{color:#a997ff}
.sidebar .side-nav:first-of-type a:nth-child(2) svg{color:#5fe5ca}
.sidebar .side-nav:first-of-type a:nth-child(3) svg{color:#ffbd69}
.sidebar .side-nav:first-of-type a:nth-child(4) svg{color:#86cbff}
.sidebar .side-nav:first-of-type a:nth-child(5) svg{color:#ff8db3}
.sidebar .side-nav:first-of-type a:nth-child(6) svg{color:#c5ef87}
.sidebar .nav-link.active{background:linear-gradient(108deg,#292f5b,#343468);box-shadow:inset 3px 0 0 #40e1d4}
.sidebar .nav-link:hover{background:#233558}
@media (prefers-reduced-motion:reduce){.sidebar{transition:none!important}}


/* SmartClass Studio 3.1 — local vector hero artwork and natural ink. */
.hero-banner{background:linear-gradient(112deg,#263eaa 0%,#5357d9 54%,#20a4c9 118%);border:1px solid rgba(255,255,255,.16);box-shadow:0 17px 38px #273f9a27;isolation:isolate}
.hero-overview{background:linear-gradient(112deg,#26349a 0%,#5657d9 58%,#1cb4d4 130%)}
.hero-whiteboards{background:linear-gradient(112deg,#193b82 0%,#465cd4 58%,#17b8c7 130%)}
.hero-library{background:linear-gradient(112deg,#24449a 0%,#536bd7 58%,#25b4b5 130%)}
.hero-assessments{background:linear-gradient(112deg,#30348e 0%,#6650c9 58%,#d181b0 130%)}
.hero-schedule{background:linear-gradient(112deg,#203d91 0%,#455dd9 58%,#159bbd 130%)}
.hero-banner::after{content:'';position:absolute;right:-70px;top:-120px;width:400px;height:400px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.23),rgba(255,255,255,0) 69%);pointer-events:none}
.hero-art{position:absolute;inset:10px 13px 12px;display:grid;place-items:center;transform:rotate(-6deg);filter:drop-shadow(0 15px 19px #07184938)}
.hero-art img{width:100%;height:100%;max-width:275px;max-height:216px;object-fit:contain;user-select:none;pointer-events:none}
.hero-art::before{content:'';position:absolute;width:190px;height:175px;border-radius:30px;transform:rotate(13deg);background:linear-gradient(125deg,#ffffff1e,#ffffff08);border:1px solid #ffffff36;z-index:-1}
.hero-copy{max-width:min(66%,660px)}
.hero-copy p{max-width:540px}
.hero-decoration{right:57px;top:0;height:100%;width:292px;pointer-events:none}
.hero-ring{border-color:#ffffff25}
@media(max-width:900px){.hero-decoration{right:-17px;opacity:.68;width:250px}.hero-copy{max-width:72%}}
@media(max-width:620px){.hero-decoration{right:-100px;top:0;opacity:.28;width:260px}.hero-copy{max-width:100%;padding:26px}.hero-art{inset:3px}.hero-banner{min-height:220px}}
.sb-tool[data-tool=pen].selected,.sb-tool[data-tool=pencil].selected,.sb-tool[data-tool=marker].selected,.sb-tool[data-tool=highlighter].selected{outline:2px solid #c5c1ff;outline-offset:-2px}
.board-paper canvas{touch-action:none;user-select:none;-webkit-user-select:none}
/* Hub copy remains legible over the blue gradient in the workspace banners. */
.hero-banner.hub-overview .hero-copy p{color:#ecf4ff;font-size:13px}

/* Version 3.1 icon release: five supplied glossy, circular 3D badge images. */
.hero-banner .hero-art {transform:none;inset:6px;filter:none}
.hero-banner .hero-art::before {display:none}
.hero-banner .hero-art img {width:100%;height:100%;max-width:228px;max-height:228px;object-fit:contain;filter:drop-shadow(0 14px 14px rgba(15,20,65,.3))}
.hero-banner .hero-ring {display:none}
.hero-banner .hero-decoration {width:298px;right:57px}
@media(max-width:900px){.hero-banner .hero-decoration {right:-20px;width:250px}}
@media(max-width:620px){.hero-banner .hero-decoration {right:-112px;opacity:.35;width:252px}.hero-banner .hero-art img {max-width:205px;max-height:205px}}

/* ===== Studio 3.1.1: compact, categorised teaching tools ===== */
.sb-private-launch{background:#fff;color:#4f47bc;box-shadow:0 9px 26px #15116132;border-radius:13px;display:inline-flex;gap:18px;align-items:center;font-weight:900;font-size:13px}
.sb-private-launch:hover{background:#f4f9ff;color:#41359f}
.smartboard .sb-tool-group{display:block;border:1px solid #edf0f8;border-radius:13px;background:#fff;padding:0;margin-bottom:9px;overflow:hidden}
.smartboard .sb-tool-group summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:4px;padding:13px 10px;margin:0;background:linear-gradient(110deg,#f8f9ff,#f6fbff);font-size:9.4px;letter-spacing:.6px;color:#535f89;user-select:none}
.smartboard .sb-tool-group summary::-webkit-details-marker{display:none}
.smartboard .sb-tool-group summary .sb-category-caret{color:#837ad9;font-size:13px;transition:transform .2s}
.smartboard .sb-tool-group[open] summary{color:#6250d9;background:linear-gradient(110deg,#efecff,#ebf9ff);border-bottom:1px solid #e9e8f8}
.smartboard .sb-tool-group[open] summary .sb-category-caret{transform:rotate(180deg)}
.smartboard .sb-tool-group>.sb-tool,.smartboard .sb-tool-group>.sb-tool-mini-grid,.smartboard .sb-tool-group>.sb-material-btn,.smartboard .sb-tool-group>.sb-geometry-config,.smartboard .sb-tool-group>.sb-geometry-toggle,.smartboard .sb-tool-group>.sb-compass-config,.smartboard .sb-tool-group>.sb-tool-hint{margin-left:5px;margin-right:5px;width:calc(100% - 10px)}
.smartboard .sb-tool-group .sb-tool:last-child,.smartboard .sb-tool-group .sb-material-btn:last-child{margin-bottom:7px}
.smartboard .sb-tool-group .sb-tool-mini-grid{margin-bottom:10px;margin-top:6px}
.smartboard .sb-tool-group .sb-tool{min-height:44px}
.smartboard .sb-tool-group .sb-tool small{font-size:8px}
.smartboard .sb-tool-group .sb-tool-mini{min-width:0}
.sb-compass-config{border-radius:9px;padding:10px 7px 7px;background:#faf8ff;margin-top:8px;font-size:10px;color:#536383;display:grid;gap:8px}
.sb-compass-config label{display:flex;align-items:center;justify-content:space-between;gap:5px}
.sb-compass-config input[type=number]{border:1px solid #e1e0ee;background:#fff;border-radius:6px;width:56px;padding:4px}
.sb-compass-config input[type=checkbox]{accent-color:#7b61e8}
.sb-tool-hint{font-size:9px;line-height:1.6;color:#8b93a9;padding:8px 5px}
.sb-pen-sizes{gap:4px}
.sb-size-choices{display:flex;align-items:center;gap:3px}
.sb-size-option{min-width:23px;height:26px;border:1px solid #e7e6f2;background:#fff;color:#777e9a;border-radius:7px;padding:3px;font-size:10px;font-weight:900}
.sb-size-option.active{background:#6c5be5;color:#fff;border-color:#6c5be5;box-shadow:0 3px 10px #6956ed55}
.smartboard.sb-writing-mode #board-canvas{cursor:none!important}
.sb-pen-cursor {
 position: fixed; top: 0; left: 0; z-index: 10050; pointer-events: none;
 width: 0; height: 0; will-change: transform;
}
.sb-pen-cursor svg {
 position: absolute; left: -5px; top: -30px; width: 32px; height: 34px;
 overflow: visible; stroke: none;
}
.sb-pen-cursor.sb-pen-down svg { visibility:hidden; }
.sb-pen-cursor::after {
 content: ''; position: absolute; left: 0; top: 0; transform: translate(-50%,-50%) rotate(var(--pen-tip-angle,0rad));
 width: var(--pen-point,4px); height: var(--pen-tip-height,4px); border-radius: 50%;
 border: 1px solid #fff; background: currentColor; box-shadow: 0 0 0 1px #26355590;
}
.sb-pen-cursor[hidden], .sb-graph-readout[hidden], #geometry-compass-fields[hidden] { display: none; }
.smartboard .board-paper #board-overlay {
 position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.sb-graph-readout {
 position: fixed; top: 0; left: 0; z-index: 10040; pointer-events: none;
 padding: 6px 9px; border-radius: 6px; background: #24334e; color: #fff;
 font: 600 12px/1.4 system-ui, sans-serif; font-variant-numeric: tabular-nums;
 white-space: nowrap; box-shadow: 0 3px 10px #202a4b25;
}
.sb-confirm {
 position: fixed; inset: 0; width: min(440px,calc(100% - 36px)); margin: auto; border: 1px solid #e4e6f4;
}
.sb-confirm::backdrop { background: #0b14338c; }
.sb-confirm .sb-confirm-danger { background: #b32649; border-color: #b32649; color: #fff; }
.sb-confirm .sb-confirm-danger:hover { background: #93203c; }
.sb-confirm :focus-visible { outline: 2px solid #7864f3; outline-offset: 3px; }
.sb-graph-features { font-size: 12px; color: #3c5272; margin-top: 10px; }
.sb-graph-features summary { font-weight: 750; cursor: pointer; }
.sb-graph-features ul { margin: 7px 0 0; padding-left: 22px; max-height: 105px; overflow: auto; }
.sb-graph-features li { padding: 2px 0; }
.sb-compass-config select, #geometry-compass-fields select {
 min-width: 0; border: 1px solid #e1e0ee; border-radius: 6px; padding: 5px; color: #27375c; background: #fff;
}
#geometry-compass-fields small { grid-column: 1 / -1; color: #596a87; }
.sb-graph-equation{width:100%;border:2px solid #ddd8ff;outline:0;background:#fbfaff;padding:13px 16px;border-radius:12px;font:650 18px ui-monospace,Consolas,monospace;color:#343d68;box-sizing:border-box;margin:8px 0 12px}
.sb-graph-equation:focus{border-color:#7d6af1;box-shadow:0 0 0 4px #7666ed20}
.sb-graph-presets{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 16px}
.sb-graph-presets button{border:1px solid #e9e8f5;background:#f8f9ff;color:#6854cc;padding:7px 10px;border-radius:9px;font-size:11px;font-weight:800}
.sb-graph-presets button:hover{background:#eeeaff}
.sb-graph-limits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:11px 0}
.sb-geometry-dialog .sb-graph-limits{grid-template-columns:1fr 1fr}
.sb-graph-limits label{display:flex;flex-direction:column;gap:5px;font-size:10.5px;font-weight:800;color:#7783a4}
.sb-graph-limits input{width:100%;min-width:0;border:1px solid #e1e5f3;border-radius:9px;padding:9px 8px;font-size:13px;color:#27375c}
.sb-graph-message{min-height:28px;color:#6858d0;font-size:11.5px;font-weight:750;margin:12px 0}
.sb-graph-dialog{width:min(700px,94vw)}
@media (max-width:1060px){.sb-size-choices{gap:2px}.sb-size-option{min-width:20px}.smartboard .sb-properties{gap:6px}}
@media (max-width:550px){.sb-graph-limits{grid-template-columns:1fr 1fr}.sb-size-choices{flex-wrap:wrap;max-width:76px}}
/* Properties wrap into organised rows on narrow boards instead of hiding actions off-screen. */
.smartboard .sb-properties{flex-wrap:wrap;overflow-x:visible;column-gap:13px;row-gap:7px;align-content:center}
.smartboard .sb-properties .sb-props-spacer{min-width:12px;flex:1 1 8px}
.smartboard .sb-properties input[type=range]{width:65px}

/* SmartBoard quick tools stay above the canvas, outside the scrolling shelf. */
.sb-quickbar {
 display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px;
 min-height: 40px; padding: 5px 12px; background: #fafaff; border-bottom: 1px solid #eceaf7;
}
.sb-quick-actions, .sb-zoom-group { display: flex; align-items: center; gap: 4px; }
.sb-quick-actions { margin-right: auto; }
.sb-quickbar .sb-small-button {
 min-height: 29px; font-size: 11px; padding: 4px 7px; background: #fff; color: #374462;
}
.sb-quickbar .sb-small-button span { display: inline; color: #6857c7; margin-right: 2px; }
.sb-quickbar .sb-small-button.selected {
 background: #eae3ff; border-color: #d8cefa; color: #4c35af;
}
.sb-quickbar .sb-step { color: #485676; }
.sb-quickbar button:focus-visible { outline: 2px solid #7359da; outline-offset: 2px; }
.sb-zoom-name { font-size: 10px; font-weight: 800; color: #536181; padding: 0 2px; }
.sb-graph-zoom { border-left: 1px solid #e4e0f4; padding-left: 8px; }
.sb-graph-zoom[hidden] { display: none; }
@media(max-width:1500px) { .smartboard { --sb-visible-notes: 240px; } }
@media(max-width:1160px) { .smartboard { --sb-visible-notes: 215px; } }
@media(max-width:1120px) { .smartboard { --sb-visible-notes: 230px; } }
@media(max-width:550px) {
 .sb-quickbar { padding: 5px 7px; gap: 5px 7px; }
 .sb-quickbar .sb-step { width: 24px; }
}
.sb-ink-setting {
 display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px;
 margin: 6px 5px 10px; font-size: 10px; font-weight: 700; color: #536383;
}
.sb-ink-setting select, .sb-matrix-options select, .sb-matrix-options input, .sb-matrix-cells input {
 min-width: 0; border: 1px solid #dce2f1; border-radius: 6px;
 background: #fff; color: #263555; padding: 5px;
}
.sb-ink-setting select{max-width:100%}
.sb-nib-control[hidden],.sb-ribbon-toggle[hidden]{display:none}
.sb-ribbon-toggle{color:#57459f;background:#f4efff;border-color:#e4d9fd}
.sb-ribbon-toggle[aria-expanded=true]{color:#fff;background:#6854d9;border-color:#6854d9}
.sb-eraser-options .sb-tool-mini small { display: block; line-height: 1.15; }
.sb-emoji-choices { margin: 8px 4px 3px; padding-top: 6px; border-top: 1px solid #eeeaf8; }
.sb-emoji-choices > span { font-size: 10px; font-weight: 750; color: #536181; }
.sb-emoji-choices > div { display: grid; grid-template-columns: repeat(auto-fit,minmax(24px,1fr)); gap: 3px; margin-top: 4px; }
.sb-emoji-choices button {
 display: grid; place-items: center; min-height: 26px; padding: 2px; border: 1px solid #ebeafa;
 border-radius: 6px; background: #fff; font-size: 14px;
}
.sb-emoji-choices button:hover, .sb-emoji-choices button[aria-pressed=true] { background: #eee6ff; border-color: #d7ccf7; }
.sb-matrix-builder {
 margin: 8px 0 12px; padding: 10px 12px; border: 1px solid #e0e3f3;
 border-radius: 9px; color: #455777; background: #f8f9ff; font-size: 12px;
}
.sb-matrix-builder summary { font-weight: 750; cursor: pointer; }
.sb-matrix-options { display: flex; flex-wrap: wrap; gap: 7px 12px; margin: 9px 0; }
.sb-matrix-options label { font-weight: 650; }
.sb-matrix-options input { width: 46px; }
.sb-matrix-cells { display: grid; gap: 5px; overflow-x: auto; margin: 8px 0; }
.sb-matrix-cells input { width: 100%; font-family: ui-monospace,Consolas,monospace; }
.sb-matrix-cells input:focus { outline: 2px solid #806bf1; }
.sb-formula-preview img { width: auto; height: auto; max-height: 180px; max-width: 100%; }
.sb-formula-preview { min-height: 90px; }
.smartboard.sb-brush-erase #board-canvas { cursor: none !important; }

/* The controls float over the canvas only in board full-screen mode. */
.sb-upperbar { flex: none; }
body.board-focus #whiteboard .sb-middle, .smartboard:fullscreen .sb-middle { position: relative; }
body.board-focus #whiteboard .sb-upperbar, .smartboard:fullscreen .sb-upperbar {
 position: absolute; z-index: 19; top: 8px; inset-inline: 10px;
 width: auto; margin: 0 auto; max-width: 1370px;
 border: 1px solid #e3dff4; border-radius: 13px; background: #fff;
 box-shadow: 0 9px 28px #29265126; overflow: hidden;
 transition: opacity 150ms ease-out, transform 150ms ease-out;
}
body.board-focus #whiteboard.sb-upperbar-hidden .sb-upperbar,
.smartboard:fullscreen.sb-upperbar-hidden .sb-upperbar {
 opacity: 0; transform: translateY(-8px); pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
 body.board-focus #whiteboard .sb-upperbar, .smartboard:fullscreen .sb-upperbar { transition: none; }
}
.sb-graph-math-preview {
 min-height: 63px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
 padding: 8px 12px; border: 1px solid #e0e7f5; border-radius: 9px; background: #f5f8ff;
 font-size: 12px; color: #465575;
}
.sb-graph-math-preview img { max-width: 100%; max-height: 56px; object-fit: contain; }
.sb-graph-math-preview [hidden] { display: none; }
.sb-collab-switch b { color: #575979; padding-left: 3px; }
.sb-collab-switch:has(input:checked) { background: #e9f9f1; border-color: #ccead9; }
.sb-collab-switch input:focus-visible { outline: 2px solid #7454dc; outline-offset: 2px; }
.sb-record-button { color: #9c3156; }
.sb-record-button.sb-recording { background: #ffedf2; border-color: #f3cedb; color: #a81845; }
.sb-record-live { color: #9c244d; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sb-record-dialog { width: min(680px,94vw); border: 1px solid #e1e2f0; }
.sb-record-dialog::backdrop { background: #151e428e; }
.sb-record-dialog .sb-confirm-danger { color: #fff; background: #98365c; }
.sb-record-mic { display: flex; align-items: center; gap: 7px; font-size: 13px; margin-bottom: 16px; }
#record-preview { display: block; width: 100%; max-height: 330px; background: #182135; border-radius: 8px; }
.sb-record-options {
 display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 8px; align-items: center;
 margin: 14px 0; font-size: 12px; color: #38455f;
}
.sb-record-options select, .sb-record-options input {
 min-width: 0; border: 1px solid #dce2f2; border-radius: 7px; padding: 7px; background: #fff;
}
#record-lesson-link { display: inline-block; margin-top: 10px; }
#record-lesson-link[hidden] { display: none; }
.lesson-recordings { margin-top: 24px; padding-top: 12px; border-top: 1px solid #e7e8f2; }
.lesson-recording { margin: 10px 0 20px; }
.lesson-recording h3 { margin-bottom: 8px; }
.lesson-recording video { width: 100%; max-height: 500px; background: #192135; border-radius: 9px; display: block; }
.lesson-recording .text-link { display:inline-block; margin-top: 7px; }
[data-quiz-math], #quiz-math-preview { white-space: pre-line; overflow-wrap: anywhere; }
.quiz-equation { position:relative; display:inline-block; max-width:100%; }
.quiz-equation-display { display: block; overflow-x: auto; }
.quiz-equation mjx-container svg { overflow: visible; max-width: none; }
.quiz-equation mjx-assistive-mml {
 position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap;
}
.quiz-latex-tools { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.quiz-latex-tools span { width: 100%; color: #485775; font-size: 11px; font-weight: 800; }
.quiz-latex-tools button {
 border: 1px solid #e1dbfa; border-radius: 6px; padding: 5px 7px;
 background: #f4f0ff; color: #5146a5; font-weight: 650; font-size: 11px;
}
.quiz-latex-tools button:hover { background: #e9e1ff; }
.quiz-math-preview {
 min-height: 63px; padding: 9px 10px; border: 1px solid #e2e5f6; border-radius: 8px;
 background: #f8f9ff; color: #454f68; font-size: 12px; overflow-x: auto;
}
.quiz-math-preview strong { display:block; font-size:10px; color:#586580; margin-bottom:6px; }
.quiz-math-error { display:block; color:#973751; margin-top:5px; }

/* A document occupies its own pane, while the canvas and neighbouring sheets scroll together. */
.sb-split[hidden], .sb-context-menu[hidden], .sb-context-menu [hidden],
.sb-split [hidden], #lock-board-document[hidden] { display: none !important; }
.sb-stage.sb-split-stage { display: flex; overflow: hidden; padding: 0; }
.sb-split-stage .sb-empty-drop { position: absolute; inset: 12px 12px auto; z-index: 21; pointer-events: none; }
body.board-focus #whiteboard .sb-stage.sb-split-stage,
.smartboard:fullscreen .sb-stage.sb-split-stage { padding: 0; }
.sb-split {
 --sb-ref-share: 40%;
 flex: 1; min-width: 0; min-height: 0; display: flex; overflow: hidden;
 background: #e8edf7;
}
.sb-reference-pane {
 order: 0; flex: 0 0 var(--sb-ref-share); min-width: 0; min-height: 0;
 display: flex; flex-direction: column; background: #f4f7fd;
}
.sb-reference-header, .sb-writing-controls {
 display: flex; align-items: center; gap: 6px; padding: 7px 10px;
 border-bottom: 1px solid #e2e8f4; min-height: 42px; background: #fbfcff;
}
.sb-reference-heading {
 flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap;
 column-gap: 8px; color: #304269; font-size: 11px;
}
.sb-reference-heading strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.sb-reference-heading span { color: #156446; font-size: 9px; font-weight: 800; }
.sb-reference-header button { flex: 0 0 auto; }
.sb-reference-viewport {
 flex: 1; min-height: 0; min-width: 0; padding: 10px; overflow: auto;
 overscroll-behavior: contain; background: #edf1f9;
}
.sb-reference-viewport img { display: block; max-width: none; margin-inline: auto; user-select: none; }
.sb-reference-viewport.sb-can-pan { cursor: grab; }
.sb-reference-viewport.sb-is-panning { cursor: grabbing; }
.sb-reference-zoom { display: flex; justify-content: center; align-items: center; gap: 5px; padding: 5px;
 background: #fbfcff; border-top: 1px solid #e2e8f4; }
.sb-divider {
 order: 1; cursor: col-resize; flex: 0 0 10px; touch-action: none; position: relative;
 background: #e2e8f4; display: flex; align-items: center; justify-content: center;
}
.sb-divider span { width: 3px; height: 40px; border-radius: 3px; background: #9299bc; }
.sb-divider:hover, .sb-divider:focus-visible { outline: none; background: #ddd4ff; }
.sb-divider:focus-visible span { background: #6953cf; }
.sb-writing-pane { order: 2; flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.sb-split[data-dock="right"] .sb-reference-pane { order: 2; }
.sb-split[data-dock="right"] .sb-writing-pane { order: 0; }
.sb-writing-controls { justify-content: space-between; flex-wrap: wrap; flex: 0 0 auto; }
.sb-sheet-label, .sb-sheet-actions { display: flex; align-items: center; gap: 6px; }
.sb-sheet-label { font-size: 11px; color: #344469; }
.sb-sheet-label span { color: #6454bb; font-weight: 800; font-variant-numeric: tabular-nums; }
.sb-sheet-actions .sb-step, .sb-sheet-actions .sb-add-page { flex: 0 0 auto; }
.sb-sheet-scroll {
 flex: 1; min-height: 0; min-width: 0; overflow: auto; overscroll-behavior: contain;
 scroll-snap-type: x mandatory; scrollbar-color: #998ac4 #e9e4f5; scrollbar-width: auto;
}
.sb-sheet-scroll:focus-visible { outline: 2px solid #745ed6; outline-offset: -2px; }
.sb-sheet-strip { --sb-slot: 680px; --sb-paper-width: 640px; display: flex; width: max-content; min-width: 100%; min-height: 100%; }
.sb-sheet-slot {
 box-sizing: border-box; flex: 0 0 var(--sb-slot); width: var(--sb-slot); min-width: 0; padding: 10px 12px 14px;
 scroll-snap-align: start; border-inline-end: 1px solid #e0e4ef;
}
.sb-sheet-slot .board-paper, .sb-sheet-preview {
 width: var(--sb-paper-width) !important; aspect-ratio: 16 / 9;
 border-radius: 6px; background: #fff; box-shadow: 0 5px 13px #26305823;
}
.sb-sheet-preview { display: block; height: auto; }
.sb-context-menu {
 width: min(228px, calc(100vw - 18px)); max-height: calc(100dvh - 18px); overflow: auto;
 position: fixed; z-index: 10800; padding: 5px; border-radius: 11px;
 border: 1px solid #e1e1f0; background: #fff; box-shadow: 0 12px 34px #1c244e3a;
 color: #2c395b; font-size: 12px;
}
.sb-context-menu button {
 display: grid; width: 100%; grid-template-columns: 18px 1fr auto;
 gap: 7px; align-items: center; text-align: left; white-space: nowrap;
 border: 0; background: transparent; border-radius: 6px; padding: 7px 8px;
 color: inherit; font-weight: 680;
}
.sb-context-menu button span { color: #6251ae; text-align: center; }
.sb-context-menu button:focus-visible, .sb-context-menu button:hover { background: #eeeafb; outline: none; }
.sb-context-menu button:disabled { cursor: default; }
.sb-context-menu kbd { color: #707c99; font-size: 9px; font-family: inherit; }
.sb-context-menu hr { border: 0; border-top: 1px solid #edeaf4; margin: 4px 6px; }
@media (max-width: 640px) {
 .sb-reference-header, .sb-writing-controls { padding-inline: 5px; }
 .sb-reference-viewport { padding: 4px; }
 .sb-reference-header .sb-small-button { font-size: 9px; padding-inline: 4px; }
 .sb-sheet-actions { gap: 3px; }
}
.sb-sheet-scroll { scrollbar-gutter: stable; }
.sb-sheet-scroll.sb-drag-scroll { scroll-snap-type: none; }
.smartboard.sb-hand-mode .board-paper canvas, .smartboard.sb-hand-mode .sb-sheet-preview { cursor: grab !important; }
.smartboard.sb-panning .board-paper canvas, .smartboard.sb-panning .sb-stage { cursor: grabbing !important; }
.smartboard.sb-panning { user-select: none; }
.sb-sheet-actions .sb-remove-sheet { background:#fff4f5; border-color:#f3d9df; color:#a44662; }
.sb-session-actions { display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.sb-session-actions .sb-open-class { color:#18674f; background:#ecf9f3; border-color:#d7eee4; }
.sb-open-class[aria-pressed="true"] { color:#9b4162; background:#fff2f5; border-color:#f3dce4; }
.sb-session-actions .sb-finish-board { color:#5840a5; background:#f2edff; border-color:#e5dafb; }
.sb-rename-label { display:grid; gap:6px; margin:14px 0; font-size:12px; color:#53617b; }
.sb-rename-label input { padding:8px; border:1px solid #dbdef0; border-radius:7px; color:#283656; }
.sb-page-jump { display:inline-flex; gap:5px; align-items:center; color:#53617b; font-size:11px; font-weight:700; }
.sb-page-jump input { width:52px; border:1px solid #dce2f2; border-radius:7px; padding:5px 3px; text-align:center; color:#38466a; }
#board-name { overflow-wrap:anywhere; }
.board-library-layout { display:grid; grid-template-columns:minmax(235px, .8fr) minmax(320px, 1.6fr); align-items:start; gap:18px; }
.board-hub-library { margin:22px 0 26px; }
.board-library h2, .board-waiting h2 { margin:0; font-size:19px; }
.board-library-heading { display:flex; align-items:center; gap:9px; }
.board-create-form { display:grid; gap:13px; align-items:start; margin-top:14px; }
.board-create-form label { color:#475678; font-weight:700; font-size:13px; }
.board-create-form input[name="name"] { display:block; width:100%; padding:10px; margin-top:7px; border:1px solid #dfe4f3;
 border-radius:9px; background:#fcfdff; color:#2b385e; font:inherit; font-weight:500; }
.board-create-form button { justify-self:start; }
.board-library-list { list-style:none; margin:10px 0 0; padding:0; }
.board-library-item { display:flex; align-items:center; gap:11px; border-radius:9px; padding:9px 4px; color:#303b61; }
.board-library-list li+li { border-top:1px solid #edf0f7; }
.board-library-item:hover { background:#f7f5ff; }
.board-library-item:focus-visible, .sb-session-actions a:focus-visible { outline:2px solid #7359da; outline-offset:2px; }
.board-library-icon { flex:0 0 36px; width:36px; height:36px; display:grid; place-items:center; border-radius:10px;
 background:#eee9ff; color:#6c52c8; }
.board-library-icon svg { width:19px; height:19px; }
.board-library-title { min-width:0; flex:1; overflow-wrap:anywhere; }
.board-library-title strong, .board-library-title small { display:block; }
.board-library-title small { color:#6c7792; font-size:11px; margin-top:4px; }
.board-library-open { color:#5d45b3; font-size:11px; font-weight:750; white-space:nowrap; }
.board-library-live { color:#157654; font-size:10px; font-weight:750; }
.board-waiting { display:grid; gap:10px; justify-items:start; }
.board-waiting p { margin:0 0 5px; }
@media (max-width: 820px) { .board-library-layout { grid-template-columns:minmax(0, 1fr); } }

.sb-selection-actions { display:flex; flex-wrap:wrap; align-items:center; gap:5px; padding:5px 11px; border-bottom:1px solid #ece8fb; background:#f7f4ff; }
.sb-selection-actions[hidden], .sb-selection-actions [hidden], .sb-study-dialog [hidden], .sb-reference-selection[hidden] { display:none !important; }
#selection-summary { margin-right:7px; font-size:11px; font-weight:750; color:#5745a7; }
#selection-group, #selection-ungroup { color:#5c43b3; border-color:#ded3ff; }
.sb-reference-viewport { position:relative; }
.sb-area-mode .sb-reference-viewport, .sb-area-mode .sb-reference-viewport.sb-can-pan,
.sb-area-mode .board-paper canvas { cursor:crosshair !important; }
.sb-reference-selection { position:absolute; z-index:1; pointer-events:none; background:#8268ed25;
 border:1.5px dashed #6844bd; border-radius:2px; }
.sb-study-dialog, .sb-calculator { border:0; color:#2b385e; }
.sb-study-dialog::backdrop, .sb-calculator::backdrop { background:#17213d99; backdrop-filter:blur(3px); }
.sb-study-form { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.sb-study-form label, .sb-quiz-attach { display:grid; gap:5px; font-size:12px; font-weight:700; }
.sb-study-form input:not([type=checkbox]), .sb-study-form select, .sb-quiz-attach input {
 width:100%; min-width:0; padding:9px; border:1px solid #dce0f0; border-radius:8px; background:#fcfdff;
 color:#2c395b; font:inherit; font-weight:500; }
.sb-study-form .sb-study-wide, .sb-study-form .sb-dialog-actions, .sb-quiz-method-note,
.sb-study-form .sb-study-check { grid-column:1/-1; }
#lesson-finish-actions:not([hidden]) + #lesson-quiz-options:not([hidden]) {
 margin-top:16px; padding-top:16px; border-top:1px solid #edf0f8;
}
.sb-study-form .sb-study-check { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.sb-study-check input { accent-color:#6e56db; }
.sb-study-form button[type=submit] { justify-self:start; }
.sb-quiz-attach { margin-top:16px; padding-top:13px; border-top:1px solid #edf0f8; }
.sb-quiz-method-note { margin:0; color:#5c6682; font-size:11px; line-height:1.5; }
.sb-calculator { width:min(600px,94vw); }
.sb-calc-screen { border:1px solid #3c4b75; border-radius:15px; background:#172440; color:#f5f9ff; padding:14px; }
.sb-calc-screen input { display:block; width:100%; background:transparent; color:#dae4ff; border:0;
 padding:3px 0 10px; font:600 18px ui-monospace,monospace; }
.sb-calc-screen input::placeholder { color:#b6c4e1; }
.sb-calc-screen input:focus-visible { outline:2px solid #b1a0ff; border-radius:4px; outline-offset:2px; }
.sb-calc-screen output { display:block; min-height:57px; overflow-wrap:anywhere; text-align:right;
 font:700 clamp(27px,6vw,46px) ui-monospace,monospace; }
.sb-calc-screen .sb-calc-error { color:#ffc1cd; font-size:21px; }
.sb-calc-mode { margin:11px 0; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.sb-calc-mode label { display:flex; align-items:center; gap:6px; font-size:12px; font-weight:700; }
.sb-calc-mode select { padding:5px; border:1px solid #d7dcef; border-radius:6px; color:#2b385e; background:#fff; }
.sb-calc-keys { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:6px; }
.sb-calc-keys button { min-height:37px; border:1px solid #dedfeb; border-radius:8px; background:#f7f6fe;
 color:#344367; font-weight:750; font-size:14px; }
.sb-calc-keys button:hover { background:#eae4ff; color:#563dbc; }
.sb-calc-keys .sb-calc-equals { color:#fff; background:#684ee0; grid-column:1/-1; }
.sb-calc-keys .sb-calc-equals:hover { color:#fff; background:#563bc7; }
.quiz-header-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
@media (max-width:520px) {
 .sb-study-form { grid-template-columns:1fr; }
 .sb-study-dialog .sb-dialog-actions { flex-wrap:wrap; justify-content:flex-start; }
 .sb-calc-keys { gap:4px; }
 .sb-calc-keys button { font-size:12px; }
}

/* Studio 3.1.6 */
@font-face {
 font-family:"Dancing Script";src:url("../fonts/dancing-script-latin-600-normal.woff2") format("woff2");
 font-weight:600;font-style:normal;font-display:swap;
}
@font-face {
 font-family:Caveat;src:url("../fonts/caveat-latin-600-normal.woff2") format("woff2");
 font-weight:600;font-style:normal;font-display:swap;
}

body.board-focus #whiteboard,.smartboard:fullscreen{display:flex;flex-direction:column}
body.board-focus #whiteboard .sb-header,.smartboard:fullscreen .sb-header{flex:none;flex-wrap:wrap}
body.board-focus #whiteboard .sb-studio,.smartboard:fullscreen .sb-studio{flex:1;height:auto;min-height:0}
.sb-fullscreen-tools{
 display:flex;align-items:center;gap:3px;padding:4px;border:1px solid #e4e4f3;border-radius:13px;
 background:linear-gradient(150deg,#f3efff,#f8fcff);
 box-shadow:inset 0 1px 3px #fff,0 3px 8px #3b367019;
}
.sb-fullscreen-tools[hidden],#selected-text-colour[hidden]{display:none}
.sb-fullscreen-tool{display:grid;place-items:center;padding:3px;border:1px solid transparent;border-radius:9px;background:transparent}
.sb-fullscreen-tool .sb-glyph{width:29px;height:29px;font-size:16px;border-radius:8px}
.sb-fullscreen-tool[aria-pressed=true]{border-color:#9583f0;background:#e8e0ff}
.sb-fullscreen-tool:hover:not(:disabled) .sb-glyph{transform:translateY(-1px)}
.sb-fullscreen-tool:focus-visible{outline:2px solid #6250cc;outline-offset:1px}
.sb-fullscreen-tool:disabled{opacity:.42;cursor:default}
.sb-text-format{max-width:min(410px,85vw)}
.sb-text-colour input[type=color]{width:25px;height:24px;border:1px solid #ded9ef;border-radius:6px;background:#fff;padding:2px;cursor:pointer}
.sb-table-options{display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap;margin:0 0 12px}
.sb-table-options label{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700}
.sb-table-options select{padding:5px 8px;border:1px solid #dadff1;border-radius:7px;background:#fff;color:#3a4161}
.sb-table-editor[data-heading=violet] [data-heading-cell]{background:#eee7ff;border-color:#cab9fa}
.sb-table-editor[data-heading=teal] [data-heading-cell]{background:#dcfaf1;border-color:#a8d9cb}
.sb-table-editor[data-heading=blue] [data-heading-cell]{background:#e2f3ff;border-color:#b5d8f0}
.sb-table-editor[data-heading=amber] [data-heading-cell]{background:#fff3d3;border-color:#eccc84}

#references-dialog{width:min(790px,94vw);max-height:92dvh;overscroll-behavior:contain}
.sb-reference-tabs{
 display:flex;gap:4px;padding:4px;margin-bottom:12px;border:1px solid #e2dff1;border-radius:12px;background:#f4f2fb;
}
.sb-reference-tabs button{
 min-width:0;flex:1;padding:8px;border:1px solid transparent;border-radius:8px;background:transparent;
 color:#514574;font-size:12px;font-weight:750;line-height:1.3;
}
.sb-reference-tabs button[aria-selected=true]{
 background:#fff;border-color:#d9d1ee;color:#392671;box-shadow:0 2px 6px #30225916;
}
.sb-reference-views{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 9px}
.sb-reference-views button[aria-pressed=true]{background:#ede6ff;border-color:#d9ccfa;color:#49338a}
.sb-reference-search{display:grid;gap:4px;margin:0 0 12px;font-size:12px;font-weight:700}
.sb-reference-search input{padding:8px 10px;border:1px solid #d8ddf0;border-radius:9px;background:#fbfcff;color:#242c4d}
.sb-reference-list{
 margin-bottom:14px;padding:1px 12px;border:1px solid #e0dbf1;border-radius:15px;
 background:linear-gradient(170deg,#fff,#f8f6ff);color:#263454;box-shadow:inset 0 1px 0 #fff,0 3px 10px #4f398411
}
.sb-reference-category{--reference-icon:#6751a0}
.sb-reference-category + .sb-reference-category{border-top:1px solid #e8e3f2}
.sb-reference-category[data-category=math-tables]{--reference-icon:#138b43}
.sb-reference-category[data-category=math-formulas]{--reference-icon:#225be4}
.sb-reference-category[data-category=computer-science]{--reference-icon:#8f2cdd}
.sb-reference-category[data-category=software-engineering]{--reference-icon:#d74d0b}
.sb-reference-category[data-category=networking-security]{--reference-icon:#087e9b}
.sb-reference-category[data-category=ai-data-science]{--reference-icon:#ce1f71}
.sb-reference-category[data-category=practical-computing]{--reference-icon:#5c6b82}
.sb-reference-category[data-category=graphics-advanced]{--reference-icon:#0a837e}
.sb-reference-category > summary{
 display:flex;gap:11px;align-items:center;min-height:62px;padding:8px 0;cursor:pointer;list-style:none;border-radius:8px
}
.sb-reference-category > summary::-webkit-details-marker{display:none}
.sb-reference-category > summary:hover,.sb-reference-category[open] > summary{background:#f2edfc}
.sb-reference-category > summary::after{
 content:"";flex:0 0 7px;height:7px;margin:0 4px 4px 3px;border-right:2px solid #6b5b91;
 border-bottom:2px solid #6b5b91;transform:rotate(45deg)
}
.sb-reference-category[open] > summary::after{margin-bottom:0;transform:rotate(225deg)}
.sb-reference-icon{
 display:grid;place-items:center;flex:0 0 44px;height:44px;border-radius:12px;color:white;background:var(--reference-icon);
 background-image:linear-gradient(145deg,#ffffff56,transparent 53%,#27115053);
 border:1px solid #ffffff7a;box-shadow:inset 0 2px 2px #ffffff45,inset 0 -2px 4px #1e154e2a,0 2px 0 #37255c38,0 4px 8px #37255c32
}
.sb-reference-icon svg{
 width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;
 filter:drop-shadow(0 1px 1px #23114e78)
}
.sb-reference-icon[data-tone=blue]{--reference-icon:#295ca8}
.sb-reference-icon[data-tone=teal]{--reference-icon:#146f66}
.sb-reference-icon[data-tone=violet]{--reference-icon:#6e49a3}
.sb-reference-icon[data-tone=amber]{--reference-icon:#a75d20}
.sb-reference-icon[data-tone=cyan]{--reference-icon:#096d8b}
.sb-reference-icon[data-tone=slate]{--reference-icon:#436080}
.sb-reference-icon[data-tone=orange]{--reference-icon:#a94835}
.sb-reference-icon[data-tone=pink]{--reference-icon:#99446e}
.sb-reference-category-label{flex:1;min-width:0}
.sb-reference-category-label strong,.sb-reference-category-label small{display:block;overflow-wrap:anywhere}
.sb-reference-category-label strong{font-size:14px;line-height:1.32}
.sb-reference-category-label small{margin-top:3px;font-size:12px;line-height:1.4;color:#515e7d}
.sb-reference-category-content{display:grid;gap:6px;padding:0 0 10px 55px}
.sb-reference-category-content h3{margin:4px 0 0;font-size:12px;color:#504279}
.sb-reference-entry{
 display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 9px;border:1px solid #e4deef;
 border-radius:9px;background:#fff;box-shadow:0 2px 5px #5d49800e
}
.sb-reference-entry .sb-reference-icon,.sb-visual-category .sb-reference-icon{
 flex-basis:34px;width:34px;height:34px;border-radius:9px;
}
.sb-reference-entry .sb-reference-icon svg,.sb-visual-category .sb-reference-icon svg{width:19px;height:19px}
.sb-reference-entry-label{flex:1 1 125px;min-width:0;overflow-wrap:anywhere}
.sb-reference-entry strong,.sb-reference-entry small{display:block;font-size:12px}
.sb-reference-entry small{color:#51617a;font-size:11px}
.sb-reference-entry strong + small{margin-top:3px}
.sb-reference-pages{margin-top:4px}
.sb-reference-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.sb-reference-subjects{display:grid;gap:6px;padding:7px}
.sb-math-table-search{margin:1px 0 5px}
.sb-math-table-results{display:grid;gap:6px}
.sb-reference-entry .sb-small-button{padding:6px 9px;background:linear-gradient(#fff,#f1edfc);border-color:#dad1f0;color:#473587;box-shadow:0 2px 0 #e0d9ef}
.sb-reference-entry .sb-small-button:hover{background:#eae3fa;color:#3b2b75}
.sb-reference-category > summary:focus-visible,.sb-reference-entry .sb-small-button:focus-visible{
 outline:2px solid #7659c1;outline-offset:1px
}
.sb-reference-tabs button:focus-visible,.sb-reference-views button:focus-visible,.sb-visual-card a:focus-visible{
 outline:2px solid #6546bd;outline-offset:2px;
}
.sb-reference-empty{padding:6px 2px;color:#515e75}
.sb-reference-upload summary{font-size:12px;color:#463a80;font-weight:710;cursor:pointer;margin-bottom:8px}
.sb-visual-category + .sb-visual-category{margin-top:17px}
.sb-visual-category h3{display:flex;align-items:center;gap:8px;margin:0 0 8px;color:#302350;font-size:14px}
.sb-visual-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.sb-visual-card{
 min-width:0;display:flex;flex-direction:column;overflow:hidden;background:#fbfaff;
 border:1px solid #ddd9eb;border-radius:11px;
}
.sb-visual-thumbnail{display:block;background:#eef0fa;aspect-ratio:1.62;cursor:zoom-in}
.sb-visual-thumbnail img{display:block;width:100%;height:100%;object-fit:contain}
.sb-visual-card-body{flex:1;display:flex;flex-direction:column;gap:6px;padding:9px}
.sb-visual-card-body h4{margin:0;color:#302350;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.sb-visual-card-body p{margin:0;color:#555672;font-size:11px;line-height:1.4}
.sb-visual-card-body p.sb-visual-note{padding:5px;border-radius:5px;background:#fff0cb;color:#704617}
.sb-visual-card-body .sb-reference-actions{margin-top:auto}
.sb-visual-empty{color:#524968;font-size:12px}
.sb-shape-dialog{max-width:min(530px,94vw)}
.sb-shape-options input[type=color]{min-height:38px;padding:3px}
@media(max-width:650px){.sb-visual-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){
 .sb-reference-list{padding-inline:8px}
 .sb-reference-category > summary{gap:8px}
 .sb-reference-icon{flex-basis:36px;height:36px;border-radius:10px}
 .sb-reference-icon svg{width:20px;height:20px}
 .sb-reference-category-label strong{font-size:13px}
 .sb-reference-category-label small{font-size:11px}
 .sb-reference-category-content{padding-left:0}
 .sb-reference-subjects{padding:5px}
 .sb-reference-entry .sb-reference-actions{margin-left:auto}
}

.math-field-wrap{min-width:0}
.math-tools{color:#434d73;font-size:12px}
.math-tools summary{width:max-content;max-width:100%;cursor:pointer;font-weight:700;color:#51439b;padding:5px 3px}
.math-tools-area{background:#f8f9ff;border:1px solid #e6e4f4;border-radius:9px;padding:7px;margin:3px 0 6px}
.math-tool-buttons{display:flex;gap:4px;flex-wrap:wrap}
.math-tool-buttons button{background:#fff;color:#433482;border:1px solid #dfd9f3;border-radius:6px;font-size:11px;padding:3px 6px}
.math-tool-buttons button:disabled{opacity:.5;cursor:default}
.math-tool-buttons button:hover:not(:disabled){background:#efebff}
.math-live-preview{color:#334267;max-height:125px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:5px}
.math-tools-compact summary{padding:3px 6px;border:1px solid #e5ddfa;border-radius:6px;background:#f8f5ff;list-style:none}
.math-tools-compact summary::-webkit-details-marker{display:none}
.math-tools-compact .math-tools-area{
 position:absolute;left:0;top:100%;z-index:2;width:min(320px,74vw);
 box-shadow:0 10px 26px #25204434
}
[data-math-content] .quiz-equation-display,.math-live-preview .quiz-equation-display{overflow-x:auto}

.lms-footer{padding:14px 20px;background:#f0f1fa;color:#485170;text-align:center;font-size:12px;font-weight:650;border-top:1px solid #e2e5f2}
body.board-focus .lms-footer{display:none}
.lms-confirm{width:min(420px,92vw);border:1px solid #ddd7f0;border-radius:18px;color:#252d4b;padding:24px;box-shadow:0 22px 70px #18183466}
.lms-confirm::backdrop{background:#1923438c;backdrop-filter:blur(2px)}
.lms-confirm h2{margin:0 0 8px}
.lms-confirm p{color:#4c5672;margin:0 0 20px}
.lms-confirm-buttons{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}

.auth-page{min-height:calc(100vh - 47px);grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
.auth-left{
 min-height:0;justify-content:center;gap:clamp(20px,3vh,34px);padding:clamp(26px,4.3vw,61px);
 background:radial-gradient(ellipse at 92% 0,#332769 0,transparent 54%),linear-gradient(152deg,#121a37,#211744);
}
.auth-left .brand{padding:0}
.auth-story{position:relative;z-index:1;margin:0}
.auth-story h1{font-size:clamp(30px,4vw,58px);line-height:1.05;max-width:12ch;margin:0 0 12px}
.auth-story p{margin:0;font-size:15px;color:#e1def7}
.auth-created-illustration.auth-illustration{
 display:block;width:100%;height:auto;max-height:52vh;min-height:180px;aspect-ratio:3/2;position:relative;margin:0;
 overflow:hidden;border:1px solid #ffffff2d;border-radius:20px;box-shadow:0 18px 34px #0a0a22b0
}
.auth-created-illustration img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 48%}
.auth-right{padding:clamp(20px,5vw,66px);background:radial-gradient(ellipse at 97% 6%,#ebe5ff,transparent 65%),#f8f9ff}
.auth-panel{
 width:min(460px,100%);padding:clamp(22px,3.4vw,46px);border:1px solid #e7e2f6;
 border-radius:24px;background:#fff;box-shadow:inset 0 1px #fff,0 6px 0 #e6e1f5,0 22px 48px #39296621
}
.auth-panel h2{font-size:clamp(23px,3vw,33px);margin-bottom:10px}
.auth-panel .demo-box summary{font-weight:750;color:#504490;cursor:pointer}
.auth-panel .demo-box[open] summary{margin-bottom:8px}
body:not(.auth-body) .site-content{background:radial-gradient(ellipse at 82% 0,#f0edff 0,transparent 45%),#f7f8fc}
.hero-banner{border:1px solid #ffffff38;box-shadow:inset 0 1px #ffffff26,0 15px 29px #2f2b6420}
.panel,.hub-card,.stat-card,.row-card,.course-card,.student-question,.quiz-result{
 border-color:#e1e4f1;box-shadow:inset 0 1px 0 #fff,0 3px 0 #ebeaf6,0 8px 20px #2e386611
}
.stat-symbol,.row-icon,.course-head-icon,.file-square,.quick-actions a>span{
 box-shadow:inset 0 1.5px 1px #ffffffa0,inset 0 -2px 4px #291c4819,0 3px 5px #30276322
}
.student-question .question-count{color:#5b4da2}
.quiz-option{box-shadow:inset 0 1px 0 #fff,0 2px 0 #eae9f4}
.quiz-option:has(input:checked){box-shadow:inset 0 1px 0 #fff,0 2px 0 #d9d0fa}
@media(max-width:1140px){
 body.board-focus #whiteboard .sb-header-center,.smartboard:fullscreen .sb-header-center{display:none}
}
@media(max-width:920px){
 .auth-page{grid-template-columns:minmax(0,1fr)}
 .auth-left{gap:15px}
 .auth-story h1{max-width:none}
 .auth-created-illustration.auth-illustration{max-height:220px;min-height:130px;aspect-ratio:2.6/1}
}
@media(max-width:620px){
 .sb-fullscreen-tools{order:3}
 .sb-fullscreen-tool .sb-glyph{width:25px;height:25px;font-size:14px}
 .auth-left{padding:20px}
 .auth-story p{font-size:13px}
}

/* Studio 3.1.6 Major */
.smartboard .sb-tool-group>summary{
 display:grid;grid-template-columns:30px minmax(0,1fr) 11px;gap:7px;align-items:center;
 padding:8px 7px;font-size:11px;font-weight:860;letter-spacing:.15px;color:#344264;line-height:1.18;
}
.sb-category-icon{
 --icon-light:#ede4ff;--icon-mid:#b69afa;--icon-dark:#6752b8;--icon-ink:#32236f;
 width:29px;height:29px;display:grid;place-items:center;border-radius:50%;
 background:radial-gradient(circle at 30% 17%,#fff 1%,var(--icon-light) 39%,var(--icon-mid) 82%);
 color:var(--icon-ink);font:850 17px/1 system-ui,sans-serif;
 border:1px solid #ffffffc9;box-shadow:inset 0 1px 3px #fff,inset 0 -2px 4px #2a245132,0 2px 0 var(--icon-dark),0 4px 6px #30205229;
 transform-origin:50% 65%;text-shadow:0 1px #ffffffb8;
}
.sb-category-icon.gold{--icon-light:#fff0c4;--icon-mid:#f2ca72;--icon-dark:#b78b38;--icon-ink:#66440d}
.sb-category-icon.mint{--icon-light:#d8fbeb;--icon-mid:#91dcc0;--icon-dark:#4b9b83;--icon-ink:#155b4d}
.sb-category-icon.blue{--icon-light:#dbf2ff;--icon-mid:#91cefb;--icon-dark:#6198c6;--icon-ink:#255582}
.sb-category-icon.pink{--icon-light:#ffe6f2;--icon-mid:#f4afd5;--icon-dark:#bf6f9e;--icon-ink:#7d305d}
.sb-category-icon.indigo{--icon-light:#e1eaff;--icon-mid:#a7b9f9;--icon-dark:#758bcf;--icon-ink:#303d7e}
.sb-tool-group>summary:is(:hover,:focus-visible) .sb-category-icon{animation:sb-category-lift 360ms ease-out both}
.sb-tool-group>summary:focus-visible{outline:2px solid #7767d8;outline-offset:-2px}
@keyframes sb-category-lift{
 0%{transform:translateY(0) scale(1)}
 42%{transform:translateY(-2px) rotate(-8deg) scale(1.11)}
 75%{transform:translateY(-1px) rotate(3deg) scale(1.06)}
 100%{transform:translateY(-1px) scale(1.04)}
}
@media (prefers-reduced-motion:reduce){.sb-tool-group>summary:is(:hover,:focus-visible) .sb-category-icon{animation:none}}
.smartboard.sb-hide-tools .sb-studio{grid-template-columns:54px minmax(0,1fr) var(--sb-visible-notes,276px)}
.smartboard.sb-hide-tools.sb-hide-notes .sb-studio{grid-template-columns:54px minmax(0,1fr)}
.smartboard.sb-hide-tools .sb-tools{padding:8px 5px}
.smartboard.sb-hide-tools .sb-rail-title :is(.sb-rail-label,.sb-toolbox-grip),
.smartboard.sb-hide-tools .sb-tool-group>:not(summary),
.smartboard.sb-hide-tools .sb-category-caret{display:none}
.smartboard.sb-hide-tools .sb-category-label{
 position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
 clip-path:inset(50%);white-space:nowrap
}
.smartboard.sb-hide-tools .sb-tool-group>summary{display:grid;grid-template-columns:1fr;justify-items:center;padding:6px 3px 8px;border:0}
@media(max-width:850px){
 .smartboard.sb-hide-tools .sb-studio{grid-template-columns:54px minmax(0,1fr)}
 .smartboard .sb-studio{position:relative}
 .smartboard .sb-notes{top:0}
}

.smartboard .sb-header{position:relative;z-index:60}
.sb-class-bar{display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap;padding:7px 15px;border-bottom:1px solid #e9e5f5;background:#f9f7ff}
.sb-class-status{color:#53477b;font-size:11px}
.sb-class-bar .sb-top-btn{min-height:31px;padding:5px 9px;font-size:11px}
.sb-class-bar .sb-open-class{color:#165d49;background:linear-gradient(#f7fffa,#e2f5ec);border-color:#c8e6d9;box-shadow:0 2px 0 #d2e8dc}
.sb-class-bar .sb-open-class[aria-pressed=true]{color:#89324f;background:linear-gradient(#fffafa,#fceedf);border-color:#efced8;box-shadow:0 2px 0 #f2dbe3}
.sb-class-boards-link{white-space:nowrap;font-size:11px}
.sb-fullscreen-tools{position:relative;z-index:2}
.sb-tool-options,.sb-tool-option-row,.sb-pen-controls{min-width:0}
.sb-tool-options[hidden],.sb-tool-options [hidden]{display:none!important}
.sb-quickbar{position:relative;z-index:1}
.sb-tool-options-ribbon{
 position:absolute;top:calc(100% + 3px);inset-inline:5px;z-index:22;padding:8px 12px;background:#fbf9ff;
 border:1px solid #e1d7f5;border-radius:9px;box-shadow:0 9px 22px #33206926;
}
body.board-focus #whiteboard .sb-upperbar:has(.sb-tool-options-ribbon:not([hidden])),
.smartboard:fullscreen .sb-upperbar:has(.sb-tool-options-ribbon:not([hidden])){overflow:visible}
.sb-tool-options-floating{
 position:absolute;left:0;top:calc(100% + 7px);z-index:22;width:min(360px,calc(100vw - 20px));padding:10px;
 background:#fff;border:1px solid #dfd6f6;border-radius:12px;box-shadow:0 12px 26px #29245536
}
.sb-tool-options-ribbon [data-options=pen]{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap}
.sb-tool-option-row{display:flex;align-items:center;gap:6px 9px;flex-wrap:wrap}
.sb-tool-options-floating .sb-pen-controls,.sb-selection-menu-actions{margin-top:7px;padding-top:7px;border-top:1px solid #e8e5f4}
.sb-option-field{display:flex;align-items:center;gap:5px;color:#444d73;font-size:11px;font-weight:710}
.sb-option-field input[type=range]{width:69px;accent-color:#6351cb}
.sb-option-field input[type=color]{width:27px;height:25px;padding:2px;border:1px solid #dad9ec;border-radius:6px;background:#fff}
.sb-option-field select{padding:3px 5px;border:1px solid #dcdaf0;border-radius:6px;background:#fff;color:#344161;font-size:11px}
.sb-tool-options button[aria-pressed=true]{border-color:#a89af3;background:#ece7ff;color:#4935a6}
.sb-tool-options button:disabled{opacity:.5}
.sb-option-chevron{opacity:.64}
[data-tool-menu][aria-expanded=true] .sb-option-chevron{transform:rotate(180deg)}
.sb-nib-choice{display:inline-flex;align-items:center;gap:5px}
.sb-nib-mark{width:13px;height:5px;border-radius:999px;background:currentColor;transform:rotate(-22deg)}
.sb-nib-mark-flat{height:3px;border-radius:2px;transform:none}
.sb-nib-mark-chisel{height:4px;border-radius:2px;transform:rotate(-48deg)}
.sb-nib-mark-brush{width:15px;height:6px;border-radius:100% 38% 80% 30%}
.sb-table-options input[type=number]{width:47px;padding:4px 2px;border:1px solid #dadff1;border-radius:7px;text-align:center}
.sb-table-options input[type=color]{width:30px;height:27px;padding:2px;border:1px solid #dadff1;border-radius:6px;background:#fff}
.sb-table-editor{border-left:var(--table-preview-width,2px) solid var(--table-preview-colour,#6857ee)}
.sb-table-message{margin:0 0 7px;font-size:12px;color:#885236}

/* Studio 3.1.7 Perfect */
body.board-focus #whiteboard,.smartboard:fullscreen{display:flex;flex-direction:column}
body.board-focus #whiteboard .sb-studio,.smartboard:fullscreen .sb-studio{flex:1 1 auto;height:auto;min-height:0}
.sb-glyph i{font-style:normal;line-height:1}
.sb-glyph.blue{background:linear-gradient(145deg,#e4edff,#c8dafb);color:#305aba}
.sb-icon-pen{--tool-column:0%;--tool-row:0%}
.sb-icon-pencil{--tool-column:33.3333%;--tool-row:0%}
.sb-icon-marker{--tool-column:66.6667%;--tool-row:0%}
.sb-icon-highlighter{--tool-column:100%;--tool-row:0%}
.sb-icon-eraser,.sb-icon-area-eraser{--tool-column:0%;--tool-row:33.3333%}
.sb-icon-ruler{--tool-column:33.3333%;--tool-row:33.3333%}
.sb-icon-compass{--tool-column:66.6667%;--tool-row:33.3333%}
.sb-icon-protractor{--tool-column:100%;--tool-row:33.3333%}
.sb-icon-select{--tool-column:0%;--tool-row:66.6667%}
.sb-icon-hand{--tool-column:33.3333%;--tool-row:66.6667%}
.sb-icon-graph{--tool-column:66.6667%;--tool-row:66.6667%}
.sb-icon-calculator{--tool-column:100%;--tool-row:66.6667%}
.sb-icon-sticky{--tool-column:0%;--tool-row:100%}
.sb-icon-table{--tool-column:33.3333%;--tool-row:100%}
.sb-icon-pdf{--tool-column:66.6667%;--tool-row:100%}
.sb-icon-photo{--tool-column:100%;--tool-row:100%}
.sb-glyph:is(.sb-icon-pen,.sb-icon-pencil,.sb-icon-marker,.sb-icon-highlighter,.sb-icon-eraser,.sb-icon-area-eraser,.sb-icon-ruler,.sb-icon-compass,.sb-icon-protractor,.sb-icon-select,.sb-icon-hand,.sb-icon-graph,.sb-icon-calculator,.sb-icon-sticky,.sb-icon-table,.sb-icon-pdf,.sb-icon-photo)::before{
 content:"";grid-area:1/1;width:90%;height:90%;background-image:url("../img/board-tool-sprite.png");
 background-repeat:no-repeat;background-size:400% 400%;background-position:var(--tool-column) var(--tool-row);
 filter:drop-shadow(0 1px .55px #241a4770);
}
.sb-glyph:is(.sb-icon-pen,.sb-icon-pencil,.sb-icon-marker,.sb-icon-highlighter,.sb-icon-eraser,.sb-icon-area-eraser,.sb-icon-ruler,.sb-icon-compass,.sb-icon-protractor,.sb-icon-select,.sb-icon-hand,.sb-icon-graph,.sb-icon-calculator,.sb-icon-sticky,.sb-icon-table,.sb-icon-pdf,.sb-icon-photo) i{display:none}
.sb-category-icon .sb-glyph{width:22px;height:22px;display:grid;border:0;box-shadow:none;background:transparent;font-size:16px;color:inherit}
.sb-upperbar .sb-small-button,.sb-upperbar .sb-step,.sb-header .sb-top-btn{
 box-shadow:inset 0 1px 1px #ffffffb3,0 2px 0 #46366f22;
}
.sb-upperbar .sb-small-button,.sb-upperbar .sb-step{
 background:linear-gradient(#fff,#f6f4ff);border-color:#ddd7ed;color:#3d4670;
}
.sb-upperbar .sb-small-button:is(.selected,[aria-pressed=true]){background:linear-gradient(#f2edff,#e5ddfc);border-color:#c7b7f1;color:#483092}
.sb-upperbar .sb-small-button.sb-finish-board{background:linear-gradient(#edfbf4,#d6f3e5);color:#155f4d;border-color:#cce8dd}
.smartboard .sb-upperbar .sb-small-button:not([hidden]),.smartboard .sb-top-btn{align-items:center;gap:5px}
.smartboard .sb-upperbar .sb-small-button:not([hidden]){display:inline-flex}
.smartboard .sb-upperbar .sb-glyph,.smartboard .sb-top-btn .sb-glyph,.sb-context-menu button .sb-glyph{
 display:grid;width:22px;height:22px;flex:0 0 22px;border-radius:6px;font-size:12px;margin:0;box-shadow:inset 0 1px 1px #fff,0 2px 3px #32245627;
}
.smartboard .sb-upperbar .sb-glyph{color:#5b47a1}
.sb-quickbar .sb-quick-actions{flex-wrap:wrap}
.sb-context-menu button{grid-template-columns:22px 1fr auto;padding:4px 7px;min-height:30px}
.sb-context-menu button :is([data-edit-action-label],[data-rotate-label]){text-align:left}
.sb-small-button:focus-visible,.sb-class-bar :is(input,button,a):focus-visible{outline:2px solid #6c50bb;outline-offset:2px}
.sb-rotation-field{display:flex;align-items:center;gap:10px;padding:12px 0;color:#3c4670;font-size:13px;font-weight:750}
.sb-rotation-field input{width:115px;padding:7px 9px;border:1px solid #d7cee9;border-radius:7px;color:#332853}
.sb-notes-edit-head{display:flex;align-items:center;justify-content:space-between;gap:5px;flex-wrap:wrap;margin-bottom:6px}
.sb-notes-edit-head .sb-small-button{padding:4px 6px;min-height:24px;font-size:9px;color:#514586}
.sb-notes-preview[hidden],.sb-notes textarea[hidden],.smartboard #ribbon-put-away[hidden]{display:none}
.sb-notes-preview .math-live-preview{white-space:pre-wrap;overflow-wrap:anywhere}
.sb-notes-primary-view{margin-top:0;padding:11px;background:white;min-height:114px;font-size:12px;color:#293752;box-shadow:inset 0 1px 3px #41236914}
.sb-notes-primary-view .math-live-preview{max-height:270px;line-height:1.55}
.sb-notes-primary-view>strong{display:none}
.sb-smart-shapes{margin-block:5px;font-weight:750}
.sb-smart-shapes input{accent-color:#6d51cc}
.board-library-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.board-library-row .board-library-item{flex:1;min-width:0}
.board-library-row form{flex:none;padding-right:4px}
.board-library-row .btn-quiet-danger{color:#912d51;background:#fff0f5;border:1px solid #f0d5e0}
.board-library-row .btn-quiet-danger:hover{background:#f9dbe8}
.board-library-deleted{margin-top:18px;padding:11px 0 0;border-top:1px solid #e7e1f2}
.board-library-deleted summary{width:fit-content;font-size:13px;font-weight:750;color:#65518b;cursor:pointer}
.board-library-deleted .board-library-list{margin-top:8px}
.board-library-deleted .board-library-row{padding:8px 10px;border:1px solid #ebe6f3;border-radius:10px;background:#faf8ff}
.auth-features{position:relative;z-index:1;width:100%;max-width:800px;margin:0;border:1px solid #ffffff68;border-radius:17px;overflow:hidden;box-shadow:0 16px 30px #09092481}
.auth-features a,.auth-features img{display:block;width:100%;height:auto}
.auth-features a:focus-visible{outline:3px solid #baaffd;outline-offset:-4px}
@media(max-width:620px){
 .sb-class-bar{gap:5px 7px;padding:6px 8px}
 .sb-class-bar .sb-top-btn{min-height:28px}
 .auth-page:has(.auth-features) .auth-right{grid-row:1}
 .auth-features{border-radius:12px}
}
@media(prefers-reduced-motion:reduce){.sb-upperbar .sb-small-button,.sb-header .sb-top-btn{transition:none}}

/* In fullscreen the class controls share the compact board header. */
.board-focus #whiteboard .sb-header{min-height:0;gap:5px 9px;padding:5px 12px}
.board-focus #whiteboard .sb-brand{min-width:0;gap:7px}
.board-focus #whiteboard :is(.sb-brand-symbol,.sb-brand-image img){width:32px;height:32px}
.board-focus #whiteboard .sb-brand strong{font-size:13px;white-space:nowrap}
.board-focus #whiteboard .sb-brand small{max-width:145px;margin-top:1px}
.board-focus #whiteboard .sb-header-center{display:none}
.board-focus #whiteboard .sb-header-right{margin-inline-start:auto;gap:4px}
.board-focus #whiteboard .sb-header-right .sb-top-btn{min-height:32px;padding:4px 6px;font-size:11px}
.board-focus #whiteboard .sb-fullscreen-tools{order:0;gap:2px;padding:2px}
.board-focus #whiteboard .sb-fullscreen-tool{padding:2px}
.board-focus #whiteboard .sb-fullscreen-tool .sb-glyph{width:25px;height:25px}
.board-focus #whiteboard .sb-class-bar{
 flex:none;flex-wrap:nowrap;gap:5px;padding:3px;border:1px solid #e8e3f5;border-radius:10px;
}
.board-focus #whiteboard .sb-class-status{padding-inline:4px;white-space:nowrap}
.board-focus #whiteboard .sb-class-bar :is(.sb-top-btn,.sb-collab-switch){min-height:28px;padding:3px 6px}
.board-focus #whiteboard .sb-footer{min-height:0;padding:5px 9px}
@media(min-width:1501px){
 .board-focus #whiteboard .sb-header-center{display:flex;min-width:100px;max-width:220px;gap:3px}
 .board-focus #whiteboard .sb-saved{max-width:100%}
 .board-focus #whiteboard .sb-permission{white-space:nowrap;padding:3px 6px}
}
@media(max-width:1500px){
 .board-focus #whiteboard .sb-header-utilities .sb-top-btn>span:not(.sb-glyph){display:none}
}
@media(max-width:1100px){
 .board-focus #whiteboard[data-personal=false] .sb-class-status{display:none}
}
@media(max-width:900px){
 .board-focus #whiteboard .sb-header{justify-content:flex-start;gap:4px 6px;padding:4px 7px}
 .board-focus #whiteboard[data-teacher=true] .sb-brand>div{display:none}
 .board-focus #whiteboard .sb-header-right{display:contents}
 .board-focus #whiteboard :is(.sb-header-display,.sb-header-utilities){display:flex;align-items:center;gap:4px}
 .board-focus #whiteboard .sb-header-display{order:1;margin-inline-start:auto}
 .board-focus #whiteboard .sb-fullscreen-tools{order:2}
 .board-focus #whiteboard .sb-header-utilities{order:3;margin-inline-start:auto}
}
@media(max-width:420px){
 .board-focus #whiteboard .sb-header{gap:4px;padding-inline:5px}
 .board-focus #whiteboard :is(.sb-brand-symbol,.sb-brand-image img){width:25px;height:25px}
 .board-focus #whiteboard .sb-class-bar{gap:3px;padding:2px}
 .board-focus #whiteboard .sb-class-status{padding-inline:2px;font-size:10px}
 .board-focus #whiteboard .sb-class-bar :is(.sb-top-btn,.sb-collab-switch){padding-inline:4px}
 .board-focus #whiteboard #student-edit-state{display:none}
 .board-focus #whiteboard .sb-header-right .sb-top-btn{min-height:28px;padding:2px 3px}
 .board-focus #whiteboard .sb-header-right .sb-glyph{height:20px;width:20px;flex-basis:20px}
 .board-focus #whiteboard .sb-fullscreen-tool .sb-glyph{width:20px;height:20px}
}
@media(max-width:360px){
 .board-focus #whiteboard[data-personal=true] .sb-brand{display:none}
 .board-focus #whiteboard .sb-header-right .sb-top-btn{min-height:26px;padding-inline:2px}
 .board-focus #whiteboard .sb-header-right .sb-glyph{width:19px;height:19px;flex-basis:19px}
 .board-focus #whiteboard .sb-header-utilities{gap:3px}
 .board-focus #whiteboard .sb-fullscreen-tools{gap:1px;padding-inline:1px}
 .board-focus #whiteboard .sb-fullscreen-tool{padding:1px}
}

/* Studio 3.1.8 local language fonts */
@font-face {font-family:"SmartClass Sinhala Sans";src:url("../fonts/noto-sans-sinhala-sinhala-400-normal.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0D80-0DFF,U+200C-200D}
@font-face {font-family:"SmartClass Sinhala Sans";src:url("../fonts/noto-sans-sinhala-sinhala-600-normal.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap;unicode-range:U+0D80-0DFF,U+200C-200D}
@font-face {font-family:"SmartClass Sinhala Serif";src:url("../fonts/noto-serif-sinhala-sinhala-400-normal.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0D80-0DFF,U+200C-200D}
@font-face {font-family:"SmartClass Sinhala Serif";src:url("../fonts/noto-serif-sinhala-sinhala-600-normal.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap;unicode-range:U+0D80-0DFF,U+200C-200D}
@font-face {font-family:"Noto Sans Tamil";src:url("../fonts/noto-sans-tamil-tamil-400-normal.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0B80-0BFF,U+200C-200D}
@font-face {font-family:"Noto Sans Tamil";src:url("../fonts/noto-sans-tamil-tamil-600-normal.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap;unicode-range:U+0B80-0BFF,U+200C-200D}
@font-face {font-family:"Noto Serif Tamil";src:url("../fonts/noto-serif-tamil-tamil-400-normal.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0B80-0BFF,U+200C-200D}
@font-face {font-family:"Noto Serif Tamil";src:url("../fonts/noto-serif-tamil-tamil-600-normal.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap;unicode-range:U+0B80-0BFF,U+200C-200D}

.sb-text-format{flex-wrap:wrap;max-width:min(600px,86vw);row-gap:4px}
.sb-text-format select{max-width:135px}
.sb-text-format .sb-font-size,.sb-properties .sb-font-size{width:56px;min-height:26px;padding:3px 4px;font-size:11px}
.sb-inline-editor,.sb-notes textarea,.sb-inline-math-preview,#notes-math-preview,#flow-label{
 font-family:"SmartClass Sinhala Sans","Noto Sans Tamil",system-ui,sans-serif
}
.sb-inline-math-preview{
 position:absolute;z-index:2;top:calc(100% + 6px);left:0;width:max(100%,180px);
 max-height:150px;overflow:auto;padding:9px 11px;border:1px solid #ded5f4;border-radius:8px;
 background:#fff;color:#263752;box-shadow:0 5px 16px #24205328;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;
}
.sb-format-below .sb-inline-math-preview{top:calc(100% + 76px)}
.sb-notes-language{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin:4px 0 8px}
.sb-notes-language label{font-size:10px;font-weight:750;color:#58517d;display:flex;gap:5px;align-items:center}
.sb-notes-language select,.sb-formula-chooser :is(input[type=search],select),.sb-formula-appearance :is(input,select),
.sb-calc-extras input{
 min-width:0;color:#354063;background:#fff;border:1px solid #ded8ef;border-radius:7px;padding:5px;font-size:11px;
}
.sb-text-frame [hidden],.sb-notes-language [hidden],.sb-formula-presets [hidden],.sb-video-player[hidden],.sb-calc-extras [hidden]{display:none}
.sb-flow-tools{margin-top:9px;border-top:1px solid #e9e3f5;padding:7px 2px 0}
.sb-flow-tools summary{font-size:11px;font-weight:800;color:#325e6e;cursor:pointer}
.sb-shape-options textarea{width:100%;padding:7px;border:1px solid #d8ddeb;border-radius:8px;background:#fcfdff}
.sb-formula-chooser,.sb-formula-appearance{display:flex;flex-wrap:wrap;align-items:center;gap:7px 12px;margin:8px 0}
.sb-formula-chooser label,.sb-formula-appearance label{font-size:11px;font-weight:750;color:#4b506e;display:flex;align-items:center;gap:5px}
.sb-formula-appearance input[type=number]{width:64px}
.sb-formula-appearance input[type=color]{width:32px;height:28px;padding:2px}
#formula-templates{max-height:148px;overflow:auto;padding:3px 3px 6px}
#formula-panel .sb-dialog-actions{position:sticky;bottom:0;background:white;padding-top:8px}
.sb-video-search{display:flex;align-items:flex-end;gap:8px;margin-bottom:12px}
.sb-video-search label{flex:1;margin:0}
.sb-video-list{display:grid;gap:7px;max-height:430px;overflow:auto;padding:2px}
.sb-video-entry{
 display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;justify-content:space-between;
 padding:10px 12px;background:#fbfaff;border:1px solid #e3ddf2;border-radius:9px;box-shadow:0 2px 5px #5d49800e;
}
.sb-video-entry>div:first-child{flex:1 1 210px;min-width:0;overflow-wrap:anywhere}
.sb-video-entry strong,.sb-video-entry small{display:block}
.sb-video-entry small{color:#536482;margin-top:4px}
.sb-video-entry p{font-size:11px;margin:5px 0 0;color:#475574}
.sb-video-player{margin:10px 0;padding:10px;border:1px solid #ddd6f0;border-radius:9px;background:#f8f6ff}
.sb-video-player>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:7px}
.sb-video-player h3{margin:0 0 7px;font-size:15px}
.sb-video-player iframe{display:block;width:100%;aspect-ratio:16/9;min-height:200px;border:0;border-radius:6px;background:#182044}
#board-video-watch{margin-top:8px}

.sb-calculator{width:min(656px,95vw);padding:clamp(13px,3vw,24px);background:linear-gradient(155deg,#fff,#f3f1ff);border:1px solid #e2dbf0}
.sb-calculator .sb-calc-title{display:flex;align-items:center;gap:8px}
.sb-calc-screen{background:radial-gradient(ellipse at top left,#253e68,#171f3b 72%);box-shadow:inset 0 2px 7px #0a122972,0 3px 0 #adb9d9}
.sb-calc-indicators{min-height:17px;display:flex;justify-content:space-between;font-size:10px;letter-spacing:.08em;color:#a9e9d9;font-weight:850}
.sb-calc-memory{display:flex;gap:4px;flex-wrap:wrap}
.sb-calc-memory button{min-height:26px;padding:3px 6px}
.sb-calc-keys{margin-bottom:8px}
.sb-calc-keys button{
 background:linear-gradient(#fff,#f1efff);border-color:#ded7f3;box-shadow:inset 0 1px 0 #fff,0 2px #d3cbe8;
}
.sb-calc-keys .sb-calc-math{background:linear-gradient(#f0f4ff,#e6e9fc);color:#3f428c}
.sb-calc-keys .sb-calc-equals{background:linear-gradient(105deg,#7762f1,#5e49cf);box-shadow:0 2px 0 #4a37ad}
.sb-calc-keys button:active{transform:translateY(1px);box-shadow:inset 0 1px 3px #39296720}
.sb-calc-extras details{border-top:1px solid #e1daf5;padding:8px 1px 0;margin-top:8px}
.sb-calc-extras summary{font-size:12px;font-weight:780;color:#4b4188;cursor:pointer}
.sb-calc-extras :is(form,.sb-calc-keys){margin-top:8px}
.sb-calc-extras form{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.sb-calc-extras form input{width:65px}
.sb-calc-extras form label{font-size:10px;font-weight:750}
.sb-calc-extras canvas{display:block;max-width:100%;height:auto}
.sb-calc-extras ol{max-height:142px;overflow:auto;padding-left:23px;margin-bottom:0}
.sb-calc-extras ol button{background:#fff;border:1px solid #e6e1f2;border-radius:6px;padding:4px 6px;margin-bottom:3px;text-align:left;max-width:100%;overflow-wrap:anywhere;color:#384066}
@media(max-width:520px){
 .sb-calc-mode{flex-wrap:wrap}
 .sb-video-search{align-items:stretch;flex-direction:column}
 .sb-video-search button{align-self:start}
 #formula-templates{max-height:125px}
}
