body.lac-with-shell{display:flex!important;flex-direction:column;align-items:stretch!important;min-height:100vh;padding:0!important;margin:0!important}
.lac-with-shell>header:not(.lac-shell-header),.lac-with-shell>footer:not(.lac-shell-footer){display:none!important}
.lac-with-shell>main{flex:1 0 auto;min-width:0}
.lac-with-shell>main.card{flex:0 0 auto;width:min(680px,calc(100% - 28px));margin:36px auto 48px}
.lac-shell-header,.lac-shell-footer,.lac-shell-header *,.lac-shell-footer *{box-sizing:border-box;font-family:Cairo,Arial,sans-serif}
header.lac-shell-header{position:sticky;top:0;z-index:100;display:block;width:100%;max-width:none;margin:0;padding:0;background:#fffffffa;border:0;border-bottom:1px solid #e1eae7;box-shadow:0 4px 20px #173a2410;backdrop-filter:blur(12px);color:#203b6c}
.lac-shell-bar{position:relative;display:flex;align-items:center;gap:20px;max-width:1240px;min-height:90px;padding:14px 24px;margin:auto}
.lac-shell-brand{display:inline-flex;align-items:center;flex:none;text-decoration:none}
.lac-shell-brand img{display:block;width:220px;max-width:100%;height:auto;object-fit:contain}
.lac-shell-nav{margin:0;padding:0;border:0;background:none;display:flex;align-items:center;justify-content:center;flex:1;gap:16px;min-width:0}
.lac-shell-nav a{color:#203b6c;text-decoration:none;font-size:14px;font-weight:700;line-height:1.6;padding:8px 0;white-space:nowrap}
.lac-shell-nav a:hover,.lac-shell-nav a[aria-current=page]{color:#128d85}
.lac-shell-action{display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:44px;padding:10px 18px;border:0;border-radius:24px;background:#138f88;color:white!important;text-decoration:none;font:700 14px Cairo,Arial,sans-serif;cursor:pointer;white-space:nowrap;line-height:1.6;margin:0}
.lac-shell-action.lac-shell-logout{background:#d84a4f}
.lac-shell-menu{display:none;align-items:center;justify-content:center;flex:none;width:44px;height:44px;border:1px solid #dfe8e5;background:white;color:#203b6c;font-size:22px;border-radius:12px;padding:0;margin:0;cursor:pointer}
.lac-shell-header [hidden],.lac-shell-footer [hidden]{display:none!important}
.lac-shell-header :focus-visible,.lac-shell-footer :focus-visible{outline:3px solid #0f766e;outline-offset:4px}
footer.lac-shell-footer{display:block;width:100%;max-width:none;margin:44px 0 0;padding:40px max(20px,calc((100vw - 1192px)/2)) 22px;background:#142e50;color:#dde8ed;direction:rtl;text-align:right;border:0}
.lac-shell-foot-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:40px}
.lac-shell-footer .lac-shell-brand{background:transparent;padding:0;border:0;border-radius:0;box-shadow:none;max-width:250px}
.lac-shell-footer p{font-size:14px;line-height:2;max-width:430px;margin:18px 0 0;color:#c9d8e1}
.lac-shell-footer nav{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin:0;padding:0;max-width:none;background:none}
.lac-shell-footer nav strong{color:white;font-size:18px;margin-bottom:6px}
.lac-shell-footer nav a{color:#d2e1e9;text-decoration:none;font-size:14px;line-height:1.9;padding:0}
.lac-shell-footer nav a:hover{color:#9fddd1;text-decoration:underline}
.lac-shell-copyright{display:flex;justify-content:space-between;gap:16px;padding-top:20px;margin-top:30px;border-top:1px solid #ffffff26;font-size:12px;color:#bacbd6}
@media(max-width:1100px){.lac-shell-bar{gap:12px}.lac-shell-brand img{width:185px}.lac-shell-nav{gap:10px}.lac-shell-nav a{font-size:12px}.lac-shell-action{font-size:12px;padding:10px 13px}}
@media(max-width:850px){.lac-shell-bar{min-height:78px;padding:12px 16px;gap:10px}.lac-shell-brand{margin-inline-end:auto}.lac-shell-brand img{width:190px}.lac-shell-menu{display:inline-flex;order:3}.lac-shell-action{order:2}.lac-shell-nav{display:none;position:absolute;inset-inline:12px;top:calc(100% + 6px);flex-direction:column;align-items:stretch;padding:14px;background:#fff;border:1px solid #dce7e2;border-radius:16px;box-shadow:0 14px 32px #183c2420;gap:2px}.lac-shell-nav.lac-open{display:flex}.lac-shell-nav a{padding:10px 14px;font-size:15px;border-radius:8px}.lac-shell-nav a:hover{background:#f0f8f5}.lac-shell-foot-grid{grid-template-columns:1fr 1fr;gap:28px}.lac-shell-foot-grid>div:first-child{grid-column:1/-1}}
@media(max-width:420px){.lac-shell-bar{padding:10px;gap:7px}.lac-shell-brand img{width:158px}.lac-shell-action{font-size:11px;padding:9px 11px}.lac-shell-menu{width:40px;height:44px}.lac-shell-copyright{flex-direction:column;gap:5px}.lac-with-shell>main.card{margin-top:24px}}
@media print{.lac-shell-header,.lac-shell-footer{display:none!important}body.lac-with-shell{display:block!important}}

/* Small, local line icons inherit each button color. */
[data-lac-icon]::before{content:"";display:inline-block;width:1.12em;height:1.12em;vertical-align:-.18em;margin-inline-end:.45em;background:currentColor;mask:var(--lac-action-icon) center/contain no-repeat;-webkit-mask:var(--lac-action-icon) center/contain no-repeat;flex-shrink:0;pointer-events:none}
[data-lac-icon="check"]{--lac-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m5%2012%204%204L19%206%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%2F%3E%3C%2Fsvg%3E")}
[data-lac-icon="next"]{--lac-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m14%206-6%206%206%206M8%2012h13%22%2F%3E%3C%2Fsvg%3E")}
[data-lac-icon="previous"]{--lac-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m10%206%206%206-6%206M3%2012h13%22%2F%3E%3C%2Fsvg%3E")}
[data-lac-icon="comment"]{--lac-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21%2011.5a8.5%208.5%200%200%201-8.5%208.5H4l-2%202v-10A9%209%200%200%201%2011%203h1.5a8.5%208.5%200%200%201%208.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M7%209h10M7%2013h7%22%2F%3E%3C%2Fsvg%3E")}
[data-lac-icon="login"]{--lac-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%203h6v18h-6M3%2012h12m-4-4%204%204-4%204%22%2F%3E%3C%2Fsvg%3E")}
[data-lac-icon="logout"]{--lac-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M10%203H4v18h6m3-9h9m-4-4%204%204-4%204%22%2F%3E%3C%2Fsvg%3E")}
[data-lac-icon="user"]{--lac-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%227%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M2%2021v-2a8%208%200%200%201%2016%200v2m2-12v6m-3-3h6%22%2F%3E%3C%2Fsvg%3E")}
[data-lac-icon="play"]{--lac-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%2F%3E%3Cpath%20d%3D%22m10%208%206%204-6%204Z%22%2F%3E%3C%2Fsvg%3E")}
[data-lac-icon="lock"]{--lac-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%224%22%20y%3D%2210%22%20width%3D%2216%22%20height%3D%2212%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M8%2010V6a4%204%200%200%201%208%200v4m-4%205v2%22%2F%3E%3C%2Fsvg%3E")}
[data-lac-icon="paperclip"]{--lac-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m8%2013%207-7a3%203%200%200%201%204%204L9%2020a5%205%200%200%201-7-7L12%203a2%202%200%200%201%203%203L6%2015%22%2F%3E%3C%2Fsvg%3E")}
[data-lac-icon="send"]{--lac-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m22%202-7%2020-4-9L2%209%2022%202ZM11%2013%2022%202%22%2F%3E%3C%2Fsvg%3E")}
[data-lac-icon="undo"]{--lac-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2010a9%209%200%201%201%202%209M3%203v7h7%22%2F%3E%3C%2Fsvg%3E")}
[data-lac-icon="save"]{--lac-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%203h13l4%204v14H3V3h1ZM7%203v6h10V3M7%2021v-8h10v8%22%2F%3E%3C%2Fsvg%3E")}
[data-lac-icon="edit"]{--lac-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m15%204%205%205M3%2021l2-7L17%202l5%205-12%2012-7%202Z%22%2F%3E%3C%2Fsvg%3E")}
[data-lac-icon="search"]{--lac-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%227%22%2F%3E%3Cpath%20d%3D%22m15%2015%207%207%22%2F%3E%3C%2Fsvg%3E")}
[data-lac-icon="download"]{--lac-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203v12m-5-5%205%205%205-5M3%2016v5h18v-5%22%2F%3E%3C%2Fsvg%3E")}
[data-lac-icon="plus"]{--lac-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%204v16M4%2012h16%22%2F%3E%3C%2Fsvg%3E")}

/* Theme switch and shared dark surfaces. */
:root{color-scheme:light}
.lac-theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;padding:9px;margin:0;border:1px solid #d8e6e1;border-radius:50%;background:#edf7f3;color:#137b74;cursor:pointer;order:2}
.lac-theme-toggle svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.lac-theme-toggle:hover{background:#dceee8}
html[data-theme=dark]{color-scheme:dark;--navy:#dae9fa;--teal:#63d3c2;--muted:#a9b9c8;--line:#304350;--bg:#0e1820;--text:#e2edf4;--ink:#e2edf4;--paper:#172630}
html[data-theme=dark] body{background:#0e1820!important;color:#dce8ef!important}
html[data-theme=dark] header.lac-shell-header{background:#14232cf5;border-color:#304350;color:#dce8ef;box-shadow:0 4px 20px #0003}
html[data-theme=dark] .lac-shell-nav a{color:#dce8ef}
html[data-theme=dark] .lac-shell-nav a:hover,html[data-theme=dark] .lac-shell-nav a[aria-current=page]{color:#75ddcb}
html[data-theme=dark] .lac-shell-header .lac-shell-brand{background:transparent;border-radius:9px;padding:5px 8px}
html[data-theme=dark] .lac-shell-footer .lac-shell-brand{background:transparent}
html[data-theme=dark] .lac-shell-brand img{filter:brightness(1.3)}
html[data-theme=dark] #home .eyebrow{background:#203b40;border-color:#3b5d60;color:#9ae2d4!important}
html[data-theme=dark] #home .eyebrow i{background:#7ddbc8}
html[data-theme=dark] :is(.lac-shell-menu,.lac-theme-toggle){background:#203540;color:#8ce0d0;border-color:#3a525d}
html[data-theme=dark] footer.lac-shell-footer{background:#101e28;border-top:1px solid #304350}
html[data-theme=dark] :is(.card,.panel,.course,.book,.doc-card,.continue-card,.section-accordion,.section-content,.lesson,.quiz,.notice,.empty,.feedback,.pdf-viewer,.pdf-pages,.book-detail-cover-card,.book-detail-cover-placeholder,.admin-tabs,.lac-admin-main>section){background:#172630!important;border-color:#304350!important;color:#dce8ef!important;box-shadow:0 8px 26px #0002}
html[data-theme=dark] :is(.hero,.library,.about-docs,.path){background:#12222c!important;color:#dce8ef!important}
html[data-theme=dark] :is(h1,h2,h3,h4,h5,h6,strong,label,legend){color:#e0edf6!important}
html[data-theme=dark] :is(p,.meta,.course-meta,.book-detail-description,.continue-meta,small){color:#adbfcd}
html[data-theme=dark] :is(.eyebrow,.kicker,.course-name,.doc-open,.book-detail-meta){color:#7ddbc8!important}
html[data-theme=dark] a:not(.btn):not(.lac-shell-action):not(.lac-shell-brand){color:#82dcca}
html[data-theme=dark] :is(input,textarea,select){background:#101e28!important;border-color:#3b5361!important;color:#edf5fa!important}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#90a6b5;opacity:1}
html[data-theme=dark] :is(.toggle,.file-picker,.section-toggle,.pdf-head,.btn.secondary,.btn-soft,.btn-outline){background:#203b40!important;border-color:#3b5d60!important;color:#8be0d0!important}
html[data-theme=dark] .section-toggle h3{color:#def3ed!important}
html[data-theme=dark] :is(.progress-track,.continue-track){background:#30434d!important}
html[data-theme=dark] :is(.progress-fill,.continue-fill){background:#44b8a1!important}
html[data-theme=dark] .lesson-navigation .btn:disabled{background:#293941!important;color:#8da2ad!important}
html[data-theme=dark] .lesson-status.completed,html[data-theme=dark] .status.done{background:#1d4c3e;color:#93e7bd}
html[data-theme=dark] :is(.error,.note){background:#3c272c!important;color:#ffc2c4!important}
html[data-theme=dark] :is(th,td,fieldset){border-color:#304350!important}
html[data-theme=dark] th{background:#20343e!important;color:#e0edf6!important}
html[data-theme=dark] :is(.course-body,.course-foot,.lesson-navigation){border-color:#304350!important}
html[data-theme=dark] :focus-visible{outline:3px solid #75ddcb;outline-offset:3px}
@media(max-width:850px){html[data-theme=dark] .lac-shell-nav{background:#172630;border-color:#304350}.lac-theme-toggle{width:38px;height:38px;padding:8px}}
@media(max-width:420px){.lac-shell-brand img{width:130px}.lac-theme-toggle{width:34px;height:36px;padding:7px}.lac-shell-bar{gap:6px}.lac-shell-action{padding-inline:9px}.lac-shell-header .lac-shell-brand{flex-shrink:1;min-width:0}}
@media(max-width:360px){.lac-shell-brand img{width:110px}.lac-shell-action{font-size:10px;padding-inline:7px}}
@media print{.lac-theme-toggle{display:none!important}html[data-theme=dark]{color-scheme:light}html[data-theme=dark] body,html[data-theme=dark] :is(.card,.panel,h1,h2,h3,p,strong){background:white!important;color:black!important;box-shadow:none!important}}
html[data-theme=dark] .btn:not(.secondary):not(.btn-soft):not(.btn-outline){background:#147c70;color:#fff}
html[data-theme=dark] .btn:disabled{background:#315f5b;color:#dcebe8}

/* Floating mobile dock with space reserved below the page and iPhone safe area. */
.lac-mobile-nav{display:none}
@media screen and (max-width:767px){
 body.lac-with-shell{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))!important}
 html{scroll-padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
 .lac-mobile-nav{position:fixed;z-index:120;inset-inline:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;max-width:520px;margin-inline:auto;padding:7px;background:#ffffffed;border:1px solid #d4e5df;border-radius:30px;box-shadow:0 8px 30px #133f3433;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);direction:rtl;font-family:Cairo,Arial,sans-serif;box-sizing:border-box}
 .lac-mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:60px;padding:6px 2px;border-radius:23px;color:#627883!important;text-decoration:none;font-size:10px;font-weight:700;line-height:1.6;text-align:center;-webkit-tap-highlight-color:transparent}
 .lac-mobile-nav svg{display:block;width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
 .lac-mobile-nav a[aria-current=page]{background:#dcefe8;color:#117c70!important}
 .lac-mobile-nav a:focus-visible{outline:3px solid #158b7e;outline-offset:1px}
 html[data-theme=dark] .lac-mobile-nav{background:#172b34ed;border-color:#36525a;box-shadow:0 8px 32px #0007}
 html[data-theme=dark] .lac-mobile-nav a{color:#adc3ce!important}
 html[data-theme=dark] .lac-mobile-nav a[aria-current=page]{background:#284d4b;color:#8ae5d1!important}
}
@media print{.lac-mobile-nav{display:none!important}}
/* Keep custom profile and management cards paired with their dark text palette. */
html[data-theme=dark] :is(.lac-profile-panel,.user-card,.profile-detail,.profile-detail-grid,.course-admin-card,.lac-admin-main #chapters>details,dialog){background:#172630!important;color:#e4eef5!important;border-color:#38505e!important}
html[data-theme=dark] .lac-profile-panel :is(h1,h2,label,strong){color:#edf5fa!important}
html[data-theme=dark] .lac-profile-panel :is(p,small){color:#bdcdd8!important}
html[data-theme=dark] .lac-profile-panel input{background:#101e28!important;color:#edf5fa!important;border-color:#456171!important}
html[data-theme=dark] .lac-profile-panel input[readonly]{background:#20323e!important;color:#cedfe9!important}
html[data-theme=dark] .lac-profile-message{background:#193f35!important;color:#b6ecd3!important;border-color:#35715c!important}
html[data-theme=dark] .lac-profile-message[data-error=true]{background:#472c32!important;color:#ffd3d6!important;border-color:#91535e!important}
html[data-theme=dark] .admin-intro-links a{background:#203b40!important;color:#a2e5d6!important;border-color:#3b5d60!important}
html[data-theme=dark] .lesson-delete-action{background:#472c32!important;color:#ffd3d6!important}
/* Light statistic tiles retain dark ink in either theme. */
html[data-theme=dark] :is(.stat-chip,.row){background:#f6f9f8!important;color:#243e60!important;color-scheme:light}
html[data-theme=dark] :is(.stat-chip,.row) :is(strong,h1,h2,h3,h4,label,span,p,small){color:#243e60!important}
html[data-theme=dark] .stat-chip span,html[data-theme=dark] .row span:first-child{color:#4d6274!important}
html[data-theme=dark] .tile{background:#fff!important;color:#243e60!important;color-scheme:light}
html[data-theme=dark] .tile :is(strong,h1,h2,h3,label,span,p,small){color:#243e60!important;opacity:1}
html[data-theme=dark] .tile span{color:#4d6274!important}
html[data-theme=dark] .tile a:not(.btn){color:#096b60!important;opacity:1}
/* Book labels pair dark ink with a light mint surface in night mode. */
html[data-theme=dark] .book a.book-title-link{background:#b9e4d9!important;color:#173c38!important;opacity:1!important;font-weight:800;border:1px solid #8ec9bb;border-radius:14px;padding:12px 8px;text-shadow:none}
html[data-theme=dark] .book a.book-title-link:hover{background:#cceee5!important;color:#102f2b!important}
html[data-theme=dark] .book a.book-title-link:focus-visible{outline:3px solid #80dbc6;outline-offset:3px}

/* Filled section actions need dark text on their light mint surface. */
html[data-theme=dark] a.text-link{background:#7ddbc8;color:#103b35!important;box-shadow:0 6px 16px #0002}
html[data-theme=dark] a.text-link:hover,html[data-theme=dark] a.text-link:focus-visible{background:#a0eadb;color:#103b35!important}

/* A white wordmark stays readable on the navy footer without a logo tile. */
html footer.lac-shell-footer .lac-shell-brand img{filter:brightness(0) invert(1)}
