/* ========================================================================== */
/* 全站主题覆盖：由 assets/js/theme-init.js 在首屏渲染前写入 data-theme。     */
/* ========================================================================== */

html[data-theme="dark"] {
  --primary: #60a5fa;
  --primary-dark: #3b82f6;
  --ink: #e7edf7;
  --muted: #9cabbe;
  --line: #344258;
  --surface: #182235;
  --soft: #111a2a;
  --success: #4ade80;
  --danger: #fb7185;
  --warning: #fbbf24;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] body {
  color: var(--ink);
  background: linear-gradient(135deg, #09111f, #101a2b 52%, #1a1320) fixed !important;
}

html[data-theme="dark"] :where(input, textarea, select) {
  color: var(--ink) !important;
  background: #101a2a !important;
  border-color: #3a4960 !important;
}

html[data-theme="dark"] :where(input, textarea)::placeholder {
  color: #738198;
}

html[data-theme="dark"] :where(input, textarea, select):focus {
  background: #142136 !important;
  border-color: #60a5fa !important;
}

html[data-theme="dark"] .site-nav {
  background: rgba(15, 24, 39, 0.38) !important;
  border-color: rgba(148, 180, 221, 0.24) !important;
  box-shadow: 0 12px 30px rgba(30, 64, 175, 0.24);
}

html[data-theme="dark"] .nav-links.open {
  background: rgba(15, 24, 39, 0.76) !important;
  border-color: rgba(148, 180, 221, 0.24) !important;
}

html[data-theme="dark"] :where(.nav-link, .account-link) {
  color: #bdc9da;
}

html[data-theme="dark"] :where(.nav-link, .account-link):hover,
html[data-theme="dark"] :where(.nav-link, .account-link):focus-visible,
html[data-theme="dark"] .nav-link.active,
html[data-theme="dark"] .account-link.active,
html[data-theme="dark"] .profile-page .account-link.active {
  color: #8fc0ff;
  background: #172946;
}

html[data-theme="dark"] .button-secondary {
  color: #8fc0ff;
  background: #172235;
  border-color: #3f587b;
}

html[data-theme="dark"] .button-secondary:hover,
html[data-theme="dark"] .button-secondary:focus-visible {
  color: #fff;
  background: #315fae;
  border-color: #5791e8;
}

html[data-theme="dark"] body .button:not(.button-secondary):not(.button-danger) {
  color: #fff;
  background: #2563eb;
  border-color: #3b82f6;
}

html[data-theme="dark"] body .skip-link {
  color: #fff;
  background: #172033;
}

html[data-theme="dark"] :where(.page-header, .blog-header, .tv-header) {
  background-color: #0f1929 !important;
  border-color: #2c3a4f !important;
}

html[data-theme="dark"] .page-header {
  background: linear-gradient(135deg, #101d31, #172139 52%, #241928) !important;
}

html[data-theme="dark"] :where(.page-title p, .section-heading p, .card-heading p) {
  color: var(--muted);
}

/* 首页 */
html[data-theme="dark"] :where(.intro-card, .notice-card, .news-card, .blog-card, .home-data-state, .home-blog-empty) {
  color: var(--ink);
  background: #182235 !important;
  border-color: #344258 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] :where(.intro-card p, .notice-card p, .news-card p, .blog-summary, .home-data-state p, .home-blog-empty p) {
  color: var(--muted);
}

html[data-theme="dark"] .blog-summary {
  background: #111c2d;
}

html[data-theme="dark"] .more-card {
  color: #dce8f8;
  background: linear-gradient(135deg, #172943, #291d2c);
  border-color: #50627b;
}

html[data-theme="dark"] :where(.carousel-data-state, .carousel-image-error, .home-blog-cover-placeholder, .news-slide-placeholder) {
  color: var(--muted);
  background: linear-gradient(135deg, #14243a, #182c32 52%, #2b1c29) !important;
}

html[data-theme="dark"] :where(.carousel-data-state, .carousel-image-error, .home-blog-cover-placeholder, .news-slide-placeholder) > :where(span, b) {
  color: #9ac6ff;
  background: rgba(13, 24, 40, 0.72);
  border-color: rgba(133, 164, 202, 0.22);
}

html[data-theme="dark"] .site-footer {
  color: #dce6f4;
  background: linear-gradient(110deg, #112b2d, #171f31 48%, #321e2a) !important;
}

html[data-theme="dark"] :where(.footer-links a, .subscribe-copy, .footer-data-state, .footer-bottom) {
  color: #aab8ca;
}

html[data-theme="dark"] .partner-chip {
  color: #cbd8e8;
  background: rgba(23, 34, 52, 0.8);
  border-color: #40506a;
}

/* 通用内容页、博客和新闻 */
html[data-theme="dark"] .blog-page {
  --blog-ink: #e8eee9;
  --blog-muted: #a4afa8;
  --blog-cream: #101712;
  --blog-line: #354139;
  color: var(--blog-ink);
  background: #101712 !important;
}

html[data-theme="dark"] .blog-header {
  background: linear-gradient(120deg, #182017, #151c19 48%, #15221b) !important;
}

html[data-theme="dark"] :where(
  .content-card, .blog-list-card, .blog-featured, .blog-featured-copy,
  .blog-list-panel, .blog-empty-state, .article, .article-layout,
  .news-feed, .hot-panel, .news-row, .empty-state
) {
  color: var(--ink);
  background-color: #182235 !important;
  border-color: #344258 !important;
}

html[data-theme="dark"] :where(.content-card p, .blog-list-card p, .article-meta, .article-content, .news-row p, .hot-panel li) {
  color: var(--muted);
}

html[data-theme="dark"] :where(.blog-toolbar, .blog-filter-bar, .news-category-nav, .news-toolbar) {
  background-color: rgba(20, 31, 48, 0.9) !important;
  border-color: #344258 !important;
}

html[data-theme="dark"] .news-lead {
  background: #162337;
  border-color: #344258;
}

html[data-theme="dark"] :where(.news-category-nav button, .blog-filter-bar button) {
  color: #b5c2d3;
}

/* 待办页 */
html[data-theme="dark"] :where(
  .todo-form, .todo-workspace, .todo-trend-card, .toolbar,
  .list-summary, .todo-card, .todo-item, .todo-empty-state
) {
  color: var(--ink);
  background: #182235 !important;
  border-color: #344258 !important;
}

html[data-theme="dark"] :where(.todo-content, .todo-card-content) {
  color: #b7c4d5;
  background: #111b2b !important;
}

html[data-theme="dark"] :where(.filter-tabs, .todo-filter-tabs, .search-group) {
  background-color: #111b2b !important;
  border-color: #344258 !important;
}

html[data-theme="dark"] :where(.filter-tabs button, .todo-filter-tabs button).active {
  color: #8fc0ff;
  background: #20314b !important;
}

/* 个人主页 */
html[data-theme="dark"] .profile-page {
  background: radial-gradient(circle at 8% 8%, rgba(20, 184, 166, 0.08), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(124, 58, 237, 0.1), transparent 26%),
    linear-gradient(135deg, #0c151e, #121624 48%, #1b121a) !important;
}

html[data-theme="dark"] :where(.profile-card, .settings-card, .stat-card) {
  color: var(--ink);
  background: rgba(23, 33, 50, 0.96) !important;
  border-color: #354258 !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] :where(.profile-meta, .form-footer, .avatar-upload-field) {
  border-color: #344258;
}

html[data-theme="dark"] :where(.profile-meta dd, .settings-form label, .upload-copy strong) {
  color: #dce5f1;
}

html[data-theme="dark"] :where(.profile-action-link:hover, .profile-action-link:focus-visible, .avatar-upload-field) {
  background: #111c2d !important;
}

html[data-theme="dark"] :where(.password-input-wrap, .password-strength, .theme-preference-note) {
  color: var(--muted);
}

html[data-theme="dark"] .theme-option {
  color: var(--ink);
  background: #111b2b;
  border-color: #344258;
}

html[data-theme="dark"] .theme-option:hover {
  border-color: #5277a8;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .theme-option:has(input:checked) {
  background: #182a44;
  border-color: #71a7ef;
}

html[data-theme="dark"] .theme-check {
  border-color: #5a6b82;
}

html[data-theme="dark"] .heading-icon-teal {
  color: #66d4cb;
  background: #153934;
}

html[data-theme="dark"] .avatar-picker,
html[data-theme="dark"] .avatar-edit-icon {
  border-color: #182235;
}

html[data-theme="dark"] .avatar-preview-dialog {
  color: var(--ink);
  background: #182235;
  border-color: #3b4960;
}

html[data-theme="dark"] .avatar-preview-stage {
  background: #101a2a;
}

/* 登录页 */
html[data-theme="dark"] .auth-page {
  background: #0d1624;
}

html[data-theme="dark"] .auth-card {
  color: var(--ink);
  background: #182235;
  border-color: #344258;
}

html[data-theme="dark"] .auth-tabs {
  color: var(--muted);
  background: #111b2b;
  border-color: #3a4960;
}

html[data-theme="dark"] .auth-tab.active {
  color: #8fc0ff;
  background: #22314a;
}

/* 后台管理 */
html[data-theme="dark"] {
  --admin-bg: #0d1624;
  --admin-navy: #0a1220;
  --admin-navy-soft: #182a46;
  --admin-blue: #72a7ff;
}

html[data-theme="dark"] .admin-layout {
  color: var(--ink);
  background: var(--admin-bg);
}

html[data-theme="dark"] :where(
  .admin-user, .admin-panel, .admin-repeat-card, .admin-list-row,
  .admin-carousel-card, .admin-empty-card, .admin-summary-card,
  .admin-table-wrap, .admin-log-item, .admin-filter-bar
) {
  color: var(--ink);
  background: #182235 !important;
  border-color: #344258 !important;
}

html[data-theme="dark"] :where(.admin-carousel-body, .admin-parser-note, .admin-list-group, .admin-table thead) {
  background: #111b2b !important;
  border-color: #344258 !important;
}

html[data-theme="dark"] :where(.admin-table td, .admin-table th, .admin-log-meta, .admin-panel-heading p) {
  color: var(--muted);
  border-color: #344258;
}

html[data-theme="dark"] .admin-parser-note code {
  color: #a9c9ff;
  background: #17243a;
  border-color: #3d506d;
}

/* 视频平台选择页 */
html[data-theme="dark"] .tv-page {
  --tv-navy: #17233a;
  color: var(--ink);
  background: radial-gradient(circle at 4% 12%, rgba(49, 91, 234, 0.13), transparent 28%),
    radial-gradient(circle at 96% 38%, rgba(228, 83, 131, 0.1), transparent 25%), #0d1624 !important;
}

html[data-theme="dark"] .tv-header {
  background: linear-gradient(110deg, rgba(14, 25, 42, 0.98), rgba(20, 30, 49, 0.94)) !important;
}

html[data-theme="dark"] :where(
  .tv-announcement, .platform-card, .history-section, .history-overview,
  .history-table-wrap, .history-empty, .history-pagination
) {
  color: var(--ink);
  background: #182235 !important;
  border-color: #344258 !important;
}

html[data-theme="dark"] :where(.platform-card-copy p, .history-heading p, .history-table td, .tv-hero p) {
  color: var(--muted);
}

html[data-theme="dark"] .history-table tbody tr:hover {
  background: #1d2a40;
}

/* 视频解析页 */
html[data-theme="dark"] .tv-parser-page {
  --tv-ink: #e6edf7;
  color: var(--ink);
  background: radial-gradient(circle at 10% 18%, rgba(38, 205, 196, 0.08), transparent 28%),
    radial-gradient(circle at 92% 78%, rgba(238, 111, 164, 0.09), transparent 30%),
    linear-gradient(135deg, #0d1723, #17131d) !important;
}

html[data-theme="dark"] :where(.tv-parser-header, .tv-parser-card, .tv-guide, .tv-parser-footer) {
  color: var(--ink);
  background: rgba(23, 33, 50, 0.96) !important;
  border-color: #354258 !important;
}

html[data-theme="dark"] .tv-alert-strip {
  color: #b7c3d4;
  background: #2f3b4e;
}

html[data-theme="dark"] .tv-alert-strip > * {
  background: #151f30;
}

html[data-theme="dark"] :where(.tv-select-wrap select, .tv-url-wrap input) {
  color: var(--ink);
  background: #101a2a;
  border-color: #3a4960;
}

/* 弹窗、提示、表格和通用交互 */
html[data-theme="dark"] .modal-backdrop {
  background: rgba(2, 7, 16, 0.74);
}

html[data-theme="dark"] :where(.modal, .modal-header, .modal-content, .modal-actions) {
  color: var(--ink);
  background-color: #182235;
  border-color: #344258;
}

html[data-theme="dark"] :where(.editor-section, .editor-preview, .upload-zone, .confirm-panel) {
  color: var(--ink);
  background: #111b2b;
  border-color: #3a4960;
}

html[data-theme="dark"] .toast {
  color: var(--ink);
  background: #1b273a;
  border-color: #3b4a61;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] :where(table, th, td) {
  border-color: #344258;
}

html[data-theme="dark"] ::selection {
  color: #fff;
  background: #315fae;
}

/* 深色完整性补丁：覆盖页面样式中权重较高的二级浅色容器。 */
html[data-theme="dark"] body :where(
  .nav-links, .modal-close, .editor-section, .editor-step,
  .upload-dropzone, .upload-icon, .upload-preview, .confirm-panel-icon,
  .skeleton, .subscribe-form .input
) {
  color: var(--ink);
  background: #151f31 !important;
  border-color: #38475d !important;
}

html[data-theme="dark"] body :where(.modal-close:hover, .modal-close:focus-visible, .upload-dropzone:hover, .upload-dropzone:focus-within) {
  background: #1d2b42 !important;
}

html[data-theme="dark"] body :where(.modal .form-error:not(:empty), .settings-form .form-error:not(:empty)) {
  color: #fda4af;
  background: rgba(127, 29, 29, 0.26) !important;
  border-color: rgba(251, 113, 133, 0.35) !important;
}

/* 首页容易遗漏的浮层和标签。 */
html[data-theme="dark"] body :where(.weather-card, .news-card .category, .home-data-state-icon, .home-blog-empty-icon) {
  color: #b9d6ff;
  background: #1b2b43 !important;
  border-color: #40536f !important;
}

html[data-theme="dark"] body :where(.home-data-state.is-error .home-data-state-icon, .home-blog-error .home-blog-empty-icon) {
  color: #fda4af;
  background: #3a1d2a !important;
}

/* 博客、新闻和文章详情中的工具栏、开关及骨架屏。 */
html[data-theme="dark"] body :where(
  .blog-page .content-toolbar, .news-page .content-toolbar,
  .blog-page .search-group .input, .news-page .content-toolbar .input,
  .scope-field .select, .blog-page .content-card,
  .blog-card-skeleton, .blog-card-skeleton span, .blog-card-skeleton i,
  .blog-empty-state, .visibility-toggle, .article,
  .news-category-nav, .news-row, .hot-panel
) {
  color: var(--ink);
  background: #182235 !important;
  border-color: #344258 !important;
}

html[data-theme="dark"] body .hero-note-main {
  color: var(--blog-ink);
  background: #1a241f !important;
  border-color: #3d4b43 !important;
}

html[data-theme="dark"] body .hero-note-line {
  background: #3b4840 !important;
}

html[data-theme="dark"] body :where(.hot-list a, .todo-create-features, .announcement-track, .admin-log-user) {
  color: #b9c6d7;
}

html[data-theme="dark"] body :where(.visibility-toggle:hover, .news-category-nav button:hover, .news-category-nav button:focus-visible) {
  color: #a9ceff;
  background: #21324b !important;
}

html[data-theme="dark"] body .visibility-switch::after {
  background: #dbeafe !important;
}

html[data-theme="dark"] body :where(.blog-page .status-badge, .status-badge) {
  color: #86efac;
  background: rgba(22, 101, 52, 0.35) !important;
}

html[data-theme="dark"] body :where(.blog-page .status-badge.draft, .status-badge.draft) {
  color: #fcd34d;
  background: rgba(146, 64, 14, 0.34) !important;
}

/* 待办页面：列表面板、筛选按钮、任务状态和分页按钮。 */
html[data-theme="dark"] body :where(
  .todo-form, .todo-workspace, .toolbar, .list-panel, .list-summary,
  .todo-trend-card, .todo-item, .todo-actions .button, .pagination-button,
  .search-group .input
) {
  color: var(--ink);
  background: #182235 !important;
  border-color: #344258 !important;
}

html[data-theme="dark"] body :where(.filter-button.active, .filter-button[aria-pressed="true"]) {
  color: #a9ceff;
  background: #22324b !important;
  border-color: #496b99 !important;
}

html[data-theme="dark"] body :where(.todo-item.completed, .todo-item.is-completing, .todo-actions .complete-button) {
  color: #9ae6b4;
  background: rgba(20, 83, 55, 0.38) !important;
  border-color: #286447 !important;
}

html[data-theme="dark"] body .todo-content {
  color: #becadc;
  background: #101a29 !important;
}

/* 个人主页：表单、资料徽章、操作按钮和头像预览。 */
html[data-theme="dark"] body :where(
  .settings-form .input, .settings-form .textarea, .avatar-upload-field,
  .upload-icon, .upload-button, .password-toggle:hover,
  .password-toggle:focus-visible, .avatar-preview-close,
  .avatar-preview-dialog, .theme-option, .shortcut-editor-row,
  .shortcut-empty, .shortcut-order-controls button, .shortcut-remove,
  .shortcut-visibility-toggle
) {
  color: var(--ink);
  background: #111b2b !important;
  border-color: #3a4960 !important;
}

html[data-theme="dark"] body :where(.profile-role, .security-badge) {
  color: #c4b5fd;
  background: rgba(91, 33, 182, 0.28) !important;
  border-color: rgba(167, 139, 250, 0.32) !important;
}

html[data-theme="dark"] body .shortcut-limit {
  color: #fcd68c;
  background: rgba(146, 64, 14, 0.25) !important;
  border-color: rgba(251, 191, 36, 0.28) !important;
}

html[data-theme="dark"] body :where(.shortcut-field > span, .shortcut-position-field > span, .shortcut-help, .shortcut-empty span) {
  color: #9cabbe;
}

html[data-theme="dark"] body .shortcut-empty strong {
  color: #dce5f1;
}

html[data-theme="dark"] body .shortcut-visibility-copy strong {
  color: #dce5f1;
}

html[data-theme="dark"] body .shortcut-visibility-copy small {
  color: #9cabbe;
}

html[data-theme="dark"] body .logout-button {
  color: #fda4af;
  background: rgba(127, 29, 29, 0.22) !important;
  border-color: rgba(251, 113, 133, 0.28) !important;
}

html[data-theme="dark"] body :where(
  .action-icon-blue, .stat-card-blue .stat-icon, .heading-icon-blue
) {
  color: #93c5fd;
  background: #172d4d !important;
}

html[data-theme="dark"] body :where(
  .action-icon-violet, .stat-card-violet .stat-icon, .heading-icon-violet
) {
  color: #c4b5fd;
  background: #2b2147 !important;
}

html[data-theme="dark"] body :where(
  .action-icon-amber, .stat-card-teal .stat-icon, .heading-icon-teal
) {
  color: #7dd3c7;
  background: #153934 !important;
}

html[data-theme="dark"] body :where(.strength-bars i, .theme-check) {
  background: #334155 !important;
  border-color: #526178 !important;
}

html[data-theme="dark"] body .theme-option input:checked ~ .theme-check {
  color: #fff;
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

/* 登录页。 */
html[data-theme="dark"] body :where(.auth-card, .auth-tab.active) {
  color: var(--ink);
  background: #182235 !important;
  border-color: #344258 !important;
}

html[data-theme="dark"] body .auth-tab.active {
  color: #9ac6ff;
  background: #24344e !important;
}

/* 后台：子面板、复选项、排序按钮、表格行和日志标签。 */
html[data-theme="dark"] body :where(
  .admin-user, .admin-panel, .admin-repeat-card, .admin-list-row,
  .admin-subpanel, .admin-check, .admin-icon-button, .admin-empty-card,
  .admin-carousel-card, .admin-summary-card, .admin-table th,
  .admin-log-item, .admin-log-icon, .admin-log-resource, .admin-log-result,
  .admin-inline-note, .admin-announcement-field .input,
  .admin-version-item, .admin-version-note, .admin-version-date,
  .admin-version-meta span, .admin-current-attachment, .admin-version-file
) {
  color: var(--ink);
  background: #182235 !important;
  border-color: #344258 !important;
}

html[data-theme="dark"] body .admin-summary-card strong {
  color: var(--ink);
}

html[data-theme="dark"] body :where(
  .admin-panel-index, .admin-row-number, .admin-badge,
  .admin-status, .admin-badge-role, .admin-user-cell em
) {
  color: #b9d6ff;
  background: #1c304d !important;
  border-color: #3f5879 !important;
}

html[data-theme="dark"] body :where(
  .admin-subpanel-heading button:hover, .admin-subpanel-heading button:focus-visible,
  .admin-carousel-drag-handle:hover, .admin-carousel-drag-handle:focus-visible,
  .admin-carousel-sort button:hover, .admin-carousel-sort button:focus-visible,
  .admin-more-button:hover, .admin-more-button:focus-visible,
  .admin-table tbody tr:hover
) {
  color: #c8ddff;
  background: #223149 !important;
}

html[data-theme="dark"] body :where(.admin-status.is-success) {
  color: #86efac;
  background: rgba(22, 101, 52, 0.35) !important;
}

html[data-theme="dark"] body :where(.admin-status.is-danger, .admin-log-item.is-failed .admin-log-icon, .admin-log-item.is-failed .admin-log-result) {
  color: #fda4af;
  background: rgba(127, 29, 29, 0.28) !important;
}

html[data-theme="dark"] body :where(.admin-log-item.is-partial .admin-log-icon, .admin-log-item.is-partial .admin-log-result) {
  color: #fcd34d;
  background: rgba(146, 64, 14, 0.3) !important;
}

/* 视频平台与观影记录。 */
html[data-theme="dark"] body :where(
  .tv-announcement, .announcement-refresh, .platform-card, .platform-status,
  .history-section, .history-stat, .history-search input,
  .history-filter select, .history-actions button, .empty-play,
  .history-pagination, .history-pagination button
) {
  color: var(--ink);
  background: #182235 !important;
  border-color: #344258 !important;
}

html[data-theme="dark"] body .history-add-button {
  color: #fff;
  background: #253d68 !important;
  border-color: #3f5f94 !important;
}

html[data-theme="dark"] body :where(.announcement-refresh:hover, .announcement-refresh:focus-visible, .history-table tbody tr:hover) {
  background: #223149 !important;
}

html[data-theme="dark"] body :where(.platform-status.is-online) {
  color: #86efac;
  background: rgba(22, 101, 52, 0.35) !important;
  border-color: #286447 !important;
}

html[data-theme="dark"] body :where(.platform-status.is-offline) {
  color: #fda4af;
  background: rgba(127, 29, 29, 0.28) !important;
  border-color: #713244 !important;
}

html[data-theme="dark"] body :where(.history-stat-icon, .history-platform) {
  color: #9ac6ff;
  background: #1b304f !important;
}

html[data-theme="dark"] body .history-stat-icon.time {
  color: #7dd3c7;
  background: #153934 !important;
}

@media (max-width: 720px) {
  html[data-theme="dark"] body .history-table tbody tr {
    color: var(--ink);
    background: #182235 !important;
    border-color: #344258 !important;
  }
}

/* 视频解析页。 */
html[data-theme="dark"] body :where(
  .tv-parser-header, .tv-parser-card, .tv-select-wrap select,
  .tv-url-wrap input, .tv-guide, .tv-parser-footer
) {
  color: var(--ink);
  background: #182235 !important;
  border-color: #344258 !important;
}

html[data-theme="dark"] body :where(.tv-select-wrap select:focus, .tv-url-wrap input:focus, .tv-clear-button:hover) {
  background: #223149 !important;
}

/* 将各页面遗留的深灰说明文字统一提升为暗夜模式可读的次级文字色。 */
html[data-theme="dark"] body :where(
  .admin-parser-note, .admin-carousel-preview, .admin-summary-card,
  .admin-table th, .admin-user-cell small, .admin-log-resource,
  .admin-log-resource em, .admin-log-content small,
  .modal-close, .upload-dropzone, .upload-preview,
  .confirm-panel p, .footer-links, .partner-chip, .subscribe-copy,
  .footer-bottom, .content-meta, .hero-note-label, .hero-note-signature,
  .field-hint, .article-content, .news-category-nav button,
  .news-page .pagination [data-page-info], .page-eyebrow,
  .trend-heading, .trend-axis, .optional-label, .filter-button,
  .list-summary, .selection-count, .inline-button, .todo-note,
  .todo-time, .pagination-button, .page-info, .intro-card p,
  .news-card .news-meta, .profile-meta dt, .settings-form .field label,
  .field-label-row > span, .field-label-row b, .upload-copy span,
  .form-footer > span, .form-footer > span b, .avatar-preview-dialog > p,
  .tv-hero-badge, .platform-card-copy p, .platform-card-footer > span,
  .history-heading p, .history-table td::before, .tv-alert-strip,
  .tv-parser-footer
) {
  color: var(--muted) !important;
}

html[data-theme="dark"] body :where(.news-row h3, .profile-meta dd) {
  color: var(--ink) !important;
}

html[data-theme="dark"] body .admin-image-delete {
  color: #fda4af;
  background: rgba(127, 29, 29, 0.24) !important;
  border-color: rgba(251, 113, 133, 0.34) !important;
}

@media (prefers-reduced-motion: no-preference) {
  html.theme-changing,
  html.theme-changing body,
  html.theme-changing body * {
    transition: color 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease !important;
  }
}
