/* ElChatea · Oscuro V1. Reversible con un atributo; imágenes y vídeos intactos. */
#ecThemeToggle1{min-width:114px;gap:6px}
#ecThemeToggle1 svg{fill:none;stroke:currentColor;stroke-width:1.8;width:18px;height:18px}
@media(max-width:760px),(max-height:600px) and (max-width:1000px){#ecThemeToggle1{display:none!important}}
html[data-ec-theme1="dark"]{color-scheme:dark;--ec-surface:#1d2632;--ec-raised:#253244;--ec-edge:#566b83;--ec-ink:#e6edf3;--ec-muted:#bac8d8;--ec-link:#79b8ff}
html[data-ec-theme1="dark"],html[data-ec-theme1="dark"] body{background:#151b23!important;color:var(--ec-ink)!important}
html[data-ec-theme1="dark"] body :is(.chat-app,#messages,.users-panel,.composer,.compose-main,.message-row,.members-search,.camera-section,.camera-title,.users-list,.statusbar,.status-bar){background:var(--ec-surface)!important;color:var(--ec-ink)!important;border-color:var(--ec-edge)!important;box-shadow:none!important}
html[data-ec-theme1="dark"] body .chat-main{background:var(--ec-edge)!important;border-color:var(--ec-edge)!important;box-shadow:none!important}
html[data-ec-theme1="dark"] body :is(.brandbar,.brand-bar,.topbar,.users-title,#formatToolbar,#mobileChatNav,.mobile-users-tools,#ecPrivateControls1,.tabs,.room-tabs,#roomTabs){background:var(--ec-raised)!important;color:var(--ec-ink)!important;border-color:var(--ec-edge)!important;box-shadow:none!important}
html[data-ec-theme1="dark"] body :is(.room-title,.room-topic,.camera-title,.users-title,.status-text,.private-heading,#ecPrivateName1,.ec-compact-brand,.chat-nick,.user-name,.user-nick){color:var(--ec-ink)!important;text-shadow:none!important}
html[data-ec-theme1="dark"] body :is(.chat-nick,.decoration-preview-nick){color:var(--ec-link)!important}
html[data-ec-theme1="dark"] body :is(.system,.private-heading,.room-topic,.statusbar,.status-bar){color:var(--ec-muted)!important}
html[data-ec-theme1="dark"] body :is(.system.error,.account-settings-status.error,.avatar-status.error){color:#ffb4b4!important}
html[data-ec-theme1="dark"] body #messages>.message.system:first-child{background:var(--ec-raised)!important;border-color:var(--ec-edge)!important;color:var(--ec-muted)!important}
html[data-ec-theme1="dark"] body .chat-line :is(.chat-body,.decoration-run){color:var(--ec-night-ink,var(--ec-ink))!important;background-color:var(--ec-night-bg,transparent)!important}
html[data-ec-theme1="dark"] body .chat-body :is(a,.chat-mention){color:#a8ceff!important;background:transparent!important;text-decoration:underline}
html[data-ec-theme1="dark"] body .chat-body .mention-me{background:#394d6c!important;color:#fff!important}
html[data-ec-theme1="dark"] body :is(.message.mentioned-me,.user.me,.user:hover,.member-action-item:hover,.mobile-more-action:hover){background:#2c4059!important;color:var(--ec-ink)!important}
/* Panels share the same readable palette. Game boards, avatars, flags and video pixels keep their colors. */
html[data-ec-theme1="dark"] body :is(.entry-card,.moderation-card,.camera-mode-card,.camera-request-panel,.member-action-menu,.mention-autocomplete,.user-profile-card,.user-report-card,.help-card,.friends-panel,.room-directory-card,.emoji-picker,.register-name-card,.account-settings-card,.chat-text-size-popup,.mobile-more-menu,.favorites-card,.share-chat-card,.decoration-popup,.logout-confirm-card,.community-card,.elchatea-games-card,.elchatea-language-card,.elchatea-game-panel,.ec-mod-card,.ec-compact-panel,#ecCallCard1,#ecCallDock1,#ecRadioPanel){background:var(--ec-surface)!important;color:var(--ec-ink)!important;border-color:var(--ec-edge)!important;box-shadow:0 12px 35px #0006!important}
html[data-ec-theme1="dark"] body :is(.account-settings-nav,.account-settings-footer,.account-settings-session-note,.settings-profile-preview,.settings-section-heading,.avatar-v1-box,.avatar-report-box,.ec-call-settings,.user-profile-bio,.help-intro,.help-section,.help-note,.friends-section,.room-directory-tools,.room-directory-footer,.emoji-picker-footer,.register-name-help,.chat-text-size-preview,.chat-text-size-status,.favorites-tabs,.share-chat-room,.share-chat-link,.decoration-header,.decoration-active-row,.decoration-section,.decoration-segment-area,.decoration-live-preview-wrap,.community-header,.community-proposal,.room-manage-note,.elchatea-games-header,.elchatea-game-meta,.elchatea-game-actions,.elchatea-game-panel-header,.ec-games-pages,.ec-mod-record,.ec-mod-pages,.camera-request-footer,.camera-viewers-section,.ec-radio-choice,.ec-radio-now,#ecCountryField1){background:var(--ec-raised)!important;color:var(--ec-ink)!important;border-color:var(--ec-edge)!important}
html[data-ec-theme1="dark"] body :is(.settings-label,.settings-field label,.settings-section-heading,.account-settings-card h2,.account-settings-card h3,.user-profile-card h2,.user-profile-card h3,.help-card h2,.help-card h3,.community-card h2,.community-card h3,.ec-mod-card h2,.ec-mod-card h3,.elchatea-games-card h2,.elchatea-games-card h3,#ecCountryField1>label,#ecCallCard1 footer summary){color:var(--ec-ink)!important}
html[data-ec-theme1="dark"] body :is(.account-settings-card,.user-profile-card,.user-report-card,.help-card,.community-card,.ec-mod-card,.elchatea-games-card,.register-name-card,.share-chat-card,#ecRadioPanel) :is(p,small,label,legend,dt,dd){color:var(--ec-muted)!important}
html[data-ec-theme1="dark"] body :is(.settings-field-help,.avatar-status,.ec-layout-choice1 small,.ec-mod-note,#ecCountryField1 p,#ecCountryStatus1,#ecCallNotice1,#ecCallCard1 footer span,.elchatea-game-status,.ec-radio-description,.ec-radio-choice small){color:var(--ec-muted)!important}
html[data-ec-theme1="dark"] body :is(a,.settings-control-action,.ec-country-profile-action){color:var(--ec-link)}
html[data-ec-theme1="dark"] body :is(input:not([type="color"]):not([type="checkbox"]):not([type="radio"]),textarea,select,#messageInput,.room-directory-search-wrap,.emoji-picker-search-wrap){background:#18212d!important;color:var(--ec-ink)!important;border-color:var(--ec-edge)!important;box-shadow:none!important;caret-color:var(--ec-ink)}
html[data-ec-theme1="dark"] body :is(input,textarea)::placeholder{color:var(--ec-muted)!important;opacity:1}
html[data-ec-theme1="dark"] body :is(.account-settings-nav-item,.format-button,.color-control,.reset-bg,.mod-button,.moderation-action,.private-close-toolbar-button,.camera-mode-option,.camera-request-more,.member-action-item,.settings-control-action,.mobile-users-filter,.mobile-users-close,.mobile-more-action,.favorites-tab,.favorite-action,.share-chat-action,.decoration-close,.decoration-mini-button,.decoration-primary-button,.decoration-secondary-button,.decoration-danger-button,.decoration-add-segment,.decoration-segment-delete,.logout-confirm-cancel,.community-btn,.community-tab,.avatar-mini-btn,.ec-compact-action,.ec-compact-header-button,.elchatea-games-close,.elchatea-game-choice,.elchatea-game-opponent,.elchatea-game-secondary,.elchatea-game-invite-option,.ec-country-profile-action,.icon-button,.rooms-toolbar-button,.tab,#ecCompactPlus,#ecPrivateControls1 button,#ecCallCard1 button,#ecCallDock1 button,#ecCountryPicker1 summary,#ecCountryGrid1 button,#ecRadioPanel button,.ec-mod-card button,.ec-games-tabs button){background:var(--ec-raised)!important;color:var(--ec-ink)!important;border-color:var(--ec-edge)!important;box-shadow:none!important}
html[data-ec-theme1="dark"] body :is(.tab.active,.community-tab.active,.favorites-tab.active,.format-button.active,.mobile-chat-nav-button.active,.ec-compact-header-button.active,.avatar-preset-button.selected,#ecCountryGrid1 button[aria-pressed="true"],.ec-mod-tabs [aria-selected="true"],.ec-games-tabs [aria-selected="true"],.account-settings-nav button.active){background:#355476!important;color:#fff!important;border-color:#92c8ff!important}
html[data-ec-theme1="dark"] body :is(#sendButton,.account-settings-save,.community-btn.primary,.avatar-mini-btn.primary,.elchatea-game-primary,.elchatea-game-invite-btn,.elchatea-language-ok,#myCameraButton){background:#285d94!important;color:#fff!important;border-color:#79b8ff!important}
html[data-ec-theme1="dark"] body :is(.ec-call-launch,#ecCallLaunchMobile1,#ecCallLaunchDesktop1){background:#17624d!important;color:#fff!important;border-color:#6ddbb1!important}
html[data-ec-theme1="dark"] body :is(#ecCallCard1 .ec-call-danger,#ecCallDock1 .ec-call-danger,.community-btn.danger,.elchatea-game-danger,.elchatea-game-danger-primary){background:#7d2d3a!important;color:#fff!important;border-color:#ed9caa!important}
html[data-ec-theme1="dark"] body :is(.brand-nav-item,.brand-logo,.brand-user,.brand-user-name){color:#e6edf3!important}
html[data-ec-theme1="dark"] body :is(.floating-camera-header,.ec-call-head,.ec-radio-header,.ec-mod-card header){background:#253e59!important;color:#e6edf3!important;border-color:var(--ec-edge)!important}
html[data-ec-theme1="dark"] body :is(.floating-camera-name,.floating-camera-title){color:var(--ec-ink)!important}
html[data-ec-theme1="dark"] body :is(.color-palette-popup,.palette-arrow){background:var(--ec-raised)!important;border-color:var(--ec-edge)!important;color:var(--ec-ink)!important}
html[data-ec-theme1="dark"] body #ecCountryPicker1 summary::after{color:var(--ec-link)!important}
html[data-ec-theme1="dark"] body #ecPrivateCount1{background:#355476!important;color:#fff!important;border-color:#79b8ff!important}
html[data-ec-theme1="dark"] body :is(.tab.unread,.private-tab.unread){box-shadow:inset 0 -3px #ffd27a!important;color:#ffe0a5!important}
html[data-ec-theme1="dark"] body :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid #a8ceff!important;outline-offset:2px}
html[data-ec-theme1="dark"] body ::selection{background:#426a94;color:#fff}
@media(forced-colors:active){html[data-ec-theme1="dark"]{color-scheme:normal}}

html[data-ec-theme1="dark"] body :is(.member-clickable-nick,.member-role-name,.avatar-v1-title,.settings-profile-preview-copy strong){color:var(--ec-ink)!important}
html[data-ec-theme1="dark"] body :is(.settings-profile-preview-copy span,#ecAvatarCount3){color:var(--ec-muted)!important}
html[data-ec-theme1="dark"] body :is(.ec-avatar-shortcut,#ecAvatarFilters3 button,#avatarPresetGrid button,.mobile-chat-nav-button,.mobile-camera-request-chip,.mobile-camera-tray-chip,.ec-games-tabs,.naval-last,.elchatea-promotion){background:var(--ec-raised)!important;color:var(--ec-ink)!important;border-color:var(--ec-edge)!important}
html[data-ec-theme1="dark"] body #avatarPresetGrid button span{color:var(--ec-ink)!important}
html[data-ec-theme1="dark"] body :is(#ecAvatarFilters3 button[aria-pressed="true"],#avatarPresetGrid button.selected){background:#355476!important;border-color:#92c8ff!important}
html[data-ec-theme1="dark"] body .chat-main::before{background:var(--ec-edge)!important;border-color:var(--ec-edge)!important}
html[data-ec-theme1="dark"] body .chat-main::after{border-color:var(--ec-edge)!important}
html[data-ec-theme1="dark"] body .app-statusbar{background:#253e59!important;color:var(--ec-ink)!important;border-color:var(--ec-edge)!important}

html[data-ec-theme1="dark"] body :is(.settings-switch-row strong,.settings-control-empty,.elchatea-game-opponents-title,.elchatea-game-choice strong,.elchatea-game-choice span){color:var(--ec-ink)!important}
html[data-ec-theme1="dark"] body :is(.account-settings-header,.user-profile-header,.user-report-header,.help-header,.room-directory-header,.register-name-header,.favorites-header,.share-chat-header,.logout-confirm-header){background:#253e59!important;color:var(--ec-ink)!important;border-color:var(--ec-edge)!important}
html[data-ec-theme1="dark"] body :is(.help-card li,.help-card strong,.help-card em,.help-card u,.user-profile-name,.user-profile-row strong,.user-profile-row span,.room-directory-name,.room-directory-users-count,.camera-media-step-title,.camera-mode-option-title,.camera-mode-option-title span){color:var(--ec-ink)!important}
html[data-ec-theme1="dark"] body :is(.room-directory-topic,.camera-mode-help,.camera-mode-option-desc,.friend-empty){color:var(--ec-muted)!important}
html[data-ec-theme1="dark"] body :is(.room-directory-action,.room-directory-pref-button,.camera-mode-action,.help-pill){background:var(--ec-raised)!important;color:var(--ec-ink)!important;border-color:var(--ec-edge)!important}
html[data-ec-theme1="dark"] body :is(.room-directory-row:hover,.camera-mode-option:has(input:checked)){background:#2c4059!important}
html[data-ec-theme1="dark"] body :is(.camera-mode-action.primary,.room-directory-action.current){background:#285d94!important;color:#fff!important}
@media(min-width:761px) and (max-width:980px){#ecThemeToggle1{min-width:40px;width:40px;padding:0 8px}}
html[data-ec-theme1="dark"] body .user-profile-grid :is(strong,span){color:var(--ec-ink)!important}
html[data-ec-theme1="dark"] body #roomDirectoryOverlay .room-directory-users-count{color:var(--ec-ink)!important}
html[data-ec-theme1="dark"] body .camera-media-badge{background:#355476!important;color:var(--ec-ink)!important;border-color:var(--ec-edge)!important}
html[data-ec-theme1="dark"] body .private-heading{background:var(--ec-raised)!important;border-color:var(--ec-edge)!important;color:var(--ec-muted)!important}
html[data-ec-theme1="dark"] body #ecCallSelf1{background:#18212d;border-color:var(--ec-edge)}
html[data-ec-theme1="dark"] body #ecRadioChoices{background:var(--ec-surface)!important;border-color:var(--ec-edge)!important}
html[data-ec-theme1="dark"] body #ecRadioPanel .ec-radio-station{color:var(--ec-ink)!important}
html[data-ec-theme1="dark"] body #ecRadioPanel a{color:var(--ec-link)!important}
html[data-ec-theme1="dark"] body :is(.mention-autocomplete-item,.mention-autocomplete-role){color:var(--ec-ink)!important}
html[data-ec-theme1="dark"] body .mention-autocomplete-item.selected{background:#355476!important}
