html[data-theme="dark"] {
    color-scheme: dark;
    background: #0b1220;
}

html[data-theme="dark"] body.layout-body,
html[data-theme="dark"] body.auth-page,
html[data-theme="dark"] body.auth-body,
html[data-theme="dark"] body.public-welcome {
    background: #0b1220;
    color: #e2e8f0;
}

html[data-theme="dark"] .layout-shell,
html[data-theme="dark"] .layout-main {
    background-color: #0f172a !important;
}

html[data-theme="dark"] .layout-sidebar,
html[data-theme="dark"] .layout-topbar {
    background-color: #111827 !important;
    border-color: #273449 !important;
}

html[data-theme="dark"] .layout-sidebar {
    border-right-color: #263248 !important;
}

html[data-theme="dark"] .layout-content {
    color: #d7e0ed;
}

html[data-theme="dark"] .schools-date-trigger-clickable {
    background-color: #0e1728 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .schools-date-icon {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .students-date-range-field {
    background-color: #111c2f !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] .students-date-range-label {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .students-date-range-input {
    color: #f1f5f9 !important;
    color-scheme: dark;
    -webkit-text-fill-color: #f1f5f9;
}

html[data-theme="dark"] .students-date-picker-trigger {
    background-color: #111c2f !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .students-date-picker-icon {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .settings-card {
    background-color: #151f31 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .settings-sidebar {
    background-color: #111827 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .settings-nav-link-active {
    background-color: #3b1d5a !important;
    color: #e9d5ff !important;
}

html[data-theme="dark"] .settings-section-title {
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .settings-card .ui-form-label {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .settings-hint,
html[data-theme="dark"] .settings-preview-empty,
html[data-theme="dark"] .settings-file-input {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .settings-preview {
    background-color: #0e1728 !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] .settings-input-invalid,
html[data-theme="dark"] .settings-form .ui-form-control,
html[data-theme="dark"] .settings-form .ui-form-select {
    background-color: #0e1728 !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .settings-form .ui-form-control::placeholder,
html[data-theme="dark"] .settings-form .ui-form-select::placeholder {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .settings-file-input::file-selector-button {
    background-color: #31204a !important;
    color: #e9d5ff !important;
}

html[data-theme="dark"] .layout-sidebar-header,
html[data-theme="dark"] .layout-sidebar-footer,
html[data-theme="dark"] .layout-nav-link-active {
    border-color: #273449;
}

html[data-theme="dark"] .layout-nav-link-idle,
html[data-theme="dark"] .layout-subnav-link-idle,
html[data-theme="dark"] .layout-menu-btn-mobile,
html[data-theme="dark"] .layout-menu-btn-desktop,
html[data-theme="dark"] .layout-profile-name,
html[data-theme="dark"] .layout-notif-title,
html[data-theme="dark"] .layout-notif-empty,
html[data-theme="dark"] .layout-content .ui-page-title,
html[data-theme="dark"] .layout-content .ui-heading-xl,
html[data-theme="dark"] .layout-content .ui-section-title,
html[data-theme="dark"] .layout-content .ui-section-title-fixed,
html[data-theme="dark"] .layout-content .ui-card-title,
html[data-theme="dark"] .layout-content .ui-caption-dark,
html[data-theme="dark"] .layout-content .ui-td-strong,
html[data-theme="dark"] .layout-content .ui-form-label,
html[data-theme="dark"] .layout-content .ui-form-label-tight,
html[data-theme="dark"] .layout-content .ui-form-label-bold,
html[data-theme="dark"] .layout-content .ui-form-label-xs,
html[data-theme="dark"] .layout-content .ui-dropdown-item {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .layout-profile-role,
html[data-theme="dark"] .layout-notif-text,
html[data-theme="dark"] .layout-notif-time,
html[data-theme="dark"] .layout-content .ui-page-subtitle,
html[data-theme="dark"] .layout-content .ui-caption,
html[data-theme="dark"] .layout-content .ui-eyebrow,
html[data-theme="dark"] .layout-content .ui-form-label-sm,
html[data-theme="dark"] .layout-content .ui-form-label-caps,
html[data-theme="dark"] .layout-content .ui-form-label-caps-wide,
html[data-theme="dark"] .layout-content .ui-th,
html[data-theme="dark"] .layout-content .ui-th-center,
html[data-theme="dark"] .layout-content .ui-th-compact,
html[data-theme="dark"] .layout-content .ui-th-compact-wide,
html[data-theme="dark"] .layout-content .ui-th-compact-center,
html[data-theme="dark"] .layout-content .ui-td-muted,
html[data-theme="dark"] .layout-content .ui-td-compact-muted,
html[data-theme="dark"] .layout-content .ui-table-empty {
    color: #aab8ca !important;
}

html[data-theme="dark"] .layout-content :is(
    .ui-text-brand,
    .ui-text-strong,
    .ui-text-strong-tight,
    .ui-text-strong-dark,
    .ui-text-label,
    .cms-td-strong
) {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .layout-content :is(.study-zone-back-link, .students-profile-back) {
    background-color: #172033 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .layout-nav-link-active {
    background-color: #3b1d35;
    color: #f9a8d4;
}

html[data-theme="dark"] .layout-nav-link-idle:hover,
html[data-theme="dark"] .layout-nav-toggle:hover,
html[data-theme="dark"] .layout-subnav-link-idle:hover,
html[data-theme="dark"] .layout-profile-link:hover {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .layout-menu-btn-mobile:hover,
html[data-theme="dark"] .layout-menu-btn-desktop:hover,
html[data-theme="dark"] .layout-bell-btn:hover,
html[data-theme="dark"] .layout-notif-item:hover {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] :where(.layout-nav-link, .layout-nav-toggle, .layout-nav-link-split, .layout-subnav-link):hover .layout-nav-icon-idle {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .layout-profile-link,
html[data-theme="dark"] .layout-profile-dropdown a {
    color: #d7e0ed !important;
}

html[data-theme="dark"] .layout-profile-btn,
html[data-theme="dark"] .layout-topbar-right .layout-profile-btn {
    background-color: transparent !important;
    border-color: transparent !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .layout-profile-btn:hover,
html[data-theme="dark"] .layout-profile-btn:focus-visible,
html[data-theme="dark"] .layout-profile-btn[aria-expanded="true"] {
    background-color: #1e293b !important;
    border-color: #3b4b63 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .layout-profile-name {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .layout-profile-role {
    color: #b6c4d6 !important;
}

html[data-theme="dark"] .layout-profile-caret {
    color: #aab8ca !important;
}

html[data-theme="dark"] .layout-profile-dropdown a:hover {
    background-color: #1e293b !important;
}

html[data-theme="dark"] .layout-profile-dropdown svg {
    stroke: #cbd5e1 !important;
}

html[data-theme="dark"] .layout-profile-dropdown .layout-profile-logout {
    color: #fda4af !important;
}

html[data-theme="dark"] .layout-profile-dropdown .layout-profile-logout:hover {
    background-color: #3b1d2b !important;
    color: #fecdd3 !important;
}

html[data-theme="dark"] .layout-profile-dropdown,
html[data-theme="dark"] .layout-notif-dropdown,
html[data-theme="dark"] .layout-flash-popup,
html[data-theme="dark"] .layout-toast {
    background-color: #151f31 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .layout-notif-dropdown {
    width: 320px;
    max-width: calc(100vw - 24px);
}

html[data-theme="dark"] .layout-notif-dropdown-header .ui-text-strong-dark {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .layout-profile-divider,
html[data-theme="dark"] .layout-notif-item,
html[data-theme="dark"] .layout-notif-dropdown-header,
html[data-theme="dark"] .layout-notif-dropdown-footer {
    border-color: #334155 !important;
}

html[data-theme="dark"] .layout-notif-dropdown-footer {
    background-color: #111827 !important;
}

html[data-theme="dark"] .layout-notif-item-unread {
    background-color: #2b1b2b !important;
}

html[data-theme="dark"] .layout-notif-item:hover {
    background-color: #202b40 !important;
}

html[data-theme="dark"] .layout-notif-view-all,
html[data-theme="dark"] .layout-notif-mark-all {
    color: #c4b5fd !important;
}

html[data-theme="dark"] .layout-search-input:focus {
    background-color: #0e1728 !important;
    border-color: #a78bfa !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .layout-logo-image {
    filter: drop-shadow(0 0 8px rgb(96 165 250 / 35%));
}

html[data-theme="dark"] .layout-logo-name,
html[data-theme="dark"] .layout-logo-blue {
    color: #93c5fd !important;
}

html[data-theme="dark"] .layout-logo-degree {
    color: #d8b4fe !important;
}

html[data-theme="dark"] .schools-glass-card {
    background-color: #151f31cc !important;
    border-color: #34445c !important;
    box-shadow: 0 12px 32px rgb(0 0 0 / 24%) !important;
}

html[data-theme="dark"] .schools-glass-card-header {
    background-image: linear-gradient(110deg, #263248 0%, #202b40 58%, #172033 100%) !important;
    border-color: #3b4b63 !important;
}

html[data-theme="dark"] .schools-glass-title {
    background-image: none !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .schools-photo-btn,
html[data-theme="dark"] .schools-photo-btn-icon,
html[data-theme="dark"] .schools-upload-btn,
html[data-theme="dark"] .schools-add-photos-btn,
html[data-theme="dark"] .schools-cancel-btn {
    background-color: #202b40 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .schools-photo-btn:hover,
html[data-theme="dark"] .schools-photo-btn-icon:hover,
html[data-theme="dark"] .schools-upload-btn:hover,
html[data-theme="dark"] .schools-add-photos-btn:hover,
html[data-theme="dark"] .schools-cancel-btn:hover {
    background-color: #2e2150 !important;
    border-color: #8b5cf6 !important;
    color: #f5d0fe !important;
}

html[data-theme="dark"] .schools-photos-dropzone {
    background-image: linear-gradient(140deg, #172033 0%, #151f31 100%) !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] .schools-photos-dropzone:hover {
    background-image: linear-gradient(140deg, #202b40 0%, #1b2539 100%) !important;
    border-color: #8b5cf6 !important;
}

html[data-theme="dark"] .schools-phone-prefix-lg {
    background-color: #202b40 !important;
    border-color: #475569 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .schools-action-bar {
    background-color: rgb(15 23 42 / 92%) !important;
    border-color: #34445c !important;
    box-shadow: 0 -8px 24px rgb(0 0 0 / 28%) !important;
}

html[data-theme="dark"] .schools-photo-remove,
html[data-theme="dark"] .schools-photo-remove-offset {
    background-color: #3b1d2b !important;
    color: #fda4af !important;
}

html[data-theme="dark"] .storyverse-page {
    --sv-navy: #e2e8f0;
    --sv-text: #d7e0ed;
    --sv-muted: #aab8ca;
    --sv-bg: #0f172a;
    --sv-border: #34445c;
    --sv-white: #151f31;
    background: var(--sv-bg) !important;
    color: var(--sv-text) !important;
}

html[data-theme="dark"] .storyverse-header h4,
html[data-theme="dark"] .storyverse-header p,
html[data-theme="dark"] .storyverse-card-header h5,
html[data-theme="dark"] .storyverse-table thead th,
html[data-theme="dark"] .storyverse-table tbody td,
html[data-theme="dark"] .storyverse-story-title,
html[data-theme="dark"] .storyverse-story-author,
html[data-theme="dark"] .storyverse-form-label,
html[data-theme="dark"] .storyverse-section-title,
html[data-theme="dark"] .storyverse-empty h6,
html[data-theme="dark"] .storyverse-empty p,
html[data-theme="dark"] .category-stories-count,
html[data-theme="dark"] .storyverse-page .category-list-item {
    color: #d7e0ed !important;
}

html[data-theme="dark"] .storyverse-card,
html[data-theme="dark"] .storyverse-card-header,
html[data-theme="dark"] .storyverse-table thead th,
html[data-theme="dark"] .storyverse-table tbody tr,
html[data-theme="dark"] .storyverse-table tbody td {
    background-color: #151f31 !important;
    border-color: #34445c !important;
}

html[data-theme="dark"] .storyverse-table tbody tr:hover {
    background-color: #1e293b !important;
}

html[data-theme="dark"] .storyverse-form-control {
    background-color: #0e1728 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .storyverse-form-control::placeholder {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .storyverse-btn-light {
    background-color: #202b40 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .storyverse-btn-light:hover,
html[data-theme="dark"] .storyverse-action,
html[data-theme="dark"] .storyverse-action.delete {
    background-color: #202b40 !important;
    border-color: #475569 !important;
    color: #f0abfc !important;
}

html[data-theme="dark"] .storyverse-action:hover {
    background-color: #3b1d35 !important;
    color: #f9a8d4 !important;
}

html[data-theme="dark"] .storyverse-badge-active {
    background-color: #12392f !important;
    color: #86efac !important;
}

html[data-theme="dark"] .storyverse-badge-inactive {
    background-color: #3b1d2b !important;
    color: #fda4af !important;
}

html[data-theme="dark"] .storyverse-badge-category {
    background-color: #2e2150 !important;
    color: #d8b4fe !important;
}

html[data-theme="dark"] .storyverse-empty-art,
html[data-theme="dark"] .storyverse-cover-fallback {
    background: linear-gradient(180deg, #202b40 0%, #3b1d35 100%) !important;
}

html[data-theme="dark"] .cms-tabs,
html[data-theme="dark"] .cms-table-card,
html[data-theme="dark"] .cms-toolbar,
html[data-theme="dark"] .cms-table-head-row,
html[data-theme="dark"] .cms-table-row {
    background-color: #151f31 !important;
    border-color: #34445c !important;
}

html[data-theme="dark"] .cms-tab-idle {
    background-color: transparent !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .cms-tab-idle:hover {
    background-color: #202b40 !important;
    color: #f9a8d4 !important;
}

html[data-theme="dark"] .cms-tab-active {
    background-color: #3b1d35 !important;
    color: #f9a8d4 !important;
}

html[data-theme="dark"] .cms-search-box,
html[data-theme="dark"] .cms-search-input {
    background-color: #0e1728 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .cms-search-input::placeholder {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .mobile-app-choice,
html[data-theme="dark"] .mobile-app-checkbox {
    background-color: #172033 !important;
    border-color: #475569 !important;
    color: #d7e0ed !important;
}

html[data-theme="dark"] .mobile-app-choice:has(input:checked),
html[data-theme="dark"] .mobile-app-checkbox:has(input:checked) {
    background-color: #2e2150 !important;
    border-color: #a78bfa !important;
    color: #e9d5ff !important;
}

html[data-theme="dark"] .layout-content .notifications-card {
    background-color: #151f31 !important;
    border-color: #34445c !important;
}

html[data-theme="dark"] .layout-content .notifications-tabs {
    border-color: #34445c !important;
}

html[data-theme="dark"] .layout-content .notifications-item {
    border-color: #34445c !important;
}

html[data-theme="dark"] .layout-content .notifications-item-unread {
    background-color: #241a35 !important;
}

html[data-theme="dark"] .layout-content .notifications-item-read {
    background-color: #151f31 !important;
}

html[data-theme="dark"] .layout-content .notifications-item-title-unread,
html[data-theme="dark"] .layout-content .notifications-item-title-read,
html[data-theme="dark"] .layout-content .notifications-item-body > p {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .layout-content .notifications-item-time {
    color: #a8b4c6 !important;
}

html[data-theme="dark"] .layout-content .notifications-tab-idle {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .layout-content .notifications-tab-count {
    background-color: #263248 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .mobile-app-notification-preview {
    background-color: #202b40 !important;
    border: 1px solid #3b4b63;
}

html[data-theme="dark"] .mobile-app-notification-title {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .mobile-app-notification-message {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .mobile-app-preview-card {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .mobile-app-calendar-day {
    background-color: #151f31 !important;
    border-color: #34445c !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .mobile-app-calendar-day-outside {
    background-color: #111827 !important;
    color: #8291a7 !important;
}

html[data-theme="dark"] .mobile-app-calendar-day-today {
    border-color: #c084fc !important;
}

html[data-theme="dark"] .mobile-app-calendar-weekday {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .mobile-app-calendar-add {
    color: #d8b4fe !important;
}

html[data-theme="dark"] .mobile-app-calendar-add:hover {
    background-color: #2e2150 !important;
}

html[data-theme="dark"] .mobile-app-calendar-quote {
    background-color: #2e2150 !important;
    color: #e9d5ff !important;
}

html[data-theme="dark"] .mobile-app-calendar-quote-inactive {
    background-color: #263248 !important;
    color: #aab8ca !important;
}

html[data-theme="dark"] .mobile-app-audience-tag {
    color: #d8b4fe !important;
}

html[data-theme="dark"] .mobile-app-calendar-head .students-access-btn {
    background-color: #202b40 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .mobile-app-calendar-head .students-access-btn:hover {
    background-color: #2e2150 !important;
    border-color: #8b5cf6 !important;
}

html[data-theme="dark"] .reports-modal-panel,
html[data-theme="dark"] .reports-download-panel {
    background-color: #151f31 !important;
    color: #d7e0ed !important;
}

html[data-theme="dark"] .reports-modal-header {
    background-color: #111827 !important;
    border-color: #34445c !important;
}

html[data-theme="dark"] .reports-modal-panel .ui-text-strong,
html[data-theme="dark"] .reports-modal-panel .reports-detail-label,
html[data-theme="dark"] .reports-download-panel :is(h1, h2, h3, p, span) {
    color: #d7e0ed !important;
}

html[data-theme="dark"] .reports-modal-close,
html[data-theme="dark"] .reports-download-close {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .reports-period-toggle {
    background-color: #202b40 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .reports-period-dropdown {
    background-color: #151f31 !important;
    border-color: #34445c !important;
    box-shadow: 0 16px 36px rgb(0 0 0 / 40%) !important;
}

html[data-theme="dark"] .reports-period-option-idle,
html[data-theme="dark"] .reports-period-custom-idle {
    color: #d7e0ed !important;
}

html[data-theme="dark"] .reports-period-option-active,
html[data-theme="dark"] .reports-period-custom-active {
    background-color: #3b1d35 !important;
    color: #f9a8d4 !important;
}

html[data-theme="dark"] .layout-content [style*="color: #1e40af"],
html[data-theme="dark"] .layout-content [style*="color:#1e40af"],
html[data-theme="dark"] .layout-content [style*="color: #1d4ed8"],
html[data-theme="dark"] .layout-content [style*="color:#1d4ed8"],
html[data-theme="dark"] .layout-content [style*="color: #1e3a8a"],
html[data-theme="dark"] .layout-content [style*="color:#1e3a8a"],
html[data-theme="dark"] .layout-content [style*="color: #2563eb"],
html[data-theme="dark"] .layout-content [style*="color:#2563eb"],
html[data-theme="dark"] .layout-content [style*="color: #3b82f6"],
html[data-theme="dark"] .layout-content [style*="color:#3b82f6"] {
    color: #93c5fd !important;
}

html[data-theme="dark"] .reports-period-option-idle:hover,
html[data-theme="dark"] .reports-period-custom-idle:hover {
    background-color: #202b40 !important;
    color: #f9a8d4 !important;
}

html[data-theme="dark"] .reports-period-divider {
    border-color: #34445c !important;
}

html[data-theme="dark"] .reports-type-badge {
    background-color: #263248 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .reports-status-generated {
    background-color: #12392f !important;
    color: #86efac !important;
}

html[data-theme="dark"] .reports-status-empty {
    background-color: #342f1c !important;
    color: #fde68a !important;
}

html[data-theme="dark"] .subscriptions-status-completed {
    background-color: #12392f !important;
    border-color: #1d5a50 !important;
    color: #86efac !important;
}

html[data-theme="dark"] .store-app-tab {
    background-color: #202b40 !important;
    border-color: #4c3a69 !important;
    color: #d8b4fe !important;
}

html[data-theme="dark"] .store-app-tab:hover {
    background-color: #2e2150 !important;
    border-color: #8b5cf6 !important;
}

html[data-theme="dark"] .store-app-tab.is-active {
    background-color: #7c3aed !important;
    border-color: #a78bfa !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .store-app-screen,
html[data-theme="dark"] .store-app-sample,
html[data-theme="dark"] .store-app-purchase,
html[data-theme="dark"] .store-app-order {
    background-color: #151f31 !important;
    border-color: #3b4b63 !important;
    color: #d7e0ed !important;
}

html[data-theme="dark"] .store-app-screen-title,
html[data-theme="dark"] .store-app-series-copy strong,
html[data-theme="dark"] .store-app-checkline,
html[data-theme="dark"] .store-app-order-head strong {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .store-app-label,
html[data-theme="dark"] .store-app-series-copy p,
html[data-theme="dark"] .store-app-empty,
html[data-theme="dark"] .store-app-order-head span,
html[data-theme="dark"] .store-app-delivery {
    color: #aab8ca !important;
}

html[data-theme="dark"] .store-app-input,
html[data-theme="dark"] .store-app-price-input {
    background-color: #0e1728 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .store-app-feature-list {
    background-color: #0e1728 !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] .store-app-feature-list p {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .store-app-feature-list .store-app-empty {
    color: #aab8ca !important;
}

html[data-theme="dark"] .store-app-input:focus,
html[data-theme="dark"] .store-app-price-input:focus {
    background-color: #111c30 !important;
    border-color: #a78bfa !important;
}

html[data-theme="dark"] .store-app-plan-monthly {
    background: linear-gradient(135deg, #1d3552 0%, #172b43 100%) !important;
    box-shadow: 0 14px 30px -16px #60a5fa66, 0 4px 12px #02061766;
}

html[data-theme="dark"] .store-app-plan-quarterly {
    background: linear-gradient(135deg, #422d21 0%, #34251d 100%) !important;
    box-shadow: 0 14px 30px -16px #fb923c66, 0 4px 12px #02061766;
}

html[data-theme="dark"] .store-app-plan-half {
    background: linear-gradient(135deg, #40391f 0%, #342f1c 100%) !important;
    box-shadow: 0 14px 30px -16px #facc1566, 0 4px 12px #02061766;
}

html[data-theme="dark"] .store-app-plan-yearly {
    background: linear-gradient(135deg, #1d4434 0%, #173329 100%) !important;
    box-shadow: 0 14px 30px -16px #4ade8066, 0 4px 12px #02061766;
}

html[data-theme="dark"] .store-app-plan-icon,
html[data-theme="dark"] .store-app-ghost {
    background-color: #202b40 !important;
    border-color: #475569 !important;
    color: #d8b4fe !important;
}

html[data-theme="dark"] .store-app-plan {
    border-color: #475569 !important;
}

html[data-theme="dark"] .store-app-plan-duration {
    background-color: #202b40 !important;
    border-color: #675090 !important;
    color: #d8b4fe !important;
}

html[data-theme="dark"] .store-app-plan-access {
    background-color: #111c30 !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] .store-app-plan-access legend {
    color: #aab8ca !important;
}

html[data-theme="dark"] .store-app-plan-summary .store-app-feature-list p {
    background-color: #202b40 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .store-app-plan-summary .store-app-feature-list .store-app-empty {
    background-color: transparent !important;
    border-color: transparent !important;
    color: #aab8ca !important;
}

html[data-theme="dark"] .store-app-lock-on {
    background-color: #263248 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .store-app-lock-off {
    background-color: #12392f !important;
    color: #86efac !important;
}

html[data-theme="dark"] .subscription-detail-subtitle,
html[data-theme="dark"] .subscription-detail-note,
html[data-theme="dark"] .subscription-detail-empty {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .subscription-detail-grid > div {
    background-color: #0e1728 !important;
    border-color: #34445c !important;
}

html[data-theme="dark"] .subscription-detail-grid dt {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .subscription-detail-grid dd,
html[data-theme="dark"] .subscription-detail-features li {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .subscription-detail-features li {
    background-color: #241b36 !important;
    border-color: #4c3a69 !important;
}

html[data-theme="dark"] .layout-content .ui-card,
html[data-theme="dark"] .layout-content [class*="card" i],
html[data-theme="dark"] .layout-content [class*="panel" i],
html[data-theme="dark"] .layout-content [class*="modal" i]:not([class*="overlay" i]):not([class*="backdrop" i]),
html[data-theme="dark"] .layout-content [class*="dropdown-menu" i],
html[data-theme="dark"] .layout-content [class*="table-wrap" i] {
    background-color: #151f31 !important;
    border-color: #34445c !important;
    color: #d7e0ed;
}

html[data-theme="dark"] .layout-content [x-show][style*="max-width"] {
    background-color: #151f31 !important;
    border-color: #34445c !important;
    color: #d7e0ed;
}

html[data-theme="dark"] .layout-content [x-show][style*="max-width"] label[style*="border"] {
    background-color: #172033 !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] .layout-content [x-show][style*="max-width"] button {
    border-color: #475569;
}

html[data-theme="dark"] .layout-content [x-show][style*="max-width"] button[style*="#db2777"] {
    border-color: #db2777 !important;
}

html[data-theme="dark"] .layout-content .school-student-view-dialog {
    background-color: #151f31 !important;
    color: #d7e0ed;
}

html[data-theme="dark"] .layout-content :is(.school-student-view-hero, .school-student-view-card) {
    background-color: #1e293b !important;
    border-color: #34445c !important;
}

html[data-theme="dark"] .layout-content .school-student-view-field {
    background-color: #172033 !important;
    border-color: #34445c !important;
}

html[data-theme="dark"] .layout-content :is(.school-student-view-head h3, .school-student-view-card h4, .school-student-view-name, .school-student-view-field strong) {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .layout-content :is(.school-student-view-meta, .school-student-view-note p, .school-student-view-field span) {
    color: #aab8ca !important;
}

html[data-theme="dark"] .layout-content .school-student-view-close {
    background-color: #172033 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .layout-content .school-student-status.is-active {
    background-color: #12392f !important;
    border-color: #245c49 !important;
    color: #86efac !important;
}

html[data-theme="dark"] .layout-content .school-student-status.is-inactive {
    background-color: #3d2029 !important;
    border-color: #69313d !important;
    color: #fda4af !important;
}

html[data-theme="dark"] .layout-content [class*="modal" i][class*="overlay" i],
html[data-theme="dark"] .layout-content [class*="modal" i][class*="backdrop" i] {
    background-color: rgb(2 6 23 / 76%) !important;
}

html[data-theme="dark"] .layout-content [class*="filter-form" i],
html[data-theme="dark"] .layout-content [class*="filter-bar" i],
html[data-theme="dark"] .layout-content [class*="filter-toolbar" i],
html[data-theme="dark"] .layout-content [class*="toolbar" i],
html[data-theme="dark"] .layout-content [class*="search-panel" i],
html[data-theme="dark"] .layout-content [class*="table-card" i] {
    background-color: #151f31 !important;
    border-color: #34445c !important;
    color: #d7e0ed;
    box-shadow: 0 12px 30px rgb(0 0 0 / 22%);
}

html[data-theme="dark"] .layout-content :is(.acad-mode, .att-card) {
    background-color: #151f31 !important;
    border-color: #34445c !important;
    color: #d7e0ed;
}

html[data-theme="dark"] .layout-content .acad-mode-btn {
    color: #b6c4d6 !important;
}

html[data-theme="dark"] .layout-content .acad-mode-btn.is-active {
    background-color: #7c3aed !important;
    color: #fff !important;
}

html[data-theme="dark"] .layout-content :is(.att-card-head, .att-job) {
    border-color: #34445c !important;
}

html[data-theme="dark"] .layout-content :is(.att-label, .att-card-head) {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .layout-content :is(.att-hint, .att-empty) {
    color: #aab8ca !important;
}

html[data-theme="dark"] .layout-content :is(.att-input, .att-select, .att-status) {
    background-color: #0f172a !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .layout-content .att-btn-ghost {
    background-color: #1e293b !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .layout-content .att-btn-ink {
    background-color: #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .layout-content .att-file {
    background-color: #172033 !important;
    border-color: #64748b !important;
}

html[data-theme="dark"] .layout-content :is(.att-student, .att-holiday-row) {
    border-color: #273449 !important;
}

html[data-theme="dark"] .layout-content .upload-box {
    background-color: #241a35 !important;
    border-color: #7c5aa6 !important;
}

html[data-theme="dark"] .layout-content .mobile-app-status {
    background-color: #263248 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .layout-content :is(.mobile-app-status-sent, .mobile-app-status-live, .mobile-app-status-approved) {
    background-color: #12392f !important;
    color: #86efac !important;
}

html[data-theme="dark"] .layout-content .mobile-app-status-scheduled {
    background-color: #172b43 !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .layout-content :is(.mobile-app-status-cancelled, .mobile-app-status-expired, .mobile-app-status-rejected) {
    background-color: #3b1d2b !important;
    color: #fda4af !important;
}

html[data-theme="dark"] .layout-content .mobile-app-status-pending {
    background-color: #342f1c !important;
    color: #fde68a !important;
}

html[data-theme="dark"] .layout-content .mobile-app-row-btn {
    background-color: #1e293b !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .layout-content .mobile-app-row-btn:hover {
    background-color: #342043 !important;
    color: #e9a8ff !important;
}

html[data-theme="dark"] .layout-content [style*="#f0f9ff" i],
html[data-theme="dark"] .layout-content [style*="#eff6ff" i],
html[data-theme="dark"] .layout-content [style*="#dbeafe" i],
html[data-theme="dark"] .layout-content [style*="#e0f2fe" i] {
    background-color: #172b43 !important;
    border-color: #2e4a68 !important;
}

html[data-theme="dark"] .layout-content [style*="#ecfdf5" i],
html[data-theme="dark"] .layout-content [style*="#f0fdf4" i],
html[data-theme="dark"] .layout-content [style*="#dcfce7" i],
html[data-theme="dark"] .layout-content [style*="#d1fae5" i] {
    background-color: #12392f !important;
    border-color: #245c49 !important;
}

html[data-theme="dark"] .layout-content [style*="#faf5ff" i],
html[data-theme="dark"] .layout-content [style*="#f5f3ff" i],
html[data-theme="dark"] .layout-content [style*="#ede9fe" i],
html[data-theme="dark"] .layout-content [style*="#f3e8ff" i] {
    background-color: #2d2142 !important;
    border-color: #4a3568 !important;
}

html[data-theme="dark"] .layout-content [style*="#fdf2f8" i],
html[data-theme="dark"] .layout-content [style*="#fff1f2" i],
html[data-theme="dark"] .layout-content [style*="#fce7f3" i] {
    background-color: #3b1d35 !important;
    border-color: #633451 !important;
}

html[data-theme="dark"] .layout-content [style*="#fff7ed" i],
html[data-theme="dark"] .layout-content [style*="#fef3c7" i],
html[data-theme="dark"] .layout-content [style*="#fffbeb" i],
html[data-theme="dark"] .layout-content [style*="#fefce8" i] {
    background-color: #342f1c !important;
    border-color: #5b4b28 !important;
}

html[data-theme="dark"] .layout-content [style*="#fef2f2" i],
html[data-theme="dark"] .layout-content [style*="#fee2e2" i] {
    background-color: #3d2029 !important;
    border-color: #69313d !important;
}

html[data-theme="dark"] .layout-content :is(
    [style*="background: rgb(240, 249, 255)" i],
    [style*="background-color: rgb(240, 249, 255)" i],
    [style*="background: rgb(239, 246, 255)" i],
    [style*="background-color: rgb(239, 246, 255)" i],
    [style*="background: rgb(219, 234, 254)" i],
    [style*="background-color: rgb(219, 234, 254)" i],
    [style*="background: rgb(224, 242, 254)" i],
    [style*="background-color: rgb(224, 242, 254)" i]
) {
    background-color: #172b43 !important;
    border-color: #2e4a68 !important;
}

html[data-theme="dark"] .layout-content :is(
    [style*="background: rgb(236, 253, 245)" i],
    [style*="background-color: rgb(236, 253, 245)" i],
    [style*="background: rgb(240, 253, 244)" i],
    [style*="background-color: rgb(240, 253, 244)" i],
    [style*="background: rgb(220, 252, 231)" i],
    [style*="background-color: rgb(220, 252, 231)" i],
    [style*="background: rgb(209, 250, 229)" i],
    [style*="background-color: rgb(209, 250, 229)" i]
) {
    background-color: #12392f !important;
    border-color: #245c49 !important;
}

html[data-theme="dark"] .layout-content :is(
    [style*="background: rgb(250, 245, 255)" i],
    [style*="background-color: rgb(250, 245, 255)" i],
    [style*="background: rgb(245, 243, 255)" i],
    [style*="background-color: rgb(245, 243, 255)" i],
    [style*="background: rgb(237, 233, 254)" i],
    [style*="background-color: rgb(237, 233, 254)" i],
    [style*="background: rgb(243, 232, 255)" i],
    [style*="background-color: rgb(243, 232, 255)" i]
) {
    background-color: #2d2142 !important;
    border-color: #4a3568 !important;
}

html[data-theme="dark"] .layout-content :is(
    [style*="background: rgb(253, 242, 248)" i],
    [style*="background-color: rgb(253, 242, 248)" i],
    [style*="background: rgb(255, 241, 242)" i],
    [style*="background-color: rgb(255, 241, 242)" i],
    [style*="background: rgb(252, 231, 243)" i],
    [style*="background-color: rgb(252, 231, 243)" i]
) {
    background-color: #3b1d35 !important;
    border-color: #633451 !important;
}

html[data-theme="dark"] .layout-content :is(
    [style*="background: rgb(255, 247, 237)" i],
    [style*="background-color: rgb(255, 247, 237)" i],
    [style*="background: rgb(254, 243, 199)" i],
    [style*="background-color: rgb(254, 243, 199)" i],
    [style*="background: rgb(255, 251, 235)" i],
    [style*="background-color: rgb(255, 251, 235)" i],
    [style*="background: rgb(254, 252, 232)" i],
    [style*="background-color: rgb(254, 252, 232)" i]
) {
    background-color: #342f1c !important;
    border-color: #5b4b28 !important;
}

html[data-theme="dark"] .layout-content :is(
    [style*="background: rgb(254, 242, 242)" i],
    [style*="background-color: rgb(254, 242, 242)" i],
    [style*="background: rgb(254, 226, 226)" i],
    [style*="background-color: rgb(254, 226, 226)" i]
) {
    background-color: #3d2029 !important;
    border-color: #69313d !important;
}

html[data-theme="dark"] .layout-content :is(
    [style*="color: rgb(15, 23, 42)" i],
    [style*="color: rgb(16, 24, 40)" i],
    [style*="color: rgb(30, 41, 59)" i],
    [style*="color: rgb(30, 41, 57)" i],
    [style*="color: rgb(31, 41, 55)" i],
    [style*="color: rgb(28, 30, 83)" i],
    [style*="color: rgb(51, 65, 85)" i],
    [style*="color: rgb(54, 65, 83)" i],
    [style*="color: rgb(71, 85, 105)" i],
    [style*="color: rgb(74, 85, 101)" i],
    [style*="color: rgb(100, 116, 139)" i],
    [style*="color: rgb(106, 114, 130)" i]
) {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .layout-content :is(
    [style*="color: rgb(22, 163, 74)" i],
    [style*="color: rgb(16, 185, 129)" i],
    [style*="color: rgb(5, 150, 105)" i],
    [style*="color: rgb(0, 166, 62)" i]
) {
    color: #86efac !important;
}

html[data-theme="dark"] .layout-content :is(
    [style*="color: rgb(153, 27, 27)" i],
    [style*="color: rgb(185, 28, 28)" i],
    [style*="color: rgb(220, 38, 38)" i],
    [style*="color: rgb(239, 68, 68)" i],
    [style*="color: rgb(231, 0, 11)" i]
) {
    color: #fda4af !important;
}

html[data-theme="dark"] .layout-content :is(
    [style*="color: rgb(146, 64, 14)" i],
    [style*="color: rgb(180, 83, 9)" i],
    [style*="color: rgb(234, 88, 12)" i]
) {
    color: #fdba74 !important;
}

html[data-theme="dark"] .layout-content [style*="color: #166534" i],
html[data-theme="dark"] .layout-content [style*="color:#166534" i],
html[data-theme="dark"] .layout-content [style*="color: #15803d" i],
html[data-theme="dark"] .layout-content [style*="color:#15803d" i],
html[data-theme="dark"] .layout-content [style*="color: #00a63e" i],
html[data-theme="dark"] .layout-content [style*="color:#00a63e" i] {
    color: #86efac !important;
}

html[data-theme="dark"] .layout-content [style*="color: #991b1b" i],
html[data-theme="dark"] .layout-content [style*="color:#991b1b" i],
html[data-theme="dark"] .layout-content [style*="color: #b91c1c" i],
html[data-theme="dark"] .layout-content [style*="color:#b91c1c" i],
html[data-theme="dark"] .layout-content [style*="color: #e7000b" i],
html[data-theme="dark"] .layout-content [style*="color:#e7000b" i] {
    color: #fda4af !important;
}

html[data-theme="dark"] .layout-content [style*="color: #92400e" i],
html[data-theme="dark"] .layout-content [style*="color:#92400e" i],
html[data-theme="dark"] .layout-content [style*="color: #b45309" i],
html[data-theme="dark"] .layout-content [style*="color:#b45309" i] {
    color: #fdba74 !important;
}

html[data-theme="dark"] .layout-content [style*="background: #fff" i],
html[data-theme="dark"] .layout-content [style*="background:#fff" i],
html[data-theme="dark"] .layout-content [style*="background-color: #fff" i],
html[data-theme="dark"] .layout-content [style*="background-color:#fff" i],
html[data-theme="dark"] .layout-content [style*="background: #ffffff" i],
html[data-theme="dark"] .layout-content [style*="background:#ffffff" i],
html[data-theme="dark"] .layout-content [style*="background-color: #ffffff" i],
html[data-theme="dark"] .layout-content [style*="background-color:#ffffff" i],
html[data-theme="dark"] .layout-content [style*="background: #f8fafc" i],
html[data-theme="dark"] .layout-content [style*="background-color: #f8fafc" i],
html[data-theme="dark"] .layout-content [style*="background:#f8fafc" i],
html[data-theme="dark"] .layout-content [style*="background: #f9fafb" i],
html[data-theme="dark"] .layout-content [style*="background-color: #f9fafb" i],
html[data-theme="dark"] .layout-content [style*="background: #f1f5f9" i],
html[data-theme="dark"] .layout-content [style*="background-color: #f1f5f9" i],
html[data-theme="dark"] .layout-content [style*="background:#f1f5f9" i],
html[data-theme="dark"] .layout-content [style*="background:#f9fafb" i] {
    background-color: #172033 !important;
}

html[data-theme="dark"] .layout-content :is(
    [style*="background: rgb(255, 255, 255)" i],
    [style*="background-color: rgb(255, 255, 255)" i],
    [style*="background: rgb(248, 250, 252)" i],
    [style*="background-color: rgb(248, 250, 252)" i],
    [style*="background: rgb(249, 250, 251)" i],
    [style*="background-color: rgb(249, 250, 251)" i],
    [style*="background: rgb(241, 245, 249)" i],
    [style*="background-color: rgb(241, 245, 249)" i],
    [style*="background: rgb(243, 244, 246)" i],
    [style*="background-color: rgb(243, 244, 246)" i]
) {
    background-color: #172033 !important;
}

html[data-theme="dark"] .layout-content [style*="color: #0f172a" i],
html[data-theme="dark"] .layout-content [style*="color:#0f172a" i],
html[data-theme="dark"] .layout-content [style*="color: #1e293b" i],
html[data-theme="dark"] .layout-content [style*="color:#1e293b" i],
html[data-theme="dark"] .layout-content [style*="color: #1e2939" i],
html[data-theme="dark"] .layout-content [style*="color: #1c1e53" i],
html[data-theme="dark"] .layout-content [style*="color: #334155" i],
html[data-theme="dark"] .layout-content [style*="color: #364153" i],
html[data-theme="dark"] .layout-content [style*="color: #475569" i],
html[data-theme="dark"] .layout-content [style*="color: #4a5565" i],
html[data-theme="dark"] .layout-content [style*="color: #64748b" i],
html[data-theme="dark"] .layout-content [style*="color: #6a7282" i] {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .layout-content [style*="color:#0f172a" i],
html[data-theme="dark"] .layout-content [style*="color:#101828" i],
html[data-theme="dark"] .layout-content [style*="color:#1e293b" i],
html[data-theme="dark"] .layout-content [style*="color:#1e2939" i],
html[data-theme="dark"] .layout-content [style*="color:#1f2937" i],
html[data-theme="dark"] .layout-content [style*="color:#1c1e53" i],
html[data-theme="dark"] .layout-content [style*="color:#334155" i],
html[data-theme="dark"] .layout-content [style*="color:#364153" i],
html[data-theme="dark"] .layout-content [style*="color:#475569" i],
html[data-theme="dark"] .layout-content [style*="color:#4a5565" i],
html[data-theme="dark"] .layout-content [style*="color:#64748b" i],
html[data-theme="dark"] .layout-content [style*="color:#6a7282" i] {
    color: #d7e0ed !important;
}

html[data-theme="dark"] .layout-content :is(h1, h2, h3, h4, h5, h6, p, label, th, td, li) {
    color: #d7e0ed !important;
}

html[data-theme="dark"] .layout-content [class*="title" i]:not([class*="status" i]):not([class*="badge" i]):not([class*="accent" i]):not([class*="success" i]):not([class*="error" i]):not([class*="warning" i]):not([class*="danger" i]):not([class*="green" i]):not([class*="red" i]):not([class*="blue" i]):not([class*="orange" i]):not([class*="pink" i]):not([class*="purple" i]):not([class*="yellow" i]),
html[data-theme="dark"] .layout-content [class*="heading" i]:not([class*="status" i]):not([class*="badge" i]):not([class*="accent" i]):not([class*="success" i]):not([class*="error" i]):not([class*="warning" i]):not([class*="danger" i]):not([class*="green" i]):not([class*="red" i]):not([class*="blue" i]):not([class*="orange" i]):not([class*="pink" i]):not([class*="purple" i]):not([class*="yellow" i]),
html[data-theme="dark"] .layout-content [class*="subtitle" i],
html[data-theme="dark"] .layout-content [class*="description" i],
html[data-theme="dark"] .layout-content [class*="body-text" i],
html[data-theme="dark"] .layout-content [class*="empty" i],
html[data-theme="dark"] .layout-content [class*="breadcrumb" i],
html[data-theme="dark"] .layout-content [class*="name" i]:not([class*="badge" i]):not([class*="status" i]):not([class*="success" i]):not([class*="error" i]):not([class*="warning" i]):not([class*="danger" i]):not([style*="color: #1e40af"]):not([style*="color:#1e40af"]):not([style*="color: #1d4ed8"]):not([style*="color:#1d4ed8"]):not([style*="color: #1e3a8a"]):not([style*="color:#1e3a8a"]):not([style*="color: #2563eb"]):not([style*="color:#2563eb"]):not([style*="color: #3b82f6"]):not([style*="color:#3b82f6"]),
html[data-theme="dark"] .layout-content [class*="label" i]:not([class*="badge" i]):not([class*="status" i]):not([class*="success" i]):not([class*="error" i]):not([class*="warning" i]):not([class*="danger" i]):not([class*="green" i]):not([class*="red" i]):not([class*="blue" i]):not([class*="orange" i]):not([class*="pink" i]):not([class*="purple" i]):not([class*="yellow" i]) {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .layout-content :is(a, button):not([class*="btn" i]):not([class*="button" i]):not([class*="badge" i]):not([class*="status" i]),
html[data-theme="dark"] .layout-content .smart-learning-link {
    color: #f472b6;
}

html[data-theme="dark"] .layout-content .smart-learning-sheet-icon {
    background: linear-gradient(180deg, #3f1d2e 0%, #2a1520 100%);
    border-color: #be185d;
    color: #f9a8d4;
    box-shadow: none;
}

html[data-theme="dark"] .layout-content .smart-learning-sheet-icon:hover {
    background: linear-gradient(180deg, #831843 0%, #9d174d 100%);
    border-color: #e60076;
    color: #fce7f3;
}

html[data-theme="dark"] .layout-content .smart-learning-sheet-mark {
    background: #e60076;
    color: #ffffff;
    box-shadow: 0 0 0 2px #0f172a;
}

html[data-theme="dark"] .layout-content .smart-learning-td-student,
html[data-theme="dark"] .layout-content .smart-learning-td-chapters,
html[data-theme="dark"] .layout-content .smart-learning-td-total,
html[data-theme="dark"] .layout-content .smart-learning-td-correct,
html[data-theme="dark"] .layout-content .smart-learning-td-green {
    color: #a7f3d0 !important;
}

html[data-theme="dark"] .layout-content .smart-learning-td-subject,
html[data-theme="dark"] .layout-content .study-zone-category-title-blue {
    color: #93c5fd !important;
}

html[data-theme="dark"] .layout-content .study-zone-category-title-green {
    color: #86efac !important;
}

html[data-theme="dark"] .layout-content .study-zone-category-title-orange {
    color: #fdba74 !important;
}

html[data-theme="dark"] .layout-content .study-zone-category-title-purple {
    color: #c4b5fd !important;
}

html[data-theme="dark"] .layout-content .study-zone-category-title-yellow {
    color: #fde68a !important;
}

html[data-theme="dark"] .layout-content .study-zone-category-title-pink {
    color: #f9a8d4 !important;
}

html[data-theme="dark"] .layout-content .smart-learning-td-yellow {
    color: #fde68a !important;
}

html[data-theme="dark"] .layout-content .smart-learning-td-red {
    color: #fda4af !important;
}

html[data-theme="dark"] .layout-content :is(.smart-learning-zone-label-correct, .smart-learning-zone-label-green, .smart-learning-stat-label-correct, .smart-learning-stat-label-green, .smart-learning-stat-value-correct, .smart-learning-stat-value-green) {
    color: #6ee7b7 !important;
}

html[data-theme="dark"] .layout-content :is(.smart-learning-zone-label-yellow, .smart-learning-stat-label-yellow, .smart-learning-stat-value-yellow) {
    color: #fcd34d !important;
}

html[data-theme="dark"] .layout-content :is(.smart-learning-zone-label-red, .smart-learning-stat-label-red, .smart-learning-stat-value-red) {
    color: #fda4af !important;
}

html[data-theme="dark"] .layout-content .smart-learning-status-green {
    background-color: #12392f !important;
    color: #86efac !important;
}

html[data-theme="dark"] .layout-content .smart-learning-status-yellow {
    background-color: #342f1c !important;
    color: #fde68a !important;
}

html[data-theme="dark"] .layout-content .smart-learning-status-finished,
html[data-theme="dark"] .layout-content .smart-learning-status-not-started {
    background-color: #263248 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .layout-content .ui-btn-secondary,
html[data-theme="dark"] .layout-content .students-access-btn:not(.students-access-btn-danger) {
    background-color: #202b40 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .layout-content .ui-btn-secondary:hover,
html[data-theme="dark"] .layout-content .students-access-btn:not(.students-access-btn-danger):hover {
    background-color: #2e2150 !important;
    border-color: #8b5cf6 !important;
    color: #f5d0fe !important;
}

html[data-theme="dark"] .layout-content :is(input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]), select, textarea),
html[data-theme="dark"] .layout-search-input,
html[data-theme="dark"] .layout-content .ui-form-control,
html[data-theme="dark"] .layout-content .ui-form-control-white,
html[data-theme="dark"] .layout-content .ui-form-control-muted,
html[data-theme="dark"] .layout-content .ui-form-control-lg,
html[data-theme="dark"] .layout-content .ui-form-select,
html[data-theme="dark"] .layout-content .ui-form-select-white {
    background-color: #0e1728 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .layout-content :is(input, select, textarea)::placeholder,
html[data-theme="dark"] .layout-search-input::placeholder {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .layout-content :is(.study-zone-filter-pill, .ui-filter-pill-clip) {
    background-color: #0e1728 !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] .layout-content :is(.study-zone-filter-pill, .ui-filter-pill-clip) :is(input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]), select) {
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: #e2e8f0 !important;
    color-scheme: dark;
}

html[data-theme="dark"] .layout-content .study-zone-search-box :is(input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"])) {
    width: 100%;
    border: 1px solid #475569 !important;
    border-radius: 999px;
    background-color: #0e1728 !important;
    color: #e2e8f0 !important;
    color-scheme: dark;
}

html[data-theme="dark"] .layout-content .study-zone-filter-caret {
    color: #cbd5e1 !important;
}

@media (hover: hover) {
    html[data-theme="dark"] .layout-content :is(.study-zone-filter-pill, .ui-filter-pill-clip):hover {
        background-color: #172033 !important;
        border-color: #64748b !important;
    }
}

html[data-theme="dark"] .layout-content :is(table, thead, tbody, tr, th, td) {
    border-color: #334155 !important;
    background-color: #151f31 !important;
}

html[data-theme="dark"] .layout-content .smart-learning-zone-card-correct,
html[data-theme="dark"] .layout-content .smart-learning-zone-card-green {
    background-color: #102b2a !important;
    border-color: #1d5a50 !important;
}

html[data-theme="dark"] .layout-content .smart-learning-zone-card-yellow {
    background-color: #302719 !important;
    border-color: #71551d !important;
}

html[data-theme="dark"] .layout-content .smart-learning-zone-card-red {
    background-color: #301d29 !important;
    border-color: #71344b !important;
}

html[data-theme="dark"] .layout-content :is(.smart-learning-stat-correct, .smart-learning-stat-green) {
    background-color: #102b2a !important;
    color: #d7e0ed !important;
}

html[data-theme="dark"] .layout-content .smart-learning-stat-yellow {
    background-color: #302719 !important;
    color: #d7e0ed !important;
}

html[data-theme="dark"] .layout-content .smart-learning-stat-red {
    background-color: #301d29 !important;
    color: #d7e0ed !important;
}

html[data-theme="dark"] .layout-content :is(.smart-learning-stat-total, .students-detail-item, .students-detail-value, .students-detail-field, .ui-stat-tile) {
    background-color: #0e1728 !important;
    border-color: #34445c !important;
}

html[data-theme="dark"] .layout-content .students-profile-header,
html[data-theme="dark"] .layout-content .students-profile-body,
html[data-theme="dark"] .layout-content .students-profile-identity,
html[data-theme="dark"] .layout-content .students-profile-contact {
    background-color: #151f31 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .layout-content .students-profile-header,
html[data-theme="dark"] .layout-content .students-detail-card {
    box-shadow: 0 14px 32px rgb(0 0 0 / 25%);
}

html[data-theme="dark"] .layout-content :is(.students-profile-tag-id, .students-profile-tag-class) {
    background-color: #263248 !important;
    color: #dbeafe !important;
}

html[data-theme="dark"] .layout-content .students-detail-title,
html[data-theme="dark"] .layout-content .smart-learning-table-card-title,
html[data-theme="dark"] .layout-content .smart-learning-td-student,
html[data-theme="dark"] .layout-content .smart-learning-td-chapters,
html[data-theme="dark"] .layout-content .smart-learning-td-total,
html[data-theme="dark"] .layout-content .students-profile-contact-item,
html[data-theme="dark"] .layout-content .students-profile-email {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .auth-form-panel {
    background-color: #0f172a;
}

html[data-theme="dark"] .auth-card {
    background-color: #172033 !important;
    border-color: #334155 !important;
    color: #e2e8f0;
}

html[data-theme="dark"] .auth-card .ui-heading-xl,
html[data-theme="dark"] .auth-label,
html[data-theme="dark"] .auth-remember-label {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .auth-card-subtitle {
    color: #aab8ca !important;
}

html[data-theme="dark"] .auth-input-clear,
html[data-theme="dark"] .auth-input-password {
    background-color: #0e1728 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] * {
    scrollbar-color: #475569 #111827;
}

html[data-theme="dark"] *::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html[data-theme="dark"] *::-webkit-scrollbar-track {
    background: #111827;
}

html[data-theme="dark"] *::-webkit-scrollbar-thumb {
    background: #475569;
    border: 2px solid #111827;
    border-radius: 999px;
}

html[data-theme="dark"] *::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: transparent;
    color: #475569;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.theme-toggle:hover {
    background-color: #f1f5f9;
}

.theme-toggle:focus-visible {
    outline: 2px solid #db2777;
    outline-offset: 2px;
}

.theme-toggle-icon {
    width: 18px;
    height: 18px;
}

html[data-theme="dark"] .theme-toggle {
    border-color: #475569;
    color: #e2e8f0;
}

html[data-theme="dark"] .theme-toggle:hover {
    background-color: #273449;
}

.auth-theme-toggle {
    position: fixed;
    z-index: 100;
    top: 20px;
    right: 20px;
}

html[data-theme="dark"] .auth-theme-toggle {
    background-color: #172033;
}

html[data-theme="dark"] body.public-welcome {
    background-color: #0b1220 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .public-welcome main > div:first-child {
    background-color: #151f31 !important;
    color: #e2e8f0 !important;
}

.layout-shell,
.layout-main,
.layout-content,
.layout-topbar {
    min-width: 0;
}

.layout-content {
    max-width: 100%;
}

.layout-content img,
.layout-content video,
.layout-content iframe {
    max-width: 100%;
}

.layout-content :is(.ui-table-wrap, [class*="table-wrap" i], [class*="table-card" i]) {
    max-width: 100%;
    min-width: 0;
}

@media (max-width: 1024px) {
    .layout-content {
        padding: 24px;
    }

    .layout-main-expanded,
    .layout-main-collapsed {
        min-width: 0;
    }

    .layout-content :is(.ui-page-header, .ui-page-header-center, .students-page-header, .subscriptions-page-header, .transactions-page-header) {
        flex-wrap: wrap;
    }

    .layout-content .smart-learning-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .layout-content .smart-learning-filter-search,
    .layout-content .smart-learning-filter-actions {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .layout-shell {
        width: 100%;
        overflow-x: clip;
    }

    .layout-main {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .layout-content {
        width: 100%;
        padding: 20px 16px;
    }

    .layout-sidebar {
        width: min(280px, 86vw) !important;
    }

    .layout-topbar {
        gap: 8px;
        padding-inline: 12px;
    }

    .layout-topbar-right {
        min-width: 0;
        gap: 8px;
    }

    .layout-topbar-right > * {
        flex-shrink: 0;
    }

    .layout-content :is(.ui-page-header, .ui-page-header-center, .students-page-header, .students-list-toolbar, .subscriptions-page-header, .transactions-page-header, .smart-learning-student-header, .smart-learning-subject-header, .mentorship-filter-bar) {
        align-items: stretch;
        gap: 12px;
    }

    .layout-content :is(.ui-page-header, .ui-page-header-center) > * {
        max-width: 100%;
    }

    .layout-content :is(button, .ui-btn-pink, .ui-btn-secondary, .ui-btn-gradient-pink, .auth-submit-btn) {
        max-width: 100%;
    }

    .layout-content :is(.ui-table-wrap, [class*="table-wrap" i]) {
        overflow-x: auto !important;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

    .layout-content table {
        min-width: 640px;
    }

    .layout-content :is(input, select, textarea) {
        min-width: 0;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .layout-content {
        padding: 16px 12px;
    }

    .layout-topbar {
        padding-inline: 10px;
    }

    .layout-topbar-right {
        gap: 6px;
    }

    .layout-topbar-right .theme-toggle {
        min-width: 36px;
        min-height: 36px;
        padding: 8px;
    }

    .layout-content :is(.ui-page-title, .students-profile-name, .smart-learning-student-name) {
        font-size: 21px;
        overflow-wrap: anywhere;
    }

    .layout-content :is(.ui-card, [class*="-card" i]) {
        border-radius: 14px;
    }
}

@media (max-width: 640px) {
    .theme-toggle {
        min-width: 38px;
        padding-inline: 9px;
    }

    .layout-topbar-right .theme-toggle [data-theme-label] {
        display: none;
    }

    .auth-theme-toggle {
        top: 12px;
        right: 12px;
    }
}

.layout-sidebar-body {
    scrollbar-width: none;
}

.layout-sidebar-body::-webkit-scrollbar {
    display: none;
}

html[data-theme="dark"] .layout-logo-image,
html[data-theme="dark"] .layout-logo-favicon {
    background-color: #fff !important;
    border-radius: 8px;
}

html[data-theme="dark"] .layout-content .dashboard-action-pink,
html[data-theme="dark"] .layout-content .dashboard-action-blue,
html[data-theme="dark"] .layout-content .dashboard-action-orange,
html[data-theme="dark"] .layout-content .dashboard-action-purple {
    background-color: #151f31 !important;
    box-shadow: 0 8px 20px rgb(0 0 0 / 20%) !important;
}

html[data-theme="dark"] .layout-content .dashboard-action-pink {
    border-color: #6b3155 !important;
    color: #f9a8d4 !important;
}

html[data-theme="dark"] .layout-content .dashboard-action-blue {
    border-color: #31527c !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .layout-content .dashboard-action-orange {
    border-color: #75472d !important;
    color: #fdba74 !important;
}

html[data-theme="dark"] .layout-content .dashboard-action-purple {
    border-color: #59417c !important;
    color: #d8b4fe !important;
}

html[data-theme="dark"] .layout-content .dashboard-action-pink:hover,
html[data-theme="dark"] .layout-content .dashboard-action-blue:hover,
html[data-theme="dark"] .layout-content .dashboard-action-orange:hover,
html[data-theme="dark"] .layout-content .dashboard-action-purple:hover {
    background-color: #202b40 !important;
}

html[data-theme="dark"] .layout-content .cms-section-bar,
html[data-theme="dark"] .layout-content .cms-section-btn {
    background-color: #151f31 !important;
    border-color: #34445c !important;
}

html[data-theme="dark"] .layout-content .cms-section-btn {
    color: #d7e0ed !important;
}

html[data-theme="dark"] .layout-content .cms-section-btn:hover {
    background-color: #202b40 !important;
    border-color: #8b5cf6 !important;
    color: #e9d5ff !important;
}

html[data-theme="dark"] .layout-content .cms-card-footer,
html[data-theme="dark"] .layout-content .question-bank-modal-footer {
    background-color: #111827 !important;
    border-color: #34445c !important;
}

html[data-theme="dark"] .layout-content .students-action-bar {
    background-color: rgb(15 23 42 / 92%) !important;
    border-color: #34445c !important;
    box-shadow: 0 -8px 24px rgb(0 0 0 / 28%) !important;
}

html[data-theme="dark"] .layout-content .students-action-bar-cancel {
    background-color: #202b40 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .layout-content .students-action-bar-cancel:hover {
    background-color: #2e2150 !important;
    border-color: #8b5cf6 !important;
    color: #f5d0fe !important;
}

html[data-theme="dark"] .layout-content .business-nav,
html[data-theme="dark"] .layout-content .business-content {
    background-color: #151f31 !important;
    border-color: #34445c !important;
    box-shadow: 0 8px 24px rgb(0 0 0 / 20%) !important;
}

html[data-theme="dark"] .layout-content .business-title-icon,
html[data-theme="dark"] .layout-content .business-nav-icon-active {
    background-color: #3b1d35 !important;
    color: #f9a8d4 !important;
}

html[data-theme="dark"] .layout-content .business-nav-icon-idle {
    background-color: #202b40 !important;
    color: #aab8ca !important;
}

html[data-theme="dark"] .layout-content .business-nav-item-active {
    background-color: #3b1d35 !important;
    border-color: #6b3155 !important;
    color: #f9a8d4 !important;
}

html[data-theme="dark"] .layout-content .business-nav-item-idle {
    border-color: transparent !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .layout-content .business-nav-item-idle:hover,
html[data-theme="dark"] .layout-content .business-back-link {
    background-color: #202b40 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .layout-content .business-form-header,
html[data-theme="dark"] .layout-content .business-form-footer {
    border-color: #34445c !important;
}

html[data-theme="dark"] .layout-content .business-input,
html[data-theme="dark"] .layout-content .business-textarea {
    background-color: #0e1728 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .layout-content .business-input::placeholder,
html[data-theme="dark"] .layout-content .business-textarea::placeholder {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .layout-content .business-input:focus,
html[data-theme="dark"] .layout-content .business-textarea:focus {
    border-color: #c084fc !important;
    box-shadow: 0 0 0 4px rgb(192 132 252 / 18%) !important;
}

html[data-theme="dark"] .layout-content .business-alert {
    background-color: #12392f !important;
    border-color: #1d5b45 !important;
    color: #86efac !important;
}

html[data-theme="dark"] .layout-content .schools-photo-strip-tile {
    background-color: #151f31 !important;
    border-color: #34445c !important;
}

html[data-theme="dark"] .layout-content .schools-id-proof-frame {
    background-color: #202b40 !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] .layout-content .students-plan-summary {
    background-color: rgb(255 255 255 / 16%) !important;
    border-color: rgb(255 255 255 / 30%) !important;
}

html[data-theme="dark"] .layout-content .students-plan-card-body {
    background-color: transparent !important;
    border-color: transparent !important;
}

html[data-theme="dark"] .layout-content .students-plan-card :is(.students-plan-name, .students-plan-price, .students-plan-label, .students-plan-value) {
    color: #ffffff !important;
}

html[data-theme="dark"] .layout-content .students-plan-card .students-plan-price,
html[data-theme="dark"] .layout-content .students-plan-card .students-plan-label {
    color: rgb(255 255 255 / 82%) !important;
}

html[data-theme="dark"] .layout-content .study-zone-filter-bar :is(.study-zone-filter-pill, .ui-filter-pill-clip) {
    background-color: #111c30 !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] .layout-content .study-zone-filter-bar :is(.ui-filter-input, .ui-filter-select, .ui-filter-select-fixed) {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .layout-content .study-zone-filter-bar .ui-filter-input::placeholder {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .layout-content .study-zone-filter-bar .study-zone-filter-caret {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .layout-content .cbt-question-settings {
    border-color: #34445c !important;
}

html[data-theme="dark"] .layout-content .cbt-question-section {
    background-color: #111827 !important;
    border-color: #34445c !important;
}

html[data-theme="dark"] .layout-content .cbt-question-section-heading {
    border-color: #34445c !important;
}

html[data-theme="dark"] .layout-content .cbt-question-section-heading h4 {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .layout-content .cbt-question-section-heading p {
    color: #aab8ca !important;
}

html[data-theme="dark"] .layout-content .cbt-question-image-item,
html[data-theme="dark"] .layout-content .cbt-option-image-field,
html[data-theme="dark"] .layout-content .cbt-question-option-card {
    background-color: #172033 !important;
    border-color: #34445c !important;
}

html[data-theme="dark"] .layout-content .cbt-question-image-preview,
html[data-theme="dark"] .layout-content .cbt-question-diagram,
html[data-theme="dark"] .layout-content .cbt-option-image {
    background-color: #0e1728 !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] .layout-content .cbt-image-remove-label {
    color: #aab8ca !important;
}

/* Phone widths, including landscape. The sidebar becomes a drawer so the
   page uses the full screen, and tables keep their columns while scrolling. */
@media (max-width: 1024px) {
    html,
    body {
        max-width: 100%;
        overflow-x: clip;
    }

    .layout-shell {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    .layout-sidebar {
        width: min(280px, 86vw) !important;
    }

    .layout-sidebar-mobile-closed {
        translate: -100% 0;
    }

    .layout-sidebar-mobile-open {
        translate: 0 0;
    }

    .layout-main,
    .layout-main-expanded,
    .layout-main-collapsed {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        min-width: 0;
    }

    .layout-menu-btn-desktop {
        display: none !important;
    }

    .layout-menu-btn-mobile {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        border: none;
        background: transparent;
        cursor: pointer;
    }

    .layout-profile-meta,
    .layout-profile-caret {
        display: none;
    }

    .layout-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: clip;
        padding: 20px 16px;
    }

    .layout-content > * {
        max-width: 100%;
        min-width: 0;
    }

    .layout-content :is(
        .ui-page-header,
        .ui-page-header-center,
        .students-page-header,
        .students-list-toolbar,
        .schools-toolbar,
        .courses-toolbar,
        .cms-header,
        .cms-toolbar,
        .ui-card-toolbar,
        .admin-media-header,
        .notifications-header,
        .subscriptions-page-header,
        .transactions-page-header
    ) {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: wrap;
        gap: 12px;
    }

    .layout-content :is(.ui-inline-row, .ui-inline-row-wide) {
        width: 100%;
        min-width: 0;
        flex-wrap: wrap;
    }

    .layout-content :is(.ui-card, .content-pages-card, .cms-table-card, .admin-media-page) {
        max-width: 100%;
        min-width: 0;
    }

    .admin-media-page {
        padding: 0;
    }

    .layout-content :is(.ui-table-wrap, [class*="table-wrap" i], [class*="table-card" i], .ui-card:has(> table), .ui-card:has(> .ui-table)) {
        overflow-x: auto;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .layout-content table {
        display: table !important;
        width: max-content !important;
        min-width: 100% !important;
        max-width: none !important;
        white-space: normal !important;
        border-collapse: collapse;
    }

    .layout-content :is(thead, tbody, tfoot) {
        display: table-row-group;
    }

    .layout-content thead {
        display: table-header-group;
    }

    .layout-content tfoot {
        display: table-footer-group;
    }

    .layout-content tr {
        display: table-row;
    }

    .layout-content :is(th, td) {
        display: table-cell;
        white-space: nowrap;
    }

    .layout-content :is(
        .students-search-box,
        .schools-search-box,
        .courses-search-box,
        .study-zone-search-box,
        .question-bank-search,
        .cms-search-box
    ) {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
    }

    .layout-content [style*="repeat(4"],
    .layout-content [style*="repeat(3"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    .layout-topbar {
        height: 60px;
        gap: 8px;
        padding-inline: 12px;
    }

    .layout-content {
        padding: 16px 12px;
    }

    .layout-content :is(
        .dashboard-stats-grid,
        .students-stats-grid,
        .students-school-stats-grid,
        .schools-stats-grid,
        .reports-metric-grid,
        .cms-banner-grid,
        .cms-business-grid,
        .study-zone-category-grid,
        .smart-learning-stat-grid,
        .subscriptions-metrics-grid,
        .courses-stats-grid,
        .performance-stat-grid,
        .performance-split,
        .dashboard-actions-grid
    ) {
        grid-template-columns: minmax(0, 1fr);
    }

    .layout-content :is(.students-filter-select, .students-date-picker, .schools-dropdown, .schools-date-filter, .cms-date-field) {
        width: 100%;
        min-width: 0;
        flex: 1 1 140px;
    }

    .layout-content :is(.students-report-btn, .students-report-btn-tall, .cms-primary-btn) {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .layout-content [style*="repeat(4"],
    .layout-content [style*="repeat(3"],
    .layout-content [style*="repeat(2"],
    .layout-content [style*="1fr 1fr"] {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .layout-content [style*="display: flex; justify-content: space-between"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .layout-content [style*="width: 250px"],
    .layout-content [style*="width: 300px"],
    .layout-content [style*="width: 320px"],
    .layout-content [style*="width: 384px"] {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 390px) {
    .layout-content {
        padding: 14px 10px;
    }

    .layout-topbar {
        padding-inline: 8px;
    }

    .students-school-stat-card-blue,
    .students-school-stat-card-green,
    .students-school-stat-card-orange,
    .students-stat-card-blue,
    .students-stat-card-green,
    .students-stat-card-orange,
    .dashboard-stat-card {
        padding: 14px;
    }

    .students-stat-icon-blue,
    .students-stat-icon-green,
    .students-stat-icon-orange {
        width: 44px;
        height: 44px;
        margin-right: 12px;
    }
}
