/* ============================================================
   全站弹窗 / 交互层暖色统一皮肤（2026-11-22）
   只覆盖视觉与布局，不改任何业务字段、按钮行为或提交逻辑。
   已单独重设计的弹窗（mdh-form / auth-edit / 单条爆款 / KS 模板）由
   各自更具体的 body:has(...) 规则覆盖，本文件只兜底旧弹窗。
   ============================================================ */
:is(#modalOverlay,#taskCenterOverlay,#newsCatOverlay){
  --wd-paper:#fffdfb;--wd-paper2:#fff8f1;--wd-soft:#fff2e9;--wd-soft2:#fbe9e2;
  --wd-ink:#2c221c;--wd-ink2:#5f5045;--wd-muted:#8f8175;--wd-faint:#b7a596;
  --wd-line:#eadbcc;--wd-line2:#f2e7dc;--wd-brand:#c65336;--wd-brand2:#a93822;
  --wd-green:#2f7168;--wd-green-soft:#edf6f2;--wd-amber:#a9762f;--wd-amber-soft:#fff5e5;
  --wd-danger:#b42318;--wd-danger-soft:#fff0ed;
}

/* ---------- 遮罩与弹窗外壳 ---------- */
:is(#modalOverlay,#taskCenterOverlay,#newsCatOverlay).show{
  background:
    radial-gradient(900px 540px at 12% -10%,rgba(226,188,150,.18),transparent 58%),
    rgba(35,28,23,.58)!important;
  backdrop-filter:blur(10px) saturate(.95)!important;
  -webkit-backdrop-filter:blur(10px) saturate(.95)!important;
}
:is(#modalOverlay,#taskCenterOverlay,#newsCatOverlay) .modal{
  width:min(820px,calc(100vw - 32px));
  max-width:min(960px,calc(100vw - 32px));
  max-height:90vh!important;
  display:flex!important;flex-direction:column!important;
  overflow:hidden!important;
  background:linear-gradient(180deg,#fffdfb 0%,#fff8f2 100%)!important;
  border:1px solid #e3d2c2!important;
  border-radius:24px!important;
  box-shadow:0 42px 110px -42px rgba(45,29,18,.72),0 2px 0 rgba(255,255,255,.72) inset!important;
  /* 让弹窗内部继续使用旧变量的组件自动落到暖色变量上 */
  --pri:#c65336;--pri2:#a93822;
  --brand:#c65336;--brand-50:#fff4ef;--brand-100:#fbe5db;--brand-300:#e0a08a;--brand-400:#d97a5d;--brand-500:#c65336;--brand-600:#a93822;
  --c-brand:#c65336;--c-brand-2:#a93822;--c-brand-3:#d97a5d;--c-brand-ink:#a93822;--c-brand-solid:#a93822;--c-brand-soft:#fbe9e2;
  --c-brand-50:#fff4ef;--c-brand-100:#fbe5db;--c-brand-400:#d97a5d;--c-brand-500:#c65336;--c-brand-600:#a93822;
  --surface:#fffdfb;--surface-2:#fff8f1;--surface-3:#fff2e9;
  --c-surface:#fffdfb;--c-surface-2:#fff8f1;--c-surface-3:#fff2e9;
  --text:#2c221c;--text-2:#5f5045;--text-3:#8f8175;
  --c-text-1:#2c221c;--c-text-2:#5f5045;--c-text-3:#8f8175;
  --border:#eadbcc;--border-strong:#ddc5b3;--c-line:#eadbcc;--c-line-2:#eadbcc;
  --t1:#2c221c;--t2:#5f5045;
}
#taskCenterOverlay .modal,#newsCatOverlay .modal{
  width:min(780px,calc(100vw - 32px))!important;
  max-width:min(780px,calc(100vw - 32px))!important;
}

/* ---------- 头部 / 内容区 / 底部 ---------- */
:is(#modalOverlay,#taskCenterOverlay,#newsCatOverlay) .modal-header{
  flex:0 0 auto;
  padding:18px 22px!important;
  background:linear-gradient(180deg,#fff6ee 0%,#fffdfb 100%)!important;
  border-bottom:1px solid #efe0d3!important;
}
:is(#modalOverlay,#taskCenterOverlay,#newsCatOverlay) .modal-header h3{
  display:flex;align-items:center;gap:10px;
  color:#2a201a!important;
  font-family:Georgia,"Noto Serif CJK SC","Songti SC",serif!important;
  font-size:20px!important;font-weight:800!important;letter-spacing:-.02em!important;
}
:is(#modalOverlay,#taskCenterOverlay,#newsCatOverlay) .modal-header h3 .ic{
  width:31px;height:31px;padding:7px;border-radius:10px;
  background:#fbe9e2;color:#b14a30;flex:0 0 auto;
}
:is(#modalOverlay,#taskCenterOverlay,#newsCatOverlay) .modal-close{
  width:34px;height:34px;border-radius:11px;
  background:#fff2e8!important;color:#8a6b58!important;
  border:1px solid #f1dfd1;
}
:is(#modalOverlay,#taskCenterOverlay,#newsCatOverlay) .modal-close:hover{background:#ffe4d5!important;color:#a93822!important}

#modalBody{background:transparent;color:var(--wd-ink2);font-size:13px;line-height:1.62}
.modal-overlay.show .modal-body{padding:20px 22px 22px}
#taskCenterBody,#newsCatMgrBody{
  padding:20px 22px 22px!important;
  overflow:auto!important;
  background:transparent!important;
  color:var(--wd-ink2);
  font-size:13px;line-height:1.62;
}
:is(#modalFooter,#taskCenterFooter):not(:empty),#newsCatOverlay .modal-footer{
  flex:0 0 auto;
  padding:14px 22px 18px!important;
  background:linear-gradient(180deg,#fffaf5,#fff4ec)!important;
  border-top:1px solid #efe0d3!important;
}
#newsCatOverlay .modal-footer{display:flex;justify-content:flex-end}

/* 滚动条 */
#modalBody::-webkit-scrollbar,#taskCenterBody::-webkit-scrollbar,#newsCatMgrBody::-webkit-scrollbar{width:9px;height:9px}
#modalBody::-webkit-scrollbar-thumb,#taskCenterBody::-webkit-scrollbar-thumb,#newsCatMgrBody::-webkit-scrollbar-thumb{background:#dfcbbb;border-radius:999px;border:2px solid #fff8f1}

/* ---------- 通用标题 / 说明 ---------- */
#modalBody :is(h2,h3,h4,h5),#taskCenterBody :is(h2,h3,h4),#newsCatMgrBody :is(h2,h3,h4){
  color:var(--wd-ink)!important;letter-spacing:-.01em;
}
#modalBody .ba-sec-h,#modalBody .section-head,#modalBody .form-section .section-head,#modalBody .auth-edit-section-title{
  color:#6f5745!important;letter-spacing:.01em;
}

/* ---------- 表单控件 ---------- */
:is(#modalBody,#taskCenterBody,#newsCatMgrBody) :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
  select,textarea
){
  background:#fffaf5!important;
  border:1px solid #e4d4c5!important;
  border-radius:11px!important;
  color:#2c221c!important;
  font-family:inherit!important;
  font-size:13px!important;
  line-height:1.45!important;
  box-shadow:0 1px 0 rgba(255,255,255,.7) inset;
}
:is(#modalBody,#taskCenterBody,#newsCatMgrBody) :is(input,select,textarea)::placeholder{color:#b4a294!important}
:is(#modalBody,#taskCenterBody,#newsCatMgrBody) :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
  select,textarea
):focus{
  border-color:#c65336!important;
  box-shadow:0 0 0 3px rgba(198,83,54,.12)!important;
  outline:none!important;
}
:is(#modalBody,#taskCenterBody,#newsCatMgrBody) input[type="checkbox"],
:is(#modalBody,#taskCenterBody,#newsCatMgrBody) input[type="radio"]{accent-color:#c65336!important}
:is(#modalBody,#taskCenterBody,#newsCatMgrBody) input[type="file"]{padding:10px 12px!important}
:is(#modalBody,#taskCenterBody,#newsCatMgrBody) input[type="file"]::file-selector-button{
  margin-right:10px;padding:6px 11px;border:1px solid #e2cdbd;border-radius:8px;
  background:#fff2e8;color:#9a4b32;font:inherit;font-weight:700;cursor:pointer;
}
#modalBody label:not(.geo-plat-label):not(.check),#taskCenterBody label,#newsCatMgrBody label{color:#7b6452!important}

/* ---------- 按钮 ---------- */
:is(#modalBody,#taskCenterBody,#newsCatMgrBody,#modalFooter,#taskCenterFooter) .btn-pri,
:is(#modalBody,#taskCenterBody,#modalFooter,#taskCenterFooter) .btn.primary,
#newsCatOverlay .modal-footer .btn-pri{
  background:linear-gradient(135deg,#cf6042,#a93822)!important;
  border-color:#a93822!important;color:#fff!important;
  box-shadow:0 8px 20px -10px rgba(169,56,34,.48)!important;
}
:is(#modalBody,#taskCenterBody,#newsCatMgrBody,#modalFooter,#taskCenterFooter) .btn-pri:hover,
:is(#modalBody,#taskCenterBody,#modalFooter,#taskCenterFooter) .btn.primary:hover{
  background:linear-gradient(135deg,#bd5033,#8f2c1a)!important;
  transform:translateY(-1px);
}
:is(#modalBody,#taskCenterBody,#newsCatMgrBody,#modalFooter,#taskCenterFooter) .btn-out,
:is(#modalBody,#taskCenterBody,#modalFooter,#taskCenterFooter) .btn.ghost,
#newsCatOverlay .modal-footer .btn-out{
  background:#fffaf5!important;border-color:#e1cdbd!important;color:#805c46!important;
  box-shadow:0 1px 0 rgba(255,255,255,.8) inset;
}
:is(#modalBody,#taskCenterBody,#newsCatMgrBody) .btn-out:hover,
:is(#modalBody,#taskCenterBody) .btn.ghost:hover{background:#fff1e8!important;border-color:#d8b6a0!important;color:#a93822!important}
:is(#modalBody,#taskCenterBody) .btn-sm{border-radius:9px}
:is(#modalBody,#taskCenterBody) :is(.btn-pri,.btn-out,.btn.btn,.btn.ghost):disabled{opacity:.48!important;cursor:not-allowed!important;transform:none!important}

/* ---------- 通用卡片 / 表格 / 胶囊 ---------- */
#modalBody .card,#taskCenterBody .card{
  background:#fffdfb!important;border-color:#eddfd2!important;border-radius:16px!important;
  box-shadow:0 12px 30px -28px rgba(70,45,28,.42);
}
#modalBody table,#taskCenterBody table,#newsCatMgrBody table{width:100%;border-collapse:separate;border-spacing:0}
#modalBody th,#taskCenterBody th,#newsCatMgrBody th{background:#fff3ea!important;color:#765b48!important;border-bottom:1px solid #ecdccc!important}
#modalBody td,#taskCenterBody td,#newsCatMgrBody td{border-bottom:1px solid #f2e7dc!important;color:#4f4137!important}
#modalBody tbody tr:hover,#taskCenterBody tbody tr:hover,#newsCatMgrBody tbody tr:hover{background:#fff8f2!important}
#modalBody .pill,#modalBody .badge,#taskCenterBody .pill,#taskCenterBody .badge{
  border-radius:999px;background:#fff2e9;border-color:#ecd3c3;color:#8d4d38;
}

/* ---------- 旧「添加账号」表单 ---------- */
#modalBody .ba-sec{
  border:1px solid #ead9ca!important;border-radius:18px!important;
  background:linear-gradient(180deg,#fffdfb 0%,#fff8f1 100%)!important;
  padding:18px!important;
  box-shadow:0 14px 34px -30px rgba(70,45,28,.45);
}
#modalBody .ba-sec::before{background:linear-gradient(90deg,#c65336,#df9b7f 46%,rgba(198,83,54,0))!important;height:3px!important}
#modalBody .ba-sec-h{color:#6f5745!important;font-size:12px!important;font-weight:800!important}
#modalBody .ba-sec-h .ic{color:#b14a30!important}
#modalBody .ba-sec-h em{color:#a18470!important}
#modalBody .ba-lb{color:#7b604d!important}
#modalBody .ba-lb .ic{color:#a08a78!important}
#modalBody .ba-in{border-color:#e4d4c5!important;background:#fffaf5!important;color:#2c221c!important}
#modalBody .ba-in:focus{border-color:#c65336!important;box-shadow:0 0 0 3px rgba(198,83,54,.12)!important}
#modalBody .ba-wrap .lead{color:#aa927f!important}
#modalBody .ba-wrap:focus-within .lead{color:#b14a30!important}
#modalBody .ba-tip{background:#fff5e8!important;border-color:#efd9bd!important;color:#8a6027!important}
#modalBody .ba-tip .ic{color:#a9762f!important}
#modalBody .ba-cta{background:linear-gradient(135deg,#cf6042,#a93822)!important;box-shadow:0 8px 20px -10px rgba(169,56,34,.5)!important}
#modalBody .ba-cta:hover{transform:translateY(-1px)}
#modalBody .ba-cancel{border-color:#e4d4c5!important;background:#fffaf5!important;color:#7b6452!important}
#modalBody .ba-cancel:hover{border-color:#d7bfae!important;box-shadow:0 8px 18px -16px rgba(70,45,28,.4)!important}

/* ---------- 旧「新闻素材分类管理」 ---------- */
#newsCatMgrBody .ncm-new{
  background:#fff8f1!important;border:1px dashed #ddc4b2!important;border-radius:14px!important;padding:12px!important;
}
#newsCatMgrBody .ncm-new input[type="text"],#newsCatMgrBody .ncm-color{border-color:#e1cdbd!important;background:#fffaf5!important;border-radius:9px!important}
#newsCatMgrBody .ncm-row{
  background:#fffdfb!important;border:1px solid #efe1d4!important;border-radius:13px!important;
  padding:11px 12px!important;box-shadow:0 8px 20px -22px rgba(70,45,28,.4);
}
#newsCatMgrBody .ncm-row:hover{background:#fff9f3!important;border-color:#e4cbbb!important}
#newsCatMgrBody .ncm-name{color:#3d3027!important;font-weight:700!important}
#newsCatMgrBody .ncm-cnt,#newsCatMgrBody .ncm-empty{color:#9a8471!important}

/* ---------- 旧「转录任务明细」 ---------- */
#modalBody :is(.txd-chip,.txd-pill){background:#fff2e9!important;color:#7c5a45!important;border:1px solid #efd9ca!important}
#modalBody :is(.txd-chip,.txd-pill).is-run{background:#fbe9e2!important;color:#a93822!important;border-color:#efcbbb!important}
#modalBody :is(.txd-chip,.txd-pill).is-ok{background:#edf6f2!important;color:#2f7168!important;border-color:#cde3dc!important}
#modalBody :is(.txd-chip,.txd-pill).is-err{background:#fff0ed!important;color:#b42318!important;border-color:#f5c9c1!important}
#modalBody .txd-item{background:#fffdfb!important;border-color:#eee0d3!important;border-left-color:#dcc8b8!important;border-radius:13px!important}
#modalBody .txd-item.is-run{background:linear-gradient(90deg,#fff4ee,#fffdfb)!important;border-left-color:#c65336!important}
#modalBody .txd-item.is-ok{background:linear-gradient(90deg,#f1f8f5,#fffdfb)!important;border-left-color:#2f7168!important}
#modalBody .txd-item.is-err{background:linear-gradient(90deg,#fff5f2,#fffdfb)!important;border-left-color:#b42318!important}
#modalBody .txd-ic{background:#fff2e9!important;color:#9a7a64!important}
#modalBody .txd-item.is-ok .txd-ic{background:#edf6f2!important;color:#2f7168!important}
#modalBody .txd-item.is-err .txd-ic{background:#fff0ed!important;color:#b42318!important}
#modalBody .txd-ring{border-color:rgba(198,83,54,.22)!important;border-top-color:#c65336!important}
#modalBody .txd-title{color:#3d3027!important}
#modalBody .txd-sub{color:#9a8471!important}
#modalBody .txd-empty{color:#9a8471!important}
#modalBody .txd-empty .ic{color:#c8ae9a!important}
#modalBody .txd-empty-t{color:#6b5646!important}

/* ---------- GEO 平台选择 ---------- */
#modalBody .geo-plat-label{
  border:1px solid #e6d4c5!important;
  border-radius:13px!important;
  background:#fffaf5!important;
  box-shadow:0 6px 16px -18px rgba(70,45,28,.35);
}
#modalBody .geo-plat-label:hover{border-color:#d89c81!important;background:#fff4ec!important}
#modalBody .geo-plat-label:has(input:checked){
  border-color:#c65336!important;background:#fff1e8!important;
  box-shadow:0 0 0 3px rgba(198,83,54,.1)!important;
}
#modalBody .geo-plat-label input[type="checkbox"]{width:16px!important;height:16px!important}

/* ---------- 声音 / 素材 / 通用输入 ---------- */
#modalBody .voice-card{background:#fffdfb!important;border:1px solid #eddfd2!important;border-radius:14px!important;box-shadow:0 8px 20px -22px rgba(70,45,28,.35)!important}
#modalBody .voice-card:hover{border-color:#dfc6b5!important;box-shadow:0 10px 24px -20px rgba(70,45,28,.4)!important}
#modalBody .ipt{border:1px solid #e4d4c5!important;border-radius:10px!important;background:#fffaf5!important;color:#2c221c!important}
#modalBody .ipt:focus{border-color:#c65336!important;box-shadow:0 0 0 3px rgba(198,83,54,.12)!important}
#modalBody .rw-grad-btn{background:linear-gradient(120deg,#cf6042,#a93822)!important;box-shadow:0 8px 20px -10px rgba(169,56,34,.5)!important}
#modalBody .rw-modal-ta:focus{border-color:#c65336!important;box-shadow:0 0 0 3px rgba(198,83,54,.13)!important}

/* ---------- 旧 inline 色值兜底（只收旧蓝灰/冷灰，不动语义色） ---------- */
#modalBody [style*="background:#f5f5f7"],#modalBody [style*="background: #f5f5f7"],
#modalBody [style*="background:#f8fafc"],#modalBody [style*="background: #f8fafc"],
#modalBody [style*="background:#F8FAFC"],#modalBody [style*="background:#f9fafb"],
#modalBody [style*="background:#f3f4f6"],#modalBody [style*="background:#f1f5f9"],
#modalBody [style*="background:#F5F7FC"],#modalBody [style*="background:#FBFCFE"],
#modalBody [style*="background:#eef2f7"],#modalBody [style*="background:#EEF2F7"],
#modalBody [style*="background:#f0f0f5"],#modalBody [style*="background:#fafafa"],
#modalBody [style*="background:#fafbfc"],#modalBody [style*="background:#f0f7ff"],
#modalBody [style*="background:#f8faff"],#modalBody [style*="background:#f8f7ff"],
#taskCenterBody [style*="background:#f9fafb"],#taskCenterBody [style*="background:#eef2f7"],
#taskCenterBody [style*="background:#f8fafc"],
#modalBody [style*="background:#fff;"],#modalBody [style*="background: #fff;"],
#modalBody [style*="background:#ffffff;"],#modalBody [style$="background:#fff"],
#modalBody [style$="background: #fff"],
#taskCenterBody [style*="background:#fff;"],#taskCenterBody [style*="background: #fff;"],
#taskCenterBody [style$="background:#fff"],#taskCenterBody [style$="background: #fff"]{
  background:linear-gradient(180deg,#fffdfb,#fff8f1)!important;
  border-color:#eddfd2!important;
  border-radius:14px!important;
}
#modalBody [style*="background:#eff6ff"],#modalBody [style*="background:#eef2ff"],
#modalBody [style*="background:#e0e7ff"],#taskCenterBody [style*="background:#eff6ff"],
#taskCenterBody [style*="background:#eef2ff"],#taskCenterBody [style*="background:#e0e7ff"]{
  background:#fff2ea!important;border-color:#efd3c3!important;border-radius:12px!important;
}
#modalBody [style*="background:#2563eb"],#modalBody [style*="background:#1d4ed8"],
#modalBody [style*="background:#4A9EFF"],#modalBody [style*="background:#4F46E5"],
#modalBody [style*="background:#6366F1"],#taskCenterBody [style*="background:#2563eb"],
#taskCenterBody [style*="background:#1d4ed8"]{
  background:#c65336!important;border-color:#c65336!important;
}
#modalBody [style*="background:#f0fdf4"],#modalBody [style*="background:#ecfdf5"],
#taskCenterBody [style*="background:#f0fdf4"],#taskCenterBody [style*="background:#ecfdf5"]{
  background:#edf6f2!important;border-color:#cde3dc!important;border-radius:12px!important;
}
#modalBody [style*="background:#fff1f2"],#taskCenterBody [style*="background:#fff1f2"]{
  background:#fff0ed!important;border-color:#f3cbc4!important;border-radius:12px!important;
}
#modalBody [style*="background:#e5e7eb"],#modalBody [style*="background:#e2e8f0"],
#taskCenterBody [style*="background:#e5e7eb"]{background:#eadbcc!important}

#modalBody [style*="color:#1d1d1f"],#taskCenterBody [style*="color:#1d1d1f"],
#modalBody [style*="color:#111827"],#modalBody [style*="color:#0f172a"]{color:#2c221c!important}
#modalBody [style*="color:#475569"],#modalBody [style*="color:#374151"],
#modalBody [style*="color:#3f3f46"],#taskCenterBody [style*="color:#475569"],
#taskCenterBody [style*="color:#3f3f46"]{color:#5f5045!important}
#modalBody [style*="color:#64748b"],#modalBody [style*="color:#6b7280"],
#modalBody [style*="color:#94a3b8"],#modalBody [style*="color:#a1a1aa"],
#modalBody [style*="color:#a8a29e"],#taskCenterBody [style*="color:#64748b"],
#taskCenterBody [style*="color:#6b7280"],#taskCenterBody [style*="color:#a8a29e"],
#newsCatMgrBody [style*="color:#64748b"],#newsCatMgrBody [style*="color:#6b7280"],
#newsCatMgrBody [style*="color:#94a3b8"],#newsCatMgrBody [style*="color:#a1a1aa"],
#newsCatMgrBody [style*="color:#86868b"]{color:#8f8175!important}
#modalBody [style*="color:#8f8881"],#modalBody [style*="color:#71717a"],
#modalBody [style*="color:#9ca3af"],#modalBody [style*="color:#667085"],
#taskCenterBody [style*="color:#8f8881"],#taskCenterBody [style*="color:#71717a"],
#taskCenterBody [style*="color:#9ca3af"],#taskCenterBody [style*="color:#667085"]{color:#8f8175!important}
#modalBody [style*="color:#101828"],#modalBody [style*="color:#344054"],
#modalBody [style*="color:#3d4653"],#taskCenterBody [style*="color:#101828"],
#taskCenterBody [style*="color:#344054"],#taskCenterBody [style*="color:#3d4653"]{color:#2c221c!important}
#modalBody [style*="color:#2563eb"],#modalBody [style*="color:#1d4ed8"],
#modalBody [style*="color:#4A9EFF"],#modalBody [style*="color:#3b82f6"],
#modalBody [style*="color:#2932e1"],
#taskCenterBody [style*="color:#2563eb"],#taskCenterBody [style*="color:#1d4ed8"],
#taskCenterBody [style*="color:#3b82f6"]{color:#a93822!important}
/* 旧蓝色进度 / 渐变块 */
#modalBody [style*="linear-gradient(90deg,#2563eb"],
#modalBody [style*="linear-gradient(90deg,#4F46E5"],
#taskCenterBody [style*="linear-gradient(90deg,#2563eb"],
#taskCenterBody [style*="linear-gradient(90deg,#4F46E5"]{
  background:linear-gradient(90deg,#c65336,#df9b7f)!important;
}
#modalBody [style*="linear-gradient(135deg,#4A9EFF"],
#modalBody [style*="linear-gradient(135deg,#4F46E5"],
#modalBody [style*="linear-gradient(135deg,#2563eb"]{
  background:linear-gradient(135deg,#c65336,#e0a07e)!important;
}
#modalBody [style*="background:#3b82f6"],#modalBody [style*="background:#3B82F6"],
#taskCenterBody [style*="background:#3b82f6"],#taskCenterBody [style*="background:#3B82F6"]{
  background:#c65336!important;
}
#modalBody [style*="var(--c-text-3"],#modalBody [style*="var(--t2)"],
#taskCenterBody [style*="var(--t2)"]{color:#8f8175!important}
#modalBody [style*="var(--c-text-2"],#taskCenterBody [style*="var(--c-text-2"]{color:#5f5045!important}
#modalBody [style*="var(--c-brand-ink"],#modalBody [style*="var(--c-brand"],#taskCenterBody [style*="var(--c-brand"]{color:#a93822!important}

/* 旧冷灰边框 / 分割线 */
#modalBody [style*="border:1px solid #e5e7eb"],#modalBody [style*="border:1px solid #e2e8f0"],
#modalBody [style*="border:1px solid #d5dce8"],#modalBody [style*="border:1px solid #E6EAF3"],
#modalBody [style*="border:1px solid #d2d2d7"],#modalBody [style*="border:1px solid rgba(0,0,0,.06)"],
#taskCenterBody [style*="border:1px solid #e5e7eb"],#taskCenterBody [style*="border:1px solid #eef2f7"],
#taskCenterBody [style*="border:1px solid rgba(0,0,0,.06)"]{border-color:#eadbcc!important}
#modalBody [style*="border:1px dashed #cbd5e1"],#modalBody [style*="border:1px dashed #d2d2d7"],
#modalBody [style*="border:1px dashed rgba(0,0,0,.1)"],#taskCenterBody [style*="border:1px dashed"]{border-color:#ddc4b2!important}
#modalBody [style*="background:#e5e7eb"][style*="height:1px"],
#modalBody [style*="background:#e5e7eb"][style*="width:1px"]{background:#eadbcc!important}


/* ---------- 预览弹层 / 轻提示 / 全局加载条：暖色收口 ---------- */
:is(#vvPreviewOverlay,#dhPreviewOverlay).vv-preview-overlay{
  background:
    radial-gradient(circle at 50% 12%,rgba(226,188,150,.24),transparent 42%),
    rgba(39,27,20,.78)!important;
  backdrop-filter:blur(10px) saturate(.94)!important;
  -webkit-backdrop-filter:blur(10px) saturate(.94)!important;
}
:is(#vvPreviewOverlay,#dhPreviewOverlay) :is(.vv-preview-card,.vv-preview-box){
  background:linear-gradient(180deg,#fffdfb,#fff7ef)!important;
  border:1px solid #eadbcc!important;
  border-radius:18px!important;
  box-shadow:0 32px 84px -32px rgba(39,25,16,.72),0 2px 10px rgba(39,25,16,.12)!important;
  color:#2c221c!important;
}
:is(#vvPreviewOverlay,#dhPreviewOverlay) :is(.vv-preview-hd,.vv-preview-header){
  background:linear-gradient(180deg,#fffaf5,#fdf2ec)!important;
  border-bottom:1px solid #efe3d5!important;
  color:#2c221c!important;
}
:is(#vvPreviewOverlay,#dhPreviewOverlay) :is(.vv-preview-title,#dhPreviewTitle){
  color:#2c221c!important;font-weight:700!important;
}
:is(#vvPreviewOverlay,#dhPreviewOverlay) .vv-preview-close{
  background:#f7f0e7!important;color:#7a5f4e!important;
  border:1px solid #efe3d5!important;border-radius:10px!important;
}
:is(#vvPreviewOverlay,#dhPreviewOverlay) .vv-preview-close:hover{background:#c65336!important;color:#fff!important}
:is(#vvPreviewOverlay,#dhPreviewOverlay) .vv-preview-body{
  background:radial-gradient(circle at 50% 35%,#3b2a21,#201712 72%)!important;
}
:is(#vvPreviewOverlay,#dhPreviewOverlay) :is(.vv-preview-actions,.vv-preview-ft){
  background:#fffaf5!important;border-top:1px solid #efe3d5!important;
}
:is(#vvPreviewOverlay,#dhPreviewOverlay) video{background:#17100c!important}

.toast-mask{
  background:rgba(39,27,20,.34)!important;
  backdrop-filter:blur(3px)!important;-webkit-backdrop-filter:blur(3px)!important;
}
.toast{
  background:linear-gradient(180deg,#fffdfb,#fff8f1)!important;
  color:#2c221c!important;border:1px solid #eadbcc!important;
  box-shadow:0 30px 70px -24px rgba(45,29,18,.52),0 2px 8px rgba(45,29,18,.08)!important;
}
.toast.is-info .toast-msg>.ic{color:#a93822!important;background:#fbe9e2!important}
.toast.is-warn .toast-msg>.ic{color:#a9762f!important;background:#fff5e5!important}
.toast.is-err .toast-msg>.ic{color:#b42318!important;background:#fff0ed!important}
.toast.is-ok .toast-msg>.ic{color:#2f7168!important;background:#edf6f2!important}

/* 导入文案：英文翻译中的常驻状态条 */
.ci-import-status{
  display:none;align-items:flex-start;gap:10px;margin:0 0 12px;
  padding:11px 13px;border:1px solid #ecd8c9;border-radius:12px;
  background:linear-gradient(135deg,#fff9f4,#fdf0e6);
  color:#5f5045;font-size:12px;line-height:1.55;text-align:left;
}
.ci-import-status.show{display:flex}
.ci-import-status .spinner{margin:1px 0 0;width:18px;height:18px;--sw:2.5px}
.ci-import-status .spinner::before{background:conic-gradient(from 0deg,rgba(198,83,54,0),rgba(198,83,54,.12) 30%,rgba(198,83,54,.55) 70%,#c65336 100%)!important}
.ci-import-status .spinner::after{background:radial-gradient(circle,#c65336 0%,rgba(198,83,54,.35) 55%,rgba(198,83,54,0) 72%)!important}
.ci-import-status-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.ci-import-status b{color:#7f2f1b;font-size:12.5px;font-weight:700}
.ci-import-status em{font-style:normal;color:#8f8175;font-size:11.5px}
.ci-import-status.is-error{border-color:#ecc6bb;background:linear-gradient(135deg,#fff7f4,#fdece7)}
.ci-import-status.is-error b{color:#a93822}
.ci-import-status-ic{flex:0 0 18px;width:18px;height:18px;margin-top:1px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#fff0ed;color:#b42318;font-size:12px;font-weight:800;line-height:1}
.btn.ci-import-busy{opacity:.78;cursor:wait}
.btn.ci-import-busy .spinner{width:13px;height:13px;--sw:2px;margin:0 5px 0 0;vertical-align:-2px}
.btn.ci-import-busy .spinner::before{background:conic-gradient(from 0deg,rgba(255,255,255,0),rgba(255,255,255,.25) 40%,#fff 100%)!important}
.btn.ci-import-busy .spinner::after{display:none!important}

#apiBar{background:linear-gradient(90deg,#c65336,#e8a87c)!important}
.loading-overlay{background:radial-gradient(circle at 50% 22%,#fffdfb,#f7eee6 55%,#f1e3d8)!important}
.loading-particle{background:rgba(198,83,54,.45)!important}
.loading-dots span{background:#c65336!important}
.loading-text{color:#3a2a21!important}
.loading-subtext{color:#8f8175!important}

/* ---------- 响应式 ---------- */
@media(max-width:720px){
  :is(#modalOverlay,#taskCenterOverlay,#newsCatOverlay) .modal{width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;border-radius:20px!important}
  :is(#modalOverlay,#taskCenterOverlay,#newsCatOverlay) .modal-header{padding:15px 16px!important}
  #modalBody,#taskCenterBody,#newsCatMgrBody{padding:16px!important}
  #modalFooter:not(:empty),#taskCenterFooter:not(:empty),#newsCatOverlay .modal-footer{padding:12px 16px 15px!important}
  #modalBody .form-grid.two,#modalBody .form-grid,#modalBody .ks-grid-2{grid-template-columns:1fr!important}
}
