/* --- Prism Theme --- */
/* Inverts neon / gothic / retro: neutral gallery palette, hard edges, soft inner linings */
/* No glow, no scanlines, no vignette — clarity over atmosphere */

:root.theme-prism {
    /* Core Palette — agnostic graphite & pearl */
    --prism-graphite: #181b22;
    --prism-slate: #22262f;
    --prism-elevated: #2a2f38;
    --prism-line: #3a4150;
    --prism-line-soft: rgba(255, 255, 255, 0.07);
    --prism-pearl: #e8ecf2;
    --prism-silver: #c4cad6;
    --prism-accent: #9aa8bc;
    --prism-spectral: #7dd3fc;
    --prism-muted: #8b94a8;
    --prism-void: #12141a;

    /* Theme Variables Mapped */
    --title: var(--prism-pearl);
    --body: var(--prism-graphite);
    --htitle: #f4f6fa;
    --hbody: var(--prism-slate);
    --table-row: var(--prism-elevated);
    --table-row-hover: #323845;
    --primal: var(--prism-pearl);
    --primal_dark: var(--prism-silver);
    --primal-rgb: 232, 236, 242;
    --btn-primary-shadow: rgba(0, 0, 0, 0.28);
    --nav-item-color: var(--prism-accent);
    color-scheme: dark;

    /* Bootstrap Overrides */
    --bs-primary: var(--prism-pearl);
    --bs-primary-rgb: 232, 236, 242;
    --bs-btn-bg: var(--prism-pearl);
    --bs-btn-border-color: var(--prism-pearl);
    --bs-btn-hover-bg: #ffffff;
    --bs-btn-hover-border-color: #ffffff;
    --bs-link-color: var(--prism-silver);
    --bs-link-hover-color: #ffffff;
    --bs-body-bg: var(--prism-graphite);
    --bs-body-color: var(--title);

    /* Login Theme Variables */
    --bg-gradient: linear-gradient(145deg, var(--prism-graphite) 0%, var(--prism-slate) 55%, #1e222a 100%);
    --right-bg: var(--title);
    --primary-color: var(--prism-pearl);

    /* Setup Builder Theme Tokens */
    --ms-setup-shell-bg: linear-gradient(180deg, rgba(34, 38, 47, 0.98), rgba(24, 27, 34, 0.98));
    --ms-setup-shell-border: var(--prism-line-soft);
    --ms-setup-card-bg: rgba(42, 47, 56, 0.96);
    --ms-setup-card-border: rgba(255, 255, 255, 0.08);
    --ms-setup-pane-bg: rgba(255, 255, 255, 0.02);
    --ms-setup-pane-border: rgba(255, 255, 255, 0.06);
    --ms-setup-item-bg: rgba(42, 47, 56, 0.94);
    --ms-setup-item-border: rgba(255, 255, 255, 0.08);
    --ms-setup-item-hover-bg: rgba(255, 255, 255, 0.04);
    --ms-setup-item-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.45);
    --ms-setup-item-active-bg: rgba(255, 255, 255, 0.06);
    --ms-setup-item-active-ring: rgba(125, 211, 252, 0.22);
    --ms-setup-tree-bg: linear-gradient(180deg, rgba(24, 27, 34, 0.98), rgba(34, 38, 47, 0.98));
    --ms-setup-tree-accent: rgba(154, 168, 188, 0.22);
    --ms-setup-connector: rgba(255, 255, 255, 0.1);
    --ms-setup-badge-bg: rgba(255, 255, 255, 0.06);
    --ms-setup-badge-color: var(--prism-pearl);
    --ms-setup-text: var(--title);
    --ms-setup-muted: var(--prism-muted);
    /* Microsys Table Tokens */
    --ms-table-surface:
        linear-gradient(180deg, rgba(42, 47, 56, 0.98), rgba(24, 27, 34, 0.99));
    --ms-table-border: rgba(255, 255, 255, 0.08);
    --ms-table-border-strong: rgba(255, 255, 255, 0.14);
    --ms-table-shadow: 0 16px 36px -24px rgba(0, 0, 0, 0.55);
    --ms-table-header-surface: linear-gradient(180deg, rgba(48, 53, 64, 0.98), rgba(42, 47, 56, 0.98));
    --ms-table-header-text: #f4f6fa;
    --ms-table-row-odd: rgba(24, 27, 34, 0.98);
    --ms-table-row-even: rgba(34, 38, 47, 0.98);
    --ms-table-row-hover: rgba(50, 56, 69, 0.98);
    --ms-table-cell-border: rgba(255, 255, 255, 0.06);
    --ms-table-sort-muted: rgba(196, 202, 214, 0.76);
    --ms-table-empty-muted: rgba(139, 148, 168, 0.88);
    --ms-table-empty-surface: linear-gradient(180deg, rgba(34, 38, 47, 0.98), rgba(24, 27, 34, 0.99));
    --ms-table-empty-icon-bg: rgba(255, 255, 255, 0.04);
    --ms-table-empty-icon-color: #e8ecf2;
    --ms-table-empty-icon-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --ms-table-footer-surface: linear-gradient(180deg, rgba(28, 31, 38, 0.98), rgba(18, 20, 26, 0.99));
    --ms-table-footer-text: rgba(196, 202, 214, 0.82);
    --ms-density-card-border: rgba(255, 255, 255, 0.1);
    --ms-density-card-surface: linear-gradient(180deg, rgba(42, 47, 56, 0.98), rgba(24, 27, 34, 0.99));
    --ms-density-card-shadow:
        inset 0 1px 0 var(--prism-line-soft),
        0 14px 28px -20px rgba(0, 0, 0, 0.5);
    --ms-density-card-hover-border: rgba(255, 255, 255, 0.16);
    --ms-density-card-hover-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        0 16px 30px -18px rgba(0, 0, 0, 0.55);
    --ms-density-card-active-border: rgba(125, 211, 252, 0.28);
    --ms-density-card-active-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 0.16rem rgba(125, 211, 252, 0.12);
    --ms-density-card-icon-bg: rgba(255, 255, 255, 0.05);
    --ms-density-card-icon-color: #e8ecf2;
    --ms-density-card-title: #f4f6fa;
    --ms-density-card-copy: rgba(139, 148, 168, 0.92);
    --ms-table-chip-bg: rgba(255, 255, 255, 0.04);
    --ms-table-chip-border: rgba(255, 255, 255, 0.1);
    --ms-table-chip-text: #eef1f6;
    --ms-table-chip-hover-bg: rgba(255, 255, 255, 0.08);
    --ms-table-chip-active-bg: rgba(125, 211, 252, 0.14);
    --ms-table-chip-active-border: rgba(125, 211, 252, 0.3);
    --ms-table-page-bg: rgba(255, 255, 255, 0.04);
    --ms-table-page-border: rgba(255, 255, 255, 0.1);
    --ms-table-page-text: #eef1f6;
    --ms-table-page-hover-bg: rgba(255, 255, 255, 0.08);
    --ms-table-page-hover-border: rgba(255, 255, 255, 0.18);
    --ms-table-page-active-bg: var(--prism-pearl);
    --ms-table-page-active-border: var(--prism-pearl);
    --ms-table-page-active-text: var(--prism-graphite);
    --ms-table-page-disabled-bg: rgba(255, 255, 255, 0.02);
    --ms-table-page-disabled-border: rgba(255, 255, 255, 0.06);
    --ms-table-page-disabled-text: rgba(196, 202, 214, 0.42);
    --ms-table-sticky-shadow: 8px 0 20px -16px rgba(0, 0, 0, 0.65);
    --ms-table-row-deleted-bg: rgba(255, 255, 255, 0.02);
    --ms-table-row-deleted-text: #6f7a8f;
    --ms-table-row-danger-bg: rgba(72, 42, 48, 0.88);
    --ms-table-row-danger-hover-bg: rgba(92, 52, 58, 0.92);
}

/* Static facet mesh — replaces pulsing radial blobs */
:root.theme-prism::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            118deg,
            transparent,
            transparent 72px,
            rgba(255, 255, 255, 0.014) 72px,
            rgba(255, 255, 255, 0.014) 73px
        ),
        repeating-linear-gradient(
            62deg,
            transparent,
            transparent 96px,
            rgba(255, 255, 255, 0.008) 96px,
            rgba(255, 255, 255, 0.008) 97px
        );
    pointer-events: none;
    z-index: -1;
}

:root.theme-prism select option {
    background-color: var(--prism-elevated);
    color: var(--title);
}

/* --- Surfaces: clear cut borders + soft inner lining --- */

:root.theme-prism .card:not([class*="text-bg-"]):not([class*="bg-"]),
:root.theme-prism .card-body:not([class*="text-bg-"]):not([class*="bg-"]),
:root.theme-prism .dashboard-card:not([class*="text-bg-"]):not([class*="bg-"]),
:root.theme-prism .option-section:not([class*="text-bg-"]):not([class*="bg-"]),
:root.theme-prism .list-group-item:not([class*="text-bg-"]):not([class*="bg-"]):not(.active),
:root.theme-prism .modal-content,
:root.theme-prism .chart-container-sys {
    background-color: var(--prism-slate) !important;
    color: var(--title) !important;
    box-shadow:
        inset 0 1px 0 var(--prism-line-soft),
        0 1px 0 rgba(0, 0, 0, 0.35),
        0 12px 28px -14px rgba(0, 0, 0, 0.42) !important;
}

:root.theme-prism .card:hover,
:root.theme-prism .dashboard-card:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 14px 32px -12px rgba(0, 0, 0, 0.48) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

:root.theme-prism .card:not([class*="border-"]),
:root.theme-prism .card-body:not([class*="border-"]),
:root.theme-prism .dashboard-card:not([class*="border-"]),
:root.theme-prism .list-group-item:not([class*="border-"]),
:root.theme-prism .modal-content:not([class*="border-"]),
:root.theme-prism .chart-container-sys:not([class*="border-"]) {
    border: 1px solid var(--prism-line) !important;
}

:root.theme-prism .chart-container-sys {
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
}

:root.theme-prism .module-card,
:root.theme-prism .chart-container-sys {
    background: linear-gradient(180deg, rgba(42, 47, 56, 0.98) 0%, rgba(28, 31, 38, 0.98) 100%) !important;
    border: 1px solid var(--prism-line) !important;
    box-shadow:
        inset 0 1px 0 var(--prism-line-soft),
        0 12px 28px -14px rgba(0, 0, 0, 0.44) !important;
}

:root.theme-prism .module-card:hover,
:root.theme-prism .chart-container-sys:hover {
    border-color: rgba(255, 255, 255, 0.18) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.11),
        0 16px 34px -12px rgba(0, 0, 0, 0.5) !important;
}

:root.theme-prism .module-card .module-icon-wrapper {
    background: linear-gradient(180deg, rgba(50, 56, 69, 0.98), rgba(34, 38, 47, 0.96)) !important;
    border: 1px solid var(--prism-line) !important;
    box-shadow: inset 0 1px 0 var(--prism-line-soft) !important;
}

:root.theme-prism .module-card .module-name,
:root.theme-prism .chart-container-sys h5,
:root.theme-prism .chart-container-sys h6 {
    color: #f4f6fa !important;
    text-shadow: none !important;
}

:root.theme-prism .module-card .module-desc,
:root.theme-prism .module-card .text-muted,
:root.theme-prism .chart-container-sys .text-muted,
:root.theme-prism .chart-container-sys small {
    color: var(--prism-muted) !important;
}

:root.theme-prism .module-card .module-action,
:root.theme-prism .chart-container-sys .module-action {
    color: var(--prism-silver) !important;
    text-shadow: none !important;
}

:root.theme-prism .module-card .border-top,
:root.theme-prism .chart-container-sys .border-top {
    border-top-color: var(--prism-line) !important;
    box-shadow: inset 0 1px 0 var(--prism-line-soft);
}

:root.theme-prism .module-card .display-6,
:root.theme-prism .chart-container-sys .display-6 {
    text-shadow: none !important;
}

:root.theme-prism .list-group-item.bg-transparent {
    background-color: transparent !important;
}

:root.theme-prism #sidebar {
    background: linear-gradient(180deg, var(--prism-slate) 0%, var(--prism-graphite) 100%) !important;
    border-left: 1px solid var(--prism-line) !important;
    box-shadow: -4px 0 24px -8px rgba(0, 0, 0, 0.45) !important;
}

:root.theme-prism .text-muted,
:root.theme-prism .text-secondary {
    color: var(--prism-muted) !important;
}

:root.theme-prism .bg-light {
    background-color: var(--prism-elevated) !important;
    border-color: var(--prism-line) !important;
}

:root.theme-prism .bg-white {
    background-color: var(--prism-slate) !important;
    color: var(--title) !important;
}

:root.theme-prism .border-white {
    border-color: var(--prism-line) !important;
}

/* Titlebar — flat cut, no glow */
:root.theme-prism .titlebar {
    background: linear-gradient(180deg, var(--prism-elevated) 0%, var(--prism-slate) 100%) !important;
    border-bottom: 1px solid var(--prism-line) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4) !important;
}

:root.theme-prism .titlebar p,
:root.theme-prism .titlebar .btn-light,
:root.theme-prism .titlebar .btn-light .bi {
    color: var(--prism-pearl) !important;
    text-shadow: none !important;
}

:root.theme-prism .titlebar .btn-light:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
}

:root.theme-prism .titlebar[data-titlebar-logo-treatment="plate"] .titlebar__logo {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04) 62%),
        rgba(232, 236, 242, 0.92) !important;
    border-color: var(--prism-line) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 8px 18px -14px rgba(0, 0, 0, 0.72) !important;
}

:root.theme-prism .titlebar[data-titlebar-logo-treatment="halo"] .titlebar__logo {
    filter:
        drop-shadow(0 0 0.32rem rgba(232, 236, 242, 0.28))
        drop-shadow(0 0.24rem 0.62rem rgba(0, 0, 0, 0.38)) !important;
}

:root.theme-prism .titlebar[data-titlebar-logo-treatment="contrast"] .titlebar__logo {
    filter:
        brightness(1.1)
        contrast(1.14)
        drop-shadow(0 0.18rem 0.5rem rgba(0, 0, 0, 0.32)) !important;
}

:root.theme-prism .lang-option,
.theme-prism .lang-option {
    background-color: var(--prism-elevated) !important;
    border: 1px solid var(--prism-line) !important;
    color: var(--prism-muted) !important;
    box-shadow: inset 0 1px 0 var(--prism-line-soft) !important;
}

:root.theme-prism .lang-option:hover,
.theme-prism .lang-option:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: var(--prism-pearl) !important;
}

:root.theme-prism .lang-option.lang-active,
:root.theme-prism .lang-option.active,
:root.theme-prism .lang-active,
.theme-prism .lang-option.lang-active,
.theme-prism .lang-option.active,
.theme-prism .lang-active {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--prism-pearl) !important;
    color: var(--prism-pearl) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}

:root.theme-prism .theme-preview,
.theme-prism .theme-preview {
    border: none !important;
    box-shadow: none !important;
    outline: 2px solid rgba(255, 255, 255, 0.14) !important;
    outline-offset: 2px !important;
}

:root.theme-prism .theme-preview.active,
.theme-prism .theme-preview.active {
    outline-color: var(--prism-pearl) !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

/* Forms */
:root.theme-prism .microsys-form,
:root.theme-prism .archive-document-form,
:root.theme-prism .microsys-filter {
    --archive-form-surface: linear-gradient(180deg, rgba(42, 47, 56, 0.98), rgba(34, 38, 47, 0.96));
    --archive-form-border: rgba(255, 255, 255, 0.1);
    --archive-form-border-strong: rgba(255, 255, 255, 0.2);
    --archive-form-focus-ring: rgba(125, 211, 252, 0.22);
    --archive-form-muted: var(--prism-muted);
}

:root.theme-prism .form-control,
:root.theme-prism .form-select,
:root.theme-prism .input-group-text {
    background-color: var(--prism-elevated) !important;
    border: 1px solid var(--prism-line) !important;
    color: var(--title) !important;
    box-shadow: inset 0 1px 0 var(--prism-line-soft) !important;
}

:root.theme-prism .form-control:focus,
:root.theme-prism .form-select:focus {
    background-color: var(--prism-slate) !important;
    border-color: rgba(125, 211, 252, 0.45) !important;
    color: #ffffff !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 0.18rem var(--archive-form-focus-ring) !important;
    outline: none !important;
}

:root.theme-prism .microsys-filter .form-control,
:root.theme-prism .microsys-filter .form-select,
:root.theme-prism .microsys-filter textarea {
    background: var(--archive-form-surface) !important;
    border: 1px solid var(--prism-line) !important;
    color: #eef1f6 !important;
    box-shadow: inset 0 1px 0 var(--prism-line-soft) !important;
}

:root.theme-prism .microsys-filter .form-control::placeholder,
:root.theme-prism .microsys-filter textarea::placeholder {
    color: rgba(139, 148, 168, 0.9) !important;
}

:root.theme-prism .microsys-filter .form-control:hover,
:root.theme-prism .microsys-filter .form-select:hover,
:root.theme-prism .microsys-filter textarea:hover {
    border-color: rgba(255, 255, 255, 0.16) !important;
}

:root.theme-prism .microsys-filter .form-control:focus,
:root.theme-prism .microsys-filter .form-select:focus,
:root.theme-prism .microsys-filter textarea:focus {
    background: linear-gradient(180deg, rgba(48, 53, 64, 0.98), rgba(38, 42, 52, 0.96)) !important;
    color: #ffffff !important;
}

:root.theme-prism .microsys-filter .btn.microsys-filter-submit.btn-secondary {
    background: linear-gradient(180deg, rgba(42, 47, 56, 0.98), rgba(34, 38, 47, 0.96)) !important;
    border: 1px solid var(--prism-line) !important;
    color: var(--prism-pearl) !important;
    box-shadow: inset 0 1px 0 var(--prism-line-soft) !important;
}

:root.theme-prism .microsys-filter .btn.microsys-filter-submit.btn-secondary i {
    color: var(--prism-silver) !important;
    text-shadow: none !important;
}

:root.theme-prism .form-control[type="file"]::file-selector-button {
    background: var(--prism-pearl) !important;
    color: var(--prism-graphite) !important;
    border: none !important;
    border-inline-end: 1px solid var(--prism-line) !important;
    font-weight: 600 !important;
}

:root.theme-prism .form-control[type="file"]::file-selector-button:hover {
    background: #ffffff !important;
}

:root.theme-prism .archive-file-card {
    border-color: var(--prism-line) !important;
    background: linear-gradient(180deg, rgba(42, 47, 56, 0.98), rgba(34, 38, 47, 0.96)) !important;
    box-shadow: inset 0 1px 0 var(--prism-line-soft) !important;
}

:root.theme-prism .archive-file-field.is-dragover .archive-file-card,
:root.theme-prism .archive-file-card:hover,
:root.theme-prism .archive-file-card:focus-visible {
    border-color: rgba(232, 236, 242, 0.34) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 10px 22px -20px rgba(0, 0, 0, 0.76) !important;
}

:root.theme-prism .archive-file-tag {
    background: rgba(232, 236, 242, 0.1) !important;
    color: var(--prism-pearl) !important;
    border-color: rgba(232, 236, 242, 0.16) !important;
}

:root.theme-prism .archive-file-tool {
    background: rgba(255, 255, 255, 0.07) !important;
    color: var(--prism-pearl) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
}

:root.theme-prism .archive-file-tool-upload {
    background: rgba(125, 211, 252, 0.14) !important;
    color: var(--prism-pearl) !important;
}

:root.theme-prism .archive-file-tool-scan {
    background: rgba(232, 236, 242, 0.12) !important;
    color: var(--prism-silver) !important;
}

:root.theme-prism .archive-file-tool-clear {
    background: rgba(248, 113, 113, 0.14) !important;
    color: #fecaca !important;
}

:root.theme-prism .archive-file-icon {
    background: rgba(232, 236, 242, 0.1) !important;
    color: var(--prism-pearl) !important;
    box-shadow: inset 0 0 0 1px rgba(232, 236, 242, 0.12) !important;
}

:root.theme-prism .archive-file-name {
    color: var(--prism-pearl) !important;
}

:root.theme-prism .archive-file-meta {
    color: var(--prism-muted) !important;
}

/* Tables */
:root.theme-prism .table {
    color: var(--title) !important;
    --bs-table-color: var(--title) !important;
    --bs-table-striped-color: var(--title) !important;
    --bs-table-active-color: var(--title) !important;
}

:root.theme-prism .table thead th {
    background: var(--ms-table-header-surface) !important;
    color: var(--prism-silver) !important;
    text-shadow: none !important;
    border-color: var(--prism-line) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.14) !important;
}

:root.theme-prism .table>tbody>tr:nth-child(odd)>td,
:root.theme-prism .table>tbody>tr:nth-child(odd)>th {
    --bs-table-bg-type: var(--prism-graphite) !important;
    background-color: var(--prism-graphite) !important;
    color: var(--htitle) !important;
}

:root.theme-prism .table>tbody>tr:nth-child(even)>td,
:root.theme-prism .table>tbody>tr:nth-child(even)>th {
    --bs-table-bg-type: var(--prism-elevated) !important;
    background-color: var(--prism-elevated) !important;
    color: var(--htitle) !important;
}

:root.theme-prism .table>tbody>tr:hover>td,
:root.theme-prism .table>tbody>tr:hover>th {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

/* Dropdowns */
:root.theme-prism .dropdown-menu {
    background-color: var(--prism-elevated) !important;
    border: 1px solid var(--prism-line) !important;
    box-shadow:
        inset 0 1px 0 var(--prism-line-soft),
        0 16px 36px -10px rgba(0, 0, 0, 0.5) !important;
}

:root.theme-prism .dropdown-item {
    color: var(--title) !important;
}

:root.theme-prism .dropdown-item:hover,
:root.theme-prism .dropdown-item:focus,
:root.theme-prism .dropdown-item:active,
:root.theme-prism .dropdown-item.active {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    box-shadow: inset 0 -2px 0 var(--prism-pearl) !important;
    text-shadow: none !important;
}

:root.theme-prism .dropdown-item:hover i,
:root.theme-prism .dropdown-item:focus i,
:root.theme-prism .dropdown-item:active i,
:root.theme-prism .dropdown-item.active i {
    color: var(--prism-silver) !important;
    opacity: 1 !important;
}

:root.theme-prism .context-menu {
    background: linear-gradient(180deg, rgba(42, 47, 56, 0.98), rgba(24, 27, 34, 0.99)) !important;
    border: 1px solid var(--prism-line) !important;
    box-shadow:
        inset 0 1px 0 var(--prism-line-soft),
        0 14px 32px -8px rgba(0, 0, 0, 0.48) !important;
}

:root.theme-prism .context-menu-item {
    color: var(--title) !important;
}

:root.theme-prism .context-menu-item:hover,
:root.theme-prism .context-menu-item:focus,
:root.theme-prism .context-menu-item:active {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    box-shadow: inset 0 -2px 0 var(--prism-pearl) !important;
    text-shadow: none !important;
}

:root.theme-prism .context-menu-item.text-danger:hover,
:root.theme-prism .context-menu-item.text-danger:focus,
:root.theme-prism .context-menu-item.text-danger:active {
    background-color: rgba(92, 52, 58, 0.35) !important;
    color: #f5d0d4 !important;
    box-shadow: inset 0 -2px 0 #e8a0a8 !important;
}

:root.theme-prism .context-menu-divider {
    border-top-color: var(--prism-line) !important;
}

/* Buttons — solid cuts, no neon bloom */
:root.theme-prism .btn-primary,
:root.theme-prism .btn-primary *,
:root.theme-prism .btn-primary:hover,
:root.theme-prism .btn-primary:active,
.theme-prism .btn-primary,
.theme-prism .btn-primary * {
    background: var(--prism-pearl) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: var(--prism-graphite) !important;
    font-weight: 600 !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 1px 2px rgba(0, 0, 0, 0.35) !important;
    text-shadow: none !important;
}

:root.theme-prism .btn-primary:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 #ffffff,
        0 4px 12px -4px rgba(0, 0, 0, 0.45) !important;
}

:root.theme-prism .microsys-filter .microsys-filter-action.btn-primary > .bi,
.theme-prism .microsys-filter .microsys-filter-action.btn-primary > .bi {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
}

:root.theme-prism .btn-secondary,
:root.theme-prism .btn-success,
:root.theme-prism .btn-info,
:root.theme-prism .btn-warning,
:root.theme-prism .btn-danger,
:root.theme-prism .btn-light {
    color: var(--prism-graphite) !important;
    font-weight: 600 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

:root.theme-prism .btn-dark {
    background-color: var(--prism-elevated) !important;
    border: 1px solid var(--prism-line) !important;
    color: var(--prism-pearl) !important;
    box-shadow: inset 0 1px 0 var(--prism-line-soft) !important;
}

:root.theme-prism .btn-outline-dark {
    border: 1px solid var(--prism-line) !important;
    color: var(--prism-silver) !important;
    background: transparent !important;
}

:root.theme-prism .btn-outline-dark:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
}

/* Sidebar */
:root.theme-prism .sidebar,
.theme-prism .sidebar {
    --sidebar-divider-color: rgba(255, 255, 255, 0.06);
    --sidebar-hover-bg: rgba(255, 255, 255, 0.04);
    --sidebar-folder-bg: rgba(255, 255, 255, 0.02);
    --sidebar-folder-active-bg: rgba(255, 255, 255, 0.06);
    --sidebar-root-active-bg: rgba(255, 255, 255, 0.05);
    --sidebar-folder-indicator-border: rgba(255, 255, 255, 0.12);
}

:root.theme-prism .sidebar .list-group-item.active,
.theme-prism .sidebar .list-group-item.active,
:root.theme-prism .sidebar.collapsed .accordion-button.has-active-child,
.theme-prism .sidebar.collapsed .accordion-button.has-active-child {
    color: var(--prism-pearl) !important;
    text-shadow: none !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border-left: none !important;
    border-radius: 6px !important;
    box-shadow:
        inset 0 1px 0 var(--prism-line-soft),
        inset 0 -2px 0 var(--prism-pearl) !important;
}

:root.theme-prism ::-webkit-scrollbar-track {
    background: var(--prism-graphite);
}

:root.theme-prism ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--prism-line), var(--prism-accent)) !important;
    border: 3px solid var(--prism-graphite);
    border-radius: 8px;
}

:root.theme-prism ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--prism-accent), var(--prism-silver)) !important;
}

/* Typography — no glow */
:root.theme-prism h1,
:root.theme-prism h2,
:root.theme-prism h3,
:root.theme-prism h4,
:root.theme-prism h5,
:root.theme-prism h6,
:root.theme-prism .header-title,
:root.theme-prism .stat-value,
:root.theme-prism .form-text,
:root.theme-prism .accordion-button,
:root.theme-prism label,
:root.theme-prism .form-label,
:root.theme-prism .titlebar p,
:root.theme-prism .card-title-sys,
.theme-prism h1,
.theme-prism h2,
.theme-prism h3,
.theme-prism h4,
.theme-prism h5,
.theme-prism h6,
.theme-prism .header-title,
.theme-prism .stat-value,
.theme-prism .form-text,
.theme-prism .accordion-button,
.theme-prism label,
.theme-prism .form-label,
.theme-prism .titlebar p,
.theme-prism .card-title-sys {
    color: #f4f6fa !important;
    text-shadow: none !important;
}

:root.theme-prism .card-text-sys {
    color: var(--prism-muted) !important;
}

:root.theme-prism .bi-three-dots,
:root.theme-prism .bi-three-dots-vertical,
:root.theme-prism .bi:not(.btn-primary .bi):not(.btn-light .bi):not(.btn-secondary .bi):not(.btn-success .bi):not(.btn-info .bi):not(.btn-warning .bi):not(.btn-danger .bi) {
    color: var(--prism-accent) !important;
    text-shadow: none !important;
}

/* Glass */
:root.theme-prism .glass-profile,
:root.theme-prism .glass-card,
:root.theme-prism .glass-detail {
    background: rgba(42, 47, 56, 0.96) !important;
    border: 1px solid var(--prism-line) !important;
    box-shadow:
        inset 0 1px 0 var(--prism-line-soft),
        0 12px 28px -12px rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(12px) !important;
}

/* Nav tabs */
:root.theme-prism .nav-link {
    color: var(--prism-muted) !important;
}

:root.theme-prism .nav-link:hover {
    color: var(--prism-pearl) !important;
    text-shadow: none !important;
}

:root.theme-prism .nav-link.active {
    color: var(--prism-pearl) !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--prism-line) !important;
    border-bottom-color: transparent !important;
    box-shadow: inset 0 -2px 0 var(--prism-pearl) !important;
}

:root.theme-prism .modern-tabs .nav-link.active {
    color: var(--prism-graphite) !important;
    background: var(--prism-pearl) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 8px 20px -10px rgba(0, 0, 0, 0.4) !important;
}

/* Alerts — tinted panels, no outer glow */
:root.theme-prism .alert-success {
    background-color: rgba(125, 211, 252, 0.1) !important;
    border: 1px solid rgba(125, 211, 252, 0.28) !important;
    color: #b8e8ff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

:root.theme-prism .alert-warning {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: var(--prism-silver) !important;
}

:root.theme-prism .alert-danger {
    background-color: rgba(92, 52, 58, 0.35) !important;
    border: 1px solid rgba(232, 160, 168, 0.28) !important;
    color: #f5d0d4 !important;
}

:root.theme-prism .alert-info {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--prism-line) !important;
    color: var(--prism-silver) !important;
}

/* Pagination */
:root.theme-prism .pagination .page-link {
    background-color: var(--prism-elevated) !important;
    border: 1px solid var(--prism-line) !important;
    color: var(--prism-muted) !important;
    box-shadow: inset 0 1px 0 var(--prism-line-soft) !important;
}

:root.theme-prism .pagination .page-link:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: var(--prism-pearl) !important;
}

:root.theme-prism .pagination .page-item.active .page-link {
    background: var(--prism-pearl) !important;
    border-color: var(--prism-pearl) !important;
    color: var(--prism-graphite) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}

/* Badges */
:root.theme-prism .badge.bg-primary {
    background: var(--prism-pearl) !important;
    color: var(--prism-graphite) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: none !important;
}

:root.theme-prism .text-bg-primary,
:root.theme-prism .badge.text-bg-primary,
:root.theme-prism .ms-system-settings-shell .text-bg-primary {
    background: var(--prism-pearl) !important;
    color: var(--prism-graphite) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    text-shadow: none !important;
}

/* Login */
:root.theme-prism .page .left {
    background: rgba(42, 47, 56, 0.98) !important;
    border: 1px solid var(--prism-line) !important;
    box-shadow:
        inset 0 1px 0 var(--prism-line-soft),
        0 12px 32px -8px rgba(0, 0, 0, 0.5) !important;
}

:root.theme-prism .page .right {
    background: linear-gradient(145deg, var(--prism-slate) 0%, var(--prism-graphite) 100%) !important;
    color: var(--prism-pearl) !important;
}

:root.theme-prism .page label {
    color: var(--prism-silver) !important;
    text-shadow: none !important;
}

:root.theme-prism .page input {
    background: var(--prism-elevated) !important;
    border: 1px solid var(--prism-line) !important;
    box-shadow: inset 0 1px 0 var(--prism-line-soft) !important;
}

:root.theme-prism .page input:focus {
    border-color: rgba(125, 211, 252, 0.45) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 0.18rem rgba(125, 211, 252, 0.18) !important;
}

/* Progress, form check, tooltip, modal */
:root.theme-prism .progress {
    background-color: var(--prism-elevated) !important;
    border: 1px solid var(--prism-line) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35) !important;
}

:root.theme-prism .progress-bar {
    background: linear-gradient(90deg, var(--prism-silver) 0%, var(--prism-pearl) 100%) !important;
    box-shadow: none !important;
}

:root.theme-prism .form-check-input {
    background-color: var(--prism-elevated) !important;
    border: 1px solid var(--prism-line) !important;
}

:root.theme-prism .form-check-input:checked {
    background-color: var(--prism-pearl) !important;
    border-color: var(--prism-pearl) !important;
    box-shadow: none !important;
}

:root.theme-prism .tooltip-inner {
    background-color: var(--prism-elevated) !important;
    color: var(--prism-pearl) !important;
    border: 1px solid var(--prism-line) !important;
    box-shadow: inset 0 1px 0 var(--prism-line-soft) !important;
    text-shadow: none !important;
}

:root.theme-prism .modal-header {
    background: linear-gradient(180deg, var(--prism-elevated) 0%, var(--prism-slate) 100%) !important;
    border-bottom: 1px solid var(--prism-line) !important;
}

:root.theme-prism .modal-header .modal-title {
    color: var(--prism-pearl) !important;
    text-shadow: none !important;
}

:root.theme-prism .list-group-item.active {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: var(--prism-line) !important;
    color: var(--prism-pearl) !important;
    box-shadow: inset 0 -2px 0 var(--prism-pearl) !important;
}

:root.theme-prism .accordion-button:not(.collapsed) {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--prism-pearl) !important;
    box-shadow: inset 0 -1px 0 var(--prism-line) !important;
}

/* User hub, activity, tutorial */
:root.theme-prism .ms-user-trigger {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--prism-line) !important;
    box-shadow: inset 0 1px 0 var(--prism-line-soft) !important;
}

:root.theme-prism .ms-user-trigger:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

:root.theme-prism .ms-user-dropdown-card,
:root.theme-prism .stats-card,
:root.theme-prism .timeline-content,
:root.theme-prism .driver-popover {
    background: linear-gradient(180deg, rgba(42, 47, 56, 0.98), rgba(24, 27, 34, 0.98)) !important;
    border: 1px solid var(--prism-line) !important;
    color: var(--title) !important;
    box-shadow:
        inset 0 1px 0 var(--prism-line-soft),
        0 18px 40px -12px rgba(0, 0, 0, 0.5) !important;
}

:root.theme-prism .ms-dropdown-header,
:root.theme-prism #activityLogDetailModal .modal-footer,
:root.theme-prism #activityLogDetailModal .modal-header {
    border-color: var(--prism-line) !important;
}

:root.theme-prism .ms-dropdown-toolbar,
:root.theme-prism .completeness-container,
:root.theme-prism .glass-profile .bg-light.border,
:root.theme-prism .glass-card .bg-light.border,
:root.theme-prism #activityLogDetailModal .bg-light,
:root.theme-prism #backupCodesModal .alert.alert-warning,
:root.theme-prism #otpSetupSuccess .alert.alert-warning {
    background: linear-gradient(180deg, rgba(42, 47, 56, 0.96), rgba(34, 38, 47, 0.94)) !important;
    border: 1px solid var(--prism-line) !important;
    color: var(--title) !important;
}

:root.theme-prism .ms-user-role,
:root.theme-prism #activityLogDetailModal .badge.bg-secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--prism-pearl) !important;
    border: 1px solid var(--prism-line) !important;
}

:root.theme-prism .ms-tool-btn,
:root.theme-prism .ms-avatar-preview.bg-light {
    background: linear-gradient(180deg, rgba(42, 47, 56, 0.96), rgba(34, 38, 47, 0.96)) !important;
    border: 1px solid var(--prism-line) !important;
    color: var(--prism-silver) !important;
}

:root.theme-prism .ms-tool-btn:hover,
:root.theme-prism .driver-popover-prev-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
}

:root.theme-prism .stats-value,
:root.theme-prism .stats-icon,
:root.theme-prism #activityLogDetailModal .modal-title,
:root.theme-prism #activityLogDetailModal h6,
:root.theme-prism #activityLogDetailModal .text-secondary,
:root.theme-prism .driver-popover-title {
    color: var(--prism-pearl) !important;
    text-shadow: none !important;
}

:root.theme-prism .stats-label,
:root.theme-prism .timeline-time,
:root.theme-prism .driver-popover-progress-text,
:root.theme-prism .driver-popover-close-btn,
:root.theme-prism .text-white-50 {
    color: var(--prism-muted) !important;
}

:root.theme-prism .activity-timeline {
    border-color: var(--prism-line) !important;
}

:root.theme-prism .timeline-title,
:root.theme-prism .driver-popover-description {
    color: #f4f6fa !important;
}

:root.theme-prism .timeline-dot {
    border-color: var(--prism-graphite) !important;
    box-shadow: 0 0 0 2px var(--prism-line) !important;
}

:root.theme-prism .driver-popover-next-btn {
    background: var(--prism-pearl) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--prism-graphite) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

:root.theme-prism .driver-popover-prev-btn {
    background: var(--prism-elevated) !important;
    color: var(--prism-silver) !important;
    border: 1px solid var(--prism-line) !important;
}

:root.theme-prism .driver-popover-arrow {
    color: rgba(42, 47, 56, 0.98) !important;
}

/* Sidebar toolbar & theme picker */
:root.theme-prism .sidebar-toolbar {
    border-top: 1px solid var(--prism-line) !important;
    background: linear-gradient(to top, rgba(42, 47, 56, 0.98), rgba(34, 38, 47, 0.94)) !important;
    box-shadow: inset 0 1px 0 var(--prism-line-soft) !important;
}

:root.theme-prism .sidebar-toolbar::before {
    border-color: var(--prism-line) !important;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.04) 0 1px,
        transparent 1px 20px
    ) !important;
    box-shadow: inset 0 1px 0 var(--prism-line-soft) !important;
}

:root.theme-prism .sidebar-toolbar-link,
:root.theme-prism .reorder-toggle,
:root.theme-prism .sidebar-density-indicator {
    color: var(--prism-accent) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--prism-line) !important;
    box-shadow: inset 0 1px 0 var(--prism-line-soft) !important;
}

:root.theme-prism .sidebar-toolbar-link:hover,
:root.theme-prism .reorder-toggle:hover,
:root.theme-prism .reorder-toggle.active,
:root.theme-prism .sidebar-density-indicator:hover {
    color: var(--prism-pearl) !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

:root.theme-prism .sidebar-density-popup,
:root.theme-prism .theme-popup {
    background: var(--prism-elevated) !important;
    border: 1px solid var(--prism-line) !important;
    box-shadow:
        inset 0 1px 0 var(--prism-line-soft),
        0 16px 36px -10px rgba(0, 0, 0, 0.5) !important;
}

:root.theme-prism .sidebar-density-popup .small,
:root.theme-prism .theme-popup .small {
    color: var(--prism-silver) !important;
    border-bottom-color: var(--prism-line) !important;
}

:root.theme-prism .sidebar-density-chip {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--prism-line) !important;
    color: var(--prism-muted) !important;
}

:root.theme-prism .sidebar-density-chip.is-active,
:root.theme-prism .sidebar-density-chip:hover {
    color: var(--prism-pearl) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

:root.theme-prism .current-theme-indicator {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: inset 0 1px 0 var(--prism-line-soft) !important;
}

:root.theme-prism .theme-option-circle.active {
    border-color: var(--prism-pearl) !important;
    box-shadow:
        0 0 0 2px var(--prism-graphite),
        0 0 0 3px var(--prism-pearl) !important;
}

.theme-prism .theme-option-circle {
    border: 1px solid var(--prism-line) !important;
    box-shadow: inset 0 1px 0 var(--prism-line-soft) !important;
}

.theme-prism .theme-option-circle.active {
    border-color: var(--prism-pearl) !important;
    box-shadow:
        0 0 0 2px var(--prism-graphite),
        0 0 0 3px var(--prism-pearl) !important;
}

:root.theme-prism .sidebar .list-group-item,
:root.theme-prism .sidebar .accordion-button,
:root.theme-prism .sidebar .accordion-item,
:root.theme-prism .sidebar .accordion-body,
:root.theme-prism .sidebar .group-url-btn,
.theme-prism .sidebar .list-group-item,
.theme-prism .sidebar .accordion-button,
.theme-prism .sidebar .accordion-item,
.theme-prism .sidebar .accordion-body,
.theme-prism .sidebar .group-url-btn {
    border-width: 0 !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

:root.theme-prism .sidebar .list-group-item.active,
:root.theme-prism .sidebar .accordion-button:not(.collapsed),
.theme-prism .sidebar .list-group-item.active,
.theme-prism .sidebar .accordion-button:not(.collapsed),
:root.theme-prism .sidebar.collapsed .accordion-button.has-active-child,
.theme-prism .sidebar.collapsed .accordion-button.has-active-child {
    border-left: none !important;
}

:root.theme-prism .sidebar .accordion-button:not(.collapsed),
.theme-prism .sidebar .accordion-button:not(.collapsed) {
    background: rgba(255, 255, 255, 0.04) !important;
    box-shadow: inset 0 1px 0 var(--prism-line-soft) !important;
}

:root.theme-prism .sidebar.collapsed .accordion-button.has-active-child,
.theme-prism .sidebar.collapsed .accordion-button.has-active-child {
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow:
        inset 0 1px 0 var(--prism-line-soft),
        inset 0 -2px 0 rgba(255, 255, 255, 0.2) !important;
}

:root.theme-prism .titlebar .ms-titlebar-home,
:root.theme-prism .titlebar .ms-login-round {
    color: var(--prism-accent) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--prism-line) !important;
    box-shadow: inset 0 1px 0 var(--prism-line-soft) !important;
}

:root.theme-prism .titlebar .ms-titlebar-home:hover,
:root.theme-prism .titlebar .ms-login-round:hover,
:root.theme-prism .titlebar .ms-titlebar-home:focus,
:root.theme-prism .titlebar .ms-login-round:focus,
:root.theme-prism .titlebar .ms-titlebar-home:focus-visible,
:root.theme-prism .titlebar .ms-login-round:focus-visible {
    color: var(--prism-pearl) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

:root.theme-prism .titlebar .sidebar-toggle:hover,
:root.theme-prism .titlebar .sidebar-toggle:focus,
:root.theme-prism .titlebar .sidebar-toggle:focus-visible {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
}

:root.theme-prism a:not(.btn):not(.nav-link):not(.dropdown-item):not(.list-group-item) {
    color: var(--prism-silver) !important;
    text-shadow: none !important;
}

:root.theme-prism a:not(.btn):not(.nav-link):not(.dropdown-item):not(.list-group-item):hover {
    color: #ffffff !important;
}

:root.theme-prism *:focus-visible {
    outline: 2px solid rgba(125, 211, 252, 0.55) !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
}

:root.theme-prism #tutorial-controls {
    --tut-bar-bg: rgba(34, 38, 47, 0.98);
    --tut-bar-border: var(--prism-line);
    --tut-bar-shadow: rgba(0, 0, 0, 0.35);
    --tut-progress-color: var(--prism-silver);
    --tut-next-bg: var(--prism-pearl);
    --tut-next-bg-hover: #ffffff;
    --tut-next-color: var(--prism-graphite);
    --tut-next-shadow: rgba(0, 0, 0, 0.28);
    --tut-prev-bg: rgba(255, 255, 255, 0.04);
    --tut-prev-bg-hover: rgba(255, 255, 255, 0.08);
    --tut-prev-color: var(--prism-silver);
    --tut-prev-border: var(--prism-line);
    --tut-skip-color: #e8a0a8;
    --tut-skip-border: rgba(232, 160, 168, 0.25);
    --tut-skip-bg-hover: rgba(92, 52, 58, 0.25);
}

:root.theme-prism .tut-btn-next {
    background: var(--tut-next-bg) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

:root.theme-prism .tut-btn-next:hover {
    background: var(--tut-next-bg-hover) !important;
}

@media print {
    :root.theme-prism * {
        text-shadow: none !important;
        box-shadow: none !important;
    }

    :root.theme-prism::before {
        display: none !important;
    }
}
