/* DarsMarket: compact, distraction-free teaching workspace. */
:root {
 --w-bg-top:#f5f7fa;--w-bg-mid:#f7f8fb;--w-bg-base:#f7f8fb;
 --w-accent:#3857c3;--w-accent-dark:#3049a7;--w-accent-soft:#edf1ff;
 --w-border:#e3e7ef;--w-ink:#1c273b;--w-ink-muted:#667085;
 --w-card:#fff;--w-card-solid:#fff;--w-shadow-card:0 2px 10px rgba(26,39,68,.05);
}
body.site-body {color:#566175;background:#f7f8fb;line-height:1.5}
body.wisdom-shell {background:#f7f8fb;--link:#405bc5;--accent:#405bc5;--accent-dark:#314aa7}
.site-body h1,.site-body h2,.site-body h3,.site-body h4 {color:#1c273b;letter-spacing:-.025em;line-height:1.25}
.site-body a {color:#405bc5}.site-body a:hover {color:#293f9d}
body.wisdom-shell .site-navbar {background:#fff;border-bottom:1px solid #e9ecf2}
.site-brand-mark {background:#344fbd!important;border-radius:9px!important;box-shadow:none}
.site-brand-title {color:#1b273a!important;letter-spacing:-.035em}.site-brand-subtitle {color:#8490a3!important}
body.wisdom-shell .site-container {max-width:1320px}
body.wisdom-shell :is(.card,.resource-card,.store-card,.page-hero) {border:1px solid #e6e9f0;border-radius:12px;box-shadow:none;background-color:#fff}
body.wisdom-shell :is(.form-control,.form-select) {border:1px solid #dce1eb;border-radius:9px;color:#25314a;background-color:#fff;min-height:44px}
body.wisdom-shell :is(.form-control,.form-select):focus {border-color:#667bdd;box-shadow:0 0 0 3px rgba(64,91,197,.12)}
body.wisdom-shell :is(.btn-primary,.btn-outline-primary) {border-radius:9px;font-weight:600;min-height:42px}
body.wisdom-shell .btn-primary {background:#405bc5;border-color:#405bc5;color:#fff}
body.wisdom-shell .btn-primary:hover {background:#3049a7;border-color:#3049a7}
body.wisdom-shell .btn-outline-primary {border-color:#d4dbea;color:#405bc5;background:#fff}
body.wisdom-shell .btn-outline-primary:hover {background:#f0f3ff;border-color:#9aabe7;color:#3049a7}
.teacher-workspace {display:grid;grid-template-columns:215px minmax(0,1fr);gap:38px;align-items:start}
.teacher-workspace-main {min-width:0}
.teacher-workspace-nav {position:sticky;top:24px;display:flex;flex-direction:column;gap:3px;padding:4px 0 24px;border-right:1px solid #e6e9ef}
.workspace-nav-label {margin:18px 0 8px 12px;color:#98a2b3;font-size:10px;font-weight:700;letter-spacing:.12em}
.teacher-workspace-nav a {display:flex;align-items:center;gap:11px;margin-right:14px;padding:10px 12px;border-radius:8px;color:#667085;font-size:13px;font-weight:600;text-decoration:none}
.teacher-workspace-nav a svg {width:18px;height:18px;flex:none}.teacher-workspace-nav a:hover {background:#eff2f8;color:#3049a7}.teacher-workspace-nav a.is-active {background:#eaf0ff;color:#344fbd}
.dashboard-intro {margin:0 0 22px;padding:8px 0 0;background:none;border:0;border-radius:0;overflow:visible}
.dashboard-intro-label {display:block;color:#8692a6;font-size:10px;font-weight:700;letter-spacing:.12em}
.dashboard-intro h2 {font-size:clamp(1.55rem,2.5vw,2.1rem);margin:8px 0 5px;font-weight:700;letter-spacing:-.035em}
.dashboard-intro p {margin:0 0 20px;color:#778297;font-size:14px}
.dashboard-intro .wisdom-search {max-width:100%;margin:0;background:#fff;border:1px solid #dce1eb;border-radius:10px;box-shadow:none}
.dashboard-intro .wisdom-search button {background:#405bc5;border-radius:7px;color:#fff}
.dashboard-actions {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 32px}
.dashboard-actions a {display:flex;justify-content:flex-start;align-items:center;gap:10px;min-height:64px;padding:12px;text-align:left;text-decoration:none;color:#344054;font-size:13px;font-weight:650;border:1px solid #e7eaf1;border-radius:10px;background:#fff;box-shadow:none}
.dashboard-actions a:hover {color:#405bc5;border-color:#bcc8ef}
.dashboard-action-icon {display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:8px;color:#405bc5;background:#eef2ff}.dashboard-action-icon svg {width:18px;height:18px}
.dashboard-section-heading {display:flex;justify-content:space-between;align-items:end;gap:16px;margin:30px 0 16px}
.dashboard-section-heading h2 {font-size:18px;margin:0 0 3px}.dashboard-section-heading p {margin:0;color:#8490a2;font-size:13px}.dashboard-section-heading a {font-size:13px;font-weight:600;white-space:nowrap}
.wisdom-module-grid {gap:10px}
.wisdom-module-card {min-height:115px;padding:16px 16px 48px;border:1px solid #e7eaf1;border-radius:10px;background:#fff;box-shadow:none}
.wisdom-module-card:hover {border-color:#b7c4ef;box-shadow:0 4px 14px rgba(42,59,100,.05)}
.wisdom-module-title {color:#25314a;font-size:14px;font-weight:700}.wisdom-module-desc {color:#7a8599;font-size:12px;line-height:1.45}
.wisdom-module-icon {width:32px;height:32px;background:#f0f3ff;color:#526bc9;border-radius:8px}.wisdom-module-icon svg {width:18px;height:18px}
.wisdom-wide-card {border-color:#e7eaf1;background:#fff;border-radius:10px}.workspace-tool {border-color:#e7eaf1;border-radius:10px;box-shadow:none}.workspace-tool:hover {border-color:#b7c4ef}
.teacher-section-nav a,.library-shortcuts a {border-color:#e1e5ed;color:#606d82;background:#fff}.teacher-section-nav .is-current {background:#405bc5;border-color:#405bc5;color:#fff}
body.wisdom-shell .wisdom-bottom-nav {background:#fff;border-color:#e7eaf1;box-shadow:0 -4px 20px rgba(35,49,82,.04)}
body.wisdom-shell .wisdom-bottom-nav a[aria-current="page"] {color:#405bc5}body.wisdom-shell .wisdom-bottom-nav a[aria-current="page"] .wisdom-nav-icon-wrap {background:#edf1ff}
.site-body :is(a,button,input,select,textarea,summary):focus-visible {outline:3px solid #667bdd;outline-offset:3px}
.library-shortcuts {display:flex;gap:8px;overflow-x:auto;padding-bottom:6px}.library-shortcuts a {flex:none;padding:8px 12px;border:1px solid #e1e5ed;border-radius:8px;text-decoration:none;white-space:nowrap}
.editor-jumps {display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}.editor-extra {margin-bottom:12px}.editor-extra summary {cursor:pointer;padding:10px 12px;background:#f8f9fc;border:1px solid #e1e5ed;border-radius:8px}
#resource-actions,#resource-preview,#editor-steps,#editor-publish {scroll-margin-top:20px}.resource-meta .pill-counter,.resource-meta .js-helpful-count {margin-inline-start:.3em}
@media(max-width:991.98px){.teacher-workspace {grid-template-columns:minmax(0,1fr);gap:0}.teacher-workspace-nav {display:none}}
@media(max-width:767.98px){
 .dashboard-intro h2 {font-size:1.5rem}.dashboard-intro p {margin-bottom:14px}.dashboard-actions {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:24px}
 .dashboard-actions a {padding:10px;min-height:55px;font-size:12px}.dashboard-action-icon {width:32px;height:32px}.dashboard-action-icon svg {width:17px;height:17px}
 .dashboard-section-heading {align-items:start}.dashboard-section-heading a {font-size:12px}.wisdom-module-card {min-height:112px;padding:14px;gap:8px}.wisdom-module-card .wisdom-module-icon {position:static;align-self:flex-end;margin-top:auto;flex:none}
 .resource-hero .resource-meta {display:flex;flex-direction:row;flex-wrap:wrap}.resource-hero .resource-meta .meta-badge {width:auto}.resource-hero-strip {display:none}
 body.wisdom-shell :is(.card,.resource-card,.store-card,.page-hero) {border-radius:10px}
}
/* Landing and account pages use the same restrained workspace language. */
body.page-home .home-hero {padding:clamp(26px,4vw,56px);border:0;background:#fff}
.home-hero-label {display:inline-block;margin-bottom:18px;color:#6676b5;font-size:11px;font-weight:750;letter-spacing:.13em}
body.page-home .home-hero h1 {max-width:700px;font-size:clamp(2.1rem,4vw,3.4rem);font-weight:750;letter-spacing:-.045em;line-height:1.1}
body.page-home .home-hero .lead {max-width:590px;margin-top:16px;color:#667085;font-size:17px;line-height:1.65}
.home-hero-note {margin:14px 0 0;color:#8390a3;font-size:13px}
body.page-home .hero-doc-frame {padding:16px;background:#f7f8fc;border:1px solid #e7eaf1;border-radius:12px;box-shadow:none}
body.page-home .hero-doc-body {padding:14px 2px 0}
body.page-home .hero-doc-body .btn {width:auto;min-width:130px}
body.page-home .metric-grid {gap:1px;overflow:hidden;border:1px solid #e7eaf1;border-radius:12px;background:#e7eaf1}
body.page-home .metric-tile {background:#fff;border:0;border-radius:0;box-shadow:none}
body.page-home .subject-chip {border:1px solid #e2e7f0;border-radius:9px;background:#fff;color:#344054}
body.page-home .subject-chip:hover {border-color:#aebce8;color:#405bc5}
body.page-home .resource-card {overflow:hidden}
body.page-home .resource-card .card-body {gap:9px}
body.wisdom-shell .auth-shell {max-width:1060px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,460px);gap:44px;align-items:start;margin:32px auto 64px}
body.wisdom-shell .auth-shell > .auth-aside {padding:32px 0!important;text-align:left;background:transparent;border:0;box-shadow:none}
body.wisdom-shell .auth-aside .wisdom-auth-mark {margin:0 0 24px;background:#edf1ff;color:#405bc5;border:0;box-shadow:none}
body.wisdom-shell .auth-aside .stat-stack {display:grid;margin-top:28px}
body.wisdom-shell .auth-aside .soft-panel {border-color:#e4e8f0;background:#fff;border-radius:10px}
body.wisdom-shell .auth-shell .auth-card {width:100%;max-width:none;margin:0}
body.wisdom-shell .auth-card .password-toggle {color:#405bc5}
@media(max-width:767.98px){
 body.page-home .home-hero {padding:24px 20px}
 body.page-home .home-hero h1 {font-size:2rem}
 body.page-home .home-hero .lead {font-size:15px}
 body.page-home .metric-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
 body.wisdom-shell .auth-shell {display:flex;flex-direction:column;gap:10px;margin:0 auto 32px}
 body.wisdom-shell .auth-shell > .auth-aside {padding:8px 0!important}
 body.wisdom-shell .auth-aside .wisdom-auth-mark,.auth-aside .stat-stack {display:none!important}
 body.wisdom-shell .auth-aside h1 {font-size:24px}
}
body.wisdom-shell .auth-shell .auth-card {box-shadow:none;border-color:#e6e9f0}
body.wisdom-shell .auth-shell > .auth-aside h1 {text-align:left}
body.wisdom-shell .auth-shell > .auth-aside .lead {text-align:left}
/* Footer text remains legible on its dark surface. */
body.site-body .site-footer :is(h2,h3,.footer-wordmark) {color:#f2f5ff}
body.site-body .site-footer .footer-wordmark span {color:#aebdff}
body.site-body .site-footer .footer_widget li a {color:#d7dfed}
body.site-body .site-footer .footer_widget li a:hover {color:#fff}
/* Compact footer shared by all pages. */
body.site-body .dm-footer {background:#fff;border-top:1px solid #e6e9f0;color:#748094;padding:22px 0;margin-top:auto}
body.site-body .dm-footer-inner {max-width:1320px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.dm-footer-brand {display:flex;align-items:baseline;gap:12px;min-width:0}
body.site-body .dm-footer-name {color:#1c273b;font-size:15px;font-weight:750;letter-spacing:-.03em;white-space:nowrap;text-decoration:none}
body.site-body .dm-footer-name span {color:#405bc5}
.dm-footer-brand>span {color:#8b95a5;font-size:12px;white-space:nowrap}
.dm-footer-links {display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap}
body.site-body .dm-footer-links a {color:#667085;font-size:12px;font-weight:500;text-decoration:none;white-space:nowrap}
body.site-body .dm-footer-links a:hover {color:#405bc5}
.dm-footer-copyright {color:#98a2b3;font-size:12px;white-space:nowrap}
@media(max-width:991.98px){.dm-footer-brand>span {display:none}.dm-footer-inner {flex-wrap:wrap}}
@media(max-width:767.98px){body.site-body .dm-footer {padding:20px 0 calc(88px + env(safe-area-inset-bottom,0px))}.dm-footer-inner {align-items:flex-start!important;gap:12px!important}.dm-footer-brand {width:100%}.dm-footer-links {justify-content:flex-start;gap:10px 16px}.dm-footer-copyright {width:100%}}
/* Header: one compact bar with account controls alongside the navigation. */
body.site-body .site-navbar {background:#fff;border-bottom:1px solid #e8ebf2}
body.site-body .site-navbar .container-fluid {max-width:1320px;margin:0 auto}
body.site-body .site-navbar-shell {min-height:68px;padding:10px 0;gap:20px}
body.site-body .site-brand {gap:10px;margin-right:12px;flex:none;text-decoration:none}
body.site-body .site-brand-mark {width:40px;height:40px;border-radius:11px!important;background:#405bc5!important;color:#fff;font-size:13px;letter-spacing:-.03em}
body.site-body .site-brand-title {font-size:17px;line-height:1.1;color:#1c273b!important}
body.site-body .site-brand-subtitle {font-size:10px;color:#8994a6!important;margin-top:3px}
body.site-body .site-nav {gap:2px}
body.site-body .site-nav .nav-link {padding:9px 10px;font-size:13px;font-weight:600;color:#667085;border-radius:8px;white-space:nowrap}
body.site-body .site-nav .nav-link:hover,body.site-body .site-nav .nav-link.active {background:#eef1fd;color:#405bc5}
body.site-body .site-utility {gap:8px;flex-wrap:nowrap}
body.site-body .site-utility-button {min-width:0;min-height:38px;padding:8px 12px;font-size:12px;white-space:nowrap}
.header-account-link {padding:8px;color:#667085;font-size:12px;font-weight:600;white-space:nowrap;text-decoration:none}
.header-account-link:hover,.header-account-link.is-current {color:#405bc5}
.header-notification,.header-mobile-bell {position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:38px;height:38px;border:1px solid #e6e9f0;border-radius:10px;background:#fff;color:#667085;text-decoration:none}
.header-notification:hover,.header-mobile-bell:hover,.header-notification.is-current {background:#f0f3ff;border-color:#d5ddf5;color:#405bc5}
.header-notification svg,.header-mobile-bell svg {width:19px;height:19px}
.header-notification-label {display:none}
.header-alert-count {position:absolute;top:-5px;right:-5px;min-width:17px;height:17px;padding:0 4px;display:flex;align-items:center;justify-content:center;border-radius:20px;background:#405bc5;color:#fff;font-size:10px;font-weight:700;line-height:1}
.header-profile {display:flex;align-items:center;gap:8px;min-width:0;padding:3px 4px;border-radius:9px;color:#344054;text-decoration:none}
.header-profile:hover,.header-profile.is-current {background:#f1f3fa;color:#405bc5}
.header-profile-avatar {display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:#edf1ff;color:#405bc5;font-size:12px;font-weight:750}
.header-profile-text {display:flex;flex-direction:column;min-width:0;max-width:115px;line-height:1.2}
.header-profile-text strong {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:700}
.header-profile-text small {font-size:10px;color:#8994a6;margin-top:3px}
body.site-body .site-logout-link {min-height:36px;padding:7px 8px;font-size:12px;color:#778297}
.header-mobile-bell {display:none}
@media (min-width:1200px) and (max-width:1499.98px){.header-profile-text {display:none}body.site-body .site-navbar-shell {gap:12px}body.site-body .site-nav .nav-link {padding-inline:8px}body.site-body .site-brand {margin-right:0}}
@media (max-width:1199.98px){
 body.site-body .site-navbar-shell {min-height:62px;gap:0}
 .header-mobile-bell {display:inline-flex;margin-left:auto;margin-right:10px}
 body.site-body .site-toggler {margin-left:auto;border-color:#e4e8f1;border-radius:10px;padding:10px;background:#fff}
 .header-mobile-bell + .site-toggler {margin-left:0}
 body.site-body .site-navbar .navbar-collapse {margin-top:10px;padding:12px;background:#fff;border:1px solid #e7eaf1;border-radius:12px;box-shadow:0 8px 24px rgba(25,40,75,.08)}
 body.site-body .site-nav .nav-link {padding:11px 12px}
 body.site-body .site-utility {justify-content:flex-start;flex-wrap:wrap;gap:8px;border-color:#edf0f5}
 .header-notification {display:none}
 .header-profile-text {max-width:180px}
}
@media (max-width:767.98px){body.site-body .site-brand-subtitle {font-size:9px}body.site-body .site-navbar-shell {min-height:60px}.header-mobile-bell {width:38px;height:38px}}
@media (max-width:1199.98px){body.site-body .header-mobile-bell + .site-toggler {margin-left:0}}
@media (max-width:1199.98px){body.page-dashboard .wisdom-bell {display:none}}
body.page-dashboard .wisdom-bell {display:none}
.materials-tabs {display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid #e3e7ef;margin:0 0 24px}.materials-tabs a {flex:none;padding:10px 12px;color:#667085;text-decoration:none;font-size:13px;font-weight:600;border-bottom:2px solid transparent}.materials-tabs a[aria-current=page] {color:#405bc5;border-color:#405bc5}.materials-heading {display:flex;justify-content:space-between;align-items:start;gap:20px}.materials-heading>span,.materials-status {background:#f1f3f8;color:#59667a;border-radius:20px;padding:5px 10px;font-size:12px;white-space:nowrap}.materials-list {margin-top:18px}.materials-row {display:flex;align-items:center;gap:20px;padding:16px 0;border-top:1px solid #e9edf3}.materials-row>div {flex:1;min-width:0}.materials-row h3 {margin:0 0 5px}.materials-row>a {font-size:13px;white-space:nowrap}.materials-empty {padding:26px 0 4px}.materials-pagination {display:flex;gap:6px;margin-top:20px}@media(max-width:575px){.materials-row {flex-wrap:wrap;gap:10px}.materials-row>div {flex-basis:100%}.materials-heading {gap:8px}}
