/**
 * 内测站日间 / 夜间模式 — 切换控件 + theme-night 覆盖层（色系不变）。
 */

/* —— 侧栏底部切换（日间：轻量胶囊，避免再套一层描边卡片） —— */
.poe-theme-toggle {
  margin: 12px 2px 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.poe-theme-toggle__switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(84, 54, 25, 0.08);
  background: rgba(84, 54, 25, 0.045);
}

.poe-theme-toggle__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.poe-theme-toggle__btn svg {
  flex: 0 0 auto;
  opacity: 0.72;
}

.poe-theme-toggle__btn.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 3px rgba(84, 54, 25, 0.08);
}

.poe-theme-toggle__btn.is-active svg {
  opacity: 1;
}

.poe-theme-toggle__btn:focus-visible {
  outline: 2px solid rgba(236, 72, 153, 0.45);
  outline-offset: 2px;
}

/* —— 夜间变量 —— */
html.theme-night {
  color-scheme: dark;
  --bg: #11141b;
  --paper: rgba(26, 31, 40, 0.96);
  --paper-strong: #1a2030;
  --ink: #e8edf3;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 28px 72px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.28);
  --shadow-card: 0 18px 44px rgba(0, 0, 0, 0.32);
  --surface-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --surface-depth: inset 0 -1px 0 rgba(0, 0, 0, 0.22);
  --night-bg-deep: #0d1016;
  --night-bg-base: #12161f;
  --night-bg-elevated: #1a2030;
  --night-bg-panel: #1e2430;
  --night-bg-soft: #222836;
  --night-bg-input: #2a3140;
}

html.theme-night body,
html.theme-night.staging-visual-rich body {
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(236, 72, 153, 0.12), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(249, 115, 22, 0.08), transparent 36%),
    linear-gradient(180deg, #151923 0%, var(--night-bg-base) 52%, var(--night-bg-deep) 100%);
}

html.theme-night.staging-visual-rich body::before {
  opacity: 0.14;
  mix-blend-mode: soft-light;
}

/* —— Poe 壳层 —— */
html.theme-night .poe-sidebar {
  background: linear-gradient(180deg, rgba(22, 27, 36, 0.98) 0%, rgba(18, 22, 30, 0.96) 100%);
  border-right-color: rgba(255, 255, 255, 0.08);
  box-shadow: 6px 0 32px rgba(0, 0, 0, 0.28);
}

html.theme-night .poe-new-chat,
html.theme-night .poe-search,
html.theme-night .poe-sidebar-collapse,
html.theme-night .poe-sidebar-expand {
  background: linear-gradient(180deg, #222836 0%, #1a1f2a 100%);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

html.theme-night .poe-new-chat:hover,
html.theme-night .poe-sidebar-collapse:hover,
html.theme-night .poe-sidebar-expand:hover {
  background: #2a3140;
  border-color: rgba(236, 72, 153, 0.28);
}

html.theme-night .poe-thread-row:hover {
  background: #252a35;
}

html.theme-night .poe-thread-row.is-active {
  background: #2a2430;
  box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.22);
}

html.theme-night .poe-thread-row.is-active .poe-thread__title {
  color: #f9a8d4;
}

html.theme-night .poe-sidebar__links a.is-active {
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.16) 0%, rgba(26, 31, 40, 0.9) 100%);
  border-color: rgba(236, 72, 153, 0.28);
  color: #fbcfe8;
}

html.theme-night .poe-sidebar__links a:hover,
html.theme-night .poe-sidebar__links .poe-sidebar__link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

html.theme-night .poe-theme-toggle {
  background: transparent;
  border: 0;
}

html.theme-night .poe-theme-toggle__switch {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
}

html.theme-night .poe-theme-toggle__btn.is-active {
  background: #2a3140;
  color: #f8fafc;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

html.theme-night .poe-chat-head {
  background: linear-gradient(180deg, rgba(22, 27, 36, 0.98), rgba(18, 22, 30, 0.94));
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.theme-night .poe-chat-head__bot,
html.theme-night .poe-app .message-assistant-head__name {
  color: #94a3b8;
}

html.theme-night .poe-composer__box {
  background: linear-gradient(180deg, #222836 0%, #1a1f2a 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--surface-highlight), 0 16px 40px rgba(0, 0, 0, 0.32);
}

html.theme-night .poe-composer__box textarea {
  color: var(--ink);
}

html.theme-night .poe-composer__box textarea::placeholder {
  color: #64748b;
}

html.theme-night .poe-composer__model {
  background: linear-gradient(180deg, #2a3140, #222836);
  border-color: rgba(236, 72, 153, 0.28);
  color: #fbcfe8;
}

html.theme-night .poe-composer__tool {
  color: #94a3b8;
}

html.theme-night .poe-composer__tool:hover {
  background: rgba(236, 72, 153, 0.12);
  color: #fbcfe8;
}

html.theme-night .poe-composer-model-menu,
html.theme-night .poe-chat-more-menu,
html.theme-night .poe-thread-menu {
  background: #1e2430;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.42);
}

html.theme-night .poe-composer-model-menu__item,
html.theme-night .poe-chat-more-menu__item,
html.theme-night .poe-thread-menu__item {
  color: var(--ink);
}

html.theme-night .poe-composer-model-menu__item:hover,
html.theme-night .poe-chat-more-menu__item:hover,
html.theme-night .poe-thread-menu__item:hover {
  background: rgba(236, 72, 153, 0.12);
}

html.theme-night.staging-visual-rich .poe-app .message.ai .bubble.ai-rich {
  color: #e8edf3 !important;
  background:
    linear-gradient(180deg, rgba(34, 40, 52, 0.98) 0%, rgba(26, 31, 40, 0.96) 100%),
    radial-gradient(circle at 100% 0%, rgba(236, 72, 153, 0.1), transparent 38%) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: var(--surface-highlight), 0 14px 32px rgba(0, 0, 0, 0.32) !important;
}

html.theme-night.staging-visual-rich .poe-app .message.ai .bubble.ai-rich .ai-paragraph,
html.theme-night.staging-visual-rich .poe-app .message.ai .bubble.ai-rich .ai-list,
html.theme-night.staging-visual-rich .poe-app .message.ai .bubble.ai-rich .ai-list-line,
html.theme-night.staging-visual-rich .poe-app .message.ai .bubble.ai-rich .ai-heading,
html.theme-night.staging-visual-rich .poe-app .message.ai .bubble.ai-rich p,
html.theme-night.staging-visual-rich .poe-app .message.ai .bubble.ai-rich li,
html.theme-night.staging-visual-rich .preview-ai-page .bubble.ai-rich .ai-paragraph {
  color: #e8edf3 !important;
}

html.theme-night.staging-visual-rich .poe-app .message.ai .bubble.ai-rich .ai-callout,
html.theme-night.staging-visual-rich .poe-app .message.ai .bubble.ai-rich .ai-quote-block,
html.theme-night.staging-visual-rich .preview-ai-page .ai-callout,
html.theme-night.staging-visual-rich .preview-ai-page .ai-quote-block {
  background: rgba(18, 24, 34, 0.92) !important;
  border-color: rgba(236, 72, 153, 0.22) !important;
  border-left-color: rgba(236, 72, 153, 0.55) !important;
  color: #e8edf3 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

html.theme-night.staging-visual-rich .poe-app .message.ai .bubble.ai-rich .ai-quote-block,
html.theme-night.staging-visual-rich .preview-ai-page .ai-quote-block {
  border-left-color: rgba(20, 184, 166, 0.55) !important;
  color: #ccfbf1 !important;
}

html.theme-night.staging-visual-rich .poe-app .message.ai .bubble.ai-rich .ai-script-heading,
html.theme-night.staging-visual-rich .preview-ai-page .ai-script-heading {
  background: rgba(236, 72, 153, 0.14) !important;
  color: #fbcfe8 !important;
  box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.22) !important;
}

html.theme-night.staging-visual-rich .poe-app .message.ai .bubble.ai-rich .ai-inline-quote,
html.theme-night.staging-visual-rich .preview-ai-page .ai-inline-quote {
  color: #fdba74 !important;
}

html.theme-night.staging-visual-rich .poe-app .message.ai .bubble.ai-rich .ai-thinking,
html.theme-night.staging-visual-rich .preview-ai-page .ai-thinking {
  color: #94a3b8 !important;
}

html.theme-night.staging-visual-rich .preview-ai-page .ai-heading {
  color: #f8fafc !important;
}

html.theme-night.staging-visual-rich .bubble:not(.user) {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.theme-night .poe-app .message.ai .bubble.ai-rich {
  color: #e8edf3;
  background:
    linear-gradient(180deg, rgba(34, 40, 52, 0.98) 0%, rgba(26, 31, 40, 0.96) 100%),
    radial-gradient(circle at 100% 0%, rgba(236, 72, 153, 0.1), transparent 38%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--surface-highlight), 0 14px 32px rgba(0, 0, 0, 0.32);
}

html.theme-night .poe-app .message.ai .bubble.ai-rich .ai-paragraph,
html.theme-night .poe-app .message.ai .bubble.ai-rich .ai-list,
html.theme-night .poe-app .message.ai .bubble.ai-rich .ai-list-line,
html.theme-night .preview-ai-page .ai-heading {
  color: #e8edf3;
}

html.theme-night .preview-ai-page .ai-callout,
html.theme-night .preview-ai-page .ai-quote-block {
  background: rgba(18, 24, 34, 0.92);
  border-color: rgba(236, 72, 153, 0.22);
  color: #e8edf3;
}

html.theme-night .card,
html.theme-night .hero-card,
html.theme-night .value-panel,
html.theme-night .compare {
  background: linear-gradient(165deg, rgba(30, 36, 48, 0.98) 0%, rgba(22, 27, 36, 0.94) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

html.theme-night .card p,
html.theme-night .lead,
html.theme-night .section-sub {
  color: #94a3b8;
}

html.theme-night .poe-member-panel,
html.theme-night .poe-translate-panel,
html.theme-night .poe-rpa-panel,
html.theme-night .poe-fbreply-panel,
html.theme-night .poe-tools-panel,
html.theme-night .poe-account-panel,
html.theme-night .poe-embed-panel {
  background: linear-gradient(180deg, rgba(14, 17, 23, 0.72) 0%, rgba(18, 22, 30, 0.58) 100%);
}

html.theme-night .preview-nav {
  background: rgba(18, 22, 30, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.theme-night .poe-prompt-modal__panel,
html.theme-night .vault-modal__panel {
  background: #1e2430;
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

html.theme-night .poe-logo__text {
  color: var(--ink);
}

/* ═══════ 夜间模式 · 统一背景层级（修复各页白块/浅灰条） ═══════ */

html.theme-night .poe-main,
html.theme-night .poe-chat-panel,
html.theme-night .poe-chat-body,
html.theme-night .poe-app .chat-window {
  background: var(--night-bg-base);
}

html.theme-night .poe-member-panel,
html.theme-night .poe-translate-panel,
html.theme-night .poe-rpa-panel,
html.theme-night .poe-fbreply-panel,
html.theme-night .poe-tools-panel,
html.theme-night .poe-account-panel,
html.theme-night .poe-embed-panel {
  background: var(--night-bg-base);
}

html.theme-night .poe-member-inner,
html.theme-night .poe-translate-inner,
html.theme-night .poe-rpa-inner,
html.theme-night .poe-fbreply-inner,
html.theme-night .poe-tools-inner,
html.theme-night .poe-account-inner,
html.theme-night .poe-embed-inner {
  background: var(--night-bg-base);
  color: var(--ink);
}

html.theme-night .poe-panel-head {
  background: linear-gradient(180deg, rgba(22, 27, 36, 0.98), rgba(18, 22, 30, 0.92));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html.theme-night .poe-panel-head h1,
html.theme-night .section-title,
html.theme-night .hero h1,
html.theme-night .poe-rpa-inner .hero h1 {
  color: var(--ink);
}

html.theme-night .hero .eyebrow {
  background: rgba(236, 72, 153, 0.14);
  color: #fbcfe8;
}

html.theme-night .tool-workbench,
html.theme-night .translate-workbench,
html.theme-night .translate-shell,
html.theme-night.preview-embed-mode .tool-workbench,
html.theme-night body[data-preview-tool] .tool-workbench {
  background: linear-gradient(165deg, rgba(30, 36, 48, 0.98) 0%, rgba(22, 27, 36, 0.96) 100%) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: var(--surface-highlight), 0 24px 56px rgba(0, 0, 0, 0.32) !important;
  color: var(--ink) !important;
}

html.theme-night.preview-embed-mode .tool-embed-actions .btn,
html.theme-night body[data-preview-tool] .tool-embed-actions .btn {
  background: var(--night-bg-input) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--ink) !important;
}

html.theme-night.preview-embed-mode--image-edit,
html.theme-night.preview-embed-mode--image-edit body,
html.theme-night.preview-embed-mode--image-edit .image-edit-embed-host,
html.theme-night.preview-embed-mode--image-edit .tool-iframe--image-edit-bare {
  background: transparent !important;
}

html.theme-night .translate-pane {
  background: var(--night-bg-soft);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--surface-highlight), 0 12px 32px rgba(0, 0, 0, 0.24);
}

html.theme-night .translate-pane__head {
  background: linear-gradient(135deg, rgba(34, 40, 52, 0.96), rgba(26, 31, 40, 0.92));
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

html.theme-night .translate-pane__head button {
  background: var(--night-bg-input);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

html.theme-night .translate-pane__head button:hover {
  background: #323a4a;
  border-color: rgba(236, 72, 153, 0.28);
}

html.theme-night .translate-pane__tools button.is-picker-open {
  background: rgba(20, 184, 166, 0.14);
  border-color: rgba(20, 184, 166, 0.35);
  color: #5eead4;
}

html.theme-night .translate-pane textarea,
html.theme-night .translate-output,
html.theme-night .translate-workbench select {
  background: transparent;
  color: var(--ink);
}

html.theme-night .translate-output {
  color: #dbe4ef;
}

html.theme-night .translate-workbench select {
  background: var(--night-bg-input);
  border-color: rgba(236, 72, 153, 0.22);
}

html.theme-night .price-card {
  background: linear-gradient(180deg, rgba(34, 40, 52, 0.98), rgba(26, 31, 40, 0.96));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--surface-highlight), var(--shadow-card);
  color: var(--ink);
}

html.theme-night .price-card.is-featured {
  background: linear-gradient(180deg, rgba(40, 32, 44, 0.98), rgba(26, 31, 40, 0.96));
  border-color: rgba(236, 72, 153, 0.28);
}

html.theme-night .price-card__tagline,
html.theme-night .member-benefits,
html.theme-night .member-selected-tier__price {
  color: var(--muted);
}

html.theme-night .poe-member-inner--simple .member-simple-checkout,
html.theme-night .result-box,
html.theme-night .member-payment-card,
html.theme-night .member-payment-card--modern,
html.theme-night .member-redeem-card {
  background: var(--night-bg-panel);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

html.theme-night .member-selected-tier,
html.theme-night .member-months-block,
html.theme-night .member-account-state,
html.theme-night .member-trial-state,
html.theme-night .member-upgrade-card {
  background: linear-gradient(180deg, rgba(34, 40, 52, 0.92), rgba(26, 31, 40, 0.88));
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

html.theme-night .member-selected-tier__main strong,
html.theme-night .member-selected-tier__eyebrow,
html.theme-night .member-change-tier {
  color: #fbcfe8;
}

html.theme-night .member-change-tier {
  background: var(--night-bg-input);
  border-color: rgba(236, 72, 153, 0.32);
}

html.theme-night .member-months-preset {
  background: var(--night-bg-input);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

html.theme-night .member-months-preset.is-active {
  background: rgba(236, 72, 153, 0.18);
  border-color: rgba(236, 72, 153, 0.35);
  color: #fbcfe8;
}

html.theme-night .member-months-step,
html.theme-night .member-months-value-wrap {
  background: var(--night-bg-input);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

html.theme-night .member-months-step {
  color: #fbcfe8;
}

html.theme-night .member-months-step:hover {
  background: rgba(236, 72, 153, 0.12);
  border-color: rgba(236, 72, 153, 0.35);
}

html.theme-night .member-months-value-wrap input {
  background: transparent;
  color: #f8fafc;
}

html.theme-night .member-months-unit {
  color: #94a3b8;
}

html.theme-night .member-redeem-hint {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

html.theme-night .member-pay-address-panel,
html.theme-night .member-payment-amount {
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.08);
}

html.theme-night body.poe-app input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
html.theme-night body.poe-app textarea,
html.theme-night body.poe-app select {
  background: var(--night-bg-input);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

html.theme-night body.poe-app input::placeholder,
html.theme-night body.poe-app textarea::placeholder {
  color: #64748b;
}

html.theme-night .btn:not(.btn-primary):not(.btn-green) {
  background: var(--night-bg-input);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

/* 厚重质感会把 .btn 刷成白底，需单独恢复主按钮渐变 */
html.theme-night.staging-visual-rich .btn-primary,
html.theme-night .btn-primary {
  background: linear-gradient(135deg, var(--brand, #ec4899), var(--brand-2, #f97316)) !important;
  border: 0 !important;
  color: #fff !important;
}

html.theme-night.staging-visual-rich .cta-band .btn-primary,
html.theme-night .cta-band .btn-primary,
html.theme-night .poe-rpa-inner .cta-band .btn-primary {
  background: linear-gradient(135deg, #ec4899, #f97316) !important;
  border: 0 !important;
  color: #fff !important;
}

html.theme-night.staging-visual-rich .cta-band .btn:not(.btn-primary),
html.theme-night .cta-band .btn:not(.btn-primary),
html.theme-night .poe-rpa-inner .cta-band .btn:not(.btn-primary) {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
}

html.theme-night .tool-field label,
html.theme-night .metric,
html.theme-night .check-list {
  color: var(--muted);
}

html.theme-night .metric {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Maps 抓官网 — 夜间模式 */
html.theme-night .maps-hub-tab:not(.active),
html.theme-night.staging-visual-rich .maps-hub-tab:not(.active),
html.theme-night body[data-preview-tool="maps-hub"] .maps-hub-tab:not(.active) {
  background: var(--night-bg-input) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #e2e8f0 !important;
  box-shadow: none !important;
}

html.theme-night .maps-hub-tab:hover:not(.active),
html.theme-night body[data-preview-tool="maps-hub"] .maps-hub-tab:hover:not(.active) {
  border-color: rgba(236, 72, 153, 0.35) !important;
  color: #fbcfe8 !important;
  background: #323a4a !important;
}

html.theme-night .maps-hub-tab.active,
html.theme-night.staging-visual-rich .maps-hub-tab.active,
html.theme-night body[data-preview-tool="maps-hub"] .maps-hub-tab.active {
  background: linear-gradient(135deg, var(--brand, #ec4899), var(--brand-2, #f97316)) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
}

html.theme-night .maps-hub-history-item,
html.theme-night.staging-visual-rich .maps-hub-history-item,
html.theme-night body[data-preview-tool="maps-hub"] .maps-hub-history-item {
  background: var(--night-bg-input) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
  box-shadow: none !important;
}

html.theme-night .maps-hub-history-item:hover {
  border-color: rgba(236, 72, 153, 0.35) !important;
  background: #323a4a !important;
}

html.theme-night .maps-hub-history-title {
  color: #e2e8f0;
}

html.theme-night .maps-hub-history-count {
  color: #94a3b8;
}

html.theme-night .maps-hub-badge {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}

html.theme-night .maps-hub-badge--done {
  background: rgba(16, 185, 129, 0.22) !important;
  color: #6ee7b7 !important;
}

html.theme-night .maps-hub-badge--failed {
  background: rgba(239, 68, 68, 0.22) !important;
  color: #fca5a5 !important;
}

html.theme-night .maps-hub-badge--running,
html.theme-night .maps-hub-badge--queued {
  background: rgba(59, 130, 246, 0.22) !important;
  color: #93c5fd !important;
}

html.theme-night .maps-hub-table-wrap {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.12);
}

html.theme-night .maps-hub-table th,
html.theme-night .maps-hub-table td {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

html.theme-night .maps-hub-url a {
  color: #93c5fd;
}

html.theme-night .maps-hub-status--ok {
  color: #6ee7b7;
}

html.theme-night .maps-hub-status--err,
html.theme-night .maps-hub-error {
  color: #fca5a5;
}

html.theme-night .maps-hub-workbench .tool-actions .btn:not(.btn-primary),
html.theme-night .maps-hub-actions .btn:not(.btn-primary) {
  background: var(--night-bg-input) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e2e8f0 !important;
}

html.theme-night .maps-hub-workbench .tool-actions .btn-primary,
html.theme-night .maps-hub-actions .btn-primary {
  background: linear-gradient(135deg, var(--brand, #ec4899), var(--brand-2, #f97316)) !important;
  border: 0 !important;
  color: #fff !important;
}

html.theme-night .tht-sheet,
html.theme-night .translate-picker,
html.theme-night .translate-phrase-body {
  background: var(--night-bg-panel);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

/* iframe 内嵌工具（画像素描等） */
html.theme-night body.ai-tools-body {
  background: var(--night-bg-base);
  color: var(--ink);
  --ai-ink: #e8edf3;
  --ai-dim: #94a3b8;
  --ai-glass: rgba(34, 40, 52, 0.92);
  --ai-glass-border: rgba(255, 255, 255, 0.1);
  --ai-shell-inner-lux: linear-gradient(165deg, rgba(34, 40, 52, 0.98) 0%, rgba(26, 31, 40, 0.96) 100%);
  --ai-warm: #222836;
}

html.theme-night body.ai-tools-body .ai-jiyu-platinum-shell {
  background: var(--ai-shell-inner-lux);
  box-shadow: var(--surface-highlight), 0 24px 56px rgba(0, 0, 0, 0.36);
}

html.theme-night body.ai-tools-body .ai-jiyu-platinum-shell::before,
html.theme-night body.ai-tools-body .ai-jiyu-platinum-shell::after {
  opacity: 0.55;
}

html.theme-night body.ai-tools-body .ai-output-title {
  color: var(--ink);
}

html.theme-night body.ai-tools-body .pixel-sketch-order-hint,
html.theme-night body.ai-tools-body .pixel-sketch-status {
  color: #94a3b8 !important;
}

html.theme-night body.ai-tools-body .btn-buy.ai-translate-studio-primary,
html.theme-night body.ai-tools-body .btn-buy.ai-translate-studio-secondary {
  border-color: rgba(255, 255, 255, 0.12);
}

html.theme-night .tool-iframe {
  background: var(--night-bg-base);
}

html.theme-night .tool-iframe--image-edit-bare {
  background: transparent !important;
  box-shadow: none !important;
}

html.theme-night .poe-thread__preview,
html.theme-night .poe-thread__time {
  color: #b0bcc9 !important;
}

html.theme-night .poe-thread-row.is-muted .poe-thread__preview {
  opacity: 0.78;
}

html.theme-night .poe-thread__title {
  color: #dbe4ef;
}

html.theme-night .poe-explore,
html.theme-night .poe-home__hero {
  background: transparent;
}

html.theme-night .poe-bot-card__name {
  color: #cbd5e1;
}

/* ═══════ 夜间 v3 · 消灭白底 + 提升文字对比度 ═══════ */

html.theme-night.staging-visual-rich .card,
html.theme-night.staging-visual-rich .hero-card,
html.theme-night.staging-visual-rich .value-panel,
html.theme-night.staging-visual-rich .tool-workbench,
html.theme-night.staging-visual-rich .translate-workbench {
  background: linear-gradient(165deg, rgba(30, 36, 48, 0.98) 0%, rgba(22, 27, 36, 0.96) 100%) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--ink) !important;
}

html.theme-night body.poe-app .poe-member-inner--simple .member-simple-checkout,
html.theme-night body.poe-app .poe-member-inner--simple .member-payment-card--modern,
html.theme-night body.poe-app .member-simple-checkout,
html.theme-night body.poe-app .member-payment-card--modern,
html.theme-night body.poe-app .member-months-block,
html.theme-night body.poe-app .member-selected-tier,
html.theme-night body.poe-app .member-redeem-card,
html.theme-night body.poe-app .result-box,
html.theme-night body.poe-app .member-account-state,
html.theme-night body.poe-app .member-trial-state,
html.theme-night body.poe-app .member-upgrade-card,
html.theme-night body.poe-app .member-pay-address-panel,
html.theme-night body.poe-app .member-payment-amount {
  background: var(--night-bg-panel) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--ink) !important;
  box-shadow: var(--surface-highlight), 0 12px 32px rgba(0, 0, 0, 0.28) !important;
}

html.theme-night body.poe-app .member-months-preset {
  background: var(--night-bg-input) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--ink) !important;
}

html.theme-night body.poe-app .member-months-preset.is-active {
  background: rgba(236, 72, 153, 0.18) !important;
  border-color: rgba(236, 72, 153, 0.35) !important;
  color: #fbcfe8 !important;
}

html.theme-night body.poe-app .member-months-step,
html.theme-night body.poe-app .member-months-value-wrap {
  background: var(--night-bg-input) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.theme-night body.poe-app .member-months-value-wrap input {
  background: transparent !important;
  color: #f8fafc !important;
}

html.theme-night body.poe-app .member-months-unit {
  color: #94a3b8 !important;
}

html.theme-night body.poe-app .price-card,
html.theme-night body.poe-app .price-card.is-featured {
  background: linear-gradient(180deg, rgba(34, 40, 52, 0.98), rgba(26, 31, 40, 0.96)) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--ink) !important;
}

html.theme-night body.poe-app .price-card h3,
html.theme-night body.poe-app .price-card .price,
html.theme-night body.poe-app .member-payment-card__order strong,
html.theme-night body.poe-app .member-selected-tier__main strong {
  color: #f8fafc !important;
}

html.theme-night body.poe-app .price-card__tagline,
html.theme-night body.poe-app .member-simple-lead,
html.theme-night body.poe-app .member-payment-card__order,
html.theme-night body.poe-app .member-payment-card__eyebrow,
html.theme-night body.poe-app .member-selected-tier__price,
html.theme-night body.poe-app .member-redeem-hint,
html.theme-night body.poe-app #member-result-status {
  color: #94a3b8 !important;
}

html.theme-night body.poe-app .member-payment-card__eyebrow,
html.theme-night body.poe-app .member-payment-card__chain {
  color: #fbcfe8 !important;
}

/* 充值支付区 · 夜间：消灭收款地址白底与金额/输入框色调冲突 */
html.theme-night body.poe-app .member-payment-amount {
  background:
    linear-gradient(135deg, rgba(68, 42, 12, 0.55), rgba(42, 34, 20, 0.72)) !important;
  border-color: rgba(251, 146, 60, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

html.theme-night body.poe-app .member-payment-amount__label {
  color: #fdba74 !important;
}

html.theme-night body.poe-app .member-payment-amount__value strong,
html.theme-night body.poe-app .member-payment-amount__value span {
  color: #fb923c !important;
}

html.theme-night body.poe-app .member-pay-address-panel {
  background: rgba(0, 0, 0, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}

html.theme-night body.poe-app .member-pay-address-panel__head > span {
  color: #e2e8f0 !important;
}

html.theme-night body.poe-app .member-pay-address-panel__copy {
  background: var(--night-bg-input) !important;
  border-color: rgba(236, 72, 153, 0.32) !important;
  color: #fbcfe8 !important;
}

html.theme-night body.poe-app .member-pay-address-panel__copy:hover {
  background: rgba(236, 72, 153, 0.16) !important;
  border-color: rgba(236, 72, 153, 0.45) !important;
}

html.theme-night body.poe-app .member-pay-address-panel__body {
  background: var(--night-bg-input) !important;
  border-color: rgba(236, 72, 153, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

html.theme-night body.poe-app .member-pay-address-panel__body:hover,
html.theme-night body.poe-app .member-pay-address-panel__body:focus-visible {
  background: #323a4a !important;
  border-color: rgba(236, 72, 153, 0.42) !important;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.12) !important;
}

html.theme-night body.poe-app .member-pay-address-panel__body textarea,
html.theme-night body.poe-app #member-pay-address {
  background: transparent !important;
  border: 0 !important;
  color: #f1f5f9 !important;
  box-shadow: none !important;
}

html.theme-night body.poe-app .member-pay-address-panel__tap-hint {
  color: #f9a8d4 !important;
  opacity: 0.95;
}

html.theme-night body.poe-app .member-pay-address-panel__tip {
  color: #94a3b8 !important;
}

html.theme-night body.poe-app .member-pay-address-panel__tip strong {
  color: #fbcfe8 !important;
}

html.theme-night body.poe-app .member-tx-box--modern span {
  color: #94a3b8 !important;
}

html.theme-night body.poe-app .member-tx-box--modern input,
html.theme-night body.poe-app #member-tx-id {
  background: var(--night-bg-input) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #e8edf3 !important;
}

html.theme-night body.poe-app .member-tx-box--modern input:focus,
html.theme-night body.poe-app #member-tx-id:focus {
  border-color: rgba(236, 72, 153, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.12) !important;
}

html.theme-night body.poe-app .member-balance-bar {
  background: rgba(109, 94, 252, 0.12) !important;
  border-color: rgba(139, 125, 255, 0.28) !important;
  color: #e2e8f0 !important;
}

html.theme-night body.poe-app .member-balance-bar strong {
  color: #f8fafc !important;
}

html.theme-night body.poe-app .recharge-card {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e8edf3 !important;
}

html.theme-night body.poe-app .recharge-card:hover {
  border-color: rgba(139, 125, 255, 0.45) !important;
  background: rgba(109, 94, 252, 0.1) !important;
}

html.theme-night body.poe-app .recharge-card.is-active {
  border-color: rgba(109, 94, 252, 0.55) !important;
  background: rgba(109, 94, 252, 0.16) !important;
}

html.theme-night body.poe-app .recharge-card--custom input {
  background: var(--night-bg-input) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #f1f5f9 !important;
}

html.theme-night body.poe-app .btn-amount-copy {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(251, 146, 60, 0.35) !important;
  color: #fdba74 !important;
}

html.theme-night body.poe-app .member-payment-card__chain {
  background: rgba(236, 72, 153, 0.16) !important;
  border: 1px solid rgba(236, 72, 153, 0.28);
}

html.theme-night body.poe-app .result-box[data-mode="ok"] {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.28) !important;
  color: #6ee7b7 !important;
}

html.theme-night body.poe-app .result-box[data-mode="error"] {
  background: rgba(225, 29, 72, 0.1) !important;
  border-color: rgba(225, 29, 72, 0.28) !important;
  color: #fda4af !important;
}

html.theme-night body.poe-app .poe-member-inner--simple .member-simple-order-btn:not(.btn-primary) {
  background: var(--night-bg-input) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #e8edf3 !important;
  box-shadow: none !important;
}

html.theme-night body.poe-app .poe-member-inner--simple .member-simple-order-btn:not(.btn-primary):hover {
  background: #323a4a !important;
  border-color: rgba(236, 72, 153, 0.35) !important;
  color: #fbcfe8 !important;
}

html.theme-night body.poe-app .translate-workbench,
html.theme-night body.poe-app .translate-pane,
html.theme-night body.poe-app .translate-picker,
html.theme-night body.poe-app .translate-picker--anchored,
html.theme-night body.poe-app .translate-phrase-add,
html.theme-night body.poe-app .translate-phrase-section,
html.theme-night body.poe-app .translate-phrase-row,
html.theme-night body.poe-app .tht-sheet,
html.theme-night body.poe-app .tht-backdrop + .tht-sheet {
  background: var(--night-bg-soft) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--ink) !important;
}

/* 翻译历史记录抽屉：夜间模式下卡片与文字对比度 */
html.theme-night body.poe-app .tht-head {
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

html.theme-night body.poe-app .tht-head strong {
  color: var(--ink) !important;
}

html.theme-night body.poe-app .tht-empty {
  color: var(--muted) !important;
}

html.theme-night body.poe-app .tht-item {
  background: var(--night-bg-panel) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--ink) !important;
}

html.theme-night body.poe-app .tht-item__meta {
  color: var(--muted) !important;
}

html.theme-night body.poe-app .tht-item__src {
  color: var(--ink) !important;
}

html.theme-night body.poe-app .tht-item__out {
  color: #fbcfe8 !important;
}

html.theme-night body.poe-app .tht-clear,
html.theme-night body.poe-app .tht-close,
html.theme-night body.poe-app .tht-item__actions button {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: var(--ink) !important;
}

html.theme-night body.poe-app .tht-clear:hover,
html.theme-night body.poe-app .tht-close:hover,
html.theme-night body.poe-app .tht-item__actions button:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

html.theme-night body.poe-app .translate-pane__head {
  background: linear-gradient(135deg, rgba(34, 40, 52, 0.96), rgba(26, 31, 40, 0.92)) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html.theme-night body.poe-app .translate-pane__foot {
  background: rgba(0, 0, 0, 0.12) !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

html.theme-night body.poe-app .translate-tone {
  background: rgba(236, 72, 153, 0.12) !important;
  border-color: rgba(236, 72, 153, 0.28) !important;
  color: #fbcfe8 !important;
}

html.theme-night body.poe-app .translate-picker:not(.translate-picker--emoji) button,
html.theme-night body.poe-app .translate-phrase-insert,
html.theme-night body.poe-app .translate-phrase-icon {
  background: var(--night-bg-input) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--ink) !important;
}

html.theme-night body.poe-app .preview-fb-reply-page .fb-chip {
  background: var(--night-bg-input) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #fbcfe8 !important;
}

html.theme-night body.poe-app .preview-fb-reply-page .fb-chip:hover {
  background: #323a4a !important;
}

html.theme-night body.poe-app .preview-fb-reply-page .fb-context-wrap textarea,
html.theme-night body.poe-app .preview-fb-reply-page .fb-reply-group--lang select {
  background: var(--night-bg-input) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--ink) !important;
}

html.theme-night body.poe-app .preview-fb-reply-page .fb-context-wrap label {
  color: #94a3b8 !important;
}

html.theme-night body.poe-app .tool-workbench {
  background: linear-gradient(165deg, rgba(30, 36, 48, 0.98), rgba(22, 27, 36, 0.96)) !important;
}

html.theme-night body.poe-app .tool-embed-actions .btn {
  background: var(--night-bg-input) !important;
  color: var(--ink) !important;
}

html.theme-night body.ai-tools-body .ai-jiyu-platinum-shell,
html.theme-night body.ai-tools-body .product-card,
html.theme-night body.ai-tools-body .pixel-sketch-form,
html.theme-night body.ai-tools-body .pixel-sketch-summary {
  background: var(--ai-shell-inner-lux) !important;
  color: var(--ai-ink) !important;
}

html.theme-night body.ai-tools-body .pixel-sketch-file-label,
html.theme-night body.ai-tools-body .pixel-preview-label,
html.theme-night body.ai-tools-body .pixel-sketch-file-name,
html.theme-night body.ai-tools-body .twofa-field label,
html.theme-night body.ai-tools-body .media-extract-lead {
  color: #cbd5e1 !important;
}

/* 画像素描夜间：压过日间米色壳 !important，展开历史时不再发灰/叠套发闷 */
html.theme-night body.ai-tools-body.page-pixel-sketch-embed {
  background: transparent !important;
  color: #e8edf3 !important;
}

/* 夜间嵌入：外壳透明，跟 Poe 面板同色，避免日间底上叠一块暗卡片 */
html.theme-night body.ai-tools-body.page-pixel-sketch-embed .ai-translate-shell.pixel-sketch-embed,
html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-sketch-embed.ai-jiyu-platinum-shell,
html.theme-night body.ai-tools-body.page-pixel-sketch-embed .ai-jiyu-platinum-shell.product-card {
  display: block !important;
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  flex: 1 0 auto !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.theme-night body.ai-tools-body .ai-jiyu-platinum-shell.pixel-sketch-embed {
  background: transparent !important;
  box-shadow: none !important;
}

html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-sketch-embed.ai-jiyu-platinum-shell::before {
  display: none !important;
  content: none !important;
}

html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-sketch-embed.ai-jiyu-platinum-shell::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(236, 72, 153, 0.35),
    rgba(249, 115, 22, 0.28),
    rgba(236, 72, 153, 0.3),
    transparent
  ) !important;
  box-shadow: none !important;
  opacity: 0.85;
}

html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-sketch-form,
html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-sketch-summary {
  background: transparent !important;
  color: inherit !important;
}

html.theme-night body.ai-tools-body .pixel-sketch-dropzone,
html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-sketch-dropzone {
  border-color: rgba(255, 255, 255, 0.14) !important;
  background: rgba(34, 40, 52, 0.72) !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
}

html.theme-night body.ai-tools-body .pixel-sketch-dropzone:hover,
html.theme-night body.ai-tools-body .pixel-sketch-dropzone.is-dragover,
html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-sketch-dropzone:hover,
html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-sketch-dropzone.is-dragover {
  border-color: rgba(236, 72, 153, 0.4) !important;
  background: rgba(42, 49, 64, 0.9) !important;
  box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.1) !important;
}

html.theme-night body.ai-tools-body .pixel-sketch-dropzone.has-image,
html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-sketch-dropzone.has-image {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(22, 27, 36, 0.92) !important;
}

html.theme-night body.ai-tools-body .pixel-sketch-dropzone-empty strong,
html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-sketch-dropzone-empty strong {
  color: #e2e8f0 !important;
}

html.theme-night body.ai-tools-body .pixel-sketch-dropzone-empty small,
html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-sketch-dropzone-empty small {
  color: #94a3b8 !important;
}

html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-sketch-dropzone-filled {
  background: transparent !important;
}

html.theme-night body.ai-tools-body .pixel-preview-frame,
html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-preview-frame {
  background: rgba(15, 18, 24, 0.72) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html.theme-night body.ai-tools-body .pixel-preview-img {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-sketch-order-hint,
html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-sketch-status {
  color: #94a3b8 !important;
}

html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-sketch-result-grid {
  margin-top: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

@media (max-width: 720px) {
  html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-sketch-result-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

html.theme-night body.ai-tools-body .pixel-sketch-grid-lead,
html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-sketch-grid-lead {
  color: #94a3b8 !important;
}

html.theme-night body.ai-tools-body .pixel-step-card,
html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-step-card {
  background: rgba(26, 31, 40, 0.94) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.22) !important;
}

html.theme-night body.ai-tools-body .pixel-step-card__t,
html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-step-card__t {
  color: #f1f5f9 !important;
}

html.theme-night body.ai-tools-body .pixel-step-card__sub,
html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-step-card__sub {
  color: #94a3b8 !important;
}

html.theme-night body.ai-tools-body .pixel-step-card__img,
html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-step-card__img {
  height: 168px !important;
  max-height: 168px !important;
  background: rgba(15, 18, 24, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html.theme-night body.ai-tools-body .pixel-step-card__err {
  color: #fca5a5 !important;
}

html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-sketch-cloud {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html.theme-night body.ai-tools-body.page-pixel-sketch-embed.pixel-sketch-stg .pixel-sketch-cloud.is-ready {
  opacity: 0;
  transform: translateY(10px);
}

html.theme-night body.ai-tools-body.page-pixel-sketch-embed.pixel-sketch-stg .pixel-sketch-cloud.is-ready.is-open {
  opacity: 1;
  transform: none;
}

html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-sketch-cloud__title {
  color: #f1f5f9 !important;
}

html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-sketch-cloud__hint {
  color: #94a3b8 !important;
}

html.theme-night body.ai-tools-body .pixel-sketch-summary,
html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-sketch-summary {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.24) !important;
  color: #a7f3d0 !important;
}

html.theme-night body.ai-tools-body .btn-buy.ai-translate-studio-primary,
html.theme-night body.ai-tools-body .btn-buy.ai-translate-studio-secondary {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.22), rgba(249, 115, 22, 0.18)) !important;
  border: 1px solid rgba(236, 72, 153, 0.32) !important;
  color: #fce7f3 !important;
}

html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-sketch-btn--primary {
  background: linear-gradient(135deg, #ec4899 0%, #f97316 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  opacity: 1;
  filter: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 22px -12px rgba(236, 72, 153, 0.5);
}

html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-sketch-btn--primary:disabled {
  /* 禁用态用实心底，避免粉橙半透明叠在深色上发脏 */
  background: rgba(42, 49, 64, 0.98) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #64748b !important;
  opacity: 1 !important;
  filter: none !important;
  box-shadow: none !important;
  cursor: not-allowed;
}

html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-sketch-btn--secondary {
  background: rgba(42, 49, 64, 0.98) !important;
  border: 1px solid rgba(249, 115, 22, 0.32) !important;
  color: #fdba74 !important;
  box-shadow: none !important;
}

html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-sketch-btn--secondary:hover:not(:disabled) {
  background: #323a4a !important;
  border-color: rgba(236, 72, 153, 0.42) !important;
  color: #fbcfe8 !important;
}

html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-model-slot,
html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-model-slot label,
html.theme-night body.ai-tools-body.page-pixel-sketch-embed .dny-model-picker,
html.theme-night body.ai-tools-body.page-pixel-sketch-embed .dny-model-picker__caption {
  color: #94a3b8 !important;
}

html.theme-night body.ai-tools-body.page-pixel-sketch-embed .pixel-model-slot select,
html.theme-night body.ai-tools-body.page-pixel-sketch-embed .dny-model-picker select {
  background: var(--night-bg-input) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e8edf3 !important;
}

html.theme-night body.ai-tools-body .twofa-input,
html.theme-night body.ai-tools-body .twofa-textarea,
html.theme-night body.ai-tools-body .me-post-url-input,
html.theme-night body.ai-tools-body input,
html.theme-night body.ai-tools-body textarea,
html.theme-night body.ai-tools-body select {
  background: var(--night-bg-input) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e8edf3 !important;
}

html.theme-night body.poe-app h1,
html.theme-night body.poe-app h2,
html.theme-night body.poe-app h3,
html.theme-night body.poe-app strong {
  color: #f1f5f9;
}

html.theme-night body.poe-app .section-sub,
html.theme-night body.poe-app .lead,
html.theme-night body.poe-app .check-list,
html.theme-night body.poe-app .metric {
  color: #94a3b8 !important;
}

html.theme-night.staging-visual-rich .poe-chat-head {
  background: linear-gradient(180deg, rgba(22, 27, 36, 0.98), rgba(18, 22, 30, 0.94)) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html.theme-night.staging-visual-rich .poe-sidebar {
  background: linear-gradient(180deg, rgba(22, 27, 36, 0.98), rgba(18, 22, 30, 0.96)) !important;
}

html.theme-night.staging-visual-rich .poe-new-chat,
html.theme-night.staging-visual-rich .poe-search {
  background: linear-gradient(180deg, #222836, #1a1f2a) !important;
  color: #e8edf3 !important;
}

/* ═══════ RPA 页 + 通用浅色块（process-list / hero-card） ═══════ */

html.theme-night .poe-rpa-inner .hero-card,
html.theme-night .poe-rpa-inner .process-list li,
html.theme-night body.poe-app .hero-card,
html.theme-night body.poe-app .process-list li,
html.theme-night.staging-visual-rich .poe-rpa-inner .hero-card,
html.theme-night.staging-visual-rich .poe-rpa-inner .process-list li {
  background: linear-gradient(165deg, rgba(34, 40, 52, 0.98), rgba(26, 31, 40, 0.94)) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e8edf3 !important;
  box-shadow: var(--surface-highlight), 0 10px 28px rgba(0, 0, 0, 0.24) !important;
}

html.theme-night .poe-rpa-inner .process-list li,
html.theme-night body.poe-app .process-list li {
  color: #e8edf3 !important;
}

html.theme-night .poe-rpa-inner .lead,
html.theme-night .poe-rpa-inner .section-sub,
html.theme-night .poe-rpa-inner .card p,
html.theme-night .poe-rpa-inner .client-download-panel p,
html.theme-night .poe-rpa-inner .check-list,
html.theme-night .poe-rpa-inner .card-grid--four .card p,
html.theme-night body.poe-app .poe-rpa-inner .lead,
html.theme-night body.poe-app .poe-rpa-inner .section-sub {
  color: #cbd5e1 !important;
}

html.theme-night .poe-rpa-inner .card,
html.theme-night body.poe-app .poe-rpa-inner .card-grid--four .card {
  background: linear-gradient(165deg, rgba(34, 40, 52, 0.98), rgba(26, 31, 40, 0.94)) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e8edf3 !important;
}

html.theme-night .poe-rpa-inner .card h3,
html.theme-night .poe-rpa-inner .section-title,
html.theme-night .poe-rpa-inner .hero h1,
html.theme-night .poe-rpa-inner .client-download-panel h3 {
  color: #f8fafc !important;
}

html.theme-night .poe-rpa-inner .client-download-panel,
html.theme-night .poe-rpa-inner .value-panel,
html.theme-night .poe-rpa-inner .client-download-stack .client-download-panel {
  background: var(--night-bg-panel) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e8edf3 !important;
}

html.theme-night .poe-rpa-inner .form-card,
html.theme-night body.poe-app .form-card {
  background: var(--night-bg-panel) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28) !important;
}

html.theme-night .poe-rpa-inner .form-card label,
html.theme-night body.poe-app .form-card label {
  color: var(--muted) !important;
}

html.theme-night .poe-rpa-inner .form-card input,
html.theme-night .poe-rpa-inner .form-card select,
html.theme-night .poe-rpa-inner .form-card textarea,
html.theme-night body.poe-app .form-card input,
html.theme-night body.poe-app .form-card select,
html.theme-night body.poe-app .form-card textarea {
  background: var(--night-bg-input) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--ink) !important;
}

html.theme-night .poe-rpa-inner .tag,
html.theme-night .poe-rpa-inner .tool-pill {
  color: #fbcfe8 !important;
  background: rgba(236, 72, 153, 0.16) !important;
  border: 1px solid rgba(236, 72, 153, 0.22) !important;
}

html.theme-night .poe-rpa-inner .metric {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #cbd5e1 !important;
}

html.theme-night .poe-rpa-inner .metric strong {
  color: #f8fafc !important;
}

html.theme-night body.poe-app .section-sub,
html.theme-night body.poe-app .lead {
  color: #cbd5e1 !important;
}

html.theme-night body.poe-app .card p {
  color: #cbd5e1 !important;
}

/* ═══════ 推广赚会员弹窗 ═══════ */

html.theme-night .poe-promote-modal__panel {
  background: linear-gradient(180deg, #1e2430 0%, #181e28 100%) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e8edf3 !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.48) !important;
}

html.theme-night .poe-promote-modal__backdrop {
  background: rgba(0, 0, 0, 0.62) !important;
}

html.theme-night .poe-promote-modal__head {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html.theme-night .poe-promote-modal__head h2,
html.theme-night .poe-promote-section h3,
html.theme-night .poe-promote-hint strong,
html.theme-night .poe-promote-expire strong {
  color: #f8fafc !important;
}

html.theme-night .poe-promote-modal__head p,
html.theme-night .poe-promote-hint,
html.theme-night .poe-promote-rules li,
html.theme-night .poe-promote-stat .lbl,
html.theme-night .poe-promote-expire,
html.theme-night .poe-promote-empty,
html.theme-night .poe-promote-modal__loading,
html.theme-night .poe-promote-modal__error,
html.theme-night .poe-promote-modal__gate p {
  color: #cbd5e1 !important;
}

html.theme-night .poe-promote-rules strong {
  color: #fbcfe8 !important;
}

html.theme-night .poe-promote-invite input {
  background: var(--night-bg-input) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e8edf3 !important;
}

html.theme-night .poe-promote-invite .btn {
  background: linear-gradient(135deg, #ec4899, #f97316) !important;
  border: 0 !important;
  color: #fff !important;
}

html.theme-night .poe-promote-modal__close {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}

html.theme-night .poe-promote-modal__close:hover {
  background: rgba(236, 72, 153, 0.18) !important;
  color: #f8fafc !important;
}

html.theme-night .poe-promote-section {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html.theme-night .poe-promote-rules li {
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

html.theme-night .poe-promote-stat {
  background: rgba(236, 72, 153, 0.12) !important;
  border-color: rgba(236, 72, 153, 0.22) !important;
}

html.theme-night .poe-promote-stat .num {
  color: #f9a8d4 !important;
}

html.theme-night .poe-promote-table-wrap {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.theme-night .poe-promote-table th {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #f1f5f9 !important;
}

html.theme-night .poe-promote-table td {
  color: #cbd5e1 !important;
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

html.theme-night .poe-promote-tag.is-signup {
  background: rgba(99, 102, 241, 0.22) !important;
  color: #c7d2fe !important;
}

html.theme-night .poe-promote-tag.is-paid {
  background: rgba(236, 72, 153, 0.22) !important;
  color: #fbcfe8 !important;
}

html.theme-night .poe-promote-modal__toast {
  background: #222836 !important;
  color: #e8edf3 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* ═══════ 内嵌工具页（日本节假日等 iframe）═══════ */

html.theme-night.desktop-embed body,
html.theme-night.preview-embed-mode body,
html.theme-night body[data-preview-tool] {
  background: var(--night-bg-base) !important;
  color: var(--ink);
}

html.theme-night .tool-hero h1,
html.theme-night .tool-hero .lead,
html.theme-night body[data-preview-tool] .lead {
  color: var(--ink);
}

html.theme-night .tool-hero h1 span {
  color: #fbcfe8;
}

html.theme-night .tool-result {
  background: var(--night-bg-panel) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--ink) !important;
}

html.theme-night .tool-result h3 {
  color: #f8fafc !important;
}

/* ═══════ 去水印 · 媒体提取结果 ═══════ */
html.theme-night .media-result[data-mode="ok"] {
  border-color: rgba(20, 184, 166, 0.28) !important;
  background:
    linear-gradient(135deg, rgba(15, 45, 42, 0.92), rgba(22, 32, 40, 0.96)),
    radial-gradient(circle at 100% 0%, rgba(20, 184, 166, 0.12), transparent 36%) !important;
  color: var(--ink) !important;
}

html.theme-night .media-result[data-mode="error"] {
  border-color: rgba(244, 63, 94, 0.32) !important;
  background: linear-gradient(135deg, rgba(58, 22, 32, 0.94), rgba(28, 24, 32, 0.96)) !important;
  color: #fda4af !important;
}

html.theme-night .media-result > p,
html.theme-night .media-result .tool-note {
  color: #94a3b8 !important;
}

html.theme-night .media-post-text {
  background: rgba(34, 40, 52, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.theme-night .media-post-text h3 {
  color: #f1f5f9 !important;
}

html.theme-night .media-post-text p {
  color: #cbd5e1 !important;
}

html.theme-night .media-card {
  background: rgba(34, 40, 52, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28) !important;
}

html.theme-night .media-card__body strong {
  color: #f1f5f9 !important;
}

html.theme-night .media-card__body span {
  color: #94a3b8 !important;
}

html.theme-night .media-card__actions .btn:not(.btn-primary) {
  background: rgba(22, 27, 36, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #e2e8f0 !important;
}

html.theme-night .media-card__actions .btn:not(.btn-primary):hover {
  background: rgba(38, 45, 58, 0.98) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

html.theme-night .media-download-path-row {
  background: rgba(34, 40, 52, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.theme-night .media-download-path__prefix {
  color: #94a3b8 !important;
}

html.theme-night .media-download-path__value {
  color: #f1f5f9 !important;
}

html.theme-night .media-download-path__pick {
  background: rgba(22, 27, 36, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #e2e8f0 !important;
}

html.theme-night .media-download-path {
  color: #94a3b8 !important;
}

html.theme-night .tool-list-item {
  background: rgba(34, 40, 52, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e8edf3 !important;
}

html.theme-night .tool-list-item strong {
  color: #f1f5f9 !important;
}

html.theme-night .tool-list-item span:not(.tag) {
  color: #cbd5e1 !important;
}

html.theme-night .tool-stat {
  background: rgba(34, 40, 52, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--ink) !important;
}

html.theme-night .tool-stat strong {
  color: #f8fafc !important;
}

html.theme-night .tool-stat span {
  color: #94a3b8 !important;
}

html.theme-night .tool-field label {
  color: #94a3b8 !important;
}

html.theme-night .tool-input,
html.theme-night .tool-select,
html.theme-night .tool-textarea {
  background: var(--night-bg-input) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--ink) !important;
}

html.theme-night .tag,
html.theme-night .tool-pill {
  color: #fbcfe8 !important;
  background: rgba(236, 72, 153, 0.16) !important;
  border: 1px solid rgba(236, 72, 153, 0.22);
}

html.theme-night.staging-visual-rich .tool-result,
html.theme-night.staging-visual-rich .tool-list-item,
html.theme-night.staging-visual-rich .tool-stat {
  box-shadow: var(--surface-highlight), 0 8px 24px rgba(0, 0, 0, 0.24) !important;
}

html.theme-night .calc-key:not(.is-op):not(.is-eq) {
  background: rgba(34, 40, 52, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f1f5f9 !important;
}

html.theme-night .calc-key.is-op,
html.theme-night .calc-key.is-eq {
  color: #fff !important;
  background: linear-gradient(135deg, #ec4899, #f97316) !important;
  border: 0 !important;
}

html.theme-night .calc-display {
  background: #0a0e14 !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html.theme-night .calc-display strong {
  color: #f8fafc !important;
}

html.theme-night .calc-display small {
  color: rgba(255, 255, 255, 0.52) !important;
}

/* ═══════ 秒合约测算 ═══════ */

html.theme-night .second-result-card {
  background: var(--night-bg-panel) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e8edf3 !important;
  box-shadow: var(--surface-highlight), 0 12px 32px rgba(0, 0, 0, 0.28) !important;
}

html.theme-night .second-result-card h3 {
  color: #f8fafc !important;
}

html.theme-night .second-result-table th,
html.theme-night .second-result-table td {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  color: #dbe4ef !important;
}

html.theme-night .second-result-table thead th {
  color: #94a3b8 !important;
}

html.theme-night .second-result-table tfoot td {
  color: #fbcfe8 !important;
}

html.theme-night .second-result-table tfoot strong {
  color: #fda4af !important;
}

html.theme-night .second-profit-label {
  color: #5eead4 !important;
}

html.theme-night .second-tier {
  background: rgba(34, 40, 52, 0.92) !important;
  border-color: rgba(236, 72, 153, 0.22) !important;
  color: #e8edf3 !important;
}

html.theme-night .second-tier strong {
  color: #f8fafc !important;
}

html.theme-night .second-tier.is-on,
html.theme-night .second-tier:hover {
  background: linear-gradient(180deg, rgba(44, 34, 48, 0.98), rgba(36, 28, 40, 0.96)) !important;
  border-color: rgba(236, 72, 153, 0.42) !important;
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.18) !important;
}

html.theme-night .second-tier-rate__input {
  background: var(--night-bg-input) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f1f5f9 !important;
}

html.theme-night body[data-preview-tool="second-contract"] .tool-note {
  color: #94a3b8 !important;
}

/* ═══════ 档案库 ═══════ */

html.theme-night .vault-toolbar {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html.theme-night .vault-toolbar strong {
  color: #f8fafc !important;
}

html.theme-night .vault-toolbar span,
html.theme-night .vault-images-head span,
html.theme-night .vault-parent-hint,
html.theme-night .jiyu-vault-nav-empty {
  color: #b0bcc9 !important;
}

html.theme-night .vault-search-input,
html.theme-night .vault-title-input {
  background: var(--night-bg-input) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e8edf3 !important;
}

html.theme-night .vault-search-input::placeholder {
  color: #64748b !important;
}

html.theme-night .vault-sidebar,
html.theme-night .vault-editor-wrap {
  background: var(--night-bg-panel) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

html.theme-night .vault-empty {
  color: #94a3b8 !important;
}

html.theme-night .vault-empty strong {
  color: #f1f5f9 !important;
}

html.theme-night .vault-empty span {
  color: #b0bcc9 !important;
}

html.theme-night .jiyu-vault-nav-item {
  background: rgba(34, 40, 52, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #dbe4ef !important;
}

html.theme-night .jiyu-vault-nav-item[aria-selected="true"] {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(34, 40, 52, 0.96)) !important;
  border-color: rgba(236, 72, 153, 0.32) !important;
  color: #fbcfe8 !important;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.12) !important;
}

html.theme-night .jiyu-vault-nav-item.is-search-hit {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(34, 40, 52, 0.96)) !important;
  border-color: rgba(249, 115, 22, 0.28) !important;
  color: #fdba74 !important;
}

html.theme-night .jiyu-vault-nav-caret,
html.theme-night .jiyu-vault-nav-caret-placeholder {
  color: #94a3b8 !important;
}

html.theme-night .vault-body-shell {
  background: var(--night-bg-input) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html.theme-night .vault-body-shell.is-dragover {
  background: rgba(236, 72, 153, 0.08) !important;
}

html.theme-night .vault-body-shell .vault-body-input,
html.theme-night .vault-body-shell .vault-body-editor {
  color: #e8edf3 !important;
}

html.theme-night .vault-body-editor:empty::before {
  color: #64748b !important;
}

html.theme-night .jiyu-vault-status {
  color: #5eead4 !important;
}

html.theme-night .jiyu-vault-status[data-tone="error"] {
  color: #fda4af !important;
}

html.theme-night .vault-modal__box,
html.theme-night .vault-modal__panel {
  background: #1e2430 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e8edf3 !important;
}

html.theme-night .vault-modal__box h3 {
  color: #f8fafc !important;
}

html.theme-night .vault-modal__box p {
  color: #cbd5e1 !important;
}

html.theme-night .jiyu-vault-image-card {
  background: rgba(34, 40, 52, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.theme-night .jiyu-vault-image-card__name {
  color: #94a3b8 !important;
}

html.theme-night .vault-inline-img {
  background: rgba(34, 40, 52, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ═══════ AI 图片改图（iframe embed）═══════ */

html.theme-night body.ai-tools-body.page-image-edit-embed {
  background: var(--night-bg-base) !important;
  color: var(--ink) !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-embed-title {
  color: #f1f5f9 !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-embed-lead {
  color: #94a3b8 !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-panel {
  background: linear-gradient(165deg, rgba(30, 36, 48, 0.98) 0%, rgba(22, 27, 36, 0.96) 100%) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: var(--surface-highlight), 0 14px 40px rgba(0, 0, 0, 0.28) !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-panel-head h3 {
  color: #f1f5f9 !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-panel-head span {
  color: #94a3b8 !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-dropzone {
  border-color: rgba(255, 255, 255, 0.14) !important;
  background: rgba(34, 40, 52, 0.72) !important;
  color: #94a3b8 !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-dropzone:hover,
html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-dropzone.is-dragover {
  border-color: rgba(236, 72, 153, 0.38) !important;
  background: rgba(42, 49, 64, 0.88) !important;
  box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.12) !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-dropzone:focus-visible {
  border-color: rgba(236, 72, 153, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.16) !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-dropzone-empty strong {
  color: #e2e8f0 !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-dropzone-empty small {
  color: #94a3b8 !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-dropzone.has-image {
  background: rgba(26, 31, 40, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-dropzone.has-image:hover {
  background: rgba(26, 31, 40, 0.96) !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-dropzone-filled {
  background: rgba(22, 27, 36, 0.92) !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-preview-full {
  background: rgba(22, 27, 36, 0.6) !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-prompt-label {
  color: #cbd5e1 !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-prompt {
  background: var(--night-bg-input) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e8edf3 !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-prompt:focus {
  border-color: rgba(236, 72, 153, 0.42) !important;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.14) !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-prompt::placeholder {
  color: #64748b !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-chip {
  background: var(--night-bg-input) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-chip:hover {
  border-color: rgba(236, 72, 153, 0.36) !important;
  color: #fbcfe8 !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-options label {
  color: #94a3b8 !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-options select {
  background: var(--night-bg-input) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e8edf3 !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-status {
  color: #94a3b8 !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-result-box {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(34, 40, 52, 0.72) !important;
  color: #94a3b8 !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-result-box.has-result {
  background: rgba(26, 31, 40, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-result-box.is-loading {
  color: #94a3b8 !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-result-filled {
  background: rgba(22, 27, 36, 0.92) !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-result-img {
  background: rgba(22, 27, 36, 0.6) !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .image-edit-footnote {
  color: #64748b !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .btn-buy.ai-translate-studio-primary {
  background: linear-gradient(135deg, #ec4899 0%, #f97316 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 24px -12px rgba(236, 72, 153, 0.5) !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .btn-buy.ai-translate-studio-secondary {
  background: rgba(42, 49, 64, 0.98) !important;
  border: 1px solid rgba(249, 115, 22, 0.32) !important;
  color: #fdba74 !important;
  box-shadow: none !important;
}

html.theme-night body.ai-tools-body.page-image-edit-embed .btn-buy.ai-translate-studio-secondary:hover {
  background: #323a4a !important;
  border-color: rgba(236, 72, 153, 0.42) !important;
  color: #fbcfe8 !important;
}

/* ═══════ 2FA（iframe embed + 独立页）═══════ */

html.theme-night body.ai-tools-body.page-2fa-embed {
  background: #11141b !important;
  color: #e8edf3 !important;
}

html.theme-night body.ai-tools-body.page-2fa .ai-twofa-shell.ai-jiyu-platinum-shell.product-card,
html.theme-night body.ai-tools-body.page-2fa-embed .ai-twofa-shell.ai-jiyu-platinum-shell.product-card {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: linear-gradient(165deg, rgba(30, 36, 48, 0.98) 0%, rgba(22, 27, 36, 0.96) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 56px rgba(0, 0, 0, 0.36) !important;
}

html.theme-night body.ai-tools-body.page-2fa-embed .ai-twofa-shell.ai-jiyu-platinum-shell.product-card::before {
  background:
    radial-gradient(circle at 0% 0%, rgba(236, 72, 153, 0.1), transparent 36%),
    radial-gradient(circle at 100% 18%, rgba(249, 115, 22, 0.08), transparent 32%) !important;
  opacity: 1 !important;
}

html.theme-night body.ai-tools-body.page-2fa .ai-jiyu-platinum-shell.ai-twofa-shell .ai-output-title,
html.theme-night body.ai-tools-body.page-2fa-embed .ai-jiyu-platinum-shell.ai-twofa-shell .ai-output-title,
html.theme-night body.ai-tools-body.page-2fa-embed .ai-output-title {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #f8fafc !important;
  color: #f8fafc !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

html.theme-night body.ai-tools-body.page-2fa-embed .ai-output-title::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent) !important;
}

html.theme-night body.ai-tools-body.page-2fa .ai-jiyu-platinum-shell.ai-twofa-shell .twofa-field label,
html.theme-night body.ai-tools-body.page-2fa-embed .ai-jiyu-platinum-shell.ai-twofa-shell .twofa-field label,
html.theme-night body.ai-tools-body.page-2fa .ai-twofa-shell .twofa-field label,
html.theme-night body.ai-tools-body.page-2fa-embed .twofa-field label {
  color: #b0bcc9 !important;
}

html.theme-night body.ai-tools-body.page-2fa .ai-jiyu-platinum-shell.ai-twofa-shell .twofa-input,
html.theme-night body.ai-tools-body.page-2fa .ai-jiyu-platinum-shell.ai-twofa-shell .twofa-textarea,
html.theme-night body.ai-tools-body.page-2fa-embed .ai-jiyu-platinum-shell.ai-twofa-shell .twofa-input,
html.theme-night body.ai-tools-body.page-2fa-embed .ai-jiyu-platinum-shell.ai-twofa-shell .twofa-textarea,
html.theme-night body.ai-tools-body.page-2fa .ai-twofa-shell .twofa-input,
html.theme-night body.ai-tools-body.page-2fa .ai-twofa-shell .twofa-textarea,
html.theme-night body.ai-tools-body.page-2fa-embed .twofa-input,
html.theme-night body.ai-tools-body.page-2fa-embed .twofa-textarea {
  background: #222836 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e8edf3 !important;
  box-shadow: none !important;
}

html.theme-night body.ai-tools-body.page-2fa .ai-jiyu-platinum-shell.ai-twofa-shell .twofa-input::placeholder,
html.theme-night body.ai-tools-body.page-2fa .ai-jiyu-platinum-shell.ai-twofa-shell .twofa-textarea::placeholder,
html.theme-night body.ai-tools-body.page-2fa-embed .twofa-input::placeholder,
html.theme-night body.ai-tools-body.page-2fa-embed .twofa-textarea::placeholder {
  color: #64748b !important;
}

html.theme-night body.ai-tools-body.page-2fa .ai-jiyu-platinum-shell.ai-twofa-shell .twofa-input:focus,
html.theme-night body.ai-tools-body.page-2fa .ai-jiyu-platinum-shell.ai-twofa-shell .twofa-textarea:focus,
html.theme-night body.ai-tools-body.page-2fa-embed .ai-jiyu-platinum-shell.ai-twofa-shell .twofa-input:focus,
html.theme-night body.ai-tools-body.page-2fa-embed .ai-jiyu-platinum-shell.ai-twofa-shell .twofa-textarea:focus,
html.theme-night body.ai-tools-body.page-2fa-embed .twofa-input:focus,
html.theme-night body.ai-tools-body.page-2fa-embed .twofa-textarea:focus {
  border-color: rgba(236, 72, 153, 0.38) !important;
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12) !important;
}

html.theme-night body.ai-tools-body.page-2fa .ai-jiyu-platinum-shell .twofa-result__item,
html.theme-night body.ai-tools-body.page-2fa-embed .ai-jiyu-platinum-shell .twofa-result__item,
html.theme-night body.ai-tools-body.page-2fa .twofa-result__item,
html.theme-night body.ai-tools-body.page-2fa-embed .twofa-result__item {
  background: rgba(34, 40, 52, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.24) !important;
}

html.theme-night body.ai-tools-body.page-2fa .ai-twofa-shell .twofa-result__k,
html.theme-night body.ai-tools-body.page-2fa .twofa-copy-hint,
html.theme-night body.ai-tools-body.page-2fa-embed .ai-jiyu-platinum-shell .twofa-result__k,
html.theme-night body.ai-tools-body.page-2fa-embed .twofa-copy-hint {
  color: #b0bcc9 !important;
}

html.theme-night body.ai-tools-body.page-2fa .twofa-code,
html.theme-night body.ai-tools-body.page-2fa-embed .twofa-code {
  color: #f8fafc !important;
}

html.theme-night body.ai-tools-body.page-2fa .twofa-remain,
html.theme-night body.ai-tools-body.page-2fa-embed .twofa-remain {
  color: #5eead4 !important;
}

html.theme-night body.ai-tools-body.page-2fa .ai-jiyu-platinum-shell button.twofa-result__item--copy:hover,
html.theme-night body.ai-tools-body.page-2fa-embed button.twofa-result__item--copy:hover {
  border-color: rgba(20, 184, 166, 0.32) !important;
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.14) !important;
}

html.theme-night body.ai-tools-body.page-2fa .ai-jiyu-platinum-shell .twofa-actions .twofa-btn.ai-translate-studio-primary,
html.theme-night body.ai-tools-body.page-2fa-embed .twofa-actions .ai-translate-studio-primary {
  border: 0 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #ec4899, #f97316) !important;
  box-shadow: 0 14px 32px rgba(236, 72, 153, 0.24) !important;
}

html.theme-night body.ai-tools-body.page-2fa .ai-jiyu-platinum-shell .twofa-actions .twofa-btn.ai-translate-studio-secondary,
html.theme-night body.ai-tools-body.page-2fa-embed .twofa-actions .ai-translate-studio-secondary {
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #e8edf3 !important;
  background: rgba(34, 40, 52, 0.92) !important;
  box-shadow: none !important;
}

html.theme-night body.ai-tools-body.page-2fa .twofa-qr,
html.theme-night body.ai-tools-body.page-2fa-embed .twofa-qr {
  background: rgba(34, 40, 52, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.theme-night body.ai-tools-body.page-2fa .twofa-err,
html.theme-night body.ai-tools-body.page-2fa-embed .twofa-err {
  color: #fda4af !important;
}

/* ═══════ 临时邮箱 ═══════ */

html.theme-night body[data-preview-tool="temp-mail"] .temp-mail-card,
html.theme-night .temp-mail-workbench .temp-mail-card {
  background: var(--night-bg-panel) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 32px rgba(0, 0, 0, 0.28) !important;
  color: #e8edf3 !important;
}

html.theme-night .temp-mail-card--featured {
  background: linear-gradient(165deg, rgba(40, 32, 36, 0.96), rgba(30, 36, 48, 0.94)) !important;
  border-color: rgba(249, 115, 22, 0.28) !important;
}

html.theme-night .temp-mail-card--chitu .temp-mail-card-head strong {
  color: #fdba74 !important;
}

html.theme-night .temp-mail-card-head strong {
  color: #f8fafc !important;
}

html.theme-night .temp-mail-status {
  background: rgba(236, 72, 153, 0.12) !important;
  border-color: rgba(236, 72, 153, 0.22) !important;
  color: #fbcfe8 !important;
}

html.theme-night body[data-preview-tool="temp-mail"] .tool-field label,
html.theme-night .temp-mail-workbench .tool-field label {
  color: #b0bcc9 !important;
}

html.theme-night .temp-mail-note,
html.theme-night .temp-mail-check,
html.theme-night .temp-mail-card .muted,
html.theme-night .temp-mail-otp .muted,
html.theme-night #chitu-code .muted {
  color: #94a3b8 !important;
}

html.theme-night body[data-preview-tool="temp-mail"] .tool-input,
html.theme-night .temp-mail-workbench .tool-input {
  background: var(--night-bg-input) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e8edf3 !important;
  box-shadow: none !important;
}

html.theme-night body[data-preview-tool="temp-mail"] .tool-input::placeholder {
  color: #64748b !important;
}

html.theme-night .temp-mail-otp,
html.theme-night .temp-mail-otp--code {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px;
  background: rgba(34, 40, 52, 0.72) !important;
  color: #cbd5e1 !important;
}

html.theme-night .temp-mail-otp code,
html.theme-night #chitu-code .chitu-code-value {
  background: rgba(20, 184, 166, 0.14) !important;
  color: #5eead4 !important;
}

html.theme-night .temp-mail-url-btn {
  background: rgba(34, 40, 52, 0.92) !important;
  border-color: rgba(236, 72, 153, 0.22) !important;
  color: #fbcfe8 !important;
  box-shadow: none !important;
}

html.theme-night .temp-mail-url-btn:hover {
  background: rgba(236, 72, 153, 0.14) !important;
  border-color: rgba(236, 72, 153, 0.32) !important;
}

html.theme-night body[data-preview-tool="temp-mail"] .tool-hero .lead {
  color: #cbd5e1 !important;
}

html.theme-night .temp-mail-check input[type="checkbox"] {
  accent-color: #ec4899;
}

html.theme-night .temp-mail-workbench .btn:not(.btn-primary) {
  background: rgba(34, 40, 52, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e8edf3 !important;
}

/* —— 登录 / 注册页 —— */
html.theme-night body.preview-auth-body {
  background: transparent !important;
}

html.theme-night .preview-auth-card .sub,
html.theme-night .preview-auth-contact {
  color: var(--muted);
}

html.theme-night .preview-auth-card .form-row label {
  color: var(--muted);
}

html.theme-night .preview-auth-card .form-row input {
  background: var(--night-bg-input);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--ink);
  box-shadow: var(--surface-highlight);
}

html.theme-night .preview-auth-card .form-row input::placeholder {
  color: #64748b;
}

html.theme-night .preview-auth-card .form-row input:focus {
  border-color: rgba(236, 72, 153, 0.45);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

html.theme-night .preview-auth-card .form-row input:-webkit-autofill,
html.theme-night .preview-auth-card .form-row input:-webkit-autofill:hover,
html.theme-night .preview-auth-card .form-row input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--night-bg-input) inset;
  caret-color: var(--ink);
}

html.theme-night .preview-auth-card .btn-block-secondary {
  background: var(--night-bg-input);
  border: 1px solid rgba(236, 72, 153, 0.32);
  color: #f9a8d4;
  box-shadow: none;
}

html.theme-night .preview-auth-card .btn-block-secondary:hover {
  filter: none;
  background: rgba(236, 72, 153, 0.12);
}

html.theme-night .preview-auth-card .code-row .btn-send {
  background: var(--night-bg-input);
  border-color: rgba(236, 72, 153, 0.28);
  color: #f9a8d4;
}

html.theme-night .preview-auth-card .code-row .btn-send:disabled {
  color: var(--muted);
}

html.theme-night .preview-auth-card .forgot-link,
html.theme-night .preview-auth-card .back-link {
  color: var(--muted);
}

html.theme-night .preview-auth-card .forgot-link:hover,
html.theme-night .preview-auth-card .back-link:hover {
  color: #f9a8d4;
}

html.theme-night .preview-auth-foot a,
html.theme-night .preview-auth-contact a {
  color: #f9a8d4;
}

html.theme-night .preview-auth-card .reset-link-box {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
  color: var(--ink);
}

html.theme-night .preview-auth-card .pwd-wrap .pwd-eye {
  color: var(--muted);
}

html.theme-night .preview-auth-card .pwd-wrap .pwd-eye:hover {
  color: #f9a8d4;
}

html.theme-night .poe-sidebar__footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

html.theme-night .poe-sidebar__auth[data-auth-state="in"] .preview-nav-auth__btn--primary {
  background: var(--night-bg-input);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

html.theme-night .poe-sidebar__auth[data-auth-state="in"] .preview-nav-auth__btn--primary:hover {
  background: #323a4c;
  border-color: rgba(236, 72, 153, 0.35);
  color: #f9a8d4;
}

html.theme-night .poe-sidebar__auth .preview-nav-auth__btn--outline {
  background: var(--night-bg-input) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}

html.theme-night .poe-sidebar__auth .preview-nav-auth__btn--outline:hover {
  background: #323a4c !important;
  border-color: rgba(236, 72, 153, 0.35) !important;
  color: #f9a8d4 !important;
}

html.theme-night .poe-sidebar__ai-provider {
  color: rgba(203, 213, 225, 0.55);
}

html.theme-night .poe-sidebar__ai-provider a:hover {
  color: rgba(226, 232, 240, 0.88);
}

/* —— 用户中心（usCenter） —— */
html.theme-night body.user-center-page {
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 10%, rgba(236, 72, 153, 0.1), transparent 32%),
    radial-gradient(circle at 82% 4%, rgba(249, 115, 22, 0.08), transparent 34%),
    linear-gradient(180deg, #151923 0%, var(--night-bg-base) 52%, var(--night-bg-deep) 100%) !important;
}

html.theme-night body.user-center-page.uc-embed,
html.theme-night.preview-embed-mode body.user-center-page {
  background: transparent !important;
}

html.theme-night body.user-center-page::before {
  opacity: 0.07;
}

html.theme-night body.user-center-page #gate {
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--night-bg-panel);
  box-shadow: var(--shadow-soft);
}

html.theme-night body.user-center-page .uc-top-tab {
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--night-bg-input);
  color: var(--ink);
  box-shadow: none;
}

html.theme-night body.user-center-page .uc-top-tab:hover,
html.theme-night body.user-center-page .uc-top-tab.active {
  background: rgba(236, 72, 153, 0.14);
  border-color: rgba(236, 72, 153, 0.32);
  color: #f9a8d4;
}

html.theme-night body.user-center-page .uc-content-card,
html.theme-night body.user-center-page .addr-card,
html.theme-night body.user-center-page .profile-readonly-card,
html.theme-night body.user-center-page .sess-card,
html.theme-night body.user-center-page .ov-stat {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: var(--night-bg-panel) !important;
  box-shadow: var(--shadow-soft);
  backdrop-filter: none;
}

html.theme-night body.user-center-page .uc-pane-title,
html.theme-night body.user-center-page .profile-readonly-card .value,
html.theme-night body.user-center-page .ov-info-row .value,
html.theme-night body.user-center-page .sess-info .device,
html.theme-night body.user-center-page .uc-account-actions__title {
  color: var(--ink);
}

html.theme-night body.user-center-page .uc-field label,
html.theme-night body.user-center-page .profile-readonly-card .label,
html.theme-night body.user-center-page .profile-section-title,
html.theme-night body.user-center-page .ov-info-row .label {
  color: var(--muted);
}

html.theme-night body.user-center-page .uc-field input,
html.theme-night body.user-center-page .uc-redeem-row input {
  background: var(--night-bg-input);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

html.theme-night body.user-center-page .uc-field input:disabled {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

html.theme-night body.user-center-page .uc-field input::placeholder,
html.theme-night body.user-center-page .uc-redeem-row input::placeholder {
  color: #64748b;
}

html.theme-night body.user-center-page .uc-field input:-webkit-autofill,
html.theme-night body.user-center-page .uc-field input:-webkit-autofill:hover,
html.theme-night body.user-center-page .uc-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--night-bg-input) inset;
  caret-color: var(--ink);
}

html.theme-night body.user-center-page .btn-sm {
  background: linear-gradient(135deg, var(--brand, #ec4899), var(--brand-2, #f97316));
  color: #fff;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.22);
}

html.theme-night body.user-center-page .btn-sm.outline {
  background: var(--night-bg-input);
  color: #f9a8d4;
  border-color: rgba(236, 72, 153, 0.32);
  box-shadow: none;
}

html.theme-night body.user-center-page .btn-sm.soft-danger {
  background: rgba(190, 18, 60, 0.12);
  color: #fda4af;
  border-color: rgba(190, 18, 60, 0.28);
  box-shadow: none;
}

html.theme-night body.user-center-page .btn-sm.danger {
  background: #be123c;
  color: #fff;
}

html.theme-night body.user-center-page .uc-trial-card {
  border-color: rgba(20, 184, 166, 0.28);
  background: rgba(20, 184, 166, 0.1);
  color: #5eead4;
}

html.theme-night body.user-center-page .uc-trial-card[data-mode="member"] {
  border-color: rgba(251, 146, 60, 0.28);
  background: rgba(249, 115, 22, 0.1);
  color: #fdba74;
}

html.theme-night body.user-center-page .uc-trial-card[data-mode="error"] {
  border-color: rgba(225, 29, 72, 0.28);
  background: rgba(225, 29, 72, 0.1);
  color: #fda4af;
}

html.theme-night body.user-center-page .uc-profile-alert {
  border-color: rgba(225, 29, 72, 0.28);
  background: rgba(225, 29, 72, 0.1);
  color: #fda4af;
}

html.theme-night body.user-center-page .uc-profile-alert[data-mode="member"] {
  border-color: rgba(251, 146, 60, 0.28);
  background: rgba(249, 115, 22, 0.1);
  color: #fdba74;
}

html.theme-night body.user-center-page .uc-profile-alert[data-mode="trial"] {
  border-color: rgba(20, 184, 166, 0.28);
  background: rgba(20, 184, 166, 0.1);
  color: #5eead4;
}

html.theme-night body.user-center-page .uc-profile-block,
html.theme-night body.user-center-page .uc-email-details {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(15, 17, 23, 0.55);
}

html.theme-night body.user-center-page .uc-profile-block__title,
html.theme-night body.user-center-page .uc-security-item h4,
html.theme-night body.user-center-page .uc-email-details > summary,
html.theme-night body.user-center-page .uc-profile-dl dd {
  color: var(--night-text);
}

html.theme-night body.user-center-page .uc-profile-dl > div {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.theme-night body.user-center-page .uc-profile-footer__hint {
  color: var(--muted);
}

html.theme-night body.user-center-page .uc-profile-nick__input {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(15, 17, 23, 0.72);
  color: var(--night-text);
}

html.theme-night body.user-center-page .uc-profile-nick__input:focus {
  border-color: rgba(236, 72, 153, 0.42);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.12);
}

html.theme-night body.user-center-page .uc-profile-nick__save {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(15, 17, 23, 0.72);
  color: var(--muted);
}

html.theme-night body.user-center-page .uc-profile-nick__save:hover:not(:disabled) {
  color: #f9a8d4;
  border-color: rgba(236, 72, 153, 0.32);
  background: rgba(236, 72, 153, 0.08);
}

html.theme-night body.user-center-page .uc-redeem-card {
  border-color: rgba(168, 85, 247, 0.28);
  background: rgba(168, 85, 247, 0.08);
}

html.theme-night body.user-center-page .uc-redeem-card strong {
  color: #d8b4fe;
}

html.theme-night body.user-center-page .uc-redeem-card span,
html.theme-night body.user-center-page .email-bind-note,
html.theme-night body.user-center-page .uc-account-actions__desc,
html.theme-night body.user-center-page .uc-profile-block__desc,
html.theme-night body.user-center-page .uc-redeem-msg {
  color: var(--muted);
}

html.theme-night body.user-center-page .email-bind-card {
  border-color: rgba(20, 184, 166, 0.22);
  background: rgba(20, 184, 166, 0.08);
}

html.theme-night body.user-center-page .uc-account-actions {
  border-color: rgba(236, 72, 153, 0.18);
  background: var(--night-bg-panel);
}

html.theme-night body.user-center-page .ov-stat:hover {
  background: rgba(236, 72, 153, 0.08) !important;
  border-color: rgba(236, 72, 153, 0.28) !important;
}

html.theme-night body.user-center-page .ov-stat .num {
  color: #f9a8d4;
}

html.theme-night body.user-center-page .ov-stat .lbl {
  color: var(--muted);
}

html.theme-night body.user-center-page .ov-info-row,
html.theme-night body.user-center-page .order-row {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.theme-night body.user-center-page .sess-card.current {
  border-color: rgba(34, 197, 94, 0.28) !important;
  background: rgba(34, 197, 94, 0.08) !important;
}

html.theme-night body.user-center-page .sess-info .meta {
  color: var(--muted);
}

html.theme-night body.user-center-page .hero-confirm-modal__box {
  background: var(--night-bg-panel);
  border-color: rgba(255, 255, 255, 0.1);
}

html.theme-night body.user-center-page .hero-confirm-modal__msg {
  color: var(--ink);
}

html.theme-night body.user-center-page .msg.err,
html.theme-night body.user-center-page .uc-redeem-msg.err {
  color: #fda4af;
}

html.theme-night body.user-center-page .msg.ok,
html.theme-night body.user-center-page .uc-redeem-msg.ok {
  color: #6ee7b7;
}

html.theme-night body.user-center-page .empty-hint {
  color: var(--muted);
}

html.theme-night body.user-center-page .pwd-wrap .pwd-eye {
  color: var(--muted);
}

html.theme-night body.user-center-page .pwd-wrap .pwd-eye:hover {
  color: #f9a8d4;
}

