[data-lsp-theme="light"],
[data-lsp-nav-theme="light"] :is(.top-bar-mobile, .bottom-nav, #lsp-bottom-sheet, .lsp-mini-msg) {
    --lsp-theme-scheme: light;
    --lsp-theme-canvas: #f6f4f0;
    --lsp-theme-surface: #fff;
    --lsp-theme-raised: #fff;
    --lsp-theme-heading: #22201e;
    --lsp-theme-text: #38332e;
    --lsp-theme-muted: #625a52;
    --lsp-theme-tint: #f5f1ec;
    --lsp-theme-field: #faf8f5;
    --lsp-theme-line: #d9d1c8;
    --lsp-theme-switch-off: #827a71;
    --lsp-theme-accent: #9b4215;
    --lsp-theme-on-accent: #28150a;
    --lsp-theme-success: #17683e;
    --lsp-theme-danger: #a82b26;
    --lsp-theme-violet: #6540a5;
}

[data-lsp-theme="light"] {
    color-scheme: light;
    background: var(--lsp-theme-canvas);
}

.lsp-appearance {
    padding: 10px 20px;
    margin-bottom: 16px;
    border: 1px solid var(--lsp-theme-line, rgba(255,255,255,0.06));
    border-radius: 16px;
    background: var(--lsp-theme-surface, #141414);
}

.lsp-appearance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.lsp-appearance-label {
    color: var(--lsp-theme-heading, #fff);
    font-size: 13px;
    font-weight: 600;
}

.lsp-appearance-switch {
    display: inline-flex;
    padding: 2px;
    border: 1px solid var(--lsp-theme-line, rgba(255,255,255,.12));
    border-radius: 999px;
    background: var(--lsp-theme-field, #202020);
}

.lsp-appearance-option { position: relative; cursor: pointer; }

.lsp-appearance-option > span {
    display: grid;
    place-items: center;
    min-width: 64px;
    min-height: 40px;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--lsp-theme-muted, #aaa);
    font-size: 12px;
    font-weight: 600;
}

.lsp-appearance-option > input:checked + span {
    background: var(--lsp-theme-heading, #fff);
    color: var(--lsp-theme-surface, #141414);
}

#lsp-appearance-status:not(.lsp-sr-only) {
    margin: 6px 0 0;
    color: var(--lsp-theme-danger, #ff7a70);
    font-size: 12px;
}

:where([data-lsp-theme="light"]) body.lsp-community-body {
    background: var(--lsp-theme-canvas);
    color: var(--lsp-theme-text);
}

[data-lsp-theme="light"] .sidebar-left,
[data-lsp-nav-theme="light"] :is(.top-bar-mobile, .bottom-nav),
[data-lsp-nav-theme="light"] #lsp-bottom-sheet .lsp-bottom-sheet {
    background-color: var(--lsp-theme-surface);
    border-color: var(--lsp-theme-line);
}

[data-lsp-theme="light"] .sidebar-right {
    background-color: var(--lsp-theme-canvas);
    border-color: var(--lsp-theme-line);
}

[data-lsp-theme="light"] .sidebar-left .sidebar-logo img {
    background: transparent;
    filter: brightness(0);
}

[data-lsp-theme="light"] .sidebar-logo > span:not(.lsp-beta-badge),
[data-lsp-theme="light"] :is(.sidebar-user-name, .suggestion-name, .sidebar-left .lsp-shell-back, .lsp-native-settings-inline h4),
[data-lsp-nav-theme="light"] :is(.top-bar-logo > span:not(.lsp-beta-badge), .top-bar-mobile .lsp-shell-back),
[data-lsp-nav-theme="light"] #lsp-bottom-sheet .lsp-native-settings-inline h4 {
    color: var(--lsp-theme-heading);
}

[data-lsp-theme="light"] :is(.sidebar-link, .sidebar-user-handle, .sidebar-disclosure-toggle, .sidebar-disclosure-count,
    .sidebar-right-title, .suggestion-desc, .lsp-native-settings-inline p),
[data-lsp-nav-theme="light"] :is(.top-bar-btn, .bottom-nav .nav-item),
[data-lsp-nav-theme="light"] #lsp-bottom-sheet :is(.lsp-bs-section-title, .lsp-native-settings-inline p) {
    color: var(--lsp-theme-muted);
}

[data-lsp-theme="light"] :is(.sidebar-link:hover, .sidebar-disclosure-toggle:hover, .sidebar-left .lsp-shell-back:hover,
    .sidebar-disclosure-count, .suggestion-card:hover, .trending-tag),
[data-lsp-nav-theme="light"] :is(.top-bar-btn, .top-bar-mobile .lsp-shell-back:hover),
[data-lsp-nav-theme="light"] #lsp-bottom-sheet :is(.lsp-mobile-menu-items, .lsp-bottom-sheet-item:hover) {
    background-color: var(--lsp-theme-tint);
    color: var(--lsp-theme-text);
}

[data-lsp-theme="light"] :is(.sidebar-link.active, .suggestion-btn, .trending-tag:hover),
[data-lsp-nav-theme="light"] :is(.top-bar-btn:hover, .bottom-nav .nav-item.active, .bottom-nav .nav-item.lsp-nav-loading),
[data-lsp-nav-theme="light"] #lsp-bottom-sheet .lsp-bottom-sheet-item.active {
    color: var(--lsp-theme-accent);
}

[data-lsp-theme="light"] .sidebar-left .lsp-beta-badge,
[data-lsp-nav-theme="light"] .top-bar-mobile .lsp-beta-badge { color: var(--lsp-theme-accent) !important; }

[data-lsp-theme="light"] :is(.sidebar-bottom, .lsp-native-settings-inline, .sidebar-left .nav-msg-badge),
[data-lsp-nav-theme="light"] :is(.top-bar-tier-badge, .top-bar-mobile .nav-msg-badge, .bottom-nav .nav-msg-badge),
[data-lsp-nav-theme="light"] #lsp-bottom-sheet .lsp-native-settings-inline {
    border-color: var(--lsp-theme-line);
}

[data-lsp-nav-theme="light"] .top-bar-logo img { background-color: #231d19; border-radius: 8px; }
[data-lsp-nav-theme="light"] .bottom-nav .nav-post-btn { color: var(--lsp-theme-on-accent); }
[data-lsp-nav-theme="light"] #lsp-bottom-sheet .lsp-bottom-sheet-item.active svg { stroke: currentColor; }
[data-lsp-nav-theme="light"] #lsp-bottom-sheet .lsp-bottom-sheet-item:not(.active) { color: var(--lsp-theme-text); }
[data-lsp-nav-theme="light"] #lsp-bottom-sheet .lsp-bottom-sheet-grip,
[data-lsp-nav-theme="light"] #lsp-bottom-sheet .lsp-mobile-menu-items > .lsp-bottom-sheet-item + .lsp-bottom-sheet-item::before {
    background-color: var(--lsp-theme-line);
}

/* Le rail d’univers est partagé par l’accueil et Explorer. */
[data-lsp-theme="light"] :is(.lsp-hub, .lsp-explore-page) .lsp-universe-section .lsp-photo-category-thumb {
    background: var(--lsp-home-media-fallback, #e9e0d6);
    border-color: var(--lsp-theme-line);
}
[data-lsp-theme="light"] :is(.lsp-hub, .lsp-explore-page) .lsp-universe-section .lsp-photo-category-thumb::after {
    background-color: rgba(var(--lsp-home-paper-rgb, 255, 252, 248), .44);
}
[data-lsp-theme="light"] :is(.lsp-hub, .lsp-explore-page) .lsp-universe-section .lsp-photo-category-img { filter: grayscale(.65) saturate(.75); }
[data-lsp-theme="light"] :is(.lsp-hub, .lsp-explore-page) .lsp-universe-section .lsp-photo-category-ic { color: var(--lsp-theme-heading); filter: drop-shadow(0 1px 3px #fff); }
[data-lsp-theme="light"] :is(.lsp-hub, .lsp-explore-page) .lsp-universe-section .lsp-photo-category-label { color: var(--lsp-theme-muted); }
[data-lsp-theme="light"] :is(.lsp-hub, .lsp-explore-page) .lsp-universe-section .lsp-photo-category:hover .lsp-photo-category-label { color: var(--lsp-theme-accent); }

[data-lsp-theme="light"] .lsp-settings-page :is(input, textarea)::placeholder {
    color: var(--lsp-theme-muted);
    opacity: 1;
}

[data-lsp-theme="light"] .lsp-settings-page :focus-visible,
.lsp-appearance-option > input:focus-visible + span {
    outline: 2px solid var(--lsp-theme-accent, #ff914d);
    outline-offset: 2px;
}
