/* Liquid Glass vs Bootstrap 5. Scoped to .staff-shell. */

.liquid-glass-svg {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

html:not([data-staff-theme="bs5"]) {
    .staff-shell {
        min-height: 100vh;
        color: #eef7f1;
        background: #141910;
        color-scheme: dark;
        --bs-body-color: #eef7f1;
        --bs-body-bg: transparent;
        --bs-body-color-rgb: 238, 247, 241;
        --bs-emphasis-color: #f7fbf8;
        --bs-emphasis-color-rgb: 247, 251, 248;
        --bs-secondary-color: #c5d8cc;
        --bs-secondary: #c5d8cc;
        --bs-tertiary-color: #b7c9be;
        --bs-tertiary-bg: rgba(255, 255, 255, 0.08);
        --bs-heading-color: #f7fbf8;
        --bs-link-color: #b8f0cc;
        --bs-link-color-rgb: 184, 240, 204;
        --bs-link-hover-color: #ffffff;
        --bs-link-hover-color-rgb: 255, 255, 255;
        --bs-border-color: rgba(255, 255, 255, 0.18);
        --bs-border-color-translucent: rgba(255, 255, 255, 0.14);
        --bs-form-valid-color: #8ee0b0;
        --bs-form-valid-border-color: #8ee0b0;
        --bs-form-invalid-color: #f5b4b4;
        --bs-form-invalid-border-color: #f5b4b4;
        --bs-light: transparent;
        --bs-light-rgb: 255, 255, 255;
        --bs-dark: #eef7f1;
        --bs-dark-rgb: 238, 247, 241;
        --bs-white-rgb: 255, 255, 255;
        --bs-black-rgb: 10, 16, 14;
        --bs-primary: #8ee0b0;
        --bs-primary-rgb: 142, 224, 176;
        --bs-success: #7ddea3;
        --bs-success-rgb: 125, 222, 163;
        --bs-info: #8ec5e0;
        --bs-info-rgb: 142, 197, 224;
        --bs-warning: #e8c878;
        --bs-warning-rgb: 232, 200, 120;
        --bs-danger: #f0a0a0;
        --bs-danger-rgb: 240, 160, 160;
        --bs-secondary-rgb: 197, 216, 204;
        --ht-glass-bg: rgba(255, 255, 255, 0.12);
        --ht-glass-border: rgba(255, 255, 255, 0.32);
        --ht-glass-text: #f4faf6;
        --ht-glass-blur: blur(3px) saturate(180%) brightness(1.08);
        --ht-glass-shadow:
            inset 1px 1px 1px rgba(255, 255, 255, 0.5),
            inset -1px -1px 1px rgba(255, 255, 255, 0.1),
            0 18px 44px rgba(0, 0, 0, 0.32);
    }

    .staff-shell::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        background-image:
            linear-gradient(180deg, rgba(10, 16, 14, 0.38) 0%, rgba(10, 16, 14, 0.18) 38%, rgba(10, 16, 14, 0.48) 100%),
            url("../images/staff-dashboard-bg.png");
        background-size: cover;
        background-position: center 42%;
        background-repeat: no-repeat;
    }

    .staff-chrome {
        position: sticky;
        top: 0.75rem;
        z-index: 1030;
        margin: 0.75rem 0 1.5rem;
    }

    .staff-shell > main.container {
        padding-bottom: 3rem;
    }

    .staff-kicker {
        color: #cfe3d6;
        font-weight: 500;
    }

    .staff-shell .bg-white,
    .staff-shell .bg-light,
    .staff-shell .bg-body,
    .staff-shell .bg-body-secondary,
    .staff-shell .bg-body-tertiary,
    .staff-shell.bg-light,
    .staff-shell.bg-white {
        background-color: transparent !important;
    }

    .staff-shell .text-bg-light {
        color: #f4faf6 !important;
        background-color: rgba(255, 255, 255, 0.16) !important;
    }

    .staff-shell .text-muted,
    .staff-shell .text-secondary,
    .staff-shell .text-body-secondary {
        color: #c5d8cc !important;
    }

    .staff-shell .text-dark,
    .staff-shell .text-black,
    .staff-shell .text-body,
    .staff-shell .text-body-emphasis {
        color: #f4faf6 !important;
    }

    .staff-shell .text-primary { color: #8ee0b0 !important; }
    .staff-shell .text-success { color: #7ddea3 !important; }
    .staff-shell .text-info { color: #8ec5e0 !important; }
    .staff-shell .text-warning { color: #e8c878 !important; }
    .staff-shell .text-danger { color: #f0a0a0 !important; }
    .staff-shell .text-white { color: #fff !important; }

    .staff-shell .link-primary,
    .staff-shell .link-success { color: #b8f0cc !important; }
    .staff-shell .link-secondary,
    .staff-shell .link-dark { color: rgba(236, 246, 240, 0.82) !important; }
    .staff-shell .link-danger { color: #f0a0a0 !important; }

    .staff-shell a:not(.btn):not(.list-group-item):not(.navbar-brand):not(.nav-link):not(.page-link):not(.dropdown-item):not(.ad-slide) {
        color: #b8f0cc;
    }

    .staff-shell hr {
        border-color: rgba(255, 255, 255, 0.16);
        opacity: 1;
    }

    .staff-shell code,
    .staff-shell kbd,
    .staff-shell samp,
    .staff-shell pre {
        color: #d9f6e6;
        background: rgba(0, 0, 0, 0.28);
    }

    .staff-shell pre {
        border-radius: 12px;
        padding: 0.75rem 1rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .staff-shell mark {
        background: rgba(142, 224, 176, 0.35);
        color: #f7fbf8;
    }

    .staff-shell .border,
    .staff-shell .border-top,
    .staff-shell .border-bottom,
    .staff-shell .border-start,
    .staff-shell .border-end {
        border-color: rgba(255, 255, 255, 0.18) !important;
    }

    /* —— Glass surface —— */
    .liquid-glass,
    .liquid-glass-btn,
    .staff-shell .card,
    .staff-shell .list-group,
    .staff-shell .modal-content,
    .staff-shell .dropdown-menu,
    .staff-shell .offcanvas,
    .staff-shell .toast,
    .staff-shell .popover,
    .staff-shell .accordion-item {
        position: relative;
        isolation: isolate;
        background: var(--ht-glass-bg);
        color: var(--ht-glass-text);
        border: 1px solid var(--ht-glass-border);
        -webkit-backdrop-filter: var(--ht-glass-blur);
        backdrop-filter: var(--ht-glass-blur);
        box-shadow: var(--ht-glass-shadow);
    }

    .liquid-glass {
        border-radius: 28px;
    }

    .liquid-glass::before,
    .liquid-glass-btn::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 22%),
            linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 10%, transparent 90%, rgba(255, 255, 255, 0.12));
        mix-blend-mode: screen;
        opacity: 0.85;
    }

    /* —— Cards —— */
    .liquid-glass-tile,
    .staff-shell .card {
        border-radius: 24px;
        overflow: hidden;
        --bs-card-bg: transparent;
        --bs-card-cap-bg: transparent;
        --bs-card-border-color: var(--ht-glass-border);
        --bs-card-color: var(--ht-glass-text);
        --bs-body-color: var(--ht-glass-text);
    }

    .staff-shell .card.border-0 {
        border: 1px solid var(--ht-glass-border) !important;
    }

    .staff-shell .card.border-success { border-color: rgba(142, 224, 176, 0.5) !important; }
    .staff-shell .card.border-primary { border-color: rgba(142, 197, 224, 0.5) !important; }
    .staff-shell .card.border-danger { border-color: rgba(240, 160, 160, 0.5) !important; }
    .staff-shell .card.border-warning { border-color: rgba(232, 200, 120, 0.5) !important; }
    .staff-shell .card.border-info { border-color: rgba(142, 197, 224, 0.5) !important; }

    .staff-shell .home-card.card {
        background: rgba(16, 26, 20, 0.4);
    }

    .staff-shell .card-header,
    .staff-shell .card-footer,
    .staff-shell .card-header.bg-white,
    .staff-shell .card-footer.bg-white {
        background: transparent !important;
        border-color: rgba(255, 255, 255, 0.14);
        color: #f7fbf8;
    }

    .staff-shell .card-img-overlay {
        background: linear-gradient(180deg, rgba(10, 16, 14, 0.15), rgba(10, 16, 14, 0.55));
        color: #f7fbf8;
    }

    .liquid-glass-tile .h5,
    .liquid-glass-tile .h2,
    .liquid-glass-tile h2,
    .staff-shell .card .h1,
    .staff-shell .card .h2,
    .staff-shell .card .h3,
    .staff-shell .card .h4,
    .staff-shell .card .h5,
    .staff-shell .card h1,
    .staff-shell .card h2,
    .staff-shell .card h3,
    .staff-shell .card h4,
    .staff-shell .card h5 {
        color: #f7fbf8;
        font-weight: 600;
    }

    .staff-shell .card > .card-body,
    .liquid-glass-tile .card-body {
        position: relative;
        z-index: 1;
    }

    /* —— Buttons —— */
    .liquid-glass-btn,
    .staff-shell .btn:not(.btn-close) {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        border-radius: 999px;
        color: #fff;
        font-weight: 500;
        text-decoration: none;
        line-height: 1.25;
        position: relative;
        isolation: isolate;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid var(--ht-glass-border);
        -webkit-backdrop-filter: blur(2px) saturate(180%) brightness(1.1);
        backdrop-filter: blur(2px) saturate(180%) brightness(1.1);
        box-shadow:
            inset 1px 1px 1px rgba(255, 255, 255, 0.5),
            inset -1px -1px 1px rgba(255, 255, 255, 0.1),
            0 8px 22px rgba(0, 0, 0, 0.22);
        --bs-btn-color: #fff;
        --bs-btn-bg: transparent;
        --bs-btn-border-color: var(--ht-glass-border);
        --bs-btn-hover-color: #fff;
        --bs-btn-hover-bg: rgba(255, 255, 255, 0.18);
        --bs-btn-hover-border-color: rgba(255, 255, 255, 0.45);
        --bs-btn-active-color: #fff;
        --bs-btn-disabled-opacity: 0.45;
    }

    .liquid-glass-btn:hover,
    .liquid-glass-btn:focus,
    .staff-shell .btn:not(.btn-close):hover,
    .staff-shell .btn:not(.btn-close):focus {
        color: #fff;
        background: rgba(255, 255, 255, 0.18);
        border-color: rgba(255, 255, 255, 0.45);
    }

    .liquid-glass-btn--accent,
    .staff-shell .btn-primary,
    .staff-shell .btn-success,
    .staff-shell .btn-info {
        background: rgba(61, 155, 106, 0.42);
        border-color: rgba(210, 255, 230, 0.4);
    }

    .staff-shell .btn-info {
        background: rgba(50, 120, 160, 0.45);
        border-color: rgba(180, 220, 240, 0.4);
    }

    .liquid-glass-btn--accent:hover,
    .liquid-glass-btn--accent:focus,
    .staff-shell .btn-primary:hover,
    .staff-shell .btn-primary:focus,
    .staff-shell .btn-success:hover,
    .staff-shell .btn-success:focus,
    .staff-shell .btn-info:hover,
    .staff-shell .btn-info:focus {
        background: rgba(61, 155, 106, 0.55);
        color: #fff;
    }

    .staff-shell .btn-warning,
    .staff-shell .btn-outline-warning {
        background: rgba(180, 140, 40, 0.42);
        border-color: rgba(232, 200, 120, 0.5);
        color: #fff;
    }

    .staff-shell .btn-danger,
    .staff-shell .btn-outline-danger {
        background: rgba(160, 50, 50, 0.48);
        border-color: rgba(240, 160, 160, 0.5);
        color: #fff;
    }

    .staff-shell .btn-danger:hover,
    .staff-shell .btn-outline-danger:hover,
    .staff-shell .btn-warning:hover,
    .staff-shell .btn-outline-warning:hover {
        background: rgba(160, 50, 50, 0.62);
        color: #fff;
    }

    .staff-shell .btn-warning:hover,
    .staff-shell .btn-outline-warning:hover {
        background: rgba(180, 140, 40, 0.58);
    }

    .staff-shell .btn-light,
    .staff-shell .btn-outline-light {
        background: rgba(255, 255, 255, 0.16);
        color: #fff;
    }

    .staff-shell .btn-dark,
    .staff-shell .btn-outline-dark,
    .staff-shell .btn-secondary,
    .staff-shell .btn-outline-secondary,
    .staff-shell .btn-outline-primary {
        color: #fff;
    }

    .staff-shell .btn-link {
        background: none;
        border: 0;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        color: #b8f0cc;
        border-radius: 0;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .staff-shell .btn-link:hover,
    .staff-shell .btn-link:focus {
        color: #fff;
        background: none;
        border-color: transparent;
    }

    .staff-shell .btn-sm { padding: 0.28rem 0.75rem; }
    .staff-shell .btn-lg { padding: 0.65rem 1.35rem; }

    .staff-shell .btn-close {
        filter: invert(1) grayscale(1);
        opacity: 0.75;
    }

    .staff-shell .btn-close:hover { opacity: 1; }

    .staff-theme-toggle .btn {
        display: inline-flex;
        border-radius: 0.25rem;
        padding: 0.25rem 0.65rem;
        font-size: 0.75rem;
        font-weight: 500;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        min-height: 0;
    }

    /* —— Forms —— */
    .staff-shell .form-label,
    .staff-shell .form-check-label,
    .staff-shell .col-form-label,
    .staff-shell .form-floating > label {
        color: rgba(236, 246, 240, 0.88);
    }

    .staff-shell .form-text,
    .staff-shell .form-control::file-selector-button {
        color: rgba(197, 216, 204, 0.88);
    }

    .staff-shell .form-control,
    .staff-shell .form-select,
    .staff-shell .form-control-plaintext,
    .staff-shell .form-control:file-selector-button {
        background-color: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.28);
        color: #f4faf6;
    }

    .staff-shell .form-control::placeholder {
        color: rgba(236, 246, 240, 0.5);
    }

    .staff-shell .form-control:focus,
    .staff-shell .form-select:focus {
        background-color: rgba(255, 255, 255, 0.18);
        border-color: rgba(210, 255, 230, 0.55);
        color: #fff;
        box-shadow: 0 0 0 0.25rem rgba(142, 224, 176, 0.22);
    }

    .staff-shell .form-control:disabled,
    .staff-shell .form-select:disabled,
    .staff-shell .form-control[readonly] {
        background-color: rgba(255, 255, 255, 0.06);
        color: rgba(236, 246, 240, 0.7);
    }

    .staff-shell .form-select {
        --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f4faf6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    }

    .staff-shell .form-control:file-selector-button {
        background-color: rgba(255, 255, 255, 0.16);
        color: #f4faf6;
        border-color: transparent;
    }

    .staff-shell .input-group-text {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.28);
        color: #f4faf6;
    }

    .staff-shell .form-check-input {
        background-color: rgba(255, 255, 255, 0.18);
        border-color: rgba(255, 255, 255, 0.42);
    }

    .staff-shell .form-check-input:checked {
        background-color: #3d9b6a;
        border-color: #8ee0b0;
    }

    .staff-shell .form-check-input:focus {
        box-shadow: 0 0 0 0.25rem rgba(142, 224, 176, 0.22);
        border-color: #8ee0b0;
    }

    .staff-shell .form-switch .form-check-input:checked {
        background-color: #3d9b6a;
    }

    .staff-shell .form-range::-webkit-slider-thumb { background: #8ee0b0; }
    .staff-shell .form-range::-moz-range-thumb { background: #8ee0b0; }
    .staff-shell .form-range::-webkit-slider-runnable-track {
        background: rgba(255, 255, 255, 0.18);
    }

    .staff-shell .invalid-feedback { color: #f5b4b4; }
    .staff-shell .valid-feedback { color: #8ee0b0; }
    .staff-shell .was-validated .form-control:invalid,
    .staff-shell .form-control.is-invalid {
        border-color: #f5b4b4;
    }
    .staff-shell .was-validated .form-control:valid,
    .staff-shell .form-control.is-valid {
        border-color: #8ee0b0;
    }

    /* —— Tables —— */
    .staff-shell .table {
        --bs-table-bg: transparent;
        --bs-table-color: #f4faf6;
        --bs-table-striped-bg: rgba(255, 255, 255, 0.06);
        --bs-table-striped-color: #f4faf6;
        --bs-table-hover-bg: rgba(255, 255, 255, 0.1);
        --bs-table-hover-color: #fff;
        --bs-table-border-color: rgba(255, 255, 255, 0.14);
        --bs-table-active-bg: rgba(255, 255, 255, 0.12);
        color: #f4faf6;
    }

    .staff-shell .table-light,
    .staff-shell .thead-light,
    .staff-shell thead.table-light,
    .staff-shell .table > :not(caption) > * > .table-light {
        --bs-table-bg: rgba(255, 255, 255, 0.08);
        --bs-table-color: #f4faf6;
        color: #f4faf6;
        background-color: rgba(255, 255, 255, 0.08) !important;
        border-color: rgba(255, 255, 255, 0.14);
    }

    /* —— Lists —— */
    .staff-shell .list-group {
        border-radius: 24px;
        overflow: hidden;
        --bs-list-group-bg: transparent;
        --bs-list-group-color: #f4faf6;
        --bs-list-group-border-color: rgba(255, 255, 255, 0.14);
        --bs-list-group-action-color: #f4faf6;
        --bs-list-group-action-hover-color: #fff;
        --bs-list-group-action-hover-bg: rgba(255, 255, 255, 0.08);
        --bs-list-group-active-bg: rgba(61, 155, 106, 0.4);
        --bs-list-group-active-color: #fff;
        --bs-list-group-active-border-color: rgba(210, 255, 230, 0.4);
    }

    .staff-shell .list-group-item {
        background: transparent;
        color: #f4faf6;
        border-color: rgba(255, 255, 255, 0.14);
    }

    .staff-shell .list-group-item-action:hover,
    .staff-shell .list-group-item-action:focus {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }

    .staff-shell .public-tools .list-group-item .bi,
    .staff-shell .public-tools .list-group-item .text-muted {
        color: rgba(236, 246, 240, 0.8) !important;
    }

    .staff-shell .public-tools .list-group-item:hover {
        background: rgba(255, 255, 255, 0.08);
    }
    .staff-shell .public-tools .tool-row-link,
    .staff-shell .public-tools .tool-row-chevron {
        color: #f4faf6;
        text-decoration: none;
    }
    .staff-shell .public-tools .tool-row-link:hover,
    .staff-shell .public-tools .tool-row-chevron:hover {
        color: #fff;
    }
    .staff-shell .public-tools .tool-pop-track { background: rgba(255, 255, 255, 0.18); }
    .staff-shell .public-tools .tool-pop-bar { background: #8ee0b0; }
    .staff-shell .public-tools .tool-pop-n { color: rgba(236, 246, 240, 0.8); }
    .staff-shell .tool-stats-chart { background: rgba(255, 255, 255, 0.08); }
    .staff-shell .tool-stats-chart rect { fill: #8ee0b0; }

    /* —— Alerts —— */
    .staff-shell .alert {
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid var(--ht-glass-border);
        color: #f4faf6;
        border-radius: 16px;
        -webkit-backdrop-filter: var(--ht-glass-blur);
        backdrop-filter: var(--ht-glass-blur);
        --bs-alert-color: #f4faf6;
        --bs-alert-bg: transparent;
        --bs-alert-border-color: var(--ht-glass-border);
        --bs-alert-link-color: #fff;
    }

    .staff-shell .alert-primary,
    .staff-shell .alert-success { background: rgba(61, 155, 106, 0.38); border-color: rgba(142, 224, 176, 0.45); }
    .staff-shell .alert-info { background: rgba(50, 120, 160, 0.38); border-color: rgba(142, 197, 224, 0.45); }
    .staff-shell .alert-warning { background: rgba(180, 140, 40, 0.38); border-color: rgba(232, 200, 120, 0.45); }
    .staff-shell .alert-danger { background: rgba(160, 50, 50, 0.42); border-color: rgba(240, 160, 160, 0.45); }
    .staff-shell .alert-secondary,
    .staff-shell .alert-light,
    .staff-shell .alert-dark { background: rgba(255, 255, 255, 0.12); }

    .staff-shell .alert-link { color: #fff; text-decoration: underline; }

    /* —— Badges —— */
    .staff-shell .badge {
        border: 1px solid rgba(255, 255, 255, 0.22);
        -webkit-backdrop-filter: blur(2px) saturate(160%);
        backdrop-filter: blur(2px) saturate(160%);
        font-weight: 600;
    }

    .staff-shell .text-bg-primary,
    .staff-shell .bg-primary,
    .staff-shell .badge.bg-primary { background-color: rgba(61, 155, 106, 0.55) !important; color: #fff !important; }
    .staff-shell .text-bg-success,
    .staff-shell .bg-success,
    .staff-shell .badge.bg-success { background-color: rgba(61, 155, 106, 0.55) !important; color: #fff !important; }
    .staff-shell .text-bg-secondary,
    .staff-shell .bg-secondary,
    .staff-shell .badge.bg-secondary { background-color: rgba(255, 255, 255, 0.2) !important; color: #fff !important; }
    .staff-shell .text-bg-info,
    .staff-shell .bg-info,
    .staff-shell .badge.bg-info { background-color: rgba(50, 120, 160, 0.55) !important; color: #fff !important; }
    .staff-shell .text-bg-warning,
    .staff-shell .bg-warning,
    .staff-shell .badge.bg-warning { background-color: rgba(180, 140, 40, 0.55) !important; color: #fff !important; }
    .staff-shell .text-bg-danger,
    .staff-shell .bg-danger,
    .staff-shell .badge.bg-danger { background-color: rgba(160, 50, 50, 0.6) !important; color: #fff !important; }
    .staff-shell .text-bg-dark,
    .staff-shell .bg-dark,
    .staff-shell .badge.bg-dark { background-color: rgba(10, 16, 14, 0.55) !important; color: #fff !important; }
    .staff-shell .text-bg-light { background-color: rgba(255, 255, 255, 0.2) !important; color: #fff !important; }

    /* —— Nav / tabs / pills / breadcrumb / pagination —— */
    .staff-shell .nav-link { color: rgba(255, 255, 255, 0.82); }
    .staff-shell .nav-link:hover,
    .staff-shell .nav-link:focus { color: #fff; }
    .staff-shell .nav-link.active { color: #fff; }

    .staff-shell .nav-tabs { border-bottom-color: rgba(255, 255, 255, 0.18); }
    .staff-shell .nav-tabs .nav-link {
        color: rgba(255, 255, 255, 0.75);
        border-color: transparent;
    }
    .staff-shell .nav-tabs .nav-link:hover {
        border-color: rgba(255, 255, 255, 0.22);
        isolation: isolate;
    }
    .staff-shell .nav-tabs .nav-link.active {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        border-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.28) transparent;
    }

    .staff-shell .nav-pills .nav-link { border-radius: 999px; }
    .staff-shell .nav-pills .nav-link.active {
        background: rgba(61, 155, 106, 0.5);
        color: #fff;
    }

    .staff-shell .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.4); }
    .staff-shell .breadcrumb-item.active { color: #c5d8cc; }

    .staff-shell .page-link {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.22);
        color: #f4faf6;
    }
    .staff-shell .page-link:hover {
        background: rgba(255, 255, 255, 0.18);
        color: #fff;
    }
    .staff-shell .page-item.active .page-link {
        background: rgba(61, 155, 106, 0.55);
        border-color: rgba(210, 255, 230, 0.4);
        color: #fff;
    }
    .staff-shell .page-item.disabled .page-link {
        background: rgba(255, 255, 255, 0.04);
        color: rgba(236, 246, 240, 0.4);
    }

    /* —— Dropdown / modal / offcanvas / toast / accordion —— */
    .staff-shell .dropdown-menu {
        --bs-dropdown-bg: transparent;
        --bs-dropdown-color: #f4faf6;
        --bs-dropdown-link-color: #f4faf6;
        --bs-dropdown-link-hover-bg: rgba(255, 255, 255, 0.12);
        --bs-dropdown-link-hover-color: #fff;
        --bs-dropdown-link-active-bg: rgba(61, 155, 106, 0.45);
        --bs-dropdown-link-active-color: #fff;
        --bs-dropdown-border-color: var(--ht-glass-border);
        --bs-dropdown-divider-bg: rgba(255, 255, 255, 0.14);
        border-radius: 16px;
        padding: 0.4rem;
    }

    .staff-shell .dropdown-item { border-radius: 10px; }
    .staff-shell .dropdown-header { color: #c5d8cc; }
    .staff-shell .dropdown-divider { border-top-color: rgba(255, 255, 255, 0.14); }

    .staff-shell .modal-content {
        border-radius: 24px;
        --bs-modal-bg: transparent;
        --bs-modal-color: #f4faf6;
        --bs-modal-border-color: var(--ht-glass-border);
        --bs-modal-header-border-color: rgba(255, 255, 255, 0.14);
        --bs-modal-footer-border-color: rgba(255, 255, 255, 0.14);
    }

    .staff-shell .modal-header,
    .staff-shell .modal-footer {
        border-color: rgba(255, 255, 255, 0.14);
    }

    .staff-shell .modal-backdrop { background: #0a100d; }

    .staff-shell .offcanvas {
        --bs-offcanvas-bg: rgba(16, 24, 20, 0.72);
        --bs-offcanvas-color: #eef7f1;
        background: rgba(16, 24, 20, 0.72);
        color: #eef7f1;
    }

    .staff-shell .offcanvas-header,
    .staff-shell .offcanvas-footer {
        border-color: rgba(255, 255, 255, 0.14);
    }

    .staff-shell .toast {
        --bs-toast-bg: rgba(16, 24, 20, 0.55);
        --bs-toast-color: #f4faf6;
        --bs-toast-border-color: var(--ht-glass-border);
        border-radius: 16px;
    }

    .staff-shell .toast-header {
        background: transparent;
        color: #f7fbf8;
        border-bottom-color: rgba(255, 255, 255, 0.14);
    }

    .staff-shell .popover {
        --bs-popover-bg: rgba(16, 24, 20, 0.72);
        --bs-popover-body-color: #f4faf6;
        --bs-popover-header-bg: transparent;
        --bs-popover-header-color: #f7fbf8;
        --bs-popover-border-color: var(--ht-glass-border);
        border-radius: 16px;
    }

    .staff-shell .tooltip .tooltip-inner {
        background: rgba(16, 24, 20, 0.82);
        color: #f4faf6;
        border: 1px solid rgba(255, 255, 255, 0.22);
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }

    .staff-shell .accordion {
        --bs-accordion-bg: transparent;
        --bs-accordion-color: #f4faf6;
        --bs-accordion-border-color: rgba(255, 255, 255, 0.18);
        --bs-accordion-btn-color: #f4faf6;
        --bs-accordion-btn-bg: transparent;
        --bs-accordion-active-color: #fff;
        --bs-accordion-active-bg: rgba(255, 255, 255, 0.12);
        --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f4faf6'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e");
        --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e");
    }

    .staff-shell .accordion-item { border-radius: 16px; overflow: hidden; }
    .staff-shell .accordion-button:focus {
        box-shadow: 0 0 0 0.25rem rgba(142, 224, 176, 0.22);
    }

    /* —— Progress / spinner / placeholder —— */
    .staff-shell .progress {
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.16);
    }

    .staff-shell .progress-bar { background-color: rgba(61, 155, 106, 0.85); }

    .staff-shell .placeholder { background-color: rgba(255, 255, 255, 0.18); }

    /* —— Navbar (staff chrome) —— */
    .staff-shell .navbar.liquid-glass { padding: 0.55rem 0.85rem; }

    .staff-shell .navbar.liquid-glass .navbar-collapse.show,
    .staff-shell .navbar.liquid-glass .navbar-collapse.collapsing {
        padding-top: 0.65rem;
    }

    .staff-shell .navbar-brand,
    .staff-shell .navbar-brand:hover,
    .staff-shell .navbar-brand:focus {
        color: #fff;
        font-weight: 600;
    }

    .staff-shell .navbar-toggler { border-color: rgba(255, 255, 255, 0.35); }
    .staff-shell .navbar-toggler-icon { filter: invert(1) grayscale(1); }

    .staff-shell .navbar-nav .nav-link {
        font-weight: 500;
        border-radius: 999px;
        padding: 0.4rem 0.85rem;
        color: rgba(255, 255, 255, 0.82);
    }

    .staff-shell .navbar-nav .nav-link:hover,
    .staff-shell .navbar-nav .nav-link:focus { color: #fff; }

    .staff-shell .navbar-nav .nav-link.active {
        background: rgba(255, 255, 255, 0.16);
        color: #fff;
    }

    .staff-shell .staff-user {
        color: rgba(255, 255, 255, 0.78);
        font-weight: 500;
    }

    .staff-shell .navbar-text { color: rgba(255, 255, 255, 0.78); }

    /* —— Home / auth extras —— */
    .staff-shell .presented-line {
        color: #f7fbf8;
        text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
    }

    .staff-shell .home-foot { color: rgba(236, 246, 240, 0.78); }

    .staff-shell .presented-line img,
    .staff-shell .home-foot img,
    .staff-shell .auth-card img {
        filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
    }

    /* —— Board tools custom chrome —— */
    .staff-shell .overview-header,
    .staff-shell .meeting-header {
        background: rgba(16, 28, 22, 0.55) !important;
        -webkit-backdrop-filter: blur(10px) saturate(160%);
        backdrop-filter: blur(10px) saturate(160%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
        color: #f4faf6;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    }

    .staff-shell .today-banner,
    .staff-shell .start-meeting-banner {
        background: rgba(255, 255, 255, 0.12) !important;
        border-color: rgba(255, 255, 255, 0.22) !important;
        color: #f4faf6;
        -webkit-backdrop-filter: var(--ht-glass-blur);
        backdrop-filter: var(--ht-glass-blur);
    }

    .staff-shell .start-meeting-hint { color: #c5d8cc !important; }

    .staff-shell .mm-g-chair {
        background: rgba(142, 224, 176, 0.16);
        color: #8ee0b0;
        border-color: #8ee0b0;
    }

    .staff-shell .mm-g-sec {
        background: rgba(180, 160, 230, 0.16);
        color: #d2c4f0;
        border-color: #d2c4f0;
    }

    @supports (backdrop-filter: url(#ht-lg)) {
        .liquid-glass:not(.liquid-glass-tile):not(.card) {
            backdrop-filter: url(#ht-lg) blur(3px) saturate(180%) brightness(1.08);
            -webkit-backdrop-filter: url(#ht-lg) blur(3px) saturate(180%) brightness(1.08);
        }

        .liquid-glass-tile,
        .staff-shell .card,
        .staff-shell .list-group,
        .staff-shell .modal-content {
            backdrop-filter: url(#ht-lg-tile) blur(3px) saturate(180%) brightness(1.08);
            -webkit-backdrop-filter: url(#ht-lg-tile) blur(3px) saturate(180%) brightness(1.08);
        }

        .liquid-glass-btn,
        .staff-shell .btn:not(.btn-close):not(.btn-link) {
            backdrop-filter: url(#ht-lg) blur(2px) saturate(180%) brightness(1.1);
            -webkit-backdrop-filter: url(#ht-lg) blur(2px) saturate(180%) brightness(1.1);
        }
    }

    @media (max-width: 991.98px) {
        .staff-shell .navbar-collapse {
            padding: 0.4rem 0.15rem 0.55rem;
        }

        .staff-shell .navbar-nav .nav-link { margin: 0.1rem 0; }

        .staff-shell .navbar-collapse .d-flex {
            padding: 0.45rem 0.85rem 0.15rem;
            flex-wrap: wrap;
        }
    }

    @media (prefers-reduced-transparency: reduce) {
        .liquid-glass,
        .liquid-glass-btn,
        .staff-shell .card,
        .staff-shell .list-group,
        .staff-shell .btn:not(.btn-close),
        .staff-shell .alert,
        .staff-shell .modal-content,
        .staff-shell .dropdown-menu,
        .staff-shell .offcanvas,
        .staff-shell .toast {
            background: #123528;
            border-color: rgba(255, 255, 255, 0.12);
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
        }

        .liquid-glass::before,
        .liquid-glass-btn::before { display: none; }

        .staff-shell { background: #123528; }
        .staff-shell::before { display: none; }
    }

    @media (prefers-reduced-motion: reduce) {
        .liquid-glass,
        .liquid-glass-btn,
        .staff-shell .card,
        .staff-shell .btn { transition: none; animation: none; }
    }
}

.staff-theme-toggle {
    position: fixed;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 1080;
}
.staff-theme-toggle .btn {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
}
.staff-shell:not(:has(.staff-chrome)) {
    padding-top: 2.75rem;
}
@media (max-width: 991.98px) {
    .staff-chrome { margin-top: 2.6rem; }
}

html[data-staff-theme="bs5"] .staff-shell {
    min-height: 100vh;
    background: #f8f9fa;
    color: inherit;
    color-scheme: light;
}
html[data-staff-theme="bs5"] .staff-shell::before { display: none; }
html[data-staff-theme="bs5"] .staff-chrome {
    position: static;
    z-index: auto;
    margin: 0 0 1rem;
}
html[data-staff-theme="bs5"] .staff-shell > main.container { padding-bottom: 2rem; }
html[data-staff-theme="bs5"] .staff-kicker {
    color: var(--bs-secondary-color);
    font-weight: 400;
}
html[data-staff-theme="bs5"] .navbar.liquid-glass {
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0.5rem 0;
}
html[data-staff-theme="bs5"] .navbar.liquid-glass::before { display: none; }
html[data-staff-theme="bs5"] .navbar-brand,
html[data-staff-theme="bs5"] .navbar-brand:hover,
html[data-staff-theme="bs5"] .navbar-brand:focus {
    color: rgba(0, 0, 0, 0.9);
    font-weight: 500;
}
html[data-staff-theme="bs5"] .navbar-toggler { border-color: rgba(0, 0, 0, 0.1); }
html[data-staff-theme="bs5"] .navbar-toggler-icon {
    filter: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
html[data-staff-theme="bs5"] .navbar-nav .nav-link {
    border-radius: 0;
    padding: 0.5rem 0.75rem;
    color: rgba(0, 0, 0, 0.65);
    font-weight: 400;
}
html[data-staff-theme="bs5"] .navbar-nav .nav-link:hover,
html[data-staff-theme="bs5"] .navbar-nav .nav-link:focus { color: rgba(0, 0, 0, 0.8); }
html[data-staff-theme="bs5"] .navbar-nav .nav-link.active {
    background: none;
    color: rgba(0, 0, 0, 0.9);
}
html[data-staff-theme="bs5"] .staff-user {
    color: var(--bs-secondary-color);
    font-weight: 400;
}
html[data-staff-theme="bs5"] .liquid-glass-tile,
html[data-staff-theme="bs5"] .card.liquid-glass {
    background: #fff !important;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.125) !important;
    border-radius: var(--bs-border-radius) !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    --bs-card-bg: #fff;
    --bs-body-color: #212529;
}
html[data-staff-theme="bs5"] .liquid-glass-tile::before,
html[data-staff-theme="bs5"] .liquid-glass-btn::before,
html[data-staff-theme="bs5"] .navbar.liquid-glass::before { display: none; }
html[data-staff-theme="bs5"] .liquid-glass-tile .h5,
html[data-staff-theme="bs5"] .liquid-glass-tile h2 {
    color: inherit !important;
    font-weight: 500;
}
html[data-staff-theme="bs5"] .liquid-glass-tile .text-muted,
html[data-staff-theme="bs5"] .staff-shell > main .text-muted {
    color: var(--bs-secondary-color) !important;
}
html[data-staff-theme="bs5"] .liquid-glass-tile code {
    color: inherit;
    background: none;
}
html[data-staff-theme="bs5"] .staff-shell .public-tools .list-group {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: var(--bs-border-radius);
    box-shadow: none;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
html[data-staff-theme="bs5"] .staff-shell .public-tools .list-group-item {
    background: #fff;
    color: inherit;
    border-color: rgba(0, 0, 0, 0.125);
}
html[data-staff-theme="bs5"] .staff-shell .public-tools .list-group-item:hover,
html[data-staff-theme="bs5"] .staff-shell .public-tools .list-group-item:focus {
    background: var(--bs-list-group-action-hover-bg);
    color: inherit;
}
html[data-staff-theme="bs5"] .staff-shell .public-tools .list-group-item .text-muted,
html[data-staff-theme="bs5"] .staff-shell .public-tools .list-group-item .bi {
    color: var(--bs-secondary-color) !important;
}
html[data-staff-theme="bs5"] .staff-shell .public-tools .tool-pop-track { background: #e9ecef; }
html[data-staff-theme="bs5"] .staff-shell .public-tools .tool-pop-bar { background: #0d6efd; }
html[data-staff-theme="bs5"] .staff-shell .public-tools .tool-pop-n { color: var(--bs-secondary-color); }
html[data-staff-theme="bs5"] .staff-theme-toggle .btn {
    color: #212529;
    border-color: #dee2e6;
    background: #fff;
}
html[data-staff-theme="bs5"] .staff-theme-toggle .btn.active {
    color: #fff;
    background: #212529;
    border-color: #212529;
}
html:not([data-staff-theme="bs5"]) .staff-theme-toggle .btn {
    color: rgba(255, 255, 255, 0.82);
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.08);
}
html:not([data-staff-theme="bs5"]) .staff-theme-toggle .btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.45);
}

.public-tools .tool-row-link,
.public-tools .tool-row-chevron {
    color: inherit;
    text-decoration: none;
}
.public-tools .tool-row-link:hover {
    color: inherit;
}
.public-tools .tool-pop {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0.5rem 0.35rem;
    cursor: pointer;
}
.public-tools .tool-pop:hover .tool-pop-n,
.public-tools .tool-pop:focus-visible .tool-pop-n {
    text-decoration: underline;
    color: var(--bs-primary);
}
.public-tools .tool-pop-track {
    width: 3.2rem;
    height: 4px;
    background: #e9ecef;
    border-radius: 99px;
    overflow: hidden;
}
.public-tools .tool-pop-bar {
    display: block;
    height: 100%;
    background: #0d6efd;
}
.public-tools .tool-pop-n {
    font-size: 0.75rem;
    min-width: 1.5rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--bs-secondary-color);
}
.tool-stats-chart {
    width: 100%;
    height: 60px;
    background: #f8f9fa;
    border-radius: 0.25rem;
    display: block;
}

html[data-staff-theme="bs5"] .staff-shell .public-tools .list-group-item:hover {
    background: var(--bs-list-group-action-hover-bg);
}
html[data-staff-theme="bs5"] .staff-shell .public-tools .tool-row-link,
html[data-staff-theme="bs5"] .staff-shell .public-tools .tool-row-chevron {
    color: inherit;
}
