/* Rumic Tools — temas por página.
   Este archivo sigue DELIBERADAMENTE el mismo patrón que Mensajes automáticos:
   cada tema declara colores explícitos para superficies, controles, campos,
   textos y estados. Se carga después de las hojas específicas de cada página. */

/* ---------- Tema OSCURO ---------- */
body.theme-dark.dashboard-body,
body.theme-dark.editor-page,
body.theme-dark.login-page{background:#080b13!important;color:#e8ebf4!important;color-scheme:dark}
body.theme-dark.dashboard-body .dash-sidebar{background:#0b0f18!important;border-color:#252d40!important}
body.theme-dark.dashboard-body .dash-header{background:rgba(16,21,34,.94)!important;border-color:#252d40!important;color:#e8ebf4!important}
body.theme-dark.dashboard-body .dash-panel,
body.theme-dark.dashboard-body .stat-card,
body.theme-dark.dashboard-body .dashboard-note,
body.theme-dark.dashboard-body .server-menu,
body.theme-dark.dashboard-body .user-menu,
body.theme-dark.dashboard-body .dash-toast,
body.theme-dark.dashboard-body .log-card,
body.theme-dark.dashboard-body .log-list,
body.theme-dark.dashboard-body .settings-card,
body.theme-dark.dashboard-body .task-config,
body.theme-dark.dashboard-body .task-permissions,
body.theme-dark.dashboard-body .task-create,
body.theme-dark.dashboard-body .task-list,
body.theme-dark.dashboard-body .assignment-summary,
body.theme-dark.dashboard-body .assignment-card,
body.theme-dark.dashboard-body .audit-list,
body.theme-dark.dashboard-body .task-modal,
body.theme-dark.dashboard-body .task-image-dialog,
body.theme-dark.dashboard-body .library-toolbar,
body.theme-dark.dashboard-body .library-panel,
body.theme-dark.dashboard-body .library-send,
body.theme-dark.dashboard-body .upload-panel,
body.theme-dark.dashboard-body .files-panel,
body.theme-dark.dashboard-body .file-tile,
body.theme-dark.dashboard-body .component-builder,
body.theme-dark.dashboard-body .component-preview-panel,
body.theme-dark.dashboard-body .component-help,
body.theme-dark.dashboard-body .saved-components,
body.theme-dark.dashboard-body .automation-item,
body.theme-dark.dashboard-body .automation-list-panel,
body.theme-dark.dashboard-body .automation-editor,
body.theme-dark.dashboard-body .automation-help{background:#131a2a!important;color:#e8ebf4!important;border-color:#2b3650!important}
body.theme-dark.dashboard-body .dash-nav-item{color:#e8ebf4!important}
body.theme-dark.dashboard-body .dash-nav-item:hover{background:#171f31!important}
body.theme-dark.dashboard-body .dash-nav-item.active{background:linear-gradient(135deg,#6b58e6,#5140bb)!important;color:#fff!important}
body.theme-dark.dashboard-body .dash-title-row h1,
body.theme-dark.dashboard-body h2,
body.theme-dark.dashboard-body h3,
body.theme-dark.dashboard-body .quick-grid strong{color:#e8ebf4!important}
body.theme-dark.dashboard-body .dash-title-row p,
body.theme-dark.dashboard-body .dash-sidebar-foot,
body.theme-dark.dashboard-body .muted,
body.theme-dark.dashboard-body .stat-card small,
body.theme-dark.dashboard-body .activity-item p,
body.theme-dark.dashboard-body .activity-item time,
body.theme-dark.dashboard-body .automation-main p,
body.theme-dark.dashboard-body .automation-editor label,
body.theme-dark.dashboard-body .automation-help p,
body.theme-dark.dashboard-body .log-time,
body.theme-dark.dashboard-body .log-type,
body.theme-dark.dashboard-body .log-empty,
body.theme-dark.dashboard-body .settings-head p,
body.theme-dark.dashboard-body .setting-row small,
body.theme-dark.dashboard-body .field-label,
body.theme-dark.dashboard-body .action-note,
body.theme-dark.dashboard-body .preview-text{color:#8f99ad!important}
body.theme-dark.dashboard-body .panel-head,
body.theme-dark.dashboard-body .activity-item,
body.theme-dark.dashboard-body .task-subnav,
body.theme-dark.dashboard-body .task-row,
body.theme-dark.dashboard-body .log-row{border-color:#2b3650!important}
body.theme-dark.dashboard-body .server-switcher,
body.theme-dark.dashboard-body .user-switcher,
body.theme-dark.dashboard-body .quick-grid button,
body.theme-dark.dashboard-body .outline-button,
body.theme-dark.dashboard-body .filter,
body.theme-dark.dashboard-body .row-button,
body.theme-dark.dashboard-body .file-actions button,
body.theme-dark.dashboard-body .task-actions button,
body.theme-dark.dashboard-body .annotation-actions button,
body.theme-dark.dashboard-body .automation-actions button,
body.theme-dark.dashboard-body .ghost-button,
body.theme-dark.dashboard-body .contact-button{background:#171f31!important;color:#e8ebf4!important;border-color:#303b55!important}
body.theme-dark.dashboard-body .server-switcher:hover,
body.theme-dark.dashboard-body .user-switcher:hover,
body.theme-dark.dashboard-body .quick-grid button:hover,
body.theme-dark.dashboard-body .outline-button:hover,
body.theme-dark.dashboard-body .filter:hover,
body.theme-dark.dashboard-body .row-button:hover,
body.theme-dark.dashboard-body .file-actions button:hover,
body.theme-dark.dashboard-body .task-actions button:hover,
body.theme-dark.dashboard-body .annotation-actions button:hover,
body.theme-dark.dashboard-body .automation-actions button:hover{background:#1b2435!important;border-color:#6b58e6!important}
body.theme-dark.dashboard-body .quick-grid button>span,
body.theme-dark.dashboard-body .panel-kicker,
body.theme-dark.dashboard-body .text-button{color:#a68dff!important}
body.theme-dark.dashboard-body .stat-icon,
body.theme-dark.dashboard-body .note-icon,
body.theme-dark.dashboard-body .upload-icon,
body.theme-dark.dashboard-body .saved-icon,
body.theme-dark.dashboard-body .component-count-badge,
body.theme-dark.dashboard-body .profile-tag,
body.theme-dark.dashboard-body .audit-icon,
body.theme-dark.dashboard-body .automation-icon{background:#292052!important;color:#a68dff!important;border-color:#303b55!important}
body.theme-dark.dashboard-body .dashboard-note,
body.theme-dark.dashboard-body .automation-help{background:linear-gradient(90deg,rgba(70,57,145,.23),rgba(23,27,47,.4))!important}
body.theme-dark.dashboard-body .primary-button,
body.theme-dark.dashboard-body button.primary,
body.theme-dark.dashboard-body #saveConfig,
body.theme-dark.dashboard-body .annotation-form .primary,
body.theme-dark.dashboard-body .contact-button.primary{background:#6b58e6!important;color:#fff!important;border-color:#6b58e6!important}
body.theme-dark.dashboard-body input:not([type=checkbox]):not([type=radio]),
body.theme-dark.dashboard-body select,
body.theme-dark.dashboard-body textarea,
body.theme-dark.dashboard-body .rt-select-trigger,
body.theme-dark.dashboard-body .rt-select-panel,
body.theme-dark.dashboard-body .channel-picker-button,
body.theme-dark.dashboard-body .channel-picker-menu,
body.theme-dark.dashboard-body .settings-current,
body.theme-dark.dashboard-body .theme-choice,
body.theme-dark.dashboard-body .task-modal-body input,
body.theme-dark.dashboard-body .task-modal-body textarea,
body.theme-dark.dashboard-body .task-modal-body select{background:#101725!important;color:#e8ebf4!important;border-color:#2b3650!important}
body.theme-dark.dashboard-body input::placeholder,body.theme-dark.dashboard-body textarea::placeholder{color:#68758c!important}
body.theme-dark.dashboard-body input:focus,body.theme-dark.dashboard-body select:focus,body.theme-dark.dashboard-body textarea:focus,body.theme-dark.dashboard-body .rt-select-trigger:focus{border-color:#6b58e6!important;box-shadow:0 0 0 2px rgba(107,88,230,.12)!important;outline:none!important}
body.theme-dark.dashboard-body .channel-picker-option,body.theme-dark.dashboard-body .rt-select-option{color:#dce2ee!important}
body.theme-dark.dashboard-body .channel-picker-option:hover,body.theme-dark.dashboard-body .rt-select-option:hover{background:#1b2435!important}
body.theme-dark.dashboard-body .library-row,
body.theme-dark.dashboard-body .selection-tools,
body.theme-dark.dashboard-body .send-grid,
body.theme-dark.dashboard-body .builder-body,
body.theme-dark.dashboard-body .form-block,
body.theme-dark.dashboard-body .option-card,
body.theme-dark.dashboard-body .saved-card,
body.theme-dark.dashboard-body .type-switch,
body.theme-dark.dashboard-body .type-tab,
body.theme-dark.dashboard-body .component-status,
body.theme-dark.dashboard-body .discord-select,
body.theme-dark.dashboard-body .mini-select,
body.theme-dark.dashboard-body .component-emoji-dialog .emo,
body.theme-dark.dashboard-body .component-emoji-dialog .tabs button,
body.theme-dark.dashboard-body .file-preview,
body.theme-dark.dashboard-body .task-images-box,
body.theme-dark.dashboard-body .task-selected-image,
body.theme-dark.dashboard-body .assignment-metrics>div,
body.theme-dark.dashboard-body .detail-stats>div,
body.theme-dark.dashboard-body .annotation-list article,
body.theme-dark.dashboard-body .detail-task-row{background:#141a29!important;color:#e8ebf4!important;border-color:#303b55!important}
body.theme-dark.dashboard-body .library-order{background:#1b2335!important;color:#8993a8!important}
body.theme-dark.dashboard-body .library-order.on,body.theme-dark.dashboard-body .filter.active,body.theme-dark.dashboard-body .type-tab.active{background:#6b58e6!important;color:#fff!important;border-color:#6b58e6!important}
body.theme-dark.dashboard-body .selection-pill,body.theme-dark.dashboard-body .pill{background:#1b2335!important;color:#8993a8!important;border-color:#252d40!important}
body.theme-dark.dashboard-body .discord-preview{background:#101725!important;color:#e8ebf4!important}
body.theme-dark.dashboard-body .preview-embed{background:#131a2a!important;color:#e8ebf4!important;border-left-color:#6b58e6!important}
body.theme-dark .editor{color:#e8ebf4!important}
body.theme-dark .card,body.theme-dark .pal-top,body.theme-dark .palette,body.theme-dark .preview-dock{background:#131a2a!important;color:#e8ebf4!important;border-color:#2b3650!important}
body.theme-dark .e-field,body.theme-dark .component-choice,body.theme-dark .rt-select-trigger{background:#141a29!important;color:#e8ebf4!important;border-color:#303b55!important}
body.theme-dark .f,body.theme-dark .e-fields input,body.theme-dark .e-fields textarea{background:#101725!important;color:#e8ebf4!important;border-color:#2b3650!important}
body.theme-dark .lbl,body.theme-dark .muted{color:#8993a8!important}
body.theme-dark .discord{background:#151b28!important;color:#eef1f8!important}
body.theme-dark .embed,body.theme-dark .v-cont{background:#131a2a!important;color:#e8ebf4!important;border-left-color:#6b58e6!important}

/* ---------- Tema GRIS DISCORD ---------- */
body.theme-discord.dashboard-body,body.theme-discord.editor-page,body.theme-discord.login-page{background:#1e1f22!important;color:#f2f3f5!important;color-scheme:dark}
body.theme-discord.dashboard-body .dash-sidebar{background:#18191c!important;border-color:#404249!important}
body.theme-discord.dashboard-body .dash-header{background:rgba(43,45,49,.94)!important;border-color:#404249!important;color:#f2f3f5!important}
body.theme-discord.dashboard-body .dash-panel,body.theme-discord.dashboard-body .stat-card,body.theme-discord.dashboard-body .dashboard-note,body.theme-discord.dashboard-body .server-menu,body.theme-discord.dashboard-body .user-menu,body.theme-discord.dashboard-body .dash-toast,body.theme-discord.dashboard-body .log-card,body.theme-discord.dashboard-body .log-list,body.theme-discord.dashboard-body .settings-card,body.theme-discord.dashboard-body .task-config,body.theme-discord.dashboard-body .task-permissions,body.theme-discord.dashboard-body .task-create,body.theme-discord.dashboard-body .task-list,body.theme-discord.dashboard-body .assignment-summary,body.theme-discord.dashboard-body .assignment-card,body.theme-discord.dashboard-body .audit-list,body.theme-discord.dashboard-body .task-modal,body.theme-discord.dashboard-body .task-image-dialog,body.theme-discord.dashboard-body .library-toolbar,body.theme-discord.dashboard-body .library-panel,body.theme-discord.dashboard-body .library-send,body.theme-discord.dashboard-body .upload-panel,body.theme-discord.dashboard-body .files-panel,body.theme-discord.dashboard-body .file-tile,body.theme-discord.dashboard-body .component-builder,body.theme-discord.dashboard-body .component-preview-panel,body.theme-discord.dashboard-body .component-help,body.theme-discord.dashboard-body .saved-components,body.theme-discord.dashboard-body .automation-item,body.theme-discord.dashboard-body .automation-list-panel,body.theme-discord.dashboard-body .automation-editor,body.theme-discord.dashboard-body .automation-help{background:#2b2d31!important;color:#f2f3f5!important;border-color:#404249!important}
body.theme-discord.dashboard-body .dash-nav-item{color:#f2f3f5!important}body.theme-discord.dashboard-body .dash-nav-item:hover{background:#35373c!important}body.theme-discord.dashboard-body .dash-nav-item.active{background:linear-gradient(135deg,#5865f2,#4752c4)!important;color:#fff!important}
body.theme-discord.dashboard-body .dash-title-row h1,body.theme-discord.dashboard-body h2,body.theme-discord.dashboard-body h3,body.theme-discord.dashboard-body .quick-grid strong{color:#f2f3f5!important}
body.theme-discord.dashboard-body .dash-title-row p,body.theme-discord.dashboard-body .dash-sidebar-foot,body.theme-discord.dashboard-body .muted,body.theme-discord.dashboard-body .stat-card small,body.theme-discord.dashboard-body .activity-item p,body.theme-discord.dashboard-body .activity-item time,body.theme-discord.dashboard-body .automation-main p,body.theme-discord.dashboard-body .automation-editor label,body.theme-discord.dashboard-body .automation-help p,body.theme-discord.dashboard-body .log-time,body.theme-discord.dashboard-body .log-type,body.theme-discord.dashboard-body .log-empty,body.theme-discord.dashboard-body .settings-head p,body.theme-discord.dashboard-body .setting-row small,body.theme-discord.dashboard-body .field-label,body.theme-discord.dashboard-body .action-note,body.theme-discord.dashboard-body .preview-text{color:#b5bac1!important}
body.theme-discord.dashboard-body .panel-head,body.theme-discord.dashboard-body .activity-item,body.theme-discord.dashboard-body .task-subnav,body.theme-discord.dashboard-body .task-row,body.theme-discord.dashboard-body .log-row{border-color:#404249!important}
body.theme-discord.dashboard-body .server-switcher,body.theme-discord.dashboard-body .user-switcher,body.theme-discord.dashboard-body .quick-grid button,body.theme-discord.dashboard-body .outline-button,body.theme-discord.dashboard-body .filter,body.theme-discord.dashboard-body .row-button,body.theme-discord.dashboard-body .file-actions button,body.theme-discord.dashboard-body .task-actions button,body.theme-discord.dashboard-body .annotation-actions button,body.theme-discord.dashboard-body .automation-actions button,body.theme-discord.dashboard-body .ghost-button,body.theme-discord.dashboard-body .contact-button{background:#1e1f22!important;color:#dbdee1!important;border-color:#404249!important}
body.theme-discord.dashboard-body .server-switcher:hover,body.theme-discord.dashboard-body .user-switcher:hover,body.theme-discord.dashboard-body .quick-grid button:hover,body.theme-discord.dashboard-body .outline-button:hover,body.theme-discord.dashboard-body .filter:hover,body.theme-discord.dashboard-body .row-button:hover,body.theme-discord.dashboard-body .file-actions button:hover,body.theme-discord.dashboard-body .task-actions button:hover,body.theme-discord.dashboard-body .annotation-actions button:hover,body.theme-discord.dashboard-body .automation-actions button:hover{background:#35373c!important;border-color:#5865f2!important}
body.theme-discord.dashboard-body .quick-grid button>span,body.theme-discord.dashboard-body .panel-kicker,body.theme-discord.dashboard-body .text-button{color:#b7a2ff!important}
body.theme-discord.dashboard-body .stat-icon,body.theme-discord.dashboard-body .note-icon,body.theme-discord.dashboard-body .upload-icon,body.theme-discord.dashboard-body .saved-icon,body.theme-discord.dashboard-body .component-count-badge,body.theme-discord.dashboard-body .profile-tag,body.theme-discord.dashboard-body .audit-icon,body.theme-discord.dashboard-body .automation-icon{background:#37304f!important;color:#b7a2ff!important;border-color:#404249!important}
body.theme-discord.dashboard-body .dashboard-note,body.theme-discord.dashboard-body .automation-help{background:linear-gradient(90deg,#332d4d,#2b2d31)!important}
body.theme-discord.dashboard-body .primary-button,body.theme-discord.dashboard-body button.primary,body.theme-discord.dashboard-body #saveConfig,body.theme-discord.dashboard-body .annotation-form .primary,body.theme-discord.dashboard-body .contact-button.primary{background:#5865f2!important;color:#fff!important;border-color:#5865f2!important}
body.theme-discord.dashboard-body input:not([type=checkbox]):not([type=radio]),body.theme-discord.dashboard-body select,body.theme-discord.dashboard-body textarea,body.theme-discord.dashboard-body .rt-select-trigger,body.theme-discord.dashboard-body .rt-select-panel,body.theme-discord.dashboard-body .channel-picker-button,body.theme-discord.dashboard-body .channel-picker-menu,body.theme-discord.dashboard-body .settings-current,body.theme-discord.dashboard-body .theme-choice,body.theme-discord.dashboard-body .task-modal-body input,body.theme-discord.dashboard-body .task-modal-body textarea,body.theme-discord.dashboard-body .task-modal-body select{background:#1e1f22!important;color:#f2f3f5!important;border-color:#404249!important}
body.theme-discord.dashboard-body input::placeholder,body.theme-discord.dashboard-body textarea::placeholder{color:#949ba4!important}body.theme-discord.dashboard-body input:focus,body.theme-discord.dashboard-body select:focus,body.theme-discord.dashboard-body textarea:focus,body.theme-discord.dashboard-body .rt-select-trigger:focus{border-color:#5865f2!important;box-shadow:0 0 0 2px rgba(88,101,242,.14)!important;outline:none!important}
body.theme-discord.dashboard-body .channel-picker-option,body.theme-discord.dashboard-body .rt-select-option{color:#dbdee1!important}body.theme-discord.dashboard-body .channel-picker-option:hover,body.theme-discord.dashboard-body .rt-select-option:hover{background:#35373c!important}
body.theme-discord.dashboard-body .library-row,body.theme-discord.dashboard-body .selection-tools,body.theme-discord.dashboard-body .send-grid,body.theme-discord.dashboard-body .builder-body,body.theme-discord.dashboard-body .form-block,body.theme-discord.dashboard-body .option-card,body.theme-discord.dashboard-body .saved-card,body.theme-discord.dashboard-body .type-switch,body.theme-discord.dashboard-body .type-tab,body.theme-discord.dashboard-body .component-status,body.theme-discord.dashboard-body .discord-select,body.theme-discord.dashboard-body .mini-select,body.theme-discord.dashboard-body .component-emoji-dialog .emo,body.theme-discord.dashboard-body .component-emoji-dialog .tabs button,body.theme-discord.dashboard-body .file-preview,body.theme-discord.dashboard-body .task-images-box,body.theme-discord.dashboard-body .task-selected-image,body.theme-discord.dashboard-body .assignment-metrics>div,body.theme-discord.dashboard-body .detail-stats>div,body.theme-discord.dashboard-body .annotation-list article,body.theme-discord.dashboard-body .detail-task-row{background:#313338!important;color:#f2f3f5!important;border-color:#4b4d53!important}
body.theme-discord.dashboard-body .library-order{background:#383a40!important;color:#b5bac1!important}body.theme-discord.dashboard-body .library-order.on,body.theme-discord.dashboard-body .filter.active,body.theme-discord.dashboard-body .type-tab.active{background:#5865f2!important;color:#fff!important;border-color:#5865f2!important}
body.theme-discord.dashboard-body .selection-pill,body.theme-discord.dashboard-body .pill{background:#383a40!important;color:#b5bac1!important;border-color:#404249!important}
body.theme-discord.dashboard-body .discord-preview{background:#1e1f22!important;color:#f2f3f5!important}body.theme-discord.dashboard-body .preview-embed{background:#2b2d31!important;color:#f2f3f5!important;border-left-color:#5865f2!important}
body.theme-discord .editor{color:#f2f3f5!important}body.theme-discord .card,body.theme-discord .pal-top,body.theme-discord .palette,body.theme-discord .preview-dock{background:#2b2d31!important;color:#f2f3f5!important;border-color:#404249!important}body.theme-discord .e-field,body.theme-discord .component-choice,body.theme-discord .rt-select-trigger{background:#313338!important;color:#f2f3f5!important;border-color:#4b4d53!important}body.theme-discord .f,body.theme-discord .e-fields input,body.theme-discord .e-fields textarea{background:#1e1f22!important;color:#f2f3f5!important;border-color:#404249!important}body.theme-discord .lbl,body.theme-discord .muted{color:#b5bac1!important}body.theme-discord .discord{background:#313338!important;color:#f2f3f5!important}body.theme-discord .embed,body.theme-discord .v-cont{background:#2b2d31!important;color:#f2f3f5!important;border-left-color:#5865f2!important}

/* ---------- Tema CLARO ---------- */
body.theme-light.dashboard-body,body.theme-light.editor-page,body.theme-light.login-page{background:#f3f5f8!important;color:#172033!important;color-scheme:light}
body.theme-light.dashboard-body .dash-sidebar{background:#fff!important;border-color:#dfe4ed!important}
body.theme-light.dashboard-body .dash-header{background:rgba(255,255,255,.94)!important;border-color:#dfe4ed!important;color:#172033!important}
body.theme-light.dashboard-body .dash-panel,body.theme-light.dashboard-body .stat-card,body.theme-light.dashboard-body .dashboard-note,body.theme-light.dashboard-body .server-menu,body.theme-light.dashboard-body .user-menu,body.theme-light.dashboard-body .dash-toast,body.theme-light.dashboard-body .log-card,body.theme-light.dashboard-body .log-list,body.theme-light.dashboard-body .settings-card,body.theme-light.dashboard-body .task-config,body.theme-light.dashboard-body .task-permissions,body.theme-light.dashboard-body .task-create,body.theme-light.dashboard-body .task-list,body.theme-light.dashboard-body .assignment-summary,body.theme-light.dashboard-body .assignment-card,body.theme-light.dashboard-body .audit-list,body.theme-light.dashboard-body .task-modal,body.theme-light.dashboard-body .task-image-dialog,body.theme-light.dashboard-body .library-toolbar,body.theme-light.dashboard-body .library-panel,body.theme-light.dashboard-body .library-send,body.theme-light.dashboard-body .upload-panel,body.theme-light.dashboard-body .files-panel,body.theme-light.dashboard-body .file-tile,body.theme-light.dashboard-body .component-builder,body.theme-light.dashboard-body .component-preview-panel,body.theme-light.dashboard-body .component-help,body.theme-light.dashboard-body .saved-components,body.theme-light.dashboard-body .automation-item,body.theme-light.dashboard-body .automation-list-panel,body.theme-light.dashboard-body .automation-editor,body.theme-light.dashboard-body .automation-help{background:#fff!important;color:#172033!important;border-color:#dfe4ed!important;box-shadow:0 10px 30px rgba(31,41,55,.05)}
body.theme-light.dashboard-body .dash-nav-item{color:#172033!important}body.theme-light.dashboard-body .dash-nav-item:hover{background:#f3f5f8!important}body.theme-light.dashboard-body .dash-nav-item.active{background:linear-gradient(135deg,#6b58e6,#5140bb)!important;color:#fff!important}
body.theme-light.dashboard-body .dash-title-row h1,body.theme-light.dashboard-body h2,body.theme-light.dashboard-body h3,body.theme-light.dashboard-body .quick-grid strong{color:#172033!important}
body.theme-light.dashboard-body .dash-title-row p,body.theme-light.dashboard-body .dash-sidebar-foot,body.theme-light.dashboard-body .muted,body.theme-light.dashboard-body .stat-card small,body.theme-light.dashboard-body .activity-item p,body.theme-light.dashboard-body .activity-item time,body.theme-light.dashboard-body .automation-main p,body.theme-light.dashboard-body .automation-editor label,body.theme-light.dashboard-body .automation-help p,body.theme-light.dashboard-body .log-time,body.theme-light.dashboard-body .log-type,body.theme-light.dashboard-body .log-empty,body.theme-light.dashboard-body .settings-head p,body.theme-light.dashboard-body .setting-row small,body.theme-light.dashboard-body .field-label,body.theme-light.dashboard-body .action-note,body.theme-light.dashboard-body .preview-text{color:#667085!important}
body.theme-light.dashboard-body .panel-head,body.theme-light.dashboard-body .activity-item,body.theme-light.dashboard-body .task-subnav,body.theme-light.dashboard-body .task-row,body.theme-light.dashboard-body .log-row{border-color:#dfe4ed!important}
body.theme-light.dashboard-body .server-switcher,body.theme-light.dashboard-body .user-switcher,body.theme-light.dashboard-body .quick-grid button,body.theme-light.dashboard-body .outline-button,body.theme-light.dashboard-body .filter,body.theme-light.dashboard-body .row-button,body.theme-light.dashboard-body .file-actions button,body.theme-light.dashboard-body .task-actions button,body.theme-light.dashboard-body .annotation-actions button,body.theme-light.dashboard-body .automation-actions button,body.theme-light.dashboard-body .ghost-button,body.theme-light.dashboard-body .contact-button{background:#f8f9fb!important;color:#344054!important;border-color:#d4dae5!important}
body.theme-light.dashboard-body .server-switcher:hover,body.theme-light.dashboard-body .user-switcher:hover,body.theme-light.dashboard-body .quick-grid button:hover,body.theme-light.dashboard-body .outline-button:hover,body.theme-light.dashboard-body .filter:hover,body.theme-light.dashboard-body .row-button:hover,body.theme-light.dashboard-body .file-actions button:hover,body.theme-light.dashboard-body .task-actions button:hover,body.theme-light.dashboard-body .annotation-actions button:hover,body.theme-light.dashboard-body .automation-actions button:hover{background:#eef1f6!important;border-color:#6b58e6!important}
body.theme-light.dashboard-body .quick-grid button>span,body.theme-light.dashboard-body .panel-kicker,body.theme-light.dashboard-body .text-button{color:#6048d8!important}
body.theme-light.dashboard-body .stat-icon,body.theme-light.dashboard-body .note-icon,body.theme-light.dashboard-body .upload-icon,body.theme-light.dashboard-body .saved-icon,body.theme-light.dashboard-body .component-count-badge,body.theme-light.dashboard-body .profile-tag,body.theme-light.dashboard-body .audit-icon,body.theme-light.dashboard-body .automation-icon{background:#eeeaff!important;color:#6048d8!important;border-color:#d8deea!important}
body.theme-light.dashboard-body .dashboard-note,body.theme-light.dashboard-body .automation-help{background:linear-gradient(90deg,#f5f3ff,#fff)!important;border-color:#d8cffb!important}
body.theme-light.dashboard-body .primary-button,body.theme-light.dashboard-body button.primary,body.theme-light.dashboard-body #saveConfig,body.theme-light.dashboard-body .annotation-form .primary,body.theme-light.dashboard-body .contact-button.primary{background:#6b58e6!important;color:#fff!important;border-color:#6b58e6!important}
body.theme-light.dashboard-body input:not([type=checkbox]):not([type=radio]),body.theme-light.dashboard-body select,body.theme-light.dashboard-body textarea,body.theme-light.dashboard-body .rt-select-trigger,body.theme-light.dashboard-body .rt-select-panel,body.theme-light.dashboard-body .channel-picker-button,body.theme-light.dashboard-body .channel-picker-menu,body.theme-light.dashboard-body .settings-current,body.theme-light.dashboard-body .theme-choice,body.theme-light.dashboard-body .task-modal-body input,body.theme-light.dashboard-body .task-modal-body textarea,body.theme-light.dashboard-body .task-modal-body select{background:#f8f9fb!important;color:#172033!important;border-color:#d4dae5!important}
body.theme-light.dashboard-body input::placeholder,body.theme-light.dashboard-body textarea::placeholder{color:#7b8495!important}body.theme-light.dashboard-body input:focus,body.theme-light.dashboard-body select:focus,body.theme-light.dashboard-body textarea:focus,body.theme-light.dashboard-body .rt-select-trigger:focus{border-color:#6b58e6!important;box-shadow:0 0 0 2px rgba(107,88,230,.12)!important;outline:none!important}
body.theme-light.dashboard-body .channel-picker-option,body.theme-light.dashboard-body .rt-select-option{color:#172033!important}body.theme-light.dashboard-body .channel-picker-option:hover,body.theme-light.dashboard-body .rt-select-option:hover{background:#eef1f6!important}
body.theme-light.dashboard-body .library-row,body.theme-light.dashboard-body .selection-tools,body.theme-light.dashboard-body .send-grid,body.theme-light.dashboard-body .builder-body,body.theme-light.dashboard-body .form-block,body.theme-light.dashboard-body .option-card,body.theme-light.dashboard-body .saved-card,body.theme-light.dashboard-body .type-switch,body.theme-light.dashboard-body .type-tab,body.theme-light.dashboard-body .component-status,body.theme-light.dashboard-body .discord-select,body.theme-light.dashboard-body .mini-select,body.theme-light.dashboard-body .component-emoji-dialog .emo,body.theme-light.dashboard-body .component-emoji-dialog .tabs button,body.theme-light.dashboard-body .file-preview,body.theme-light.dashboard-body .task-images-box,body.theme-light.dashboard-body .task-selected-image,body.theme-light.dashboard-body .assignment-metrics>div,body.theme-light.dashboard-body .detail-stats>div,body.theme-light.dashboard-body .annotation-list article,body.theme-light.dashboard-body .detail-task-row{background:#f8f9fb!important;color:#172033!important;border-color:#d4dae5!important}
body.theme-light.dashboard-body .library-order{background:#eef1f6!important;color:#667085!important}body.theme-light.dashboard-body .library-order.on,body.theme-light.dashboard-body .filter.active,body.theme-light.dashboard-body .type-tab.active{background:#6b58e6!important;color:#fff!important;border-color:#6b58e6!important}
body.theme-light.dashboard-body .selection-pill,body.theme-light.dashboard-body .pill{background:#eef1f6!important;color:#667085!important;border-color:#dfe4ed!important}
body.theme-light.dashboard-body .discord-preview{background:#eef1f6!important;color:#172033!important}body.theme-light.dashboard-body .preview-embed{background:#fff!important;color:#172033!important;border-left-color:#6b58e6!important}
body.theme-light .editor{color:#172033!important}body.theme-light .card,body.theme-light .pal-top,body.theme-light .palette,body.theme-light .preview-dock{background:#fff!important;color:#172033!important;border-color:#dfe4ed!important;box-shadow:0 10px 30px rgba(31,41,55,.05)}body.theme-light .e-field,body.theme-light .component-choice,body.theme-light .rt-select-trigger{background:#f8f9fb!important;color:#172033!important;border-color:#d4dae5!important}body.theme-light .f,body.theme-light .e-fields input,body.theme-light .e-fields textarea{background:#f8f9fb!important;color:#172033!important;border-color:#d4dae5!important}body.theme-light .lbl,body.theme-light .muted{color:#667085!important}body.theme-light .discord{background:#eef1f6!important;color:#172033!important}body.theme-light .embed,body.theme-light .v-cont{background:#fff!important;color:#172033!important;border-left-color:#6b58e6!important}
body.theme-light .msg-head b,body.theme-light .e-title,body.theme-light .e-author,body.theme-light .e-field .n,body.theme-light .discord .h1,body.theme-light .discord .h2,body.theme-light .discord .h3{color:#172033!important}body.theme-light .msg-content,body.theme-light .e-desc,body.theme-light .e-field .v{color:#344054!important}

/* ---------- Tema MEDIANOCHE ---------- */
body.theme-midnight.dashboard-body,body.theme-midnight.editor-page,body.theme-midnight.login-page{background:#050b14!important;color:#edf6ff!important;color-scheme:dark}
body.theme-midnight.dashboard-body .dash-sidebar{background:#050e1b!important;border-color:#1b3853!important}body.theme-midnight.dashboard-body .dash-header{background:rgba(11,23,40,.94)!important;border-color:#1b3853!important;color:#edf6ff!important}
body.theme-midnight.dashboard-body .dash-panel,body.theme-midnight.dashboard-body .stat-card,body.theme-midnight.dashboard-body .dashboard-note,body.theme-midnight.dashboard-body .server-menu,body.theme-midnight.dashboard-body .user-menu,body.theme-midnight.dashboard-body .dash-toast,body.theme-midnight.dashboard-body .log-card,body.theme-midnight.dashboard-body .log-list,body.theme-midnight.dashboard-body .settings-card,body.theme-midnight.dashboard-body .task-config,body.theme-midnight.dashboard-body .task-permissions,body.theme-midnight.dashboard-body .task-create,body.theme-midnight.dashboard-body .task-list,body.theme-midnight.dashboard-body .assignment-summary,body.theme-midnight.dashboard-body .assignment-card,body.theme-midnight.dashboard-body .audit-list,body.theme-midnight.dashboard-body .task-modal,body.theme-midnight.dashboard-body .task-image-dialog,body.theme-midnight.dashboard-body .library-toolbar,body.theme-midnight.dashboard-body .library-panel,body.theme-midnight.dashboard-body .library-send,body.theme-midnight.dashboard-body .upload-panel,body.theme-midnight.dashboard-body .files-panel,body.theme-midnight.dashboard-body .file-tile,body.theme-midnight.dashboard-body .component-builder,body.theme-midnight.dashboard-body .component-preview-panel,body.theme-midnight.dashboard-body .component-help,body.theme-midnight.dashboard-body .saved-components,body.theme-midnight.dashboard-body .automation-item,body.theme-midnight.dashboard-body .automation-list-panel,body.theme-midnight.dashboard-body .automation-editor,body.theme-midnight.dashboard-body .automation-help{background:#0b1728!important;color:#edf6ff!important;border-color:#1b3853!important}
body.theme-midnight.dashboard-body .dash-nav-item{color:#edf6ff!important}body.theme-midnight.dashboard-body .dash-nav-item:hover{background:#0d1c2f!important}body.theme-midnight.dashboard-body .dash-nav-item.active{background:linear-gradient(135deg,#3d82d9,#2d63ab)!important;color:#fff!important}
body.theme-midnight.dashboard-body .dash-title-row h1,body.theme-midnight.dashboard-body h2,body.theme-midnight.dashboard-body h3,body.theme-midnight.dashboard-body .quick-grid strong{color:#edf6ff!important}
body.theme-midnight.dashboard-body .dash-title-row p,body.theme-midnight.dashboard-body .dash-sidebar-foot,body.theme-midnight.dashboard-body .muted,body.theme-midnight.dashboard-body .stat-card small,body.theme-midnight.dashboard-body .activity-item p,body.theme-midnight.dashboard-body .activity-item time,body.theme-midnight.dashboard-body .automation-main p,body.theme-midnight.dashboard-body .automation-editor label,body.theme-midnight.dashboard-body .automation-help p,body.theme-midnight.dashboard-body .log-time,body.theme-midnight.dashboard-body .log-type,body.theme-midnight.dashboard-body .log-empty,body.theme-midnight.dashboard-body .settings-head p,body.theme-midnight.dashboard-body .setting-row small,body.theme-midnight.dashboard-body .field-label,body.theme-midnight.dashboard-body .action-note,body.theme-midnight.dashboard-body .preview-text{color:#91a6bd!important}
body.theme-midnight.dashboard-body .panel-head,body.theme-midnight.dashboard-body .activity-item,body.theme-midnight.dashboard-body .task-subnav,body.theme-midnight.dashboard-body .task-row,body.theme-midnight.dashboard-body .log-row{border-color:#24425d!important}
body.theme-midnight.dashboard-body .server-switcher,body.theme-midnight.dashboard-body .user-switcher,body.theme-midnight.dashboard-body .quick-grid button,body.theme-midnight.dashboard-body .outline-button,body.theme-midnight.dashboard-body .filter,body.theme-midnight.dashboard-body .row-button,body.theme-midnight.dashboard-body .file-actions button,body.theme-midnight.dashboard-body .task-actions button,body.theme-midnight.dashboard-body .annotation-actions button,body.theme-midnight.dashboard-body .automation-actions button,body.theme-midnight.dashboard-body .ghost-button,body.theme-midnight.dashboard-body .contact-button{background:#0d1c2f!important;color:#cbd9e8!important;border-color:#24425d!important}
body.theme-midnight.dashboard-body .server-switcher:hover,body.theme-midnight.dashboard-body .user-switcher:hover,body.theme-midnight.dashboard-body .quick-grid button:hover,body.theme-midnight.dashboard-body .outline-button:hover,body.theme-midnight.dashboard-body .filter:hover,body.theme-midnight.dashboard-body .row-button:hover,body.theme-midnight.dashboard-body .file-actions button:hover,body.theme-midnight.dashboard-body .task-actions button:hover,body.theme-midnight.dashboard-body .annotation-actions button:hover,body.theme-midnight.dashboard-body .automation-actions button:hover{background:#10243a!important;border-color:#3d82d9!important}
body.theme-midnight.dashboard-body .quick-grid button>span,body.theme-midnight.dashboard-body .panel-kicker,body.theme-midnight.dashboard-body .text-button{color:#8dc4ff!important}
body.theme-midnight.dashboard-body .stat-icon,body.theme-midnight.dashboard-body .note-icon,body.theme-midnight.dashboard-body .upload-icon,body.theme-midnight.dashboard-body .saved-icon,body.theme-midnight.dashboard-body .component-count-badge,body.theme-midnight.dashboard-body .profile-tag,body.theme-midnight.dashboard-body .audit-icon,body.theme-midnight.dashboard-body .automation-icon{background:#162c4a!important;color:#8dc4ff!important;border-color:#24425d!important}
body.theme-midnight.dashboard-body .dashboard-note,body.theme-midnight.dashboard-body .automation-help{background:linear-gradient(90deg,#10233b,#0b1728)!important;border-color:#2c4b6b!important}
body.theme-midnight.dashboard-body .primary-button,body.theme-midnight.dashboard-body button.primary,body.theme-midnight.dashboard-body #saveConfig,body.theme-midnight.dashboard-body .annotation-form .primary,body.theme-midnight.dashboard-body .contact-button.primary{background:#3d82d9!important;color:#fff!important;border-color:#3d82d9!important}
body.theme-midnight.dashboard-body input:not([type=checkbox]):not([type=radio]),body.theme-midnight.dashboard-body select,body.theme-midnight.dashboard-body textarea,body.theme-midnight.dashboard-body .rt-select-trigger,body.theme-midnight.dashboard-body .rt-select-panel,body.theme-midnight.dashboard-body .channel-picker-button,body.theme-midnight.dashboard-body .channel-picker-menu,body.theme-midnight.dashboard-body .settings-current,body.theme-midnight.dashboard-body .theme-choice,body.theme-midnight.dashboard-body .task-modal-body input,body.theme-midnight.dashboard-body .task-modal-body textarea,body.theme-midnight.dashboard-body .task-modal-body select{background:#091625!important;color:#edf6ff!important;border-color:#24425d!important}
body.theme-midnight.dashboard-body input::placeholder,body.theme-midnight.dashboard-body textarea::placeholder{color:#728ba5!important}body.theme-midnight.dashboard-body input:focus,body.theme-midnight.dashboard-body select:focus,body.theme-midnight.dashboard-body textarea:focus,body.theme-midnight.dashboard-body .rt-select-trigger:focus{border-color:#3d82d9!important;box-shadow:0 0 0 2px rgba(61,130,217,.15)!important;outline:none!important}
body.theme-midnight.dashboard-body .channel-picker-option,body.theme-midnight.dashboard-body .rt-select-option{color:#d4e4f3!important}body.theme-midnight.dashboard-body .channel-picker-option:hover,body.theme-midnight.dashboard-body .rt-select-option:hover{background:#10243a!important}
body.theme-midnight.dashboard-body .library-row,body.theme-midnight.dashboard-body .selection-tools,body.theme-midnight.dashboard-body .send-grid,body.theme-midnight.dashboard-body .builder-body,body.theme-midnight.dashboard-body .form-block,body.theme-midnight.dashboard-body .option-card,body.theme-midnight.dashboard-body .saved-card,body.theme-midnight.dashboard-body .type-switch,body.theme-midnight.dashboard-body .type-tab,body.theme-midnight.dashboard-body .component-status,body.theme-midnight.dashboard-body .discord-select,body.theme-midnight.dashboard-body .mini-select,body.theme-midnight.dashboard-body .component-emoji-dialog .emo,body.theme-midnight.dashboard-body .component-emoji-dialog .tabs button,body.theme-midnight.dashboard-body .file-preview,body.theme-midnight.dashboard-body .task-images-box,body.theme-midnight.dashboard-body .task-selected-image,body.theme-midnight.dashboard-body .assignment-metrics>div,body.theme-midnight.dashboard-body .detail-stats>div,body.theme-midnight.dashboard-body .annotation-list article,body.theme-midnight.dashboard-body .detail-task-row{background:#0d1c2f!important;color:#edf6ff!important;border-color:#24425d!important}
body.theme-midnight.dashboard-body .library-order{background:#10223a!important;color:#91a6bd!important}body.theme-midnight.dashboard-body .library-order.on,body.theme-midnight.dashboard-body .filter.active,body.theme-midnight.dashboard-body .type-tab.active{background:#3d82d9!important;color:#fff!important;border-color:#3d82d9!important}
body.theme-midnight.dashboard-body .selection-pill,body.theme-midnight.dashboard-body .pill{background:#10223a!important;color:#91a6bd!important;border-color:#1b3853!important}
body.theme-midnight.dashboard-body .discord-preview{background:#091625!important;color:#edf6ff!important}body.theme-midnight.dashboard-body .preview-embed{background:#0b1728!important;color:#edf6ff!important;border-left-color:#3d82d9!important}
body.theme-midnight .editor{color:#edf6ff!important}body.theme-midnight .card,body.theme-midnight .pal-top,body.theme-midnight .palette,body.theme-midnight .preview-dock{background:#0b1728!important;color:#edf6ff!important;border-color:#1b3853!important}body.theme-midnight .e-field,body.theme-midnight .component-choice,body.theme-midnight .rt-select-trigger{background:#0d1c2f!important;color:#edf6ff!important;border-color:#24425d!important}body.theme-midnight .f,body.theme-midnight .e-fields input,body.theme-midnight .e-fields textarea{background:#091625!important;color:#edf6ff!important;border-color:#24425d!important}body.theme-midnight .lbl,body.theme-midnight .muted{color:#91a6bd!important}body.theme-midnight .discord{background:#0d1c2f!important;color:#edf6ff!important}body.theme-midnight .embed,body.theme-midnight .v-cont{background:#0b1728!important;color:#edf6ff!important;border-left-color:#3d82d9!important}

/* ---------- Tema ESMERALDA ---------- */
body.theme-emerald.dashboard-body,body.theme-emerald.editor-page,body.theme-emerald.login-page{background:#040a08!important;color:#ecfff8!important;color-scheme:dark}
body.theme-emerald.dashboard-body .dash-sidebar{background:#061410!important;border-color:#1d4036!important}body.theme-emerald.dashboard-body .dash-header{background:rgba(11,29,24,.94)!important;border-color:#1d4036!important;color:#ecfff8!important}
body.theme-emerald.dashboard-body .dash-panel,body.theme-emerald.dashboard-body .stat-card,body.theme-emerald.dashboard-body .dashboard-note,body.theme-emerald.dashboard-body .server-menu,body.theme-emerald.dashboard-body .user-menu,body.theme-emerald.dashboard-body .dash-toast,body.theme-emerald.dashboard-body .log-card,body.theme-emerald.dashboard-body .log-list,body.theme-emerald.dashboard-body .settings-card,body.theme-emerald.dashboard-body .task-config,body.theme-emerald.dashboard-body .task-permissions,body.theme-emerald.dashboard-body .task-create,body.theme-emerald.dashboard-body .task-list,body.theme-emerald.dashboard-body .assignment-summary,body.theme-emerald.dashboard-body .assignment-card,body.theme-emerald.dashboard-body .audit-list,body.theme-emerald.dashboard-body .task-modal,body.theme-emerald.dashboard-body .task-image-dialog,body.theme-emerald.dashboard-body .library-toolbar,body.theme-emerald.dashboard-body .library-panel,body.theme-emerald.dashboard-body .library-send,body.theme-emerald.dashboard-body .upload-panel,body.theme-emerald.dashboard-body .files-panel,body.theme-emerald.dashboard-body .file-tile,body.theme-emerald.dashboard-body .component-builder,body.theme-emerald.dashboard-body .component-preview-panel,body.theme-emerald.dashboard-body .component-help,body.theme-emerald.dashboard-body .saved-components,body.theme-emerald.dashboard-body .automation-item,body.theme-emerald.dashboard-body .automation-list-panel,body.theme-emerald.dashboard-body .automation-editor,body.theme-emerald.dashboard-body .automation-help{background:#0b1d18!important;color:#ecfff8!important;border-color:#1d4036!important}
body.theme-emerald.dashboard-body .dash-nav-item{color:#ecfff8!important}body.theme-emerald.dashboard-body .dash-nav-item:hover{background:#0d241e!important}body.theme-emerald.dashboard-body .dash-nav-item.active{background:linear-gradient(135deg,#159b70,#0e7655)!important;color:#fff!important}
body.theme-emerald.dashboard-body .dash-title-row h1,body.theme-emerald.dashboard-body h2,body.theme-emerald.dashboard-body h3,body.theme-emerald.dashboard-body .quick-grid strong{color:#ecfff8!important}
body.theme-emerald.dashboard-body .dash-title-row p,body.theme-emerald.dashboard-body .dash-sidebar-foot,body.theme-emerald.dashboard-body .muted,body.theme-emerald.dashboard-body .stat-card small,body.theme-emerald.dashboard-body .activity-item p,body.theme-emerald.dashboard-body .activity-item time,body.theme-emerald.dashboard-body .automation-main p,body.theme-emerald.dashboard-body .automation-editor label,body.theme-emerald.dashboard-body .automation-help p,body.theme-emerald.dashboard-body .log-time,body.theme-emerald.dashboard-body .log-type,body.theme-emerald.dashboard-body .log-empty,body.theme-emerald.dashboard-body .settings-head p,body.theme-emerald.dashboard-body .setting-row small,body.theme-emerald.dashboard-body .field-label,body.theme-emerald.dashboard-body .action-note,body.theme-emerald.dashboard-body .preview-text{color:#8fb7a9!important}
body.theme-emerald.dashboard-body .panel-head,body.theme-emerald.dashboard-body .activity-item,body.theme-emerald.dashboard-body .task-subnav,body.theme-emerald.dashboard-body .task-row,body.theme-emerald.dashboard-body .log-row{border-color:#245044!important}
body.theme-emerald.dashboard-body .server-switcher,body.theme-emerald.dashboard-body .user-switcher,body.theme-emerald.dashboard-body .quick-grid button,body.theme-emerald.dashboard-body .outline-button,body.theme-emerald.dashboard-body .filter,body.theme-emerald.dashboard-body .row-button,body.theme-emerald.dashboard-body .file-actions button,body.theme-emerald.dashboard-body .task-actions button,body.theme-emerald.dashboard-body .annotation-actions button,body.theme-emerald.dashboard-body .automation-actions button,body.theme-emerald.dashboard-body .ghost-button,body.theme-emerald.dashboard-body .contact-button{background:#0d241e!important;color:#c9eee1!important;border-color:#245044!important}
body.theme-emerald.dashboard-body .server-switcher:hover,body.theme-emerald.dashboard-body .user-switcher:hover,body.theme-emerald.dashboard-body .quick-grid button:hover,body.theme-emerald.dashboard-body .outline-button:hover,body.theme-emerald.dashboard-body .filter:hover,body.theme-emerald.dashboard-body .row-button:hover,body.theme-emerald.dashboard-body .file-actions button:hover,body.theme-emerald.dashboard-body .task-actions button:hover,body.theme-emerald.dashboard-body .annotation-actions button:hover,body.theme-emerald.dashboard-body .automation-actions button:hover{background:#102b23!important;border-color:#159b70!important}
body.theme-emerald.dashboard-body .quick-grid button>span,body.theme-emerald.dashboard-body .panel-kicker,body.theme-emerald.dashboard-body .text-button{color:#66d5ae!important}
body.theme-emerald.dashboard-body .stat-icon,body.theme-emerald.dashboard-body .note-icon,body.theme-emerald.dashboard-body .upload-icon,body.theme-emerald.dashboard-body .saved-icon,body.theme-emerald.dashboard-body .component-count-badge,body.theme-emerald.dashboard-body .profile-tag,body.theme-emerald.dashboard-body .audit-icon,body.theme-emerald.dashboard-body .automation-icon{background:#10352b!important;color:#66d5ae!important;border-color:#245044!important}
body.theme-emerald.dashboard-body .dashboard-note,body.theme-emerald.dashboard-body .automation-help{background:linear-gradient(90deg,#0f2b23,#0b1d18)!important;border-color:#245044!important}
body.theme-emerald.dashboard-body .primary-button,body.theme-emerald.dashboard-body button.primary,body.theme-emerald.dashboard-body #saveConfig,body.theme-emerald.dashboard-body .annotation-form .primary,body.theme-emerald.dashboard-body .contact-button.primary{background:#159b70!important;color:#fff!important;border-color:#159b70!important}
body.theme-emerald.dashboard-body input:not([type=checkbox]):not([type=radio]),body.theme-emerald.dashboard-body select,body.theme-emerald.dashboard-body textarea,body.theme-emerald.dashboard-body .rt-select-trigger,body.theme-emerald.dashboard-body .rt-select-panel,body.theme-emerald.dashboard-body .channel-picker-button,body.theme-emerald.dashboard-body .channel-picker-menu,body.theme-emerald.dashboard-body .settings-current,body.theme-emerald.dashboard-body .theme-choice,body.theme-emerald.dashboard-body .task-modal-body input,body.theme-emerald.dashboard-body .task-modal-body textarea,body.theme-emerald.dashboard-body .task-modal-body select{background:#081713!important;color:#ecfff8!important;border-color:#245044!important}
body.theme-emerald.dashboard-body input::placeholder,body.theme-emerald.dashboard-body textarea::placeholder{color:#6f9f90!important}body.theme-emerald.dashboard-body input:focus,body.theme-emerald.dashboard-body select:focus,body.theme-emerald.dashboard-body textarea:focus,body.theme-emerald.dashboard-body .rt-select-trigger:focus{border-color:#159b70!important;box-shadow:0 0 0 2px rgba(21,155,112,.15)!important;outline:none!important}
body.theme-emerald.dashboard-body .channel-picker-option,body.theme-emerald.dashboard-body .rt-select-option{color:#d4f3e9!important}body.theme-emerald.dashboard-body .channel-picker-option:hover,body.theme-emerald.dashboard-body .rt-select-option:hover{background:#102b23!important}
body.theme-emerald.dashboard-body .library-row,body.theme-emerald.dashboard-body .selection-tools,body.theme-emerald.dashboard-body .send-grid,body.theme-emerald.dashboard-body .builder-body,body.theme-emerald.dashboard-body .form-block,body.theme-emerald.dashboard-body .option-card,body.theme-emerald.dashboard-body .saved-card,body.theme-emerald.dashboard-body .type-switch,body.theme-emerald.dashboard-body .type-tab,body.theme-emerald.dashboard-body .component-status,body.theme-emerald.dashboard-body .discord-select,body.theme-emerald.dashboard-body .mini-select,body.theme-emerald.dashboard-body .component-emoji-dialog .emo,body.theme-emerald.dashboard-body .component-emoji-dialog .tabs button,body.theme-emerald.dashboard-body .file-preview,body.theme-emerald.dashboard-body .task-images-box,body.theme-emerald.dashboard-body .task-selected-image,body.theme-emerald.dashboard-body .assignment-metrics>div,body.theme-emerald.dashboard-body .detail-stats>div,body.theme-emerald.dashboard-body .annotation-list article,body.theme-emerald.dashboard-body .detail-task-row{background:#0d241e!important;color:#ecfff8!important;border-color:#245044!important}
body.theme-emerald.dashboard-body .library-order{background:#0f2a23!important;color:#8fb7a9!important}body.theme-emerald.dashboard-body .library-order.on,body.theme-emerald.dashboard-body .filter.active,body.theme-emerald.dashboard-body .type-tab.active{background:#159b70!important;color:#fff!important;border-color:#159b70!important}
body.theme-emerald.dashboard-body .selection-pill,body.theme-emerald.dashboard-body .pill{background:#0f2a23!important;color:#8fb7a9!important;border-color:#1d4036!important}
body.theme-emerald.dashboard-body .discord-preview{background:#081713!important;color:#ecfff8!important}body.theme-emerald.dashboard-body .preview-embed{background:#0b1d18!important;color:#ecfff8!important;border-left-color:#159b70!important}
body.theme-emerald .editor{color:#ecfff8!important}body.theme-emerald .card,body.theme-emerald .pal-top,body.theme-emerald .palette,body.theme-emerald .preview-dock{background:#0b1d18!important;color:#ecfff8!important;border-color:#1d4036!important}body.theme-emerald .e-field,body.theme-emerald .component-choice,body.theme-emerald .rt-select-trigger{background:#0d241e!important;color:#ecfff8!important;border-color:#245044!important}body.theme-emerald .f,body.theme-emerald .e-fields input,body.theme-emerald .e-fields textarea{background:#081713!important;color:#ecfff8!important;border-color:#245044!important}body.theme-emerald .lbl,body.theme-emerald .muted{color:#8fb7a9!important}body.theme-emerald .discord{background:#0d241e!important;color:#ecfff8!important}body.theme-emerald .embed,body.theme-emerald .v-cont{background:#0b1d18!important;color:#ecfff8!important;border-left-color:#159b70!important}

/* Elementos compartidos en el constructor: marca y textos que quedaban con negro/blanco fijo. */
body.theme-light .editor button,body.theme-light .editor .button,body.theme-light .editor .send-button{color:#172033!important}
body.theme-light .editor .primary,body.theme-light .editor .primary-button,body.theme-light .editor .send-button.primary{background:#6b58e6!important;color:#fff!important;border-color:#6b58e6!important}
body.theme-light .editor input::placeholder,body.theme-light .editor textarea::placeholder{color:#7b8495!important}
body.theme-light .editor .brand,body.theme-light .editor .logo-text,body.theme-light .editor .rt-brand{color:#172033!important}

/* ======================================================================
   v28 — Botones temáticos faltantes
   Se aplican con el mismo enfoque explícito de Mensajes automáticos:
   cada tema define directamente los botones de editor y Tareas para que
   ningún estilo histórico pueda dejar una paleta fija.
   ====================================================================== */

/* ---------- Editor de embeds / V2 ---------- */
body.theme-dark:not(.dashboard-body) .top .ghost,
body.theme-dark:not(.dashboard-body) .dest .ghost,
body.theme-dark:not(.dashboard-body) .actions .ghost,
body.theme-dark:not(.dashboard-body) .lib-toolbar .lib-filter,
body.theme-dark:not(.dashboard-body) .top .tabs button,
body.theme-dark:not(.dashboard-body) .etabs button,
body.theme-dark:not(.dashboard-body) .preview-dock-toggle{
  background:#141923!important;color:#dfe4ef!important;border-color:#303a51!important
}
body.theme-dark:not(.dashboard-body) .top .ghost:hover,
body.theme-dark:not(.dashboard-body) .dest .ghost:hover,
body.theme-dark:not(.dashboard-body) .actions .ghost:hover,
body.theme-dark:not(.dashboard-body) .lib-toolbar .lib-filter:hover,
body.theme-dark:not(.dashboard-body) .top .tabs button:hover,
body.theme-dark:not(.dashboard-body) .etabs button:hover,
body.theme-dark:not(.dashboard-body) .preview-dock-toggle:hover{
  background:#1a2030!important;border-color:#7755ff!important;color:#fff!important
}
body.theme-dark:not(.dashboard-body) .top .tabs button.on,
body.theme-dark:not(.dashboard-body) .etabs button.on,
body.theme-dark:not(.dashboard-body) .lib-toolbar .lib-filter.active,
body.theme-dark:not(.dashboard-body) .actions button:not(.ghost),
body.theme-dark:not(.dashboard-body) .dest button:not(.ghost):not(.rt-select-trigger){
  background:#7755ff!important;color:#fff!important;border-color:#7755ff!important
}

body.theme-discord:not(.dashboard-body) .top .ghost,
body.theme-discord:not(.dashboard-body) .dest .ghost,
body.theme-discord:not(.dashboard-body) .actions .ghost,
body.theme-discord:not(.dashboard-body) .lib-toolbar .lib-filter,
body.theme-discord:not(.dashboard-body) .top .tabs button,
body.theme-discord:not(.dashboard-body) .etabs button,
body.theme-discord:not(.dashboard-body) .preview-dock-toggle{
  background:#313338!important;color:#dbdee1!important;border-color:#4b4d53!important
}
body.theme-discord:not(.dashboard-body) .top .ghost:hover,
body.theme-discord:not(.dashboard-body) .dest .ghost:hover,
body.theme-discord:not(.dashboard-body) .actions .ghost:hover,
body.theme-discord:not(.dashboard-body) .lib-toolbar .lib-filter:hover,
body.theme-discord:not(.dashboard-body) .top .tabs button:hover,
body.theme-discord:not(.dashboard-body) .etabs button:hover,
body.theme-discord:not(.dashboard-body) .preview-dock-toggle:hover{
  background:#383a40!important;border-color:#5865f2!important;color:#fff!important
}
body.theme-discord:not(.dashboard-body) .top .tabs button.on,
body.theme-discord:not(.dashboard-body) .etabs button.on,
body.theme-discord:not(.dashboard-body) .lib-toolbar .lib-filter.active,
body.theme-discord:not(.dashboard-body) .actions button:not(.ghost),
body.theme-discord:not(.dashboard-body) .dest button:not(.ghost):not(.rt-select-trigger){
  background:#5865f2!important;color:#fff!important;border-color:#5865f2!important
}

body.theme-light:not(.dashboard-body) .top .ghost,
body.theme-light:not(.dashboard-body) .dest .ghost,
body.theme-light:not(.dashboard-body) .actions .ghost,
body.theme-light:not(.dashboard-body) .lib-toolbar .lib-filter,
body.theme-light:not(.dashboard-body) .top .tabs button,
body.theme-light:not(.dashboard-body) .etabs button,
body.theme-light:not(.dashboard-body) .preview-dock-toggle{
  background:#f8f9fb!important;color:#344054!important;border-color:#d4dae5!important
}
body.theme-light:not(.dashboard-body) .top .ghost:hover,
body.theme-light:not(.dashboard-body) .dest .ghost:hover,
body.theme-light:not(.dashboard-body) .actions .ghost:hover,
body.theme-light:not(.dashboard-body) .lib-toolbar .lib-filter:hover,
body.theme-light:not(.dashboard-body) .top .tabs button:hover,
body.theme-light:not(.dashboard-body) .etabs button:hover,
body.theme-light:not(.dashboard-body) .preview-dock-toggle:hover{
  background:#eef1f6!important;border-color:#6366f1!important;color:#172033!important
}
body.theme-light:not(.dashboard-body) .top .tabs button.on,
body.theme-light:not(.dashboard-body) .etabs button.on,
body.theme-light:not(.dashboard-body) .lib-toolbar .lib-filter.active,
body.theme-light:not(.dashboard-body) .actions button:not(.ghost),
body.theme-light:not(.dashboard-body) .dest button:not(.ghost):not(.rt-select-trigger){
  background:#6366f1!important;color:#fff!important;border-color:#6366f1!important
}

body.theme-midnight:not(.dashboard-body) .top .ghost,
body.theme-midnight:not(.dashboard-body) .dest .ghost,
body.theme-midnight:not(.dashboard-body) .actions .ghost,
body.theme-midnight:not(.dashboard-body) .lib-toolbar .lib-filter,
body.theme-midnight:not(.dashboard-body) .top .tabs button,
body.theme-midnight:not(.dashboard-body) .etabs button,
body.theme-midnight:not(.dashboard-body) .preview-dock-toggle{
  background:#0d1c2f!important;color:#cbd9e8!important;border-color:#24425d!important
}
body.theme-midnight:not(.dashboard-body) .top .ghost:hover,
body.theme-midnight:not(.dashboard-body) .dest .ghost:hover,
body.theme-midnight:not(.dashboard-body) .actions .ghost:hover,
body.theme-midnight:not(.dashboard-body) .lib-toolbar .lib-filter:hover,
body.theme-midnight:not(.dashboard-body) .top .tabs button:hover,
body.theme-midnight:not(.dashboard-body) .etabs button:hover,
body.theme-midnight:not(.dashboard-body) .preview-dock-toggle:hover{
  background:#10243a!important;border-color:#3d82d9!important;color:#fff!important
}
body.theme-midnight:not(.dashboard-body) .top .tabs button.on,
body.theme-midnight:not(.dashboard-body) .etabs button.on,
body.theme-midnight:not(.dashboard-body) .lib-toolbar .lib-filter.active,
body.theme-midnight:not(.dashboard-body) .actions button:not(.ghost),
body.theme-midnight:not(.dashboard-body) .dest button:not(.ghost):not(.rt-select-trigger){
  background:#3d82d9!important;color:#fff!important;border-color:#3d82d9!important
}

body.theme-emerald:not(.dashboard-body) .top .ghost,
body.theme-emerald:not(.dashboard-body) .dest .ghost,
body.theme-emerald:not(.dashboard-body) .actions .ghost,
body.theme-emerald:not(.dashboard-body) .lib-toolbar .lib-filter,
body.theme-emerald:not(.dashboard-body) .top .tabs button,
body.theme-emerald:not(.dashboard-body) .etabs button,
body.theme-emerald:not(.dashboard-body) .preview-dock-toggle{
  background:#0d241e!important;color:#c9eee1!important;border-color:#245044!important
}
body.theme-emerald:not(.dashboard-body) .top .ghost:hover,
body.theme-emerald:not(.dashboard-body) .dest .ghost:hover,
body.theme-emerald:not(.dashboard-body) .actions .ghost:hover,
body.theme-emerald:not(.dashboard-body) .lib-toolbar .lib-filter:hover,
body.theme-emerald:not(.dashboard-body) .top .tabs button:hover,
body.theme-emerald:not(.dashboard-body) .etabs button:hover,
body.theme-emerald:not(.dashboard-body) .preview-dock-toggle:hover{
  background:#102b23!important;border-color:#159b70!important;color:#fff!important
}
body.theme-emerald:not(.dashboard-body) .top .tabs button.on,
body.theme-emerald:not(.dashboard-body) .etabs button.on,
body.theme-emerald:not(.dashboard-body) .lib-toolbar .lib-filter.active,
body.theme-emerald:not(.dashboard-body) .actions button:not(.ghost),
body.theme-emerald:not(.dashboard-body) .dest button:not(.ghost):not(.rt-select-trigger){
  background:#159b70!important;color:#fff!important;border-color:#159b70!important
}

/* ---------- Tareas ---------- */
body.theme-dark.dashboard-body .tasks-page .task-config button,
body.theme-dark.dashboard-body .tasks-page .primary,
body.theme-dark.dashboard-body .tasks-page .filters button,
body.theme-dark.dashboard-body .tasks-page .assignment-card-foot button,
body.theme-dark.dashboard-body .tasks-page .assignment-summary button,
body.theme-dark.dashboard-body .tasks-page .task-modal-card>footer button,
body.theme-dark.dashboard-body .tasks-page .annotation-actions button:not(.danger),
body.theme-dark.dashboard-body .tasks-page .annotation-form-actions button,
body.theme-dark.dashboard-body .tasks-page .task-image-picker-row button,
body.theme-dark.dashboard-body .tasks-page .task-image-dialog-actions button{background:#171f31!important;color:#e8ebf4!important;border-color:#303b55!important}
body.theme-dark.dashboard-body .tasks-page #saveConfig,
body.theme-dark.dashboard-body .tasks-page .task-config button[type=submit],
body.theme-dark.dashboard-body .tasks-page .primary{background:#6b58e6!important;color:#fff!important;border-color:#6b58e6!important}
body.theme-dark.dashboard-body .tasks-page .task-config button:hover,
body.theme-dark.dashboard-body .tasks-page .primary:hover,
body.theme-dark.dashboard-body .tasks-page .filters button:hover,
body.theme-dark.dashboard-body .tasks-page .assignment-card-foot button:hover,
body.theme-dark.dashboard-body .tasks-page .assignment-summary button:hover,
body.theme-dark.dashboard-body .tasks-page .task-modal-card>footer button:hover,
body.theme-dark.dashboard-body .tasks-page .annotation-actions button:hover,
body.theme-dark.dashboard-body .tasks-page .annotation-form-actions button:hover,
body.theme-dark.dashboard-body .tasks-page .task-image-picker-row button:hover,
body.theme-dark.dashboard-body .tasks-page .task-image-dialog-actions button:hover{border-color:#6b58e6!important;background:#1b2435!important;color:#fff!important}
body.theme-dark.dashboard-body .tasks-page .task-tab{color:#8f99ad!important;background:transparent!important;border-color:transparent!important}
body.theme-dark.dashboard-body .tasks-page .task-tab:hover{color:#e8ebf4!important;background:#1b2435!important}
body.theme-dark.dashboard-body .tasks-page .task-tab.active{color:#fff!important;background:#292052!important;border-color:#6b58e6!important}

body.theme-discord.dashboard-body .tasks-page .task-config button,
body.theme-discord.dashboard-body .tasks-page .primary,
body.theme-discord.dashboard-body .tasks-page .filters button,
body.theme-discord.dashboard-body .tasks-page .assignment-card-foot button,
body.theme-discord.dashboard-body .tasks-page .assignment-summary button,
body.theme-discord.dashboard-body .tasks-page .task-modal-card>footer button,
body.theme-discord.dashboard-body .tasks-page .annotation-actions button:not(.danger),
body.theme-discord.dashboard-body .tasks-page .annotation-form-actions button,
body.theme-discord.dashboard-body .tasks-page .task-image-picker-row button,
body.theme-discord.dashboard-body .tasks-page .task-image-dialog-actions button{background:#1e1f22!important;color:#dbdee1!important;border-color:#404249!important}
body.theme-discord.dashboard-body .tasks-page #saveConfig,
body.theme-discord.dashboard-body .tasks-page .task-config button[type=submit],
body.theme-discord.dashboard-body .tasks-page .primary{background:#5865f2!important;color:#fff!important;border-color:#5865f2!important}
body.theme-discord.dashboard-body .tasks-page .task-config button:hover,
body.theme-discord.dashboard-body .tasks-page .primary:hover,
body.theme-discord.dashboard-body .tasks-page .filters button:hover,
body.theme-discord.dashboard-body .tasks-page .assignment-card-foot button:hover,
body.theme-discord.dashboard-body .tasks-page .assignment-summary button:hover,
body.theme-discord.dashboard-body .tasks-page .task-modal-card>footer button:hover,
body.theme-discord.dashboard-body .tasks-page .annotation-actions button:hover,
body.theme-discord.dashboard-body .tasks-page .annotation-form-actions button:hover,
body.theme-discord.dashboard-body .tasks-page .task-image-picker-row button:hover,
body.theme-discord.dashboard-body .tasks-page .task-image-dialog-actions button:hover{border-color:#5865f2!important;background:#35373c!important;color:#fff!important}
body.theme-discord.dashboard-body .tasks-page .task-tab{color:#b5bac1!important;background:transparent!important;border-color:transparent!important}
body.theme-discord.dashboard-body .tasks-page .task-tab:hover{color:#f2f3f5!important;background:#35373c!important}
body.theme-discord.dashboard-body .tasks-page .task-tab.active{color:#fff!important;background:#35373c!important;border-color:#5865f2!important}

body.theme-light.dashboard-body .tasks-page .task-config button,
body.theme-light.dashboard-body .tasks-page .primary,
body.theme-light.dashboard-body .tasks-page .filters button,
body.theme-light.dashboard-body .tasks-page .assignment-card-foot button,
body.theme-light.dashboard-body .tasks-page .assignment-summary button,
body.theme-light.dashboard-body .tasks-page .task-modal-card>footer button,
body.theme-light.dashboard-body .tasks-page .annotation-actions button:not(.danger),
body.theme-light.dashboard-body .tasks-page .annotation-form-actions button,
body.theme-light.dashboard-body .tasks-page .task-image-picker-row button,
body.theme-light.dashboard-body .tasks-page .task-image-dialog-actions button{background:#f8f9fb!important;color:#344054!important;border-color:#d4dae5!important}
body.theme-light.dashboard-body .tasks-page #saveConfig,
body.theme-light.dashboard-body .tasks-page .task-config button[type=submit],
body.theme-light.dashboard-body .tasks-page .primary{background:#6b58e6!important;color:#fff!important;border-color:#6b58e6!important}
body.theme-light.dashboard-body .tasks-page .task-config button:hover,
body.theme-light.dashboard-body .tasks-page .primary:hover,
body.theme-light.dashboard-body .tasks-page .filters button:hover,
body.theme-light.dashboard-body .tasks-page .assignment-card-foot button:hover,
body.theme-light.dashboard-body .tasks-page .assignment-summary button:hover,
body.theme-light.dashboard-body .tasks-page .task-modal-card>footer button:hover,
body.theme-light.dashboard-body .tasks-page .annotation-actions button:hover,
body.theme-light.dashboard-body .tasks-page .annotation-form-actions button:hover,
body.theme-light.dashboard-body .tasks-page .task-image-picker-row button:hover,
body.theme-light.dashboard-body .tasks-page .task-image-dialog-actions button:hover{border-color:#6366f1!important;background:#eef1f6!important;color:#172033!important}
body.theme-light.dashboard-body .tasks-page .task-tab{color:#667085!important;background:transparent!important;border-color:transparent!important}
body.theme-light.dashboard-body .tasks-page .task-tab:hover{color:#172033!important;background:#eef1f6!important}
body.theme-light.dashboard-body .tasks-page .task-tab.active{color:#fff!important;background:#6366f1!important;border-color:#6366f1!important}

body.theme-midnight.dashboard-body .tasks-page .task-config button,
body.theme-midnight.dashboard-body .tasks-page .primary,
body.theme-midnight.dashboard-body .tasks-page .filters button,
body.theme-midnight.dashboard-body .tasks-page .assignment-card-foot button,
body.theme-midnight.dashboard-body .tasks-page .assignment-summary button,
body.theme-midnight.dashboard-body .tasks-page .task-modal-card>footer button,
body.theme-midnight.dashboard-body .tasks-page .annotation-actions button:not(.danger),
body.theme-midnight.dashboard-body .tasks-page .annotation-form-actions button,
body.theme-midnight.dashboard-body .tasks-page .task-image-picker-row button,
body.theme-midnight.dashboard-body .tasks-page .task-image-dialog-actions button{background:#0d1c2f!important;color:#cbd9e8!important;border-color:#24425d!important}
body.theme-midnight.dashboard-body .tasks-page #saveConfig,
body.theme-midnight.dashboard-body .tasks-page .task-config button[type=submit],
body.theme-midnight.dashboard-body .tasks-page .primary{background:#3d82d9!important;color:#fff!important;border-color:#3d82d9!important}
body.theme-midnight.dashboard-body .tasks-page .task-config button:hover,
body.theme-midnight.dashboard-body .tasks-page .primary:hover,
body.theme-midnight.dashboard-body .tasks-page .filters button:hover,
body.theme-midnight.dashboard-body .tasks-page .assignment-card-foot button:hover,
body.theme-midnight.dashboard-body .tasks-page .assignment-summary button:hover,
body.theme-midnight.dashboard-body .tasks-page .task-modal-card>footer button:hover,
body.theme-midnight.dashboard-body .tasks-page .annotation-actions button:hover,
body.theme-midnight.dashboard-body .tasks-page .annotation-form-actions button:hover,
body.theme-midnight.dashboard-body .tasks-page .task-image-picker-row button:hover,
body.theme-midnight.dashboard-body .tasks-page .task-image-dialog-actions button:hover{border-color:#3d82d9!important;background:#10243a!important;color:#fff!important}
body.theme-midnight.dashboard-body .tasks-page .task-tab{color:#91a6bd!important;background:transparent!important;border-color:transparent!important}
body.theme-midnight.dashboard-body .tasks-page .task-tab:hover{color:#edf6ff!important;background:#10243a!important}
body.theme-midnight.dashboard-body .tasks-page .task-tab.active{color:#fff!important;background:#3d82d9!important;border-color:#3d82d9!important}

body.theme-emerald.dashboard-body .tasks-page .task-config button,
body.theme-emerald.dashboard-body .tasks-page .primary,
body.theme-emerald.dashboard-body .tasks-page .filters button,
body.theme-emerald.dashboard-body .tasks-page .assignment-card-foot button,
body.theme-emerald.dashboard-body .tasks-page .assignment-summary button,
body.theme-emerald.dashboard-body .tasks-page .task-modal-card>footer button,
body.theme-emerald.dashboard-body .tasks-page .annotation-actions button:not(.danger),
body.theme-emerald.dashboard-body .tasks-page .annotation-form-actions button,
body.theme-emerald.dashboard-body .tasks-page .task-image-picker-row button,
body.theme-emerald.dashboard-body .tasks-page .task-image-dialog-actions button{background:#0d241e!important;color:#c9eee1!important;border-color:#245044!important}
body.theme-emerald.dashboard-body .tasks-page #saveConfig,
body.theme-emerald.dashboard-body .tasks-page .task-config button[type=submit],
body.theme-emerald.dashboard-body .tasks-page .primary{background:#159b70!important;color:#fff!important;border-color:#159b70!important}
body.theme-emerald.dashboard-body .tasks-page .task-config button:hover,
body.theme-emerald.dashboard-body .tasks-page .primary:hover,
body.theme-emerald.dashboard-body .tasks-page .filters button:hover,
body.theme-emerald.dashboard-body .tasks-page .assignment-card-foot button:hover,
body.theme-emerald.dashboard-body .tasks-page .assignment-summary button:hover,
body.theme-emerald.dashboard-body .tasks-page .task-modal-card>footer button:hover,
body.theme-emerald.dashboard-body .tasks-page .annotation-actions button:hover,
body.theme-emerald.dashboard-body .tasks-page .annotation-form-actions button:hover,
body.theme-emerald.dashboard-body .tasks-page .task-image-picker-row button:hover,
body.theme-emerald.dashboard-body .tasks-page .task-image-dialog-actions button:hover{border-color:#159b70!important;background:#102b23!important;color:#fff!important}
body.theme-emerald.dashboard-body .tasks-page .task-tab{color:#8fb7a9!important;background:transparent!important;border-color:transparent!important}
body.theme-emerald.dashboard-body .tasks-page .task-tab:hover{color:#ecfff8!important;background:#102b23!important}
body.theme-emerald.dashboard-body .tasks-page .task-tab.active{color:#fff!important;background:#159b70!important;border-color:#159b70!important}

/* Editor: controles pequeños y secundarios generados dinámicamente en Embed normal y V2. */
body:not(.dashboard-body) .top button.mini,
body:not(.dashboard-body) .actions button.mini,
body:not(.dashboard-body) .tools button.mini,
body:not(.dashboard-body) .pal-btn,
body:not(.dashboard-body) .pal-minimize,
body:not(.dashboard-body) .collapse-toggle,
body:not(.dashboard-body) .emo{
  background:var(--rt-panel-2)!important;
  color:var(--rt-text)!important;
  border-color:var(--rt-line-2)!important;
}
body:not(.dashboard-body) .top button.mini:hover,
body:not(.dashboard-body) .actions button.mini:hover,
body:not(.dashboard-body) .tools button.mini:hover,
body:not(.dashboard-body) .pal-btn:hover,
body:not(.dashboard-body) .pal-minimize:hover,
body:not(.dashboard-body) .collapse-toggle:hover,
body:not(.dashboard-body) .emo:hover{
  background:var(--rt-soft)!important;
  color:var(--rt-text)!important;
  border-color:var(--rt-brand)!important;
}
body:not(.dashboard-body) .primary-button,
body:not(.dashboard-body) .mini-add{
  background:var(--rt-brand)!important;
  color:#fff!important;
  border-color:var(--rt-brand)!important;
}
body:not(.dashboard-body) .primary-button:hover,
body:not(.dashboard-body) .mini-add:hover{
  background:var(--rt-brand-2)!important;
  color:#fff!important;
  border-color:var(--rt-brand-2)!important;
}

/* Tareas: cierres de modales y controles de imágenes también siguen el tema. */
body.theme-dark.dashboard-body .tasks-page .task-dialog-close,
body.theme-discord.dashboard-body .tasks-page .task-dialog-close,
body.theme-light.dashboard-body .tasks-page .task-dialog-close,
body.theme-midnight.dashboard-body .tasks-page .task-dialog-close,
body.theme-emerald.dashboard-body .tasks-page .task-dialog-close{
  background:var(--rt-panel-2)!important;
  color:var(--rt-text)!important;
  border-color:var(--rt-line-2)!important;
}
body.theme-dark.dashboard-body .tasks-page .task-dialog-close:hover,
body.theme-discord.dashboard-body .tasks-page .task-dialog-close:hover,
body.theme-light.dashboard-body .tasks-page .task-dialog-close:hover,
body.theme-midnight.dashboard-body .tasks-page .task-dialog-close:hover,
body.theme-emerald.dashboard-body .tasks-page .task-dialog-close:hover{
  background:var(--rt-soft)!important;
  border-color:var(--rt-brand)!important;
}

/* ======================================================================
   Editor: colores por función, no por etiqueta HTML.
   Los selectores y las herramientas de mención deben conservar su
   superficie neutra; solo las acciones principales y pestañas activas
   usan el color de marca.
   ====================================================================== */
body.theme-dark:not(.dashboard-body) .top .tabs button.on,
body.theme-dark:not(.dashboard-body) .etabs button.on,
body.theme-dark:not(.dashboard-body) .lib-filter.active,
body.theme-dark:not(.dashboard-body) .actions button:not(.ghost):not(.mention-action):not(.mention-chip):not(.rt-select-trigger),
body.theme-dark:not(.dashboard-body) .dest button:not(.ghost):not(.rt-select-trigger){
  background:#7755ff!important;color:#fff!important;border-color:#7755ff!important
}
body.theme-discord:not(.dashboard-body) .top .tabs button.on,
body.theme-discord:not(.dashboard-body) .etabs button.on,
body.theme-discord:not(.dashboard-body) .lib-filter.active,
body.theme-discord:not(.dashboard-body) .actions button:not(.ghost):not(.mention-action):not(.mention-chip):not(.rt-select-trigger),
body.theme-discord:not(.dashboard-body) .dest button:not(.ghost):not(.rt-select-trigger){
  background:#5865f2!important;color:#fff!important;border-color:#5865f2!important
}
body.theme-light:not(.dashboard-body) .top .tabs button.on,
body.theme-light:not(.dashboard-body) .etabs button.on,
body.theme-light:not(.dashboard-body) .lib-filter.active,
body.theme-light:not(.dashboard-body) .actions button:not(.ghost):not(.mention-action):not(.mention-chip):not(.rt-select-trigger),
body.theme-light:not(.dashboard-body) .dest button:not(.ghost):not(.rt-select-trigger){
  background:#6366f1!important;color:#fff!important;border-color:#6366f1!important
}
body.theme-midnight:not(.dashboard-body) .top .tabs button.on,
body.theme-midnight:not(.dashboard-body) .etabs button.on,
body.theme-midnight:not(.dashboard-body) .lib-filter.active,
body.theme-midnight:not(.dashboard-body) .actions button:not(.ghost):not(.mention-action):not(.mention-chip):not(.rt-select-trigger),
body.theme-midnight:not(.dashboard-body) .dest button:not(.ghost):not(.rt-select-trigger){
  background:#3d82d9!important;color:#fff!important;border-color:#3d82d9!important
}
body.theme-emerald:not(.dashboard-body) .top .tabs button.on,
body.theme-emerald:not(.dashboard-body) .etabs button.on,
body.theme-emerald:not(.dashboard-body) .lib-filter.active,
body.theme-emerald:not(.dashboard-body) .actions button:not(.ghost):not(.mention-action):not(.mention-chip):not(.rt-select-trigger),
body.theme-emerald:not(.dashboard-body) .dest button:not(.ghost):not(.rt-select-trigger){
  background:#159b70!important;color:#fff!important;border-color:#159b70!important
}

/* Botones de paleta, selector de tema, filtros y componentes del editor. */
body.theme-dark:not(.dashboard-body) .pal-btn,
body.theme-dark:not(.dashboard-body) .theme-menu button[data-theme-option]{background:#141923!important;color:#dfe4ef!important;border-color:#303a51!important}
body.theme-discord:not(.dashboard-body) .pal-btn,
body.theme-discord:not(.dashboard-body) .theme-menu button[data-theme-option]{background:#313338!important;color:#dbdee1!important;border-color:#4b4d53!important}
body.theme-light:not(.dashboard-body) .pal-btn,
body.theme-light:not(.dashboard-body) .theme-menu button[data-theme-option]{background:#f8f9fb!important;color:#344054!important;border-color:#d4dae5!important}
body.theme-midnight:not(.dashboard-body) .pal-btn,
body.theme-midnight:not(.dashboard-body) .theme-menu button[data-theme-option]{background:#0d1c2f!important;color:#cbd9e8!important;border-color:#24425d!important}
body.theme-emerald:not(.dashboard-body) .pal-btn,
body.theme-emerald:not(.dashboard-body) .theme-menu button[data-theme-option]{background:#0d241e!important;color:#c9eee1!important;border-color:#245044!important}

/* ============================= TAREAS =============================== */
body.theme-dark.dashboard-body.tasks-page .task-tab,
body.theme-dark.dashboard-body.tasks-page .task-dialog-close,
body.theme-dark.dashboard-body.tasks-page .assignment-summary button,
body.theme-dark.dashboard-body.tasks-page .task-modal-card>footer button,
body.theme-dark.dashboard-body.tasks-page .annotation-actions button:not(.danger),
body.theme-dark.dashboard-body.tasks-page .task-image-dialog-actions button:not(.primary){background:#171f31!important;color:#dfe4ef!important;border-color:#303b55!important}
body.theme-dark.dashboard-body.tasks-page .task-tab.active,
body.theme-dark.dashboard-body.tasks-page .task-config button,
body.theme-dark.dashboard-body.tasks-page .primary,
body.theme-dark.dashboard-body.tasks-page .assignment-card-foot button,
body.theme-dark.dashboard-body.tasks-page .task-image-dialog-actions .primary{background:#6b58e6!important;color:#fff!important;border-color:#6b58e6!important}

body.theme-discord.dashboard-body.tasks-page .task-tab,
body.theme-discord.dashboard-body.tasks-page .task-dialog-close,
body.theme-discord.dashboard-body.tasks-page .assignment-summary button,
body.theme-discord.dashboard-body.tasks-page .task-modal-card>footer button,
body.theme-discord.dashboard-body.tasks-page .annotation-actions button:not(.danger),
body.theme-discord.dashboard-body.tasks-page .task-image-dialog-actions button:not(.primary){background:#1e1f22!important;color:#dbdee1!important;border-color:#404249!important}
body.theme-discord.dashboard-body.tasks-page .task-tab.active,
body.theme-discord.dashboard-body.tasks-page .task-config button,
body.theme-discord.dashboard-body.tasks-page .primary,
body.theme-discord.dashboard-body.tasks-page .assignment-card-foot button,
body.theme-discord.dashboard-body.tasks-page .task-image-dialog-actions .primary{background:#5865f2!important;color:#fff!important;border-color:#5865f2!important}

body.theme-light.dashboard-body.tasks-page .task-tab,
body.theme-light.dashboard-body.tasks-page .task-dialog-close,
body.theme-light.dashboard-body.tasks-page .assignment-summary button,
body.theme-light.dashboard-body.tasks-page .task-modal-card>footer button,
body.theme-light.dashboard-body.tasks-page .annotation-actions button:not(.danger),
body.theme-light.dashboard-body.tasks-page .task-image-dialog-actions button:not(.primary){background:#f8f9fb!important;color:#344054!important;border-color:#d4dae5!important}
body.theme-light.dashboard-body.tasks-page .task-tab.active,
body.theme-light.dashboard-body.tasks-page .task-config button,
body.theme-light.dashboard-body.tasks-page .primary,
body.theme-light.dashboard-body.tasks-page .assignment-card-foot button,
body.theme-light.dashboard-body.tasks-page .task-image-dialog-actions .primary{background:#6b58e6!important;color:#fff!important;border-color:#6b58e6!important}

body.theme-midnight.dashboard-body.tasks-page .task-tab,
body.theme-midnight.dashboard-body.tasks-page .task-dialog-close,
body.theme-midnight.dashboard-body.tasks-page .assignment-summary button,
body.theme-midnight.dashboard-body.tasks-page .task-modal-card>footer button,
body.theme-midnight.dashboard-body.tasks-page .annotation-actions button:not(.danger),
body.theme-midnight.dashboard-body.tasks-page .task-image-dialog-actions button:not(.primary){background:#0d1c2f!important;color:#cbd9e8!important;border-color:#24425d!important}
body.theme-midnight.dashboard-body.tasks-page .task-tab.active,
body.theme-midnight.dashboard-body.tasks-page .task-config button,
body.theme-midnight.dashboard-body.tasks-page .primary,
body.theme-midnight.dashboard-body.tasks-page .assignment-card-foot button,
body.theme-midnight.dashboard-body.tasks-page .task-image-dialog-actions .primary{background:#3d82d9!important;color:#fff!important;border-color:#3d82d9!important}

body.theme-emerald.dashboard-body.tasks-page .task-tab,
body.theme-emerald.dashboard-body.tasks-page .task-dialog-close,
body.theme-emerald.dashboard-body.tasks-page .assignment-summary button,
body.theme-emerald.dashboard-body.tasks-page .task-modal-card>footer button,
body.theme-emerald.dashboard-body.tasks-page .annotation-actions button:not(.danger),
body.theme-emerald.dashboard-body.tasks-page .task-image-dialog-actions button:not(.primary){background:#0d241e!important;color:#c9eee1!important;border-color:#245044!important}
body.theme-emerald.dashboard-body.tasks-page .task-tab.active,
body.theme-emerald.dashboard-body.tasks-page .task-config button,
body.theme-emerald.dashboard-body.tasks-page .primary,
body.theme-emerald.dashboard-body.tasks-page .assignment-card-foot button,
body.theme-emerald.dashboard-body.tasks-page .task-image-dialog-actions .primary{background:#159b70!important;color:#fff!important;border-color:#159b70!important}

/* Botones secundarios de imágenes y acciones que no llevan .ghost. */
body.theme-dark.dashboard-body.tasks-page .task-image-upload button,
body.theme-dark.dashboard-body.tasks-page .task-image-picker-row button,
body.theme-dark.dashboard-body.tasks-page .task-selected-image button{background:#171f31!important;color:#dfe4ef!important;border-color:#303b55!important}
body.theme-discord.dashboard-body.tasks-page .task-image-upload button,
body.theme-discord.dashboard-body.tasks-page .task-image-picker-row button,
body.theme-discord.dashboard-body.tasks-page .task-selected-image button{background:#1e1f22!important;color:#dbdee1!important;border-color:#404249!important}
body.theme-light.dashboard-body.tasks-page .task-image-upload button,
body.theme-light.dashboard-body.tasks-page .task-image-picker-row button,
body.theme-light.dashboard-body.tasks-page .task-selected-image button{background:#f8f9fb!important;color:#344054!important;border-color:#d4dae5!important}
body.theme-midnight.dashboard-body.tasks-page .task-image-upload button,
body.theme-midnight.dashboard-body.tasks-page .task-image-picker-row button,
body.theme-midnight.dashboard-body.tasks-page .task-selected-image button{background:#0d1c2f!important;color:#cbd9e8!important;border-color:#24425d!important}
body.theme-emerald.dashboard-body.tasks-page .task-image-upload button,
body.theme-emerald.dashboard-body.tasks-page .task-image-picker-row button,
body.theme-emerald.dashboard-body.tasks-page .task-selected-image button{background:#0d241e!important;color:#c9eee1!important;border-color:#245044!important}

/* Estados danger permanecen rojos, independientemente del tema. */
body.dashboard-body.tasks-page .annotation-actions button.danger,
body.dashboard-body.tasks-page .task-selected-image button.danger{background:transparent!important;color:#ff8993!important;border-color:#6b3340!important}

/* Hover: mismo color de superficie que Automáticos, sin volver al azul fijo. */
body.theme-dark.dashboard-body.tasks-page button:not(.primary):not(.danger):hover{background:#1b2435!important;border-color:#6b58e6!important}
body.theme-discord.dashboard-body.tasks-page button:not(.primary):not(.danger):hover{background:#35373c!important;border-color:#5865f2!important}
body.theme-light.dashboard-body.tasks-page button:not(.primary):not(.danger):hover{background:#eef1f6!important;border-color:#6b58e6!important}
body.theme-midnight.dashboard-body.tasks-page button:not(.primary):not(.danger):hover{background:#10243a!important;border-color:#3d82d9!important}
body.theme-emerald.dashboard-body.tasks-page button:not(.primary):not(.danger):hover{background:#102b23!important;border-color:#159b70!important}


/* Navegación compartida: evita desbordes en la esquina superior izquierda y conserva
   el mismo borde, fondo y radio que las páginas ya existentes. */
.dashboard-body .dash-shell{min-width:0;width:100%;overflow-x:clip}
.dashboard-body .dash-sidebar{box-sizing:border-box}
.dashboard-body .dash-brand-wrap{min-width:0;align-items:center}
.dashboard-body .dash-brand{min-width:0;max-width:100%;overflow:hidden}
.dashboard-body .dash-brand .brand-image{width:32px;height:32px;flex:0 0 32px}
.dashboard-body .dash-brand span{white-space:nowrap}
@media(max-width:900px){
  .dashboard-body .dash-sidebar{left:-290px;max-width:min(278px,calc(100vw - 48px));border-top-right-radius:16px;border-bottom-right-radius:16px}
  .dashboard-body .dash-sidebar.open{left:0}
  .dashboard-body .dash-main{width:100%;min-width:0;overflow-x:clip}
  .dashboard-body .dash-header{padding-left:max(15px,env(safe-area-inset-left));padding-right:max(15px,env(safe-area-inset-right))}
  .dashboard-body .dash-content,.dashboard-body .annotations-main,.dashboard-body .task-main,.dashboard-body .settings-wrap{max-width:100%;min-width:0}
}


/* Marca del constructor: proporción equilibrada entre icono y nombre. */
.top .brand-link{display:inline-flex;align-items:center;gap:11px;min-height:40px;font-size:18px;line-height:1.15;font-weight:800;letter-spacing:-.02em;white-space:nowrap}
.top .brand-link .brand-image{width:38px;height:38px;flex:0 0 38px;object-fit:contain;border-radius:9px}
@media(max-width:760px){.top .brand-link{font-size:17px;gap:9px}.top .brand-link .brand-image{width:35px;height:35px;flex-basis:35px}}

/* El acceso OAuth debe mantener el azul reconocible de Discord en todos los temas. */
.login-page .login>.btn-discord,
.login-page .btn-discord{background:#5865f2!important;color:#fff!important;border:1px solid #5865f2!important;box-shadow:0 8px 22px rgba(88,101,242,.24)!important}
.login-page .login>.btn-discord:hover,
.login-page .btn-discord:hover{background:#4752c4!important;border-color:#4752c4!important;color:#fff!important}
.login-page .btn-discord:focus-visible{outline:3px solid rgba(88,101,242,.35)!important;outline-offset:3px}
