html[data-bs-theme="dark"] {
    color-scheme: dark;
    --bg: #000000;
    --bg-elev: #111111;
    --bg-soft: #1a1a1a;
    --line: #2a2a2a;
    --text: #ebe6dc;
    --muted: #9aa3ad;
    --ink: #f3efe6;
}

html[data-bs-theme="dark"] body {
    background: var(--bg);
    color: var(--text);
}

html[data-bs-theme="dark"] a {
    color: #fff;
}

html[data-bs-theme="dark"] a:hover {
    color: #fff;
}

html[data-bs-theme="dark"] .brand,
html[data-bs-theme="dark"] .brand:hover {
    color: var(--text);
}

html[data-bs-theme="dark"] .brand-mark,
html[data-bs-theme="dark"] .app-body .brand-mark {
    color: var(--text);
}

html[data-bs-theme="dark"] .side-link {
    color: var(--muted);
}

html[data-bs-theme="dark"] .side-link.active,
html[data-bs-theme="dark"] .side-link:hover,
html[data-bs-theme="dark"] .app-body .side-link.active,
html[data-bs-theme="dark"] .app-body .side-link:hover {
    background: color-mix(in srgb, var(--brand-primary) 24%, #111);
    color: var(--drive-text, var(--text));
}

html[data-bs-theme="dark"] .text-secondary,
html[data-bs-theme="dark"] .form-label,
html[data-bs-theme="dark"] .form-check-label,
html[data-bs-theme="dark"] .form-text,
html[data-bs-theme="dark"] .hero-kicker {
    color: var(--muted) !important;
}

html[data-bs-theme="dark"] .hero-kicker {
    color: var(--brand-accent) !important;
}

html[data-bs-theme="dark"] h1,
html[data-bs-theme="dark"] h2,
html[data-bs-theme="dark"] h3,
html[data-bs-theme="dark"] h5,
html[data-bs-theme="dark"] .h3,
html[data-bs-theme="dark"] .h5 {
    color: var(--ink);
}

html[data-bs-theme="dark"] .panel,
html[data-bs-theme="dark"] .feature-card,
html[data-bs-theme="dark"] .item-card,
html[data-bs-theme="dark"] .tree-card {
    background: var(--bg-elev);
    border-color: var(--line);
    color: var(--text);
}

html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select {
    background-color: #0a0a0a;
    border-color: var(--line);
    color: var(--text);
}

html[data-bs-theme="dark"] .form-control::placeholder {
    color: color-mix(in srgb, var(--muted) 85%, transparent);
}

html[data-bs-theme="dark"] .form-control:focus,
html[data-bs-theme="dark"] .form-select:focus {
    background-color: #0a0a0a;
    color: var(--text);
    border-color: color-mix(in srgb, var(--brand-accent) 50%, var(--line));
}

html[data-bs-theme="dark"] .lx-select-shell {
    background: color-mix(in srgb, #fff 6%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 8%, transparent);
}

html[data-bs-theme="dark"] .lx-select-core {
    background: #0a0a0a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-bs-theme="dark"] .lx-select-toggle:hover,
html[data-bs-theme="dark"] .lx-select.is-open .lx-select-toggle,
html[data-bs-theme="dark"] .lx-select-toggle:focus-visible {
    background: color-mix(in srgb, var(--brand-accent) 12%, transparent);
}

html[data-bs-theme="dark"] .lx-select-menu {
    background: #121212;
    box-shadow:
        0 0 0 1px color-mix(in srgb, #fff 10%, transparent),
        0 18px 40px rgba(0, 0, 0, 0.45);
}

html[data-bs-theme="dark"] .lx-select-option:hover,
html[data-bs-theme="dark"] .lx-select-option:focus-visible {
    background: color-mix(in srgb, #fff 8%, transparent);
}

html[data-bs-theme="dark"] .lx-select-option.is-on {
    background: color-mix(in srgb, var(--brand-accent) 22%, transparent);
    color: color-mix(in srgb, var(--brand-accent) 70%, #fff);
}

html[data-bs-theme="dark"] .form-check-input {
    background-color: #0a0a0a;
    border-color: var(--line);
}

html[data-bs-theme="dark"] .form-check-input:checked {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
}

html[data-bs-theme="dark"] .alert {
    color: var(--text);
}

html[data-bs-theme="dark"] .alert-info {
    background: color-mix(in srgb, var(--brand-primary) 32%, var(--bg-elev));
    border-color: color-mix(in srgb, var(--brand-accent) 28%, var(--line));
    color: var(--text);
}

html[data-bs-theme="dark"] .alert a {
    color: color-mix(in srgb, var(--brand-accent) 82%, #fff);
    text-decoration: underline;
}

html[data-bs-theme="dark"] .alert-danger {
    background: color-mix(in srgb, #8a2b2b 38%, var(--bg-elev));
    border-color: color-mix(in srgb, #8a2b2b 50%, var(--line));
    color: #f0d4d4;
}

html[data-bs-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: var(--line);
    --bs-table-striped-bg: color-mix(in srgb, var(--bg-soft) 70%, transparent);
    --bs-table-hover-bg: var(--bg-soft);
}

html[data-bs-theme="dark"] .guest-body {
    background: var(--bg);
    color: var(--text);
}

html[data-bs-theme="dark"] .lx-read-page {
    --lx-ink: #f4efe6;
    --lx-mute: #c8c0b4;
    --lx-paper: #141210;
    --lx-shell: #2a2621;
    --lx-chip: #2a2621;
    background: #0c0b0a;
}

html[data-bs-theme="dark"] .lx-read-core {
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.04);
}

html[data-bs-theme="dark"] .lx-read-paper {
    background: #1b1815;
}

html[data-bs-theme="dark"] .lx-read-body .preview-frame,
html[data-bs-theme="dark"] .lx-read-body .office-frame {
    background: #fff;
    color-scheme: light;
}

html[data-bs-theme="dark"] .site-header {
    background: var(--bg-elev);
    border-bottom-color: var(--line);
}

html[data-bs-theme="dark"] .nav-page {
    color: var(--muted);
}

html[data-bs-theme="dark"] .nav-page:hover,
html[data-bs-theme="dark"] .nav-page.is-active {
    background: color-mix(in srgb, var(--brand-primary) 28%, var(--bg-elev));
    color: var(--text);
}

html[data-bs-theme="dark"] .landing-locales button.is-on,
html[data-bs-theme="dark"] .landing-locales button:hover {
    background: color-mix(in srgb, var(--brand-primary) 28%, var(--bg-elev));
    color: var(--text);
}

html[data-bs-theme="dark"] .btn-outline-primary {
    --bs-btn-color: var(--text);
    --bs-btn-border-color: var(--line);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: color-mix(in srgb, var(--brand-primary) 70%, #000);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--brand-primary) 70%, #000);
}

html[data-bs-theme="dark"] .btn-outline-brand {
    --bs-btn-color: var(--text);
    --bs-btn-border-color: color-mix(in srgb, var(--brand-accent) 55%, var(--line));
    --bs-btn-hover-color: #1a1408;
    --bs-btn-hover-bg: var(--brand-accent);
    --bs-btn-hover-border-color: var(--brand-accent);
    --bs-btn-active-color: #1a1408;
    --bs-btn-active-bg: color-mix(in srgb, var(--brand-accent) 86%, #fff);
    --bs-btn-active-border-color: color-mix(in srgb, var(--brand-accent) 86%, #fff);
}

html[data-bs-theme="dark"] .btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-bg: color-mix(in srgb, var(--brand-primary) 72%, #fff);
    --bs-btn-border-color: color-mix(in srgb, var(--brand-primary) 72%, #fff);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: color-mix(in srgb, var(--brand-primary) 58%, #fff);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--brand-primary) 58%, #fff);
}

html[data-bs-theme="dark"] .page-link {
    color: var(--text);
    background: var(--bg-elev);
    border-color: var(--line);
}

html[data-bs-theme="dark"] .page-item.active .page-link {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #1a1408;
}

html[data-bs-theme="dark"] .app-body {
    --drive-bg: #000000;
    --drive-surface: #111111;
    --drive-soft: #1a1a1a;
    --drive-line: #2a2a2a;
    --drive-text: #ebe6dc;
    --drive-muted: #c4ccd4;
    --drive-accent: #fff;
    --drive-hover: #1a1a1a;
    background: var(--drive-bg);
    color: var(--drive-text);
}

html[data-bs-theme="dark"] .app-body .app-topbar,
html[data-bs-theme="dark"] .app-body .drive-page-head {
    background: color-mix(in srgb, var(--drive-bg, #0a0a0a) 94%, transparent);
}

html[data-bs-theme="dark"] .app-body .drive-page-head {
    box-shadow: 0 1px 0 #2a2a2a;
}

html[data-bs-theme="dark"] .app-body .create-btn,
html[data-bs-theme="dark"] .app-body .create-btn:hover {
    background: var(--drive-surface);
    color: var(--drive-text);
    box-shadow: 0 1px 0 color-mix(in srgb, #fff 6%, transparent);
}

html[data-bs-theme="dark"] .app-body .create-btn:hover {
    background: color-mix(in srgb, var(--brand-primary) 18%, var(--drive-surface));
}

html[data-bs-theme="dark"] .app-body .side-link:hover {
    background: color-mix(in srgb, var(--brand-primary) 18%, #111);
    color: var(--drive-text);
}

html[data-bs-theme="dark"] .app-body .filter-pill,
html[data-bs-theme="dark"] .app-body a.filter-pill {
    background: var(--drive-surface);
    border-color: var(--drive-line);
    color: var(--drive-text);
}

html[data-bs-theme="dark"] .app-body .filter-pill:hover,
html[data-bs-theme="dark"] .app-body .filter-pill.is-on,
html[data-bs-theme="dark"] .app-body a.filter-pill:hover,
html[data-bs-theme="dark"] .app-body a.filter-pill.is-on {
    background: color-mix(in srgb, var(--brand-primary) 22%, #111);
    border-color: color-mix(in srgb, var(--brand-primary) 40%, var(--drive-line));
    color: #fff;
}

html[data-bs-theme="dark"] .app-body .view-toggle {
    border-color: var(--drive-line);
}

html[data-bs-theme="dark"] .app-body .view-toggle button {
    background: var(--drive-surface);
    color: var(--drive-muted);
}

html[data-bs-theme="dark"] .app-body .view-toggle button.is-on {
    background: color-mix(in srgb, var(--brand-primary) 22%, #111);
    color: #fff;
}

html[data-bs-theme="dark"] .app-body .drive-tile {
    background: var(--drive-surface);
    border-color: var(--drive-line);
}

html[data-bs-theme="dark"] .app-body .kebab:hover {
    background: color-mix(in srgb, var(--brand-primary) 18%, #111);
    color: var(--drive-text);
}

html[data-bs-theme="dark"] .app-body .drive-search {
    background: color-mix(in srgb, var(--brand-primary) 22%, #111);
}

html[data-bs-theme="dark"] .app-body .drive-search:focus-within {
    background: var(--drive-surface);
}

html[data-bs-theme="dark"] .app-body .drive-tab.is-on {
    color: #fff;
}

html[data-bs-theme="dark"] .app-body .assemble {
    background:
        radial-gradient(120% 80% at 12% 0%, color-mix(in srgb, var(--brand-primary) 28%, transparent), transparent 52%),
        radial-gradient(90% 70% at 100% 100%, color-mix(in srgb, var(--brand-accent) 16%, #111), transparent 48%),
        #111;
}

html[data-bs-theme="dark"] .app-body .assemble-title,
html[data-bs-theme="dark"] .app-body .assemble-steps li {
    color: #fff;
}

html[data-bs-theme="dark"] .app-body .ai-log {
    background:
        radial-gradient(120% 80% at 8% 0%, color-mix(in srgb, var(--brand-primary) 26%, transparent), transparent 52%),
        radial-gradient(90% 70% at 100% 100%, color-mix(in srgb, var(--brand-accent) 14%, #111), transparent 46%),
        #111;
}

html[data-bs-theme="dark"] .app-body .ai-empty-title,
html[data-bs-theme="dark"] .app-body .ai-msg-text {
    color: #fff;
}

html[data-bs-theme="dark"] .app-body .ai-msg-body,
html[data-bs-theme="dark"] .app-body .ai-composer-core,
html[data-bs-theme="dark"] .app-body .ai-hints button {
    background: #111;
    border-color: #2a2a2a;
}

html[data-bs-theme="dark"] .app-body .ai-msg.is-user .ai-msg-body {
    background: color-mix(in srgb, var(--brand-primary) 22%, #111);
}

html[data-bs-theme="dark"] .app-body .ai-composer-core {
    box-shadow: 0 10px 28px rgb(0 0 0 / 35%);
}

html[data-bs-theme="dark"] .app-body .ai-composer-core textarea {
    background: transparent;
    border: 0;
    color: #fff;
}

html[data-bs-theme="dark"] .app-body .ai-mic {
    background: #0a0a0a;
    border-color: var(--drive-line);
    color: #fff;
}

html[data-bs-theme="dark"] .app-body .ai-mic:hover {
    color: #fff;
}

html[data-bs-theme="dark"] .app-body .ai-mic.is-on,
html[data-bs-theme="dark"] .app-body .ai-mic.is-on:hover {
    background: #c62828;
    border-color: #c62828;
    color: #fff;
}

html[data-bs-theme="dark"] .app-body .drive-details-thumb,
html[data-bs-theme="dark"] .app-body .drive-details-frame,
html[data-bs-theme="dark"] .app-body .drive-details-text,
html[data-bs-theme="dark"] .app-body .preview-frame,
html[data-bs-theme="dark"] .app-body .preview-text-editor {
    background: #0a0a0a;
    color: var(--drive-text);
}

html[data-bs-theme="dark"] .app-body .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--drive-text);
    --bs-table-border-color: var(--drive-line);
    --bs-table-striped-bg: color-mix(in srgb, var(--drive-soft) 70%, transparent);
    --bs-table-hover-bg: var(--drive-hover);
}

html[data-bs-theme="dark"] .app-body .form-control,
html[data-bs-theme="dark"] .app-body .form-select {
    background-color: #0a0a0a;
    border-color: var(--drive-line);
    color: var(--drive-text);
}

html[data-bs-theme="dark"] .app-body .form-control:focus,
html[data-bs-theme="dark"] .app-body .form-select:focus {
    background-color: #0a0a0a;
    color: var(--drive-text);
}

html[data-bs-theme="dark"] .app-body .dropdown-menu {
    --bs-dropdown-bg: var(--drive-surface);
    --bs-dropdown-link-color: var(--drive-text);
    --bs-dropdown-link-hover-color: var(--drive-text);
    --bs-dropdown-link-hover-bg: #222;
    --bs-dropdown-link-active-color: var(--drive-text);
    --bs-dropdown-link-active-bg: #2a2a2a;
    background: var(--drive-surface);
    border-color: var(--drive-line);
}

html[data-bs-theme="dark"] .app-body .dropdown-item {
    color: var(--drive-text);
}

html[data-bs-theme="dark"] .app-body .dropdown-menu .dropdown-item:hover,
html[data-bs-theme="dark"] .app-body .dropdown-menu .dropdown-item:focus,
html[data-bs-theme="dark"] .app-body .dropdown-item:hover,
html[data-bs-theme="dark"] .app-body .dropdown-item:focus {
    background: #222;
    background-color: #222;
    color: var(--drive-text);
}

html[data-bs-theme="dark"] .lx-row-menu-list {
    background: #161513;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

html[data-bs-theme="dark"] .lx-row-menu-list .dropdown-item-danger {
    color: #f0a8a0;
}

html[data-bs-theme="dark"] .app-body .icon-btn:hover,
html[data-bs-theme="dark"] .app-body .icon-btn:focus {
    background: #222;
    color: var(--drive-text);
}

html[data-bs-theme="dark"] .app-body .icon-btn-danger {
    color: #f0a8a0;
    border-color: color-mix(in srgb, #f0a8a0 28%, #2a2621);
}

html[data-bs-theme="dark"] .app-body .icon-btn-danger:hover,
html[data-bs-theme="dark"] .app-body .icon-btn-danger:focus {
    background: color-mix(in srgb, #8a2b2b 28%, #111);
    color: #f0b4b4;
}

html[data-bs-theme="dark"] .app-body .icon-btn-success {
    color: #81c995;
    border-color: color-mix(in srgb, #81c995 28%, #2a2621);
}

html[data-bs-theme="dark"] .app-body .icon-btn-success:hover,
html[data-bs-theme="dark"] .app-body .icon-btn-success:focus {
    background: color-mix(in srgb, #137333 28%, #111);
    color: #a8dab5;
}

html[data-bs-theme="dark"] .structure-row:hover,
html[data-bs-theme="dark"] .structure-row.is-drop-target {
    background: #1a1a1a;
}

html[data-bs-theme="dark"] .structure-row.is-locked {
    background: color-mix(in srgb, var(--brand-primary) 22%, #111);
}

html[data-bs-theme="dark"] .structure-lock-badge {
    background: color-mix(in srgb, var(--brand-primary) 28%, #111);
    color: #fff;
}

html[data-bs-theme="dark"] .structure-row .is-structure-lock.is-on {
    background: var(--brand-primary);
    color: #fff;
}

html[data-bs-theme="dark"] .structure-inline-form {
    background: #111;
    border-color: #2a2a2a;
    box-shadow: 0 8px 24px rgb(0 0 0 / 45%);
}

html[data-bs-theme="dark"] .app-body .crumbs a,
html[data-bs-theme="dark"] .app-body .crumbs a:hover,
html[data-bs-theme="dark"] .app-body .drive-name,
html[data-bs-theme="dark"] .app-body .drive-name:hover,
html[data-bs-theme="dark"] .app-body .drive-tile,
html[data-bs-theme="dark"] .app-body .drive-tile:hover,
html[data-bs-theme="dark"] .structure-name,
html[data-bs-theme="dark"] .structure-name:hover,
html[data-bs-theme="dark"] .app-body .shared-mark,
html[data-bs-theme="dark"] .app-body .shared-mark.is-link,
html[data-bs-theme="dark"] .app-body .kebab,
html[data-bs-theme="dark"] .app-body .kebab:hover,
html[data-bs-theme="dark"] .app-body .kebab.is-on,
html[data-bs-theme="dark"] .app-body .favorite-toggle,
html[data-bs-theme="dark"] .app-body .favorite-toggle.is-on,
html[data-bs-theme="dark"] .app-body .file-glyph,
html[data-bs-theme="dark"] .app-body .file-type-folder,
html[data-bs-theme="dark"] .app-body .file-type-text,
html[data-bs-theme="dark"] .app-body .file-type-other {
    color: #fff;
}

html[data-bs-theme="dark"] .app-body .file-type-word { color: #8ab4f8; }
html[data-bs-theme="dark"] .app-body .file-type-sheet { color: #81c995; }
html[data-bs-theme="dark"] .app-body .file-type-slide { color: #fdd663; }
html[data-bs-theme="dark"] .app-body .file-type-pdf { color: #f28b82; }
html[data-bs-theme="dark"] .app-body .file-type-image { color: #d7aefb; }
html[data-bs-theme="dark"] .app-body .file-type-media { color: #78d9ec; }

html[data-bs-theme="dark"] .structure-group {
    background: color-mix(in srgb, var(--brand-primary) 22%, #111);
    color: var(--drive-text);
}

html[data-bs-theme="dark"] .app-body .modal-content {
    background: var(--drive-surface);
    color: var(--drive-text);
}

html[data-bs-theme="dark"] .app-body .border {
    border-color: var(--drive-line) !important;
}

html[data-bs-theme="dark"] .app-body .text-secondary {
    color: var(--drive-muted) !important;
}

html[data-bs-theme="dark"] .app-body .alert-success {
    background: color-mix(in srgb, #3d6b4f 35%, var(--drive-surface));
    border-color: color-mix(in srgb, #3d6b4f 50%, var(--drive-line));
    color: #d7eadc;
}

html[data-bs-theme="dark"] .app-body .alert-danger {
    background: color-mix(in srgb, #8a2b2b 35%, var(--drive-surface));
    border-color: color-mix(in srgb, #8a2b2b 50%, var(--drive-line));
    color: #f0d4d4;
}

html[data-bs-theme="dark"] [data-theme-icon-dark] {
    display: none;
}

html[data-bs-theme="light"] [data-theme-icon-light] {
    display: none;
}

.theme-choice {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 16px;
    border: 1px solid var(--drive-line, var(--line));
    border-radius: 14px;
    background: var(--drive-surface, var(--bg-elev));
    color: var(--drive-text, var(--text));
    text-align: left;
}

.theme-choice:hover,
.theme-choice.is-on {
    background: var(--drive-hover, var(--bg-soft));
}

.theme-choice.is-on {
    border-color: color-mix(in srgb, var(--brand-accent) 55%, var(--drive-line, var(--line)));
}

.theme-choice i {
    font-size: 1.25rem;
}

.theme-choice-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.theme-choice-row > form {
    display: flex;
}

.theme-choice-row > form .theme-choice {
    flex: 1;
}

@media (max-width: 640px) {
    .theme-choice-row {
        grid-template-columns: 1fr;
    }
}

html[data-bs-theme="dark"] .app-body .sidebar-backdrop {
    background: rgba(0, 0, 0, 0.55);
}

html[data-bs-theme="dark"] .app-body .app-sidebar {
    background: var(--drive-bg, var(--bg));
}

html[data-bs-theme="dark"] #shareModal .modal-content,
html[data-bs-theme="dark"] #shareRevokeModal .modal-content {
    --lx-ink: #f4efe6;
    --lx-mute: #c8c0b4;
    --lx-line: #2d2a26;
    --lx-row: #1f1c18;
    --lx-chip: #2a2621;
    background: #141210;
    color: var(--lx-ink);
}

html[data-bs-theme="dark"] .lx-share-invite-core,
html[data-bs-theme="dark"] .lx-share-suggest,
html[data-bs-theme="dark"] .lx-share-scope-menu,
html[data-bs-theme="dark"] .lx-share-pick-menu,
html[data-bs-theme="dark"] .lx-share-more-core {
    background: #1f1c18;
}

html[data-bs-theme="dark"] .lx-share-input,
html[data-bs-theme="dark"] .lx-share-select,
html[data-bs-theme="dark"] .lx-share-switch-ui {
    background-color: #2a2621;
    color: #f4efe6;
}

html[data-bs-theme="dark"] .lx-share-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23f4efe6' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

html[data-bs-theme="dark"] .lx-share-more-toggle {
    color: #c8c0b4;
}

html[data-bs-theme="dark"] .lx-share-avatar {
    background: #c9a36a;
    color: #141210;
}

html[data-bs-theme="dark"] .lx-share-scope-icon {
    background: #2a2621;
    color: #f4efe6;
}

html[data-bs-theme="dark"] .lx-share-revoke {
    background: #2f2a24;
    color: #f4efe6;
}

html[data-bs-theme="dark"] .lx-share-invite-core input,
html[data-bs-theme="dark"] .lx-share-pick-toggle,
html[data-bs-theme="dark"] .lx-share-pick-menu button,
html[data-bs-theme="dark"] .lx-share-scope-toggle,
html[data-bs-theme="dark"] .lx-share-suggest-item,
html[data-bs-theme="dark"] .lx-share-scope-menu button,
html[data-bs-theme="dark"] .btn-close {
    color: var(--lx-ink);
}

html[data-bs-theme="dark"] #shareModal .btn-close,
html[data-bs-theme="dark"] #shareRevokeModal .btn-close {
    filter: invert(1) grayscale(1);
}

html[data-bs-theme="dark"] .lx-share-confirm-cancel {
    background: #2a2621;
    color: #f4efe6;
}

html[data-bs-theme="dark"] .lx-share-confirm-ok {
    background: #c45c48;
    color: #141210;
}

html[data-bs-theme="dark"] #documentModal .lx-doc-name-icon.is-docx {
    background: color-mix(in srgb, #8ab4f8 18%, #1f1c18);
    color: #8ab4f8;
}

html[data-bs-theme="dark"] #documentModal .lx-doc-name-icon.is-xlsx {
    background: color-mix(in srgb, #81c995 18%, #1f1c18);
    color: #81c995;
}

html[data-bs-theme="dark"] #documentModal .lx-doc-name-icon.is-pptx {
    background: color-mix(in srgb, #fdd663 18%, #1f1c18);
    color: #fdd663;
}

html[data-bs-theme="dark"] #documentModal .lx-doc-name-icon.is-pdf {
    background: color-mix(in srgb, #f28b82 18%, #1f1c18);
    color: #f28b82;
}

html[data-bs-theme="dark"] #documentModal .lx-doc-type-shell {
    background: color-mix(in srgb, #f4efe6 6%, transparent);
}

html[data-bs-theme="dark"] #documentModal .lx-doc-type-core {
    background: #1f1c18;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.04);
}

html[data-bs-theme="dark"] #documentModal .lx-doc-type-copy strong {
    color: #f4efe6;
}

html[data-bs-theme="dark"] #documentModal .lx-doc-type-copy span {
    color: #a89f92;
}

html[data-bs-theme="dark"] #documentModal .lx-doc-type.is-docx .lx-doc-type-mark {
    background: color-mix(in srgb, #8ab4f8 18%, #1f1c18);
    color: #8ab4f8;
}

html[data-bs-theme="dark"] #documentModal .lx-doc-type.is-xlsx .lx-doc-type-mark {
    background: color-mix(in srgb, #81c995 18%, #1f1c18);
    color: #81c995;
}

html[data-bs-theme="dark"] #documentModal .lx-doc-type.is-pptx .lx-doc-type-mark {
    background: color-mix(in srgb, #fdd663 18%, #1f1c18);
    color: #fdd663;
}

html[data-bs-theme="dark"] #documentModal .lx-doc-type.is-pdf .lx-doc-type-mark {
    background: color-mix(in srgb, #f28b82 18%, #1f1c18);
    color: #f28b82;
}

html[data-bs-theme="dark"] #documentModal .lx-doc-type.is-on .lx-doc-type-shell,
html[data-bs-theme="dark"] #documentModal .lx-doc-type:has(input:checked) .lx-doc-type-shell {
    background: color-mix(in srgb, #c9a36a 16%, transparent);
}

html[data-bs-theme="dark"] #documentModal .lx-doc-type.is-on .lx-doc-type-core,
html[data-bs-theme="dark"] #documentModal .lx-doc-type:has(input:checked) .lx-doc-type-core {
    background: #2a2621;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #c9a36a 28%, transparent);
}

html[data-bs-theme="dark"] #folderModal .lx-folder-step-label,
html[data-bs-theme="dark"] #folderModal .lx-folder-chosen-kicker {
    color: #a89f92;
}

html[data-bs-theme="dark"] #folderModal .lx-folder-pick-shell {
    background: color-mix(in srgb, #f4efe6 6%, transparent);
}

html[data-bs-theme="dark"] #folderModal .lx-folder-pick-core {
    background: #1f1c18;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.04);
}

html[data-bs-theme="dark"] #folderModal .lx-folder-option {
    color: #f4efe6;
}

html[data-bs-theme="dark"] #folderModal .lx-folder-option:hover,
html[data-bs-theme="dark"] #folderModal .lx-folder-option.is-on {
    background: color-mix(in srgb, #c9a36a 12%, transparent);
}

html[data-bs-theme="dark"] #folderModal .lx-folder-option-mark {
    background: #2a2621;
    color: #c8c0b4;
}

html[data-bs-theme="dark"] #folderModal .lx-folder-option.is-on .lx-folder-option-mark {
    background: color-mix(in srgb, #c9a36a 18%, #1f1c18);
    color: #c9a36a;
}

html[data-bs-theme="dark"] #folderModal .lx-folder-chosen {
    background: color-mix(in srgb, #c9a36a 12%, #1f1c18);
}

html[data-bs-theme="dark"] #folderModal .lx-folder-chosen-mark {
    background: #2a2621;
    color: #c9a36a;
}

html[data-bs-theme="dark"] #folderModal .lx-folder-chosen-copy strong {
    color: #f4efe6;
}

html[data-bs-theme="dark"] #impersonationExpiredModal .lx-notice-mark {
    background: color-mix(in srgb, #fdd663 18%, #1f1c18);
    color: #fdd663;
}

html[data-bs-theme="dark"] #impersonationExpiredModal .lx-notice-lead {
    color: #c8c0b4;
}
