:root { --wlms-ink:#212121; --wlms-muted:#65666c; --wlms-blue:#315af4; --wlms-paper:#f5f5f6; --wlms-line:#e2e3e7; --wlms-soft:#f8f9fb; }
.wlms-body { margin:0; background:#fff; color:var(--wlms-ink); font:16px/1.65 Rubik,system-ui,-apple-system,"Segoe UI",sans-serif; -webkit-font-smoothing:antialiased; }
.wlms-body * { box-sizing:border-box; }
.wlms-body a { color:inherit; }
.wlms-site-header { display:flex; align-items:center; justify-content:space-between; padding:18px max(24px,calc((100% - 1200px)/2)); background:#212121; color:#fff; }
.wlms-site-header nav { display:flex; gap:22px; font-size:14px; }
.wlms-site-footer { padding:28px 24px; background:#212121; color:#fff; text-align:center; }
.wlms-main { min-height:65vh; padding:clamp(32px,6vw,76px) 20px 88px; background:#fff; }
.wlms-container { width:min(100%,1080px); margin:0 auto; }
.wlms-main h1,.wlms-main h2,.wlms-main h3 { margin:0; color:var(--wlms-ink); font-family:Trirong,Georgia,serif; font-weight:400; line-height:1.15; }
.wlms-main h1 { max-width:900px; font-size:clamp(36px,6vw,66px); letter-spacing:-.02em; }
.wlms-main h2 { font-size:clamp(26px,4vw,38px); }
.wlms-main h3 { font-size:23px; }
.wlms-main p { margin:0 0 16px; }
.wlms-kicker { margin:0 0 12px!important; color:var(--wlms-blue); font-size:12px; font-weight:600; letter-spacing:.16em; text-transform:uppercase; }
.wlms-lead { max-width:720px; margin:18px 0 26px!important; color:var(--wlms-muted); font-size:18px; }
.wlms-hero-image { max-height:420px; margin:28px 0 34px; overflow:hidden; border-radius:22px; background:var(--wlms-paper); }
.wlms-hero-image img { display:block; width:100%; max-height:420px; object-fit:cover; }
.wlms-course-intro { max-width:800px; margin:26px 0 52px; color:var(--wlms-muted); }
.wlms-course-intro h2,.wlms-course-intro h3 { margin:26px 0 12px; }
.wlms-course-progress { display:grid; grid-template-columns:1fr auto; gap:8px 16px; align-items:center; max-width:560px; margin:22px 0 12px; color:var(--wlms-muted); font-size:14px; }
.wlms-course-progress strong { color:var(--wlms-ink); }
.wlms-course-progress .wlms-progress { grid-column:1/-1; }
.wlms-progress { height:8px; overflow:hidden; border-radius:99px; background:#e9eaf0; }
.wlms-progress span { display:block; height:100%; border-radius:inherit; background:var(--wlms-blue); transition:width .35s ease; }
.wlms-curriculum { margin-top:46px; }
.wlms-section-head { margin-bottom:22px; }
.wlms-module { margin:16px 0; overflow:hidden; border:1px solid var(--wlms-line); border-radius:16px; background:#fff; }
.wlms-module-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 20px; background:var(--wlms-soft); }
.wlms-module-heading span { color:var(--wlms-muted); font-size:13px; white-space:nowrap; }
.wlms-module-description { padding:14px 20px 0; color:var(--wlms-muted); }
.wlms-lesson-list { margin:0; padding:0; list-style:none; }
.wlms-lesson-list li { margin:0; border-top:1px solid var(--wlms-line); }
.wlms-lesson-list li a { display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:12px; padding:14px 20px; color:var(--wlms-ink); text-decoration:none; }
.wlms-lesson-list li a:hover { background:#fbfbfc; }
.wlms-lesson-list li a[aria-disabled="true"] { cursor:default; opacity:.7; }
.wlms-lesson-icon { display:grid; width:32px; height:32px; place-items:center; border-radius:50%; background:#eef1ff; color:var(--wlms-blue); font-size:14px; }
.wlms-lesson-list small { display:block; color:var(--wlms-muted); font-size:12px; }
.wlms-lesson-state { color:var(--wlms-muted); font-size:13px; }
.wlms-button { display:inline-flex; min-height:46px; align-items:center; justify-content:center; gap:12px; border:0; border-radius:999px; padding:12px 22px; background:var(--wlms-blue); color:#fff!important; font:500 15px/1.2 Rubik,system-ui,sans-serif; text-decoration:none!important; cursor:pointer; transition:transform .2s,background .2s; }
.wlms-button:hover { transform:translateY(-1px); background:#2448d2; }
.wlms-button:disabled { cursor:default; opacity:.65; transform:none; }
.wlms-access-box,.wlms-panel { margin:32px 0; border:1px solid var(--wlms-line); border-radius:18px; padding:clamp(22px,4vw,36px); background:#fff; }
.wlms-access-box p,.wlms-panel p { margin:12px 0 20px; color:var(--wlms-muted); }
.wlms-access-box .wlms-text-link { margin-left:18px; }
.wlms-empty { padding:20px; border-radius:12px; background:var(--wlms-soft); color:var(--wlms-muted); }
.wlms-breadcrumb { margin-bottom:26px; color:var(--wlms-muted); font-size:14px; }
.wlms-breadcrumb a { text-decoration-color:var(--wlms-blue); text-underline-offset:3px; }
.wlms-lesson-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:24px; }
.wlms-lesson-heading h1 { font-size:clamp(32px,5vw,50px); }
.wlms-text-link { display:inline-flex; align-items:center; gap:8px; color:var(--wlms-ink); font-size:14px; text-decoration-color:var(--wlms-blue); text-underline-offset:4px; }
.wlms-video { position:relative; width:100%; margin:18px 0 28px; overflow:hidden; border-radius:16px; background:#141414; aspect-ratio:16/9; }
.wlms-video iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.wlms-lesson-content,.wlms-custom-html { max-width:820px; margin:26px 0; color:#45464c; font-size:17px; }
.wlms-lesson-content h2,.wlms-custom-html h2 { margin:28px 0 12px; }
.wlms-lesson-content img,.wlms-custom-html img { height:auto; border-radius:12px; }
.wlms-checkpoint,.wlms-downloads,.wlms-quiz,.wlms-review-form { margin:28px 0; border:1px solid var(--wlms-line); border-radius:16px; padding:clamp(20px,4vw,30px); background:#fff; }
.wlms-checkpoint > div { color:var(--wlms-muted); }
.wlms-checkpoint-check { display:flex; align-items:center; gap:10px; margin-top:18px; font-size:14px; }
.wlms-checkpoint-check input { width:18px; height:18px; accent-color:var(--wlms-blue); }
.wlms-downloads h2,.wlms-quiz h2,.wlms-review-form h2 { margin-bottom:16px; font-size:28px; }
.wlms-downloads ul { display:grid; gap:8px; margin:0; padding:0; list-style:none; }
.wlms-downloads li a { display:flex; justify-content:space-between; padding:12px 14px; border-radius:10px; background:var(--wlms-soft); text-decoration:none; }
.wlms-quiz fieldset { margin:14px 0; border:0; border-top:1px solid var(--wlms-line); padding:14px 0 0; }
.wlms-quiz legend { padding:0 8px 0 0; font-weight:500; }
.wlms-quiz fieldset label { display:flex; align-items:flex-start; gap:9px; margin:9px 0; color:var(--wlms-muted); }
.wlms-quiz input[type=radio] { margin-top:5px; accent-color:var(--wlms-blue); }
.wlms-quiz-result { margin:14px 0 0!important; color:var(--wlms-muted); }
.wlms-quiz-result.is-success,.wlms-review-pending { color:#167044; }
.wlms-quiz-result.is-error,.wlms-quiz-result.is-error { color:#b42318; }
.wlms-complete-box { display:flex; align-items:center; justify-content:space-between; gap:22px; margin:32px 0; border-radius:16px; padding:22px; background:var(--wlms-soft); }
.wlms-complete-box p { margin:5px 0 0; color:var(--wlms-muted); font-size:14px; }
.wlms-complete-box p.is-error { color:#b42318; }
.wlms-complete-box p.is-success { color:#167044; }
.wlms-lesson-progress { margin:18px 0 40px!important; color:var(--wlms-muted); }
.wlms-review-form form { display:grid; gap:9px; max-width:640px; }
.wlms-review-form label { margin-top:8px; font-size:14px; font-weight:500; }
.wlms-review-form select,.wlms-review-form textarea { width:100%; border:1px solid #d9dbe1; border-radius:10px; padding:11px 13px; background:#fff; color:var(--wlms-ink); font:inherit; }
.wlms-review-form select { max-width:180px; }
.wlms-review-form .wlms-button { justify-self:start; margin-top:8px; }
.wlms-reviews { margin:28px 0; }
.wlms-reviews h2 { margin-bottom:16px; font-size:27px; }
.wlms-reviews article { margin:10px 0; border-bottom:1px solid var(--wlms-line); padding:16px 0; }
.wlms-reviews article p { margin:7px 0; color:var(--wlms-muted); }
.wlms-reviews small { color:var(--wlms-muted); }
.wlms-stars { color:var(--wlms-blue); letter-spacing:.08em; }
.wlms-catalog,.wlms-dashboard-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr)); gap:20px; }
.wlms-course-card,.wlms-dashboard-card { overflow:hidden; border:1px solid var(--wlms-line); border-radius:18px; background:#fff; }
.wlms-course-badges { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 12px; }
.wlms-course-badge { display:inline-flex; align-items:center; min-height:24px; border-radius:999px; padding:5px 10px; color:#fff; font:600 11px/1.1 Rubik,system-ui,sans-serif; letter-spacing:.03em; }
.wlms-course-badge--blue { background:#315af4; }
.wlms-course-badge--dark { background:#212121; }
.wlms-course-badge--orange { background:#e87522; }
.wlms-product-details { display:flex; flex-wrap:wrap; gap:8px 14px; margin:8px 0 14px; color:var(--wlms-muted); font:400 13px/1.4 Rubik,system-ui,sans-serif; }
.wlms-product-details span + span { padding-left:12px; border-left:1px solid var(--wlms-line); }
.wlms-owned-product-note { display:inline-flex; align-items:center; gap:6px; width:max-content; margin:8px 0 2px; border-radius:999px; padding:5px 9px; background:#eef7f1; color:#167044; font:500 12px/1.2 Rubik,system-ui,sans-serif; }
.wlms-owned-product-note span { font-weight:700; }
.wlms-course-cover,.wlms-dashboard-image img { display:block; width:100%; aspect-ratio:16/10; object-fit:cover; background:var(--wlms-paper); }
.wlms-course-card-body,.wlms-dashboard-card-body { padding:21px; }
.wlms-course-card h2,.wlms-dashboard-card h3 { margin:0 0 10px; font-size:26px; }
.wlms-course-card h2 a,.wlms-dashboard-card h3 a { text-decoration:none; }
.wlms-course-card-body > p:not(.wlms-kicker) { color:var(--wlms-muted); }
.wlms-course-card .wlms-text-link { margin-top:10px; }
.wlms-dashboard-heading { margin-bottom:22px; }
.wlms-dashboard-heading > p:last-child { color:var(--wlms-muted); }
.wlms-dashboard-card-body .wlms-progress { margin:16px 0 6px; }
.wlms-progress-caption { color:var(--wlms-muted); font-size:13px; }
.wlms-dashboard-card .wlms-button { margin-top:10px; }
.wlms-dashboard-card--compact { display:grid; grid-template-columns:112px minmax(0,1fr); align-items:center; gap:18px; padding:16px; }
.wlms-dashboard-card--compact .wlms-dashboard-image { display:block; width:112px; height:112px; overflow:hidden; border-radius:10px; background:var(--wlms-paper); }
.wlms-dashboard-card--compact .wlms-dashboard-image img { display:block; width:100%; height:100%; object-fit:cover; }
.wlms-dashboard-card--compact .wlms-dashboard-card-body { min-width:0; padding:0; }
@media (max-width:520px) {
 .wlms-dashboard-card--compact { grid-template-columns:84px minmax(0,1fr); gap:12px; padding:12px; }
 .wlms-dashboard-card--compact .wlms-dashboard-image { width:84px; height:84px; }
}
@media(max-width:640px) {
 .wlms-main { padding:28px 16px 64px; }
 .wlms-lesson-heading { display:block; }
 .wlms-lesson-heading .wlms-text-link { margin-top:14px; }
 .wlms-module-heading { padding:15px; }
 .wlms-lesson-list li a { grid-template-columns:30px minmax(0,1fr); gap:10px; padding:12px 14px; }
 .wlms-lesson-icon { width:28px; height:28px; }
 .wlms-lesson-state { grid-column:2; margin-top:-7px; font-size:12px; }
 .wlms-complete-box { align-items:stretch; flex-direction:column; padding:18px; }
 .wlms-complete-box .wlms-button { width:100%; }
 .wlms-access-box .wlms-text-link { display:flex; margin:18px 0 0; }
 .wlms-site-header { align-items:flex-start; gap:14px; flex-direction:column; }
 .wlms-site-header nav { flex-wrap:wrap; }
}

.wlms-course-facts { display:flex; flex-wrap:wrap; gap:10px; margin:22px 0 30px; }
.wlms-course-facts span { display:grid; gap:2px; min-width:140px; border:1px solid var(--wlms-line); border-radius:12px; padding:12px 16px; }
.wlms-course-facts small { color:var(--wlms-muted); font-size:12px; }
.wlms-course-facts strong { font-size:14px; font-weight:500; }
.wlms-course-goals,.wlms-course-requirements { max-width:820px; margin:26px 0; border:1px solid var(--wlms-line); border-radius:16px; padding:22px; }
.wlms-course-goals ul { display:grid; gap:9px; margin:14px 0 0; padding-left:20px; color:var(--wlms-muted); }
.wlms-course-requirements h2 { margin-bottom:10px; font-size:24px; }
.wlms-course-requirements p { margin:0; color:var(--wlms-muted); }

.wlms-rating-summary { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:12px 0 20px!important; color:var(--wlms-muted); font-size:14px; }
.wlms-rating-summary .wlms-stars,.wlms-card-rating { color:var(--wlms-blue); }
.wlms-rating-summary a { color:var(--wlms-muted); text-decoration-color:var(--wlms-line); text-underline-offset:3px; }
.wlms-card-rating { margin:4px 0 12px!important; font-size:13px; font-weight:500; }

/* Keep Academy pages visually inside the WOOLAB site shell, not the active theme. */
body.wlms-body.woolab { margin:0; background:#fff; color:#212121; font-family:"Rubik",system-ui,-apple-system,"Segoe UI",sans-serif; }
.wlms-site-shell-header { position:relative; z-index:40; background:#212121; color:#fff; }
.wlms-site-shell-header .w-preheader { background:#1b1b1d; color:#e1e2e6; }
.wlms-site-shell-header .w-nav { position:relative; z-index:40; display:flex; align-items:center; justify-content:space-between; gap:24px; padding-top:22px; padding-bottom:22px; }
.wlms-site-shell-header .w-logo img { display:block; width:auto; height:22px; }
.wlms-site-shell-header .w-menu { display:none; align-items:center; gap:24px; }
@media(min-width:1024px) { .wlms-site-shell-header .w-menu { display:flex; } }
.wlms-site-shell-header .w-menu a,
.wlms-site-shell-header .w-mobile a,
.wlms-site-shell-header .w-preheader a { color:#d3d5dc; text-decoration:none!important; text-decoration-line:none!important; }
.wlms-site-shell-header .w-menu > .w-mi > a:hover,
.wlms-site-shell-header .w-menu > .w-mi > a[aria-current="page"],
.wlms-site-shell-header .w-menu > .w-menu > a:hover,
.wlms-site-shell-header .w-mobile a:hover,
.wlms-site-shell-header .w-preheader a:hover { color:#fff; }
.wlms-site-shell-header .w-menu > .w-btn { color:#fff!important; text-decoration:none!important; }
.wlms-site-shell-header .w-course-nav { color:#fff!important; text-decoration:none!important; }
.wlms-site-shell-header .w-preheader-account,
.wlms-site-shell-header .w-preheader-contact { color:#e1e2e6; }
.wlms-site-shell-header .w-cart-toggle { color:#fff; }
.wlms-site-shell-header .w-menu > .w-mi > a:not(.w-course-nav)::after { text-decoration:none; }
@media(max-width:1023px) {
  .wlms-site-shell-header .w-menu { display:none!important; }
  .wlms-site-shell-header .w-burger { display:inline-block; border:0; background:transparent; color:#fff; font:15px Rubik,system-ui,sans-serif; }
  .wlms-site-shell-header .w-mobile.is-open { display:block; }
}
.wlms-site-shell-header .w-mobile { background:#2b2b2c; }
.wlms-site-shell-header .w-mobile .w-mtop { color:#fff; }

/* Prevent theme anchor defaults from making the Woolab header look like a plain menu. */
body.wlms-body.woolab .wlms-site-shell-header a,
body.wlms-body.woolab .wlms-site-shell-header a:hover,
body.wlms-body.woolab .wlms-site-shell-header a:focus { text-decoration:none!important; text-decoration-line:none!important; }
body.wlms-body.woolab .wlms-site-shell-header .w-menu > .w-mi > a { color:#d3d5dc!important; }
body.wlms-body.woolab .wlms-site-shell-header .w-menu > .w-mi > a:hover,
body.wlms-body.woolab .wlms-site-shell-header .w-menu > .w-mi > a[aria-current="page"] { color:#fff!important; }
body.wlms-body.woolab .wlms-site-shell-header .w-menu > .w-mi > .w-course-nav { color:#fff!important; background:#315af4!important; }
body.wlms-body.woolab .wlms-site-shell-header .w-menu > .w-btn { color:#fff!important; }
body.wlms-body.woolab .wlms-site-shell-header .w-logo img { visibility:visible!important; opacity:1!important; }

/* Course accordion: first module open by default, others expand on demand. */
.wlms-course-facts { display:flex; flex-wrap:wrap; gap:10px; margin:22px 0 30px; }
.wlms-course-facts span { display:grid; gap:2px; min-width:140px; border:1px solid var(--wlms-line); border-radius:12px; padding:12px 16px; }
.wlms-course-facts small { color:var(--wlms-muted); font-size:12px; }
.wlms-course-facts strong { font-size:14px; font-weight:500; }
.wlms-module { margin:12px 0; overflow:hidden; border:1px solid var(--wlms-line); border-radius:14px; background:#fff; }
.wlms-module > summary { display:grid; grid-template-columns:minmax(0,1fr) auto 18px; align-items:center; gap:12px; padding:17px 20px; background:var(--wlms-soft); cursor:pointer; list-style:none; }
.wlms-module > summary::-webkit-details-marker { display:none; }
.wlms-module-heading h3 { font-size:21px; }
.wlms-module-heading > span:not(.wlms-module-chevron) { color:var(--wlms-muted); font-size:13px; }
.wlms-module-chevron { width:9px; height:9px; border-right:1.5px solid var(--wlms-muted); border-bottom:1.5px solid var(--wlms-muted); transform:rotate(45deg) translateY(-2px); transition:transform .2s; }
.wlms-module[open] > summary .wlms-module-chevron { transform:rotate(225deg) translate(-2px,-1px); }
.wlms-module-content { padding:0 0 4px; }
.wlms-module-description { padding:14px 20px 0; }
.wlms-module-description p { margin:0 0 12px; color:var(--wlms-muted); }
.wlms-lesson-icon.is-complete { background:#eaf7ef; color:#19744b; }
.wlms-lesson-icon.is-video { background:#eef1ff; color:var(--wlms-blue); }
.wlms-lesson-icon.is-text { background:#f1f2f4; color:#4e5056; }
.wlms-lesson-icon.is-quiz { background:#fff4df; color:#9b6711; }

/* Lesson learning workspace with persistent course outline */
.wlms-learning-layout { display:grid; grid-template-columns:minmax(230px,275px) minmax(0,1fr); gap:34px; align-items:start; }
.wlms-learning-sidebar { position:sticky; top:24px; max-height:calc(100vh - 48px); overflow:auto; border:1px solid var(--wlms-line); border-radius:16px; padding:16px 12px 12px; background:#fff; scrollbar-width:thin; }
.wlms-sidebar-back { display:block; margin:2px 8px 15px; color:var(--wlms-muted); font-size:13px; text-decoration:none; }
.wlms-sidebar-back:hover { color:var(--wlms-blue); }
.wlms-sidebar-progress { display:grid; grid-template-columns:1fr auto; gap:8px 10px; align-items:center; margin:0 4px 14px; border-radius:11px; padding:12px; background:var(--wlms-soft); color:var(--wlms-muted); font-size:12px; }
.wlms-sidebar-progress strong { color:var(--wlms-ink); }
.wlms-sidebar-progress .wlms-progress { grid-column:1/-1; height:6px; }
.wlms-sidebar-module { margin:7px 0; border:1px solid var(--wlms-line); border-radius:11px; overflow:hidden; }
.wlms-sidebar-module > summary { display:grid; grid-template-columns:minmax(0,1fr) auto 14px; align-items:center; gap:8px; padding:11px 12px; background:var(--wlms-soft); color:var(--wlms-ink); font-size:13px; font-weight:500; cursor:pointer; list-style:none; }
.wlms-sidebar-module > summary::-webkit-details-marker { display:none; }
.wlms-sidebar-module > summary small { color:var(--wlms-muted); font-size:11px; font-weight:400; }
.wlms-sidebar-module > summary::after { content:""; width:7px; height:7px; border-right:1.5px solid var(--wlms-muted); border-bottom:1.5px solid var(--wlms-muted); transform:rotate(45deg) translateY(-2px); transition:transform .2s; }
.wlms-sidebar-module[open] > summary::after { transform:rotate(225deg) translate(-2px,-1px); }
.wlms-sidebar-module ol { display:grid; gap:2px; margin:0; padding:5px; list-style:none; }
.wlms-sidebar-module li { margin:0; padding:0; }
.wlms-sidebar-module li a { display:grid; grid-template-columns:24px minmax(0,1fr); align-items:center; gap:8px; min-height:38px; border-radius:8px; padding:7px 8px; color:var(--wlms-muted); font-size:12px; line-height:1.35; text-decoration:none; }
.wlms-sidebar-module li a:hover { background:#f6f7fa; color:var(--wlms-ink); }
.wlms-sidebar-module li a[aria-current="page"] { background:#eef1ff; color:var(--wlms-ink); font-weight:500; }
.wlms-sidebar-status { display:grid; width:22px; height:22px; place-items:center; border-radius:50%; background:#f1f2f4; color:#555860; font-size:12px; }
.wlms-sidebar-status.is-video { background:#eef1ff; color:var(--wlms-blue); }
.wlms-sidebar-status.is-text { background:#f1f2f4; color:#555860; }
.wlms-sidebar-status.is-quiz { background:#fff4df; color:#9b6711; }
.wlms-sidebar-status.is-complete { background:#eaf7ef; color:#19744b; }
.wlms-sidebar-lesson-title { min-width:0; overflow-wrap:anywhere; }
.wlms-lesson-pane { min-width:0; }
.wlms-lesson-pane > .wlms-breadcrumb { margin-bottom:18px; }
.wlms-lesson-pane .wlms-lesson-heading { margin-bottom:20px; }
.wlms-lesson-pane .wlms-lesson-heading h1 { font-size:clamp(30px,4.5vw,48px); }
@media(max-width:900px) {
 .wlms-learning-layout { grid-template-columns:minmax(205px,235px) minmax(0,1fr); gap:20px; }
}
@media(max-width:700px) {
 .wlms-learning-layout { grid-template-columns:minmax(0,1fr); gap:20px; }
 .wlms-learning-sidebar { position:static; max-height:none; padding:12px; }
 .wlms-sidebar-progress { margin-bottom:10px; }
 .wlms-sidebar-module:not([open]) { margin-bottom:6px; }
 .wlms-lesson-pane .wlms-lesson-heading { display:block; }
 .wlms-lesson-pane .wlms-lesson-heading .wlms-text-link { margin-top:12px; }
}
.wlms-dashboard-empty { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; border:1px solid var(--wlms-line); border-radius:14px; padding:18px 20px; background:#fff; }
.wlms-dashboard-empty p { margin:0; color:var(--wlms-muted); }
.wlms-dashboard-empty .wlms-button { flex:0 0 auto; }
@media (max-width:700px) {
  .wlms-dashboard-empty { align-items:stretch; flex-direction:column; }
  .wlms-dashboard-empty .wlms-button { width:100%; }
}

/* Lesson workspace tabs */
.wlms-lesson-tabs { margin:32px 0 38px; border:1px solid var(--wlms-line); border-radius:18px; background:#fff; overflow:hidden; }
.wlms-tab-list { display:flex; gap:3px; overflow-x:auto; border-bottom:1px solid var(--wlms-line); padding:8px 10px 0; scrollbar-width:thin; }
.wlms-tab-button { position:relative; display:inline-flex; min-height:44px; flex:0 0 auto; align-items:center; justify-content:center; border:0; border-radius:9px 9px 0 0; padding:10px 14px; background:transparent; color:var(--wlms-muted); font:500 13px/1.3 Rubik,system-ui,sans-serif; cursor:pointer; white-space:nowrap; }
.wlms-tab-button:hover { background:#f7f8fa; color:var(--wlms-ink); }
.wlms-tab-button.is-active { background:#eef1ff; color:var(--wlms-ink); }
.wlms-tab-button.is-active::after { position:absolute; right:12px; bottom:-1px; left:12px; height:2px; background:var(--wlms-blue); content:""; }
.wlms-tab-panel { padding:clamp(18px,3vw,28px); }
.wlms-tab-panel[hidden] { display:none!important; }
.wlms-tab-panel h2 { margin:0 0 8px; font-size:26px; }
.wlms-tab-intro { margin:0 0 18px!important; color:var(--wlms-muted); font-size:14px; }
.wlms-tab-empty { margin:14px 0!important; border-radius:10px; padding:14px; background:var(--wlms-soft); color:var(--wlms-muted); font-size:14px; }
.wlms-note-toolbar { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:0; border:1px solid #d9dbe1; border-bottom:0; border-radius:11px 11px 0 0; padding:8px; background:#f7f8fa; }
.wlms-note-toolbar button { min-width:36px; min-height:34px; border:1px solid transparent; border-radius:7px; padding:5px 9px; background:transparent; color:var(--wlms-ink); font:500 14px Rubik,system-ui,sans-serif; cursor:pointer; }
.wlms-note-toolbar button:hover,.wlms-note-toolbar button:focus-visible { border-color:var(--wlms-line); background:#fff; }
.wlms-note-editor { min-height:220px; max-height:520px; overflow:auto; border:1px solid #d9dbe1; border-radius:0 0 11px 11px; padding:16px; color:var(--wlms-ink); font-size:15px; line-height:1.65; outline:none; }
.wlms-note-editor:focus { border-color:var(--wlms-blue); box-shadow:0 0 0 2px rgba(49,90,244,.12); }
.wlms-note-editor:empty::before { color:#92949b; content:attr(data-placeholder); pointer-events:none; }
.wlms-note-editor ul,.wlms-note-editor ol { padding-left:24px; }
.wlms-note-actions { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:12px; }
.wlms-note-actions [role="status"] { color:var(--wlms-muted); font-size:13px; }
.wlms-note-actions .is-success { color:#167044!important; }
.wlms-note-actions .is-error { color:#b42318!important; }
.wlms-resource-list { display:grid; gap:8px; margin:16px 0 0; padding:0; list-style:none; }
.wlms-resource-list li { display:grid; grid-template-columns:48px minmax(0,1fr) auto; align-items:center; gap:12px; border:1px solid var(--wlms-line); border-radius:12px; padding:9px 12px; }
.wlms-resource-preview img { display:block; width:44px; height:44px; border-radius:8px; object-fit:cover; }
.wlms-resource-file-icon { display:grid; width:42px; height:42px; place-items:center; border-radius:9px; background:#eef1ff; color:var(--wlms-blue); font-size:19px; }
.wlms-resource-name { display:grid; min-width:0; gap:2px; }
.wlms-resource-name strong { overflow-wrap:anywhere; font-size:14px; font-weight:500; }
.wlms-resource-name small { color:var(--wlms-muted); font-size:11px; }
.wlms-resource-download { color:var(--wlms-blue); font-size:13px; font-weight:500; text-decoration:none; white-space:nowrap; }
.wlms-question-form { display:grid; gap:9px; max-width:740px; margin-top:22px; border-top:1px solid var(--wlms-line); padding-top:20px; }
.wlms-question-form label { font-size:14px; font-weight:500; }
.wlms-question-form textarea { width:100%; border:1px solid #d9dbe1; border-radius:10px; padding:12px; font:15px/1.6 Rubik,system-ui,sans-serif; }
.wlms-question-form .wlms-button { justify-self:start; }
.wlms-question-card { margin:12px 0; border:1px solid var(--wlms-line); border-radius:13px; padding:16px; }
.wlms-question-card h3 { margin:0 0 7px; font-size:18px; }
.wlms-question-label { display:block; margin:0 0 7px; color:var(--wlms-muted); font-size:12px; font-weight:600; letter-spacing:.02em; }
.wlms-question-text { color:var(--wlms-muted); }
.wlms-question-date { margin:8px 0 0!important; color:#85878d; font-size:12px; }
.wlms-answer { margin-top:13px; border-left:3px solid var(--wlms-blue); border-radius:0 9px 9px 0; padding:12px 14px; background:#f4f6ff; }
.wlms-answer strong { font-size:13px; }
.wlms-answer div { margin-top:5px; color:var(--wlms-muted); }
.wlms-question-pending { margin:12px 0!important; border-radius:9px; padding:11px 13px; background:#eef7f1; color:#167044; font-size:13px; }
.wlms-feed-post { margin:15px 0; overflow:hidden; border:1px solid var(--wlms-line); border-radius:14px; padding:16px; }
.wlms-feed-post > header { display:flex; align-items:center; gap:10px; margin-bottom:13px; }
.wlms-feed-avatar { display:grid; width:36px; height:36px; place-items:center; border-radius:50%; background:var(--wlms-ink); color:#fff; font-size:14px; font-weight:600; }
.wlms-feed-post > header div { display:grid; gap:2px; }
.wlms-feed-post > header strong { font-size:13px; }
.wlms-feed-post > header small { color:var(--wlms-muted); font-size:11px; }
.wlms-feed-post h3 { margin:0 0 10px; font-size:19px; }
.wlms-feed-content { color:#46484f; font-size:14px; }
.wlms-feed-image img { display:block; max-width:100%; height:auto; margin-top:12px; border-radius:10px; }
.wlms-admin-file-group { margin:18px 0; border:1px solid #dcdcde; border-radius:6px; padding:14px; background:#fff; }
.wlms-admin-file-list { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.wlms-admin-file { display:inline-flex; align-items:center; gap:6px; border-radius:7px; padding:6px 9px; background:#f1f2f4; }
@media(max-width:640px) {
 .wlms-tab-list { padding:6px 6px 0; }
 .wlms-tab-button { min-height:40px; padding:9px 11px; font-size:12px; }
 .wlms-tab-panel { padding:16px; }
 .wlms-note-editor { min-height:180px; }
 .wlms-note-actions { align-items:stretch; flex-direction:column; }
 .wlms-note-actions .wlms-button { width:100%; }
 .wlms-resource-list li { grid-template-columns:40px minmax(0,1fr); }
 .wlms-resource-preview img,.wlms-resource-file-icon { width:38px; height:38px; }
 .wlms-resource-download { grid-column:2; }
 .wlms-question-form .wlms-button { width:100%; }
}

/* Academy course canvas uses the full viewport: the reading column remains centered inside it. */
html:has(body.wlms-body.woolab),body.wlms-body.woolab { width:100%!important; max-width:none!important; margin:0!important; padding:0!important; overflow-x:hidden!important; }
body.wlms-body.woolab .wlms-site-shell-header,
body.wlms-body.woolab .wlms-main,
body.wlms-body.woolab .wlms-site-footer { width:100vw!important; max-width:none!important; margin-left:calc(50% - 50vw)!important; margin-right:calc(50% - 50vw)!important; }
body.wlms-body.woolab .wlms-main { padding-left:max(16px,calc((100vw - 1080px)/2)); padding-right:max(16px,calc((100vw - 1080px)/2)); }
.wlms-module-progress-label { display:inline-flex; align-items:center; border-radius:999px; padding:5px 9px; background:#eef1ff; color:var(--wlms-blue)!important; font-size:12px!important; font-weight:500; }
@media(max-width:700px) { body.wlms-body.woolab .wlms-main { padding-left:16px; padding-right:16px; } }
@media(orientation:landscape) and (max-height:600px) { body.wlms-body.woolab .wlms-main { padding-left:clamp(16px,5vw,72px); padding-right:clamp(16px,5vw,72px); } }

@supports not (overflow: clip) { html:has(body.wlms-body.woolab), body.wlms-body.woolab { overflow-x:hidden!important; } }
.wlms-sidebar-module > summary [data-wl-module-progress] { display:inline-flex; align-items:center; min-width:78px; justify-content:center; border-radius:999px; padding:4px 8px; background:#eef1ff; color:var(--wlms-blue); font-size:11px; font-weight:500; white-space:nowrap; }
.wlms-module-heading .wlms-module-progress-label { min-width:88px; justify-content:center; }
@media(max-width:700px) {
  .wlms-main { width:100%; max-width:none; margin:0; }
  .wlms-container { width:100%; max-width:100%; min-width:0; }
  .wlms-learning-sidebar,.wlms-lesson-pane,.wlms-lesson-tabs { width:100%; min-width:0; }
  .wlms-lesson-tabs { overflow:hidden; }
  .wlms-tab-list { max-width:100%; }
}
