/* theme-graphite.css — GENERAT per scripts/build_theme_graphite.py, no editar a mà.
 * Tema fosc per defecte en grafit neutre: <html data-theme="dark"> sense data-tone. */

/* ── app-ui.css ── */
[data-theme="dark"]:not([data-tone]) .pg-switch:checked::before {
    background: #17171a;
}

/* ── auth.css ── */
[data-theme="dark"]:not([data-tone]) {
    --gnav-bar: #17171a;
    --bg: #121214;
    --text: #ebebed;
}

/* ── base_private.css ── */
html[data-theme="dark"]:not([data-tone]) {
    background-color: #121214;
}
[data-theme="dark"]:not([data-tone]) {
    --bg: #121214;
    --surface: rgba(32, 32, 36, 0.92);
    --surface-solid: #222226;
    --surface-hover: #2b2b31;
    --text: #ebebed;
    --text-muted: #92929e;
    --text-faint: #5a5a65;
    --fsearch-bg: rgba(23, 23, 26, 0.75);
}
[data-theme="dark"]:not([data-tone]) .top-navbar {
    background: rgba(32, 32, 36, 0.97);
}
[data-theme="dark"]:not([data-tone]) .top-navbar.scrolled {
    background: rgba(32, 32, 36, 0.95);
}
[data-theme="dark"]:not([data-tone]) .bottom-nav {
    background: rgba(32, 32, 36, 0.96) !important;
}

/* ── dark-mode.css ── */
[data-theme="dark"]:not([data-tone]) .date-header__weekday {
    color: #ebebed;
}
[data-theme="dark"]:not([data-tone]) .date-header h4 {
    color: #d1d1d7;
}
[data-theme="dark"]:not([data-tone]) .btn-toolbar-pill {
    background: #2b2b31;
    color: #d1d1d7;
}
[data-theme="dark"]:not([data-tone]) .btn-toolbar-pill:hover {
    background: #35353b;
    color: #ebebed;
}
[data-theme="dark"]:not([data-tone]) .filters-panel {
    background: #222226;
}
[data-theme="dark"]:not([data-tone]) .filter-label {
    color: #92929e;
}
[data-theme="dark"]:not([data-tone]) #collection-dropdown {
    background: #27272b;
}
[data-theme="dark"]:not([data-tone]) #collection-dropdown .collection-option:hover {
    background: #35353b !important;
}
[data-theme="dark"]:not([data-tone]) #collection-dropdown .collection-option {
    color: #d1d1d7;
}
[data-theme="dark"]:not([data-tone]) #filters-container .form-control,
[data-theme="dark"]:not([data-tone]) #filters-container .form-select,
[data-theme="dark"]:not([data-tone]) #filters-container .mfp-chip-field,
[data-theme="dark"]:not([data-tone]) #filters-container .mfp-chip-input {
    background-color: #2b2b31 !important;
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) #filters-container .form-control::placeholder,
[data-theme="dark"]:not([data-tone]) #filters-container .mfp-chip-input::placeholder {
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) #filters-container .form-control:focus,
[data-theme="dark"]:not([data-tone]) #filters-container .form-select:focus,
[data-theme="dark"]:not([data-tone]) #filters-container .mfp-chip-field:focus-within,
[data-theme="dark"]:not([data-tone]) #filters-container .mfp-chip-input:focus {
    background-color: #35353b !important;
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) #filters-container .form-select option {
    background: #222226;
    color: #ebebed;
}
[data-theme="dark"]:not([data-tone]) #filters-container .mfp-section-label {
    color: #92929e !important;
}
[data-theme="dark"]:not([data-tone]) #filters-container .mfp-dropdown {
    background: #27272b !important;
    color: #d1d1d7 !important;
}
[data-theme="dark"]:not([data-tone]) #selection-bar {
    background: rgba(26, 26, 30, 0.97) !important;
}
[data-theme="dark"]:not([data-tone]) .sbar-count {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .sbar-cancel {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .sbar-pin {
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) .sbar-btn {
    color: #d1d1d7 !important;
}
[data-theme="dark"]:not([data-tone]) #search-query-label {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) #btn-clear-search {
    color: #92929e !important;
}
[data-theme="dark"]:not([data-tone]) #btn-clear-search:hover {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .photo-info-panel {
    background: rgba(23, 23, 25, 0.95) !important;
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .info-filename {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .info-filename i {
    color: #646470 !important;
}
[data-theme="dark"]:not([data-tone]) .info-meta-line {
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) .info-meta-item i {
    color: #585863 !important;
}
[data-theme="dark"]:not([data-tone]) .info-meta-dot {
    color: #43434c !important;
}
[data-theme="dark"]:not([data-tone]) .info-icon-btn {
    color: #838391 !important;
}
[data-theme="dark"]:not([data-tone]) .info-icon-btn:hover {
    color: #e0e0e4 !important;
}
[data-theme="dark"]:not([data-tone]) .pv-tab {
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) .pv-tab:hover {
    color: #bcbcc4 !important;
}
[data-theme="dark"]:not([data-tone]) .pv-tab--active {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .info-badge {
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) .info-row {
    color: #ababb5 !important;
}
[data-theme="dark"]:not([data-tone]) .info-row i {
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) .info-btn {
    color: #c0c0c8 !important;
}
[data-theme="dark"]:not([data-tone]) .info-btn:hover {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .info-btn i {
    color: #646470 !important;
}
[data-theme="dark"]:not([data-tone]) .info-collections-group-label {
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) .info-collections-group-label i.fa-folder {
    color: #585863 !important;
}
[data-theme="dark"]:not([data-tone]) .info-collections-add-btn {
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) .info-collections-add-btn:hover {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .info-collections-chip i.fa-spinner {
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) .info-collections-chip a {
    color: #c0c0c8 !important;
}
[data-theme="dark"]:not([data-tone]) .info-collections-remove-btn {
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) .info-shared-chip {
    color: #c0c0c8 !important;
}
[data-theme="dark"]:not([data-tone]) .info-section-heading {
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) .info-versions-count {
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) .edit-version-thumb--orig {
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) .edit-version-name {
    color: #d1d1d7 !important;
}
[data-theme="dark"]:not([data-tone]) .edit-version-date {
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) .modal-nav-btn {
    background: rgba(38, 38, 42, 0.9) !important;
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .modal-nav-btn:hover {
    background: rgba(53, 53, 59, 0.97) !important;
}
[data-theme="dark"]:not([data-tone]) .ui-modal {
    background: #222226 !important;
}
[data-theme="dark"]:not([data-tone]) .ui-modal-title {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .ui-modal-subtitle {
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) .ui-modal-body-text {
    color: #ababb5 !important;
}
[data-theme="dark"]:not([data-tone]) .ui-modal-section-label {
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) .ui-modal-close {
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) .ui-modal-close:hover {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .ui-btn--ghost {
    color: #92929e !important;
}
[data-theme="dark"]:not([data-tone]) .ui-btn--ghost:hover {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .ui-input {
    background: #151518 !important;
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .ui-input:focus {
    background: #1d1d21 !important;
}
[data-theme="dark"]:not([data-tone]) .ui-input::placeholder {
    color: #55555f !important;
}
[data-theme="dark"]:not([data-tone]) .ui-input[readonly] {
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) .ui-user-item {
    color: #d1d1d7 !important;
}
[data-theme="dark"]:not([data-tone]) .ui-user-item:hover {
    background: #2b2b31 !important;
}
[data-theme="dark"]:not([data-tone]) .ui-user-item .user-date {
    color: #737382 !important;
}
[data-theme="dark"]:not([data-tone]) .ui-info-note {
    color: #9797a3 !important;
}
[data-theme="dark"]:not([data-tone]) .collection-card {
    background: #222226 !important;
}
[data-theme="dark"]:not([data-tone]) .collection-name {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .collection-description {
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) .empty-cover {
    background: linear-gradient(135deg, #1e1e22 0%, #252529 100%) !important;
}
[data-theme="dark"]:not([data-tone]) .empty-cover i {
    color: #45454d !important;
}
[data-theme="dark"]:not([data-tone]) .btn-card-action {
    background: #2b2b31 !important;
    color: #d1d1d7 !important;
}
[data-theme="dark"]:not([data-tone]) .btn-card-action:hover {
    background: #35353b !important;
}
[data-theme="dark"]:not([data-tone]) .page-title {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .search-collections {
    background: #222226 !important;
}
[data-theme="dark"]:not([data-tone]) .search-collections i {
    color: #737382 !important;
}
[data-theme="dark"]:not([data-tone]) .search-collections input {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .search-collections input::placeholder {
    color: #55555f !important;
}
[data-theme="dark"]:not([data-tone]) .section-title {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) #searchResults {
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) .upload-card {
    background: #222226 !important;
}
[data-theme="dark"]:not([data-tone]) .upload-card h6 {
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) .drop-zone {
    background: #1d1d21 !important;
}
[data-theme="dark"]:not([data-tone]) .drop-zone p {
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) .progress-card {
    background: #222226 !important;
}
[data-theme="dark"]:not([data-tone]) .progress-header {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .progress {
    background: #151518 !important;
}
[data-theme="dark"]:not([data-tone]) .collection-check-item {
    color: #d1d1d7 !important;
}
[data-theme="dark"]:not([data-tone]) .collection-check-item:hover {
    background: #2b2b31 !important;
}
[data-theme="dark"]:not([data-tone]) .empty-collections {
    color: #737382 !important;
}
[data-theme="dark"]:not([data-tone]) #collectionDropdown {
    background: #27272b !important;
}
[data-theme="dark"]:not([data-tone]) #collectionDropdown .collection-dropdown-opt {
    color: #d1d1d7 !important;
}
[data-theme="dark"]:not([data-tone]) #collectionSearchInput {
    background: #1d1d21 !important;
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) #collectionSearchInput::placeholder {
    color: #55555f !important;
}
[data-theme="dark"]:not([data-tone]) .config-card {
    background: #222226 !important;
}
[data-theme="dark"]:not([data-tone]) .config-card h2 {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .config-card > p {
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) .config-section-title {
    color: #737382 !important;
}
[data-theme="dark"]:not([data-tone]) .config-label {
    color: #d1d1d7 !important;
}
[data-theme="dark"]:not([data-tone]) .config-desc {
    color: #737382 !important;
}
[data-theme="dark"]:not([data-tone]) .save-btn:disabled {
    background: #35353b !important;
}
[data-theme="dark"]:not([data-tone]) .session-item {
    background: #1d1d21 !important;
}
[data-theme="dark"]:not([data-tone]) .session-device {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .session-meta {
    color: #737382 !important;
}
[data-theme="dark"]:not([data-tone]) .sessions-empty {
    color: #737382 !important;
}
[data-theme="dark"]:not([data-tone]) div[style*="background: #f8f8fc"] {
    background: #0e0e10 !important;
}
[data-theme="dark"]:not([data-tone]) .sidebar {
    background: #222226 !important;
}
[data-theme="dark"]:not([data-tone]) .sidebar-header {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .panel-title {
    color: #737382 !important;
}
[data-theme="dark"]:not([data-tone]) .adjustment-label {
    color: #ababb5 !important;
}
[data-theme="dark"]:not([data-tone]) .adjustment-value {
    color: #737382 !important;
}
[data-theme="dark"]:not([data-tone]) .canvas-area {
    background: #0b0b0c !important;
}
[data-theme="dark"]:not([data-tone]) .search-loading-text {
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) #collection-color-legend span,
[data-theme="dark"]:not([data-tone]) [id^="user-color-legend-"] span {
    background: #27272b !important;
    color: #d1d1d7 !important;
}
[data-theme="dark"]:not([data-tone]) .text-muted {
    color: #737382 !important;
}
[data-theme="dark"]:not([data-tone]) .badge.bg-primary {
    color: #0e0e10 !important;
}
[data-theme="dark"]:not([data-tone]) .list-group-item {
    background: #222226 !important;
    color: #d1d1d7 !important;
}
[data-theme="dark"]:not([data-tone]) .list-group-item:hover,
[data-theme="dark"]:not([data-tone]) .list-group-item-action:hover {
    background: #2b2b31 !important;
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .modal-header {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .modal-title {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .alert-info {
    color: #9797a3 !important;
}
[data-theme="dark"]:not([data-tone]) .btn-outline-secondary {
    color: #92929e !important;
}
[data-theme="dark"]:not([data-tone]) .btn-outline-secondary:hover {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .btn-outline-light {
    color: #d1d1d7 !important;
}
[data-theme="dark"]:not([data-tone]) .btn-link.text-dark {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) [style*="color: #1a1a2e"],
[data-theme="dark"]:not([data-tone]) [style*="color:#1a1a2e"] {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) [style*="color: #6b6b80"],
[data-theme="dark"]:not([data-tone]) [style*="color:#6b6b80"] {
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) [style*="color: #8888a0"],
[data-theme="dark"]:not([data-tone]) [style*="color:#8888a0"] {
    color: #6a6a78 !important;
}
[data-theme="dark"]:not([data-tone]) [style*="background: white"],
[data-theme="dark"]:not([data-tone]) [style*="background:white"],
[data-theme="dark"]:not([data-tone]) [style*="background-color: white"],
[data-theme="dark"]:not([data-tone]) [style*="background-color:white"] {
    background: #222226 !important;
}
[data-theme="dark"]:not([data-tone]) .empty-state {
    color: #737382 !important;
}
[data-theme="dark"]:not([data-tone]) .empty-state h4 {
    color: #ababb5 !important;
}
[data-theme="dark"]:not([data-tone]) .empty-state p {
    color: #737382 !important;
}
[data-theme="dark"]:not([data-tone]) .hist-header h2 {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .hist-total {
    background: #2b2b31 !important;
    color: #92929e !important;
}
[data-theme="dark"]:not([data-tone]) .hist-filter-btn {
    background: #27272b !important;
    color: #ababb5 !important;
}
[data-theme="dark"]:not([data-tone]) .hist-filter-btn:hover {
    background: #35353b !important;
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .hist-filter-btn.active {
    background: #ebebed !important;
    color: #121214 !important;
    border-color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .hist-table-wrap {
    background: #222226 !important;
}
[data-theme="dark"]:not([data-tone]) .hist-table thead th {
    background: #1d1d21 !important;
    color: #737382 !important;
}
[data-theme="dark"]:not([data-tone]) .hist-table tbody tr:hover {
    background: #2b2b31 !important;
}
[data-theme="dark"]:not([data-tone]) .hist-thumb-placeholder {
    background: #2b2b31 !important;
    color: #737382 !important;
}
[data-theme="dark"]:not([data-tone]) .hist-filename {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .hist-orig-filename {
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) .hist-badge--skipped {
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) .hist-msg {
    color: #92929e !important;
}
[data-theme="dark"]:not([data-tone]) .hist-table td[style*="color:#8888a0"],
[data-theme="dark"]:not([data-tone]) .hist-table td[style*="color: #8888a0"] {
    color: #737382 !important;
}
[data-theme="dark"]:not([data-tone]) .hist-date {
    color: #737382 !important;
}
[data-theme="dark"]:not([data-tone]) .hist-load-btn {
    background: #27272b !important;
    color: #d1d1d7 !important;
}
[data-theme="dark"]:not([data-tone]) .hist-load-btn:hover {
    background: #35353b !important;
}
[data-theme="dark"]:not([data-tone]) .hist-empty {
    color: #737382 !important;
}
[data-theme="dark"]:not([data-tone]) .hist-table td > span[style*="color:#8888a0"],
[data-theme="dark"]:not([data-tone]) .hist-table td > *[style*="color: #8888a0"] {
    color: #5a5a65 !important;
}

/* ── explora.css ── */
[data-theme="dark"]:not([data-tone]) .xp-search:focus-within {
    background: var(--surface-solid, #222226);
}
[data-theme="dark"]:not([data-tone]) .xp-ctx-sheet {
    background: #222226;
}
[data-theme="dark"]:not([data-tone]) #xpCtxModal .modal-content {
    background: rgba(32, 32, 36, 0.97) !important;
}
[data-theme="dark"]:not([data-tone]) .xp-ident-avatar {
    border-color: var(--surface-solid, #222226);
}

/* ── filters-panel.css ── */
[data-theme="dark"]:not([data-tone]) {
    --fp-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23a5a5af' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
}

/* ── flash-modal.css ── */
[data-theme="dark"]:not([data-tone]) #flashModal .ui-modal-title {
    color: #ebebed;
}
[data-theme="dark"]:not([data-tone]) #flashModal .ui-modal-body-text {
    color: #c9c9cf;
}

/* ── gallery-modal-ui.css ── */
[data-theme="dark"]:not([data-tone]) .modal-action-bar {
    background: rgba(23, 23, 26, 0.62) !important;
}
[data-theme="dark"]:not([data-tone]) .modal-action-btn {
    color: rgba(235, 235, 237, 0.65) !important;
}
[data-theme="dark"]:not([data-tone]) .modal-action-btn:hover {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .modal-action-btn--close {
    color: rgba(235, 235, 237, 0.4) !important;
}
[data-theme="dark"]:not([data-tone]) .modal-action-btn--close:hover {
    color: rgba(235, 235, 237, 0.85) !important;
}
[data-theme="dark"]:not([data-tone]) .photo-info-panel {
    background: rgba(23, 23, 26, 0.68) !important;
}
[data-theme="dark"]:not([data-tone]) .photo-info-panel .info-filename {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .photo-info-panel .info-row {
    color: rgba(235, 235, 237, 0.55) !important;
}
[data-theme="dark"]:not([data-tone]) .photo-info-panel .info-row i {
    color: rgba(235, 235, 237, 0.4) !important;
}
[data-theme="dark"]:not([data-tone]) .photo-info-panel .info-btn {
    color: rgba(235, 235, 237, 0.65) !important;
}
[data-theme="dark"]:not([data-tone]) .photo-info-panel .info-btn:hover {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .hist-header h2 {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .hist-total {
    background: #2b2b31 !important;
    color: #7d7d8b !important;
}
[data-theme="dark"]:not([data-tone]) .hist-filter-btn {
    background: #27272b !important;
    color: #ababb5 !important;
}
[data-theme="dark"]:not([data-tone]) .hist-filter-btn:hover {
    background: #35353b !important;
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .hist-table-wrap {
    background: #222226 !important;
}
[data-theme="dark"]:not([data-tone]) .hist-table thead th {
    background: #1d1d21 !important;
    color: #737382 !important;
}
[data-theme="dark"]:not([data-tone]) .hist-table tbody tr:hover {
    background: #2b2b31 !important;
}
[data-theme="dark"]:not([data-tone]) .hist-thumb-placeholder {
    background: #2b2b31 !important;
    color: #55555f !important;
}
[data-theme="dark"]:not([data-tone]) .hist-filename {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .hist-orig-filename {
    color: #737382 !important;
}
[data-theme="dark"]:not([data-tone]) .hist-badge--skipped {
    color: #737382 !important;
}
[data-theme="dark"]:not([data-tone]) .hist-msg {
    color: #92929e !important;
}
[data-theme="dark"]:not([data-tone]) .hist-date {
    color: #737382 !important;
}
[data-theme="dark"]:not([data-tone]) .hist-load-btn {
    background: #27272b !important;
    color: #d1d1d7 !important;
}
[data-theme="dark"]:not([data-tone]) .hist-load-btn:hover {
    background: #35353b !important;
}
[data-theme="dark"]:not([data-tone]) .hist-empty {
    color: #737382 !important;
}
[data-theme="dark"]:not([data-tone]) .hist-table td {
    color: #d1d1d7 !important;
}
[data-theme="dark"]:not([data-tone]) .map-title {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .map-count-pill {
    background: #27272b !important;
    color: #92929e !important;
}
[data-theme="dark"]:not([data-tone]) .map-toolbar {
    background: rgba(18, 18, 20, 0.96) !important;
}
[data-theme="dark"]:not([data-tone]) .map-toolbar-btn {
    background: #27272b !important;
    color: #d1d1d7 !important;
}
[data-theme="dark"]:not([data-tone]) .map-toolbar-btn:hover {
    background: #35353b !important;
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .leaflet-control-zoom a {
    background: #27272b !important;
    color: #d1d1d7 !important;
}
[data-theme="dark"]:not([data-tone]) .leaflet-control-zoom a:hover {
    background: #35353b !important;
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .leaflet-popup-content-wrapper {
    background: #222226 !important;
}
[data-theme="dark"]:not([data-tone]) .leaflet-popup-tip {
    background: #222226 !important;
}
[data-theme="dark"]:not([data-tone]) .popup-filename {
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .popup-inner {
    background: #222226 !important;
}
[data-theme="dark"]:not([data-tone]) .edit-container {
    background: #0e0e10 !important;
}
[data-theme="dark"]:not([data-tone]) .canvas-area {
    background: #0a0a0b !important;
}
[data-theme="dark"]:not([data-tone]) .sidebar {
    background: #222226 !important;
}
[data-theme="dark"]:not([data-tone]) .sidebar-header {
    color: #ebebed !important;
    background: #222226 !important;
}
[data-theme="dark"]:not([data-tone]) .sidebar-section-title {
    color: #5b5b67 !important;
}
[data-theme="dark"]:not([data-tone]) .edit-tool-btn {
    background: #2b2b31 !important;
    color: #ababb5 !important;
}
[data-theme="dark"]:not([data-tone]) .edit-tool-btn:hover {
    background: #35353b !important;
    color: #ebebed !important;
}
[data-theme="dark"]:not([data-tone]) .adj-slider-row {
    color: #ababb5 !important;
}
[data-theme="dark"]:not([data-tone]) .adj-label {
    color: #92929e !important;
}
[data-theme="dark"]:not([data-tone]) .adj-val {
    color: #737382 !important;
    background: #1d1d21 !important;
}
[data-theme="dark"]:not([data-tone]) .filter-preset-btn {
    background: #2b2b31 !important;
    color: #ababb5 !important;
}
[data-theme="dark"]:not([data-tone]) .edit-footer {
    background: #222226 !important;
}
[data-theme="dark"]:not([data-tone]) .crop-info-bar {
    background: rgba(34, 34, 38, 0.95) !important;
    color: #d1d1d7 !important;
}
[data-theme="dark"]:not([data-tone]) .histogram-canvas {
    background: #151518 !important;
}
[data-theme="dark"]:not([data-tone]) .tab-nav {
    background: #1d1d21 !important;
}
[data-theme="dark"]:not([data-tone]) .tab-btn {
    color: #737382 !important;
}
[data-theme="dark"]:not([data-tone]) .tab-btn.active {
    color: #ebebed !important;
    background: #2b2b31 !important;
}
[data-theme="dark"]:not([data-tone]) .tab-btn:hover {
    color: #ababb5 !important;
}

/* ── gallery-placeholder.css ── */
[data-theme="dark"]:not([data-tone]) img.lazy-preview {
    background-color: #222226;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 80'%3E%3Cpolygon points='10,70 45,20 80,70' fill='%233b3b43' /%3E%3Cpolygon points='40,70 75,28 110,70' fill='%23323238' /%3E%3Ccircle cx='22' cy='18' r='10' fill='%23414149' /%3E%3C/svg%3E");
}

/* ── gallery-selection.css ── */
@media (min-width: 769px) {
[data-theme="dark"]:not([data-tone]) #selection-bar {
    background: rgba(32, 32, 36, 0.97) !important;
}
}

/* ── gallery-toolbar.css ── */
[data-theme="dark"]:not([data-tone]) #toggle-filters:not(.active) {
    background: rgba(32, 32, 36, 0.97) !important;
    color: var(--text-muted, #92929e) !important;
}
[data-theme="dark"]:not([data-tone]) #toggle-filters:hover:not(.active):not(.fab-hidden) {
    background: var(--surface-hover, #2b2b31) !important;
    color: var(--text, #ebebed) !important;
}
[data-theme="dark"]:not([data-tone]) .btn-toolbar-pill {
    background: #2b2b31;
    color: #ebebed;
}
[data-theme="dark"]:not([data-tone]) .btn-toolbar-pill:hover {
    background: #34343a;
}

/* ── navbar.css ── */
[data-theme="dark"]:not([data-tone]) {
    --gnav-bar: #17171a;
    --gnav-ink: #f0f0f2;
}

/* ── settings.css ── */
[data-theme="dark"]:not([data-tone]) .cfg-toggle input:checked + .cfg-toggle-slider::before {
    background: #17171a;
}

/* ── share-permissions.css ── */
[data-theme="dark"]:not([data-tone]) .sp-privacy-hint {
    color: #696976;
}
[data-theme="dark"]:not([data-tone]) .sp-preset-btn {
    color: #ababb5;
}
[data-theme="dark"]:not([data-tone]) .sp-perm-icon {
    color: #ababb5;
}
[data-theme="dark"]:not([data-tone]) .sp-perm-label {
    color: #ebebed;
}
[data-theme="dark"]:not([data-tone]) .sp-perm-desc {
    color: #737382;
}
[data-theme="dark"]:not([data-tone]) .sp-extra-label {
    color: #ababb5;
}
[data-theme="dark"]:not([data-tone]) .sp-extra-hint {
    color: #737382;
}

/* ── shared-link.css ── */
[data-theme="dark"]:not([data-tone]) {
    --gnav-bar: #17171a;
    --bg: #121214;
    --surface: rgba(32, 32, 36, 0.92);
    --surface-solid: #222226;
    --surface-hover: #2b2b31;
    --text: #ebebed;
    --text-muted: #92929e;
    --text-faint: #5a5a65;
}
html[data-theme="dark"]:not([data-tone]) {
    background-color: #121214;
}
