/* Sellora 1.0.1: focused auth layout and complete dark-mode surface repair. */
.rm-auth{display:flex!important;align-items:center!important;justify-content:center!important;padding:40px 18px!important}
.rm-auth-visual{display:none!important}
.rm-auth-column{width:min(100%,500px)!important;min-height:0!important;padding:0!important;justify-content:center!important}
.rm-auth-column>.rm-auth-brand{margin:0 auto 22px!important}
.rm-auth-column>.rm-auth-card{width:100%!important}
.rm-checkout-layout>aside{align-self:start}
.rm-checkout-layout--single{display:block!important;width:min(100%,720px)!important;margin-inline:auto!important}
.rm-checkout-layout--single>section{width:100%!important}
.rm-checkout-layout--single .rm-checkout-card{width:100%!important;max-width:none!important}
.rm-selected-product{margin:22px 0 0;padding-top:18px;border-top:1px solid var(--s-line)}
.rm-selected-product .rm-checkout-kicker{display:block;margin-bottom:9px}
.rm-selected-product .rm-product-summary{width:100%;margin:0;box-shadow:none}

html[data-sellora-theme=dark] body.rm-system-page,
html[data-sellora-theme=dark] body.rm-order-page{background:#0b1020!important;color:#eaf0ff!important}
html[data-sellora-theme=dark] .rm-owner-app,
html[data-sellora-theme=dark] .rm-app{--s-bg:#0b1020;--s-surface:#121a2bd9;--s-surface-solid:#121a2b;--s-elevated:#0e1627;--s-line:#27334a;--s-text:#e9eefb;--s-muted:#94a2ba;--s-violet:#8b7cff;--s-cyan:#28d6df;--s-blue:#5c8cff;--s-green:#20d69a;--s-shadow:0 18px 48px #0003;background:#0b1020!important;color:#e9eefb!important;color-scheme:dark}
html[data-sellora-theme=dark] .rm-owner-main,
html[data-sellora-theme=dark] .rm-main,
html[data-sellora-theme=dark] .rm-owner-main>header,
html[data-sellora-theme=dark] .rm-main>header,
html[data-sellora-theme=dark] .rm-owner-sidebar,
html[data-sellora-theme=dark] .rm-sidebar{background-color:#121a2b!important;border-color:#27334a!important;color:#e9eefb!important}
html[data-sellora-theme=dark] .rm-owner-content .rm-panel,
html[data-sellora-theme=dark] .rm-owner-content .rm-stats>div{background:#121a2b!important;border-color:#27334a!important;color:#e9eefb!important}

/* Shared dark surfaces. These rules intentionally come last in the cascade. */
.rm-owner-app[data-theme=dark] .rm-admin,
.rm-owner-app[data-theme=dark] .rm-admin h1,
.rm-owner-app[data-theme=dark] .rm-admin h2,
.rm-owner-app[data-theme=dark] .rm-admin h3,
.rm-owner-app[data-theme=dark] .rm-admin strong,
.rm-owner-app[data-theme=dark] .rm-admin label,
.rm-app[data-theme=dark] h1,
.rm-app[data-theme=dark] h2,
.rm-app[data-theme=dark] h3,
.rm-app[data-theme=dark] strong{color:var(--s-text)!important}

.rm-owner-app[data-theme=dark] .rm-bank-item,
.rm-owner-app[data-theme=dark] .rm-toggle,
.rm-owner-app[data-theme=dark] .rm-callout,
.rm-owner-app[data-theme=dark] .rm-media-field,
.rm-owner-app[data-theme=dark] .rm-media-preview,
.rm-owner-app[data-theme=dark] .rm-module>.rm-panel-head,
.rm-owner-app[data-theme=dark] .rm-admin-catalog article,
.rm-owner-app[data-theme=dark] .rm-admin-catalog article>div:last-child,
.rm-owner-app[data-theme=dark] .rm-admin-catalog-image,
.rm-owner-app[data-theme=dark] .rm-empty,
.rm-owner-app[data-theme=dark] .rm-edit-pop[open]>form,
.rm-owner-app[data-theme=dark] .rm-edit-pop[open]>.rm-lesson-form{
 background:var(--s-elevated)!important;border-color:var(--s-line)!important;color:var(--s-text)!important
}
.rm-owner-app[data-theme=dark] .rm-media-preview{background:#0b1222!important}
.rm-owner-app[data-theme=dark] .rm-toggle{background:#10251f!important}
.rm-owner-app[data-theme=dark] .rm-callout{background:#171d3a!important}
.rm-owner-app[data-theme=dark] .rm-bank-item input,
.rm-owner-app[data-theme=dark] .rm-bank-item select,
.rm-owner-app[data-theme=dark] .rm-bank-item textarea{background:#0d1629!important;color:var(--s-text)!important;border-color:var(--s-line)!important}
.rm-owner-app[data-theme=dark] .rm-admin .description,
.rm-owner-app[data-theme=dark] .rm-admin small,
.rm-owner-app[data-theme=dark] .rm-admin p{color:var(--s-muted)!important}

.rm-app[data-theme=dark] .rm-dashboard-orders,
.rm-app[data-theme=dark] .rm-order-list,
.rm-app[data-theme=dark] .rm-order-head,
.rm-app[data-theme=dark] .rm-order-row,
.rm-app[data-theme=dark] .rm-course-overview,
.rm-app[data-theme=dark] .rm-course-counts span,
.rm-app[data-theme=dark] .rm-overview-progress,
.rm-app[data-theme=dark] .rm-syllabus,
.rm-app[data-theme=dark] .rm-syllabus-module,
.rm-app[data-theme=dark] .rm-syllabus-module>header,
.rm-app[data-theme=dark] .rm-syllabus-module>a,
.rm-app[data-theme=dark] .rm-learning,
.rm-app[data-theme=dark] .rm-curriculum,
.rm-app[data-theme=dark] .rm-lesson-content,
.rm-app[data-theme=dark] .rm-profile-card,
.rm-app[data-theme=dark] .rm-catalog-card,
.rm-app[data-theme=dark] .rm-catalog-body,
.rm-app[data-theme=dark] .rm-catalog-fallback,
.rm-app[data-theme=dark] .rm-access-card,
.rm-app[data-theme=dark] .rm-access-body,
.rm-app[data-theme=dark] .rm-empty-card{
 background:var(--s-elevated)!important;border-color:var(--s-line)!important;color:var(--s-text)!important
}
.rm-app[data-theme=dark] .rm-order-head,
.rm-app[data-theme=dark] .rm-syllabus-module>header{background:#171f32!important}
.rm-app[data-theme=dark] .rm-course-counts span,
.rm-app[data-theme=dark] .rm-overview-progress{background:#121c30!important}
.rm-app[data-theme=dark] .rm-curriculum{background:#10192b!important}
.rm-app[data-theme=dark] .rm-lesson-content{background:#121a2b!important}
.rm-app[data-theme=dark] .rm-catalog-media,
.rm-app[data-theme=dark] .rm-access-media{background:#0b1222!important}
.rm-app[data-theme=dark] .rm-product-type{background:#25204b!important;color:#aaa2ff!important}
.rm-app[data-theme=dark] .rm-progress{background:#253047!important}
.rm-app[data-theme=dark] .rm-order-head span,
.rm-app[data-theme=dark] .rm-syllabus-module small,
.rm-app[data-theme=dark] .rm-syllabus-module em,
.rm-app[data-theme=dark] .rm-course-overview p,
.rm-app[data-theme=dark] .rm-curriculum strong,
.rm-app[data-theme=dark] .rm-breadcrumb,
.rm-app[data-theme=dark] .rm-richtext{color:var(--s-muted)!important}

.rm-auth[data-theme=dark] .rm-auth-card,
.rm-checkout[data-theme=dark] .rm-checkout-card,
.rm-checkout[data-theme=dark] .rm-product-summary,
.rm-checkout[data-theme=dark] .rm-bank-picker,
.rm-checkout[data-theme=dark] .rm-bank-option,
.rm-checkout[data-theme=dark] .rm-order-total,
.rm-checkout[data-theme=dark] .rm-modal-card,
.rm-checkout[data-theme=dark] .rm-invoice{
 background:var(--s-solid)!important;border-color:var(--s-line)!important;color:var(--s-text)!important
}
.rm-checkout[data-theme=dark] .rm-bank-picker{background:#10251f!important}
.rm-checkout[data-theme=dark] .rm-bank-option:has(input:checked){background:#11372f!important}
.rm-checkout[data-theme=dark] .rm-order-total span,
.rm-checkout[data-theme=dark] .rm-order-total strong,
.rm-checkout[data-theme=dark] .rm-order-total em,
.rm-checkout[data-theme=dark] .rm-bank-picker b,
.rm-checkout[data-theme=dark] .rm-bank-option b,
.rm-checkout[data-theme=dark] .rm-invoice strong{color:var(--s-text)!important}
.rm-checkout[data-theme=dark] .rm-bank-picker small,
.rm-checkout[data-theme=dark] .rm-bank-option small,
.rm-checkout[data-theme=dark] .rm-secure{color:var(--s-muted)!important}

.rm-owner-app[data-theme=dark] .rm-owner-menu,
.rm-app[data-theme=dark] .rm-menu,
html[data-sellora-theme=dark] .rm-owner-menu,
html[data-sellora-theme=dark] .rm-menu{background:#172036!important;border:1px solid #303d58!important;color:#dbe5f7!important;box-shadow:none!important}

@media(max-width:700px){
 .rm-auth{padding:28px 14px!important}
 .rm-auth-column{width:100%!important}
 .rm-checkout-layout>aside{position:static!important}
 .rm-checkout-layout--single{width:100%!important}
 .rm-selected-product .rm-product-summary{gap:12px;padding:14px!important}
}
