/* 拾景工作台 · B 主题「仪器台」
 * 只用一层覆盖：不改业务节点、表单 name、存储键、manifest。
 * 挂载方式：<body class="... sj-theme-b">，配合 shijing_ui.js 写入的 data-sj-page。
 * 生效范围：控制台（data-sj-page="console"）+ 设置页/内嵌设置（.shijing-options）。
 * 任务页、图片页暂不套用，避免半深半浅。
 */

/* ========== 1. 令牌：整个弹窗（控制台 / 任务 / 图片） ========== */
body.sj-theme-b.shijing-popup {
  --sj-canvas: #0E0F11;
  --sj-surface: #141619;
  --sj-surface-soft: #1B1E22;
  --sj-surface-2: #1B1E22;
  --sj-bg: #0E0F11;
  --sj-ink: #ECEDEE;
  --sj-ink-2: #B6BCC2;
  --sj-ink-3: #7E858C;
  --sj-muted: #8A9097;
  --sj-primary: #E2A44A;
  --sj-primary-hover: #EFB662;
  --sj-primary-soft: rgba(226, 164, 74, .13);
  --sj-accent: #4FAE8B;
  --sj-accent-soft: rgba(79, 174, 139, .12);
  --sj-line: rgba(255, 255, 255, .085);
  --sj-line-soft: rgba(255, 255, 255, .055);
  --sj-danger: #E0786E;
  --sj-danger-soft: rgba(224, 120, 110, .12);
  --sj-warn: #D9A15B;
  --sj-warn-soft: rgba(217, 161, 91, .12);
  --sj-shadow: 0 18px 44px rgba(0, 0, 0, .5);
  --sj-r-sm: 6px;
  --sj-r-md: 10px;
  --sj-r-lg: 12px;
  --inset: #191C20;
  color-scheme: dark;
  background: #0E0F11;
}

/* ========== 2. 外壳与顶栏 ========== */
body.sj-theme-b.shijing-popup {
  background: #0E0F11;
  color-scheme: dark;
}
body.sj-theme-b.shijing-popup .sj-popup-shell.glass-panel { background: #0E0F11; }
body.sj-theme-b.shijing-popup .sj-app-nav {
  background: #0E0F11;
  border-right-color: rgba(255, 255, 255, .075);
  color: #B6BCC2;
}
body.sj-theme-b.shijing-popup .sj-brand-mark,
body.sj-theme-b.shijing-popup .sj-brand-mark span { color: #E2A44A; background-color: #E2A44A; }
body.sj-theme-b.shijing-popup .sj-brand-name { color: #F2F3F4; }
body.sj-theme-b.shijing-popup .sj-nav-button { color: #9BA1A8; }
body.sj-theme-b.shijing-popup .sj-nav-button:hover { color: #F2F3F4; background: #191C20; }
body.sj-theme-b.shijing-popup .sj-nav-button.is-active,
body.sj-theme-b.shijing-popup .sj-nav-button[aria-current="page"] {
  color: #F4F5F6;
  background: #22262B;
  border-color: rgba(255, 255, 255, .09);
}
body.sj-theme-b.shijing-popup .sj-nav-button.is-active::before,
body.sj-theme-b.shijing-popup .sj-nav-button[aria-current="page"]::before { background: #E2A44A; }
body.sj-theme-b.shijing-popup .sj-popup-content { background: #0E0F11; }
body.sj-theme-b.shijing-popup .sj-workspace { background: transparent; }

/* ========== 3. 控制台三栏 ========== */
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-console-pane {
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 10px;
  background: #141619;
  box-shadow: none;
}
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-pane-head {
  border-bottom-color: rgba(255, 255, 255, .06);
}
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-pane-head h2 { color: #ECEDEE; }
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-pane-note { color: #8A9097; }
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-pane-count {
  border-color: rgba(255, 255, 255, .09);
  background: #1B1E22;
  color: #8A9097;
}

/* 功能按钮 */
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-feature-group .btn,
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-feature-group .btn-primary,
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-feature-group .btn-reset-ghost {
  border-color: rgba(255, 255, 255, .07);
  background: #17191C;
  color: #ECEDEE;
}
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-feature-group .btn:hover,
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-feature-group .btn-primary:hover,
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-feature-group .btn-reset-ghost:hover {
  border-color: rgba(255, 255, 255, .16);
  background: #1E2126;
}
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-feature-group [data-sj-feature].is-selected,
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-feature-group [data-sj-feature].is-sj-selected,
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-feature-group [data-sj-feature][aria-pressed="true"] {
  border-color: rgba(255, 255, 255, .1);
  background: #22262B;
  color: #F4F5F6;
  box-shadow: inset 2px 0 0 #E2A44A;
}
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-feature-group .soutui-custom-badge {
  border-color: rgba(255, 255, 255, .12);
  background: transparent;
  color: #B6BCC2;
}
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-feature-group h3 { color: #7E858C; }

/* 功能项不再显示小字说明，只留标题与「指定商品」角标 */
body.sj-theme-b.shijing-popup .sj-feature-group .btn-mode-hint { display: none; }

/* 二级导航默认收起，选中父功能后才出现 */
body.sj-theme-b.shijing-popup .sj-feature-group .sj-feature-subnav { display: none; }
body.sj-theme-b.shijing-popup .sj-feature-group .sj-main-action.is-selected + .sj-feature-subnav,
body.sj-theme-b.shijing-popup .sj-feature-group .sj-main-action.is-sj-selected + .sj-feature-subnav,
body.sj-theme-b.shijing-popup .sj-feature-group .sj-main-action[aria-pressed="true"] + .sj-feature-subnav {
  display: grid;
}

/* 二级导航 */
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-feature-subnav {
  border-left-color: rgba(255, 255, 255, .1);
}
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-feature-subnav button { color: #8A9097; }
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-feature-subnav button:hover {
  color: #F2F3F4;
  background: #1E2126;
}
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-feature-subnav button.is-active {
  color: #E9B96C;
  background: rgba(226, 164, 74, .12);
  font-weight: 700;
}

/* ========== 4. 参数区 ========== */
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-workbench-panel-head {
  border-bottom-color: rgba(255, 255, 255, .06);
}
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-workbench-run {
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid #E2A44A;
  border-radius: 7px;
  background: #E2A44A;
  color: #191307;
  font-weight: 600;
}
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-workbench-run:hover {
  border-color: #EFB662;
  background: #EFB662;
}
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-workbench-run:disabled {
  opacity: .45;
  background: #E2A44A;
}
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-workbench-empty { color: #8A9097; }

/* 商品范围 */
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-product-scope {
  gap: 10px;
  padding: 12px 14px;
  border-color: rgba(255, 255, 255, .07);
  border-radius: 8px;
  background: #17191C;
}
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-product-scope [hidden] { display: none !important; }
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-product-scope > strong { color: #C9CED3; letter-spacing: .02em; }
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-scope-sub {
  gap: 10px;
  margin-left: 6px;
  padding-left: 12px;
  border-left-color: rgba(255, 255, 255, .1);
}
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-scope-row { gap: 6px 18px; }
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-scope-row label { color: #C9CED3; }
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-scope-row label:has(input:checked) { color: #E9B96C; }
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-scope-row input[type="radio"] { accent-color: #E2A44A; }
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-scope-ids textarea,
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-scope-date input,
body.sj-theme-b.shijing-popup[data-sj-page="console"] #sjWorkbenchParams textarea {
  border-color: rgba(255, 255, 255, .1);
  background: #191C20 !important;
  color: #ECEDEE;
}
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-scope-ids textarea { min-height: 62px; }
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-scope-date {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: #8A9097;
}
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-scope-date input {
  width: 100%;
  max-width: none;
  min-width: 0;
}
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-workbench-field-grid select,
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-workbench-field-grid input,
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-workbench-field-grid textarea {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  background: #191C20;
  color: #ECEDEE;
  min-height: 32px;
  padding: 5px 8px;
  font: inherit;
  font-size: 12px;
}
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-workbench-field-label { color: #8A9097; }
/* #sjWorkbenchParams 的旧规则带 ID，需同级覆盖 */
body.sj-theme-b.shijing-popup[data-sj-page="console"] #sjWorkbenchParams input,
body.sj-theme-b.shijing-popup[data-sj-page="console"] #sjWorkbenchParams select,
body.sj-theme-b.shijing-popup[data-sj-page="console"] #sjWorkbenchParams textarea {
  border-color: rgba(255, 255, 255, .1);
  background: #191C20 !important;
  color: #ECEDEE;
}
body.sj-theme-b.shijing-popup[data-sj-page="console"] #sjWorkbenchParams input::placeholder,
body.sj-theme-b.shijing-popup[data-sj-page="console"] #sjWorkbenchParams textarea::placeholder { color: #6E747B; }
body.sj-theme-b.shijing-popup[data-sj-page="console"] #sjWorkbenchParams .sj-segmented {
  border-color: rgba(255, 255, 255, .1);
  background: #191C20;
}
body.sj-theme-b.shijing-popup[data-sj-page="console"] #sjWorkbenchParams .sj-segmented button.is-active,
body.sj-theme-b.shijing-popup[data-sj-page="console"] #sjWorkbenchParams .sj-segmented button[aria-pressed="true"] {
  color: #191307;
  background: #E2A44A;
}
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-scope-count { color: #8A9097; }

/* 设置 iframe 外框 */
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-feature-settings {
  border-top-color: rgba(255, 255, 255, .06);
}
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-feature-settings-frame { background: #0E0F11; }
body.sj-theme-b.shijing-popup[data-sj-page="console"] .sj-feature-settings-status { color: #8A9097; }

/* ========== 5. 设置页（独立页与内嵌共用） ========== */
body.sj-theme-b.shijing-options {
  --sj-canvas: #0E0F11;
  --sj-surface: #141619;
  --sj-surface-soft: #1B1E22;
  --sj-surface-2: #1B1E22;
  --sj-ink: #ECEDEE;
  --sj-ink-2: #B6BCC2;
  --sj-ink-3: #7E858C;
  --sj-muted: #8A9097;
  --sj-primary: #E2A44A;
  --sj-primary-hover: #EFB662;
  --sj-primary-soft: rgba(226, 164, 74, .13);
  --sj-accent: #4FAE8B;
  --sj-accent-soft: rgba(79, 174, 139, .12);
  --sj-line: rgba(255, 255, 255, .085);
  --sj-line-soft: rgba(255, 255, 255, .055);
  --sj-danger: #E0786E;
  --sj-danger-soft: rgba(224, 120, 110, .12);
  --sj-warn: #D9A15B;
  --sj-warn-soft: rgba(217, 161, 91, .12);
  --sj-r-sm: 6px;
  --sj-r-md: 10px;
  --sj-r-lg: 12px;
  --blue-ink: #E9B96C;
  --gold-ink: #191307;
  color-scheme: dark;
  background: #0E0F11;
}

body.sj-theme-b.shijing-options .settings-nav {
  border-color: rgba(255, 255, 255, .08);
  background: #141619;
  box-shadow: none;
}
body.sj-theme-b.shijing-options .settings-nav .nav-item {
  color: #B6BCC2;
  background: transparent;
}
body.sj-theme-b.shijing-options .settings-nav .nav-item .ico { stroke: #8A9097; }
body.sj-theme-b.shijing-options .settings-nav .nav-item:hover {
  color: #F2F3F4;
  background: #1E2126;
}
body.sj-theme-b.shijing-options .settings-nav .nav-item.active {
  color: #E9B96C;
  background: rgba(226, 164, 74, .12);
  box-shadow: inset 2px 0 0 #E2A44A;
}
body.sj-theme-b.shijing-options .settings-nav .nav-item.active .ico { stroke: #E2A44A; }
body.sj-theme-b.shijing-options .nav-group + .nav-group,
body.sj-theme-b.shijing-options .settings-nav-brand { border-color: rgba(255, 255, 255, .06); }
body.sj-theme-b.shijing-options .card {
  border-color: rgba(255, 255, 255, .075);
  border-radius: 12px;
  background: #141619;
  box-shadow: none;
}
body.sj-theme-b.shijing-options .card h2 { border-bottom-color: rgba(255, 255, 255, .06); }
body.sj-theme-b.shijing-options .sj-version-card {
  border-left-color: #E2A44A;
  background: linear-gradient(115deg, #17191C 0%, #141619 100%);
}
body.sj-theme-b.shijing-options .settings-panel + .settings-panel { border-top-color: rgba(255, 255, 255, .06); }
body.sj-theme-b.shijing-options .group { border-top-color: rgba(255, 255, 255, .06); }

/* 表单控件 */
body.sj-theme-b.shijing-options input[type="text"],
body.sj-theme-b.shijing-options input[type="email"],
body.sj-theme-b.shijing-options input[type="number"],
body.sj-theme-b.shijing-options input[type="time"],
body.sj-theme-b.shijing-options input[type="date"],
body.sj-theme-b.shijing-options textarea,
body.sj-theme-b.shijing-options select {
  border-color: rgba(255, 255, 255, .1);
  background: #191C20;
  color: #ECEDEE;
}
body.sj-theme-b.shijing-options input::placeholder,
body.sj-theme-b.shijing-options textarea::placeholder { color: #6E747B; }
body.sj-theme-b.shijing-options input:focus,
body.sj-theme-b.shijing-options textarea:focus,
body.sj-theme-b.shijing-options select:focus {
  border-color: #E2A44A;
  box-shadow: 0 0 0 3px rgba(226, 164, 74, .16);
}
body.sj-theme-b.shijing-options input[type="radio"],
body.sj-theme-b.shijing-options input[type="checkbox"] { accent-color: #E2A44A; }
body.sj-theme-b.shijing-options button.secondary {
  color: #ECEDEE;
  background: #1B1E22;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
body.sj-theme-b.shijing-options button.secondary:hover { background: #232730; }
/* 仅真正的主按钮改为深色字，避免把导航、标签页这类透明按钮一起写暗 */
body.sj-theme-b.shijing-options button.primary,
body.sj-theme-b.shijing-options .actions button:not(.secondary),
body.sj-theme-b.shijing-options button.btn-save {
  color: #191307;
}

/* 旧版浅色内嵌块：ai-group / pick-block / 任务顺序 / 日志列表 / 备份盒 */
body.sj-theme-b.shijing-options .big,
body.sj-theme-b.shijing-options .ai-group,
body.sj-theme-b.shijing-options .pick-block,
body.sj-theme-b.shijing-options .task-order,
body.sj-theme-b.shijing-options .log-list,
body.sj-theme-b.shijing-options .backup-box {
  border-color: rgba(255, 255, 255, .07) !important;
  background: #17191C !important;
}
body.sj-theme-b.shijing-options .panel-card {
  border-color: rgba(255, 255, 255, .075);
  background: #141619;
  box-shadow: none;
}
body.sj-theme-b.shijing-options .actions {
  border-top-color: rgba(255, 255, 255, .07);
  background: rgba(14, 15, 17, .94);
  box-shadow: none;
}
body.sj-theme-b.shijing-options .actions button:not(.secondary) { color: #191307; }
body.sj-theme-b.shijing-options .count-sentence .chip,
body.sj-theme-b.shijing-options select.chip {
  border-color: rgba(226, 164, 74, .38);
}
body.sj-theme-b.shijing-options .pill,
body.sj-theme-b.shijing-options .pill-red {
  border-color: rgba(226, 164, 74, .38);
}

/* ========== 6. 内嵌设置（iframe 内） ========== */
html.sj-embed body.sj-theme-b { background: #0E0F11 !important; color: #ECEDEE; }
html.sj-embed body.sj-theme-b .settings-panel .card {
  border: 0 !important;
  background: transparent !important;
}
html.sj-embed body.sj-theme-b section.settings-panel.sj-embed-shown + section.settings-panel.sj-embed-shown,
html.sj-embed body.sj-theme-b .settings-panel .card + .card,
html.sj-embed body.sj-theme-b .settings-panel .ai-group {
  border-top-color: rgba(255, 255, 255, .07) !important;
}
html.sj-embed body.sj-theme-b .settings-panel .card h2 { color: #C9CED3; }
html.sj-embed body.sj-theme-b .task-module-list,
html.sj-embed body.sj-theme-b .guanghe-published-list,
html.sj-embed body.sj-theme-b .gh-held-list {
  border-color: rgba(255, 255, 255, .08) !important;
  background: #191C20 !important;
}
html.sj-embed body.sj-theme-b .task-module-list li {
  border-color: rgba(255, 255, 255, .06) !important;
  background: #191C20 !important;
}
html.sj-embed body.sj-theme-b .task-module-list .module-tier {
  background: #22262B !important;
  color: #B6BCC2 !important;
}
html.sj-embed body.sj-theme-b .guanghe-published-row,
html.sj-embed body.sj-theme-b .gh-held-row { border-color: rgba(255, 255, 255, .07) !important; }

/* ========== 7. 任务页 ========== */
body.sj-theme-b.shijing-popup .sj-page-heading { border-bottom-color: rgba(255, 255, 255, .07); }
body.sj-theme-b.shijing-popup .status-panel,
body.sj-theme-b.shijing-popup .glass-inset {
  border-color: rgba(255, 255, 255, .08);
  background: #141619;
}
body.sj-theme-b.shijing-popup .btn-control-pause {
  border-color: rgba(217, 161, 91, .38);
  background: rgba(217, 161, 91, .12);
  color: #E4B878;
}
body.sj-theme-b.shijing-popup .btn-control-pause:hover { background: rgba(217, 161, 91, .2); }
body.sj-theme-b.shijing-popup .btn-control-stop {
  border-color: rgba(224, 120, 110, .38);
  background: rgba(224, 120, 110, .12);
  color: #E89084;
}
body.sj-theme-b.shijing-popup .btn-control-stop:hover { background: rgba(224, 120, 110, .2); }
body.sj-theme-b.shijing-popup .log-tabs { background: #191C20; }
body.sj-theme-b.shijing-popup .log-tab { color: #8A9097; }
body.sj-theme-b.shijing-popup .log-tab.active {
  color: #E9B96C;
  background: #22262B;
  box-shadow: none;
}
body.sj-theme-b.shijing-popup .log-wrap {
  /* log_view.css 用 :is(.log-wrap, #__sucai_fill_panel) 定义，:is() 取到 ID 优先级，这里必须 !important */
  --lv-bg: #0E0F11 !important;
  --lv-head: #17191C !important;
  --lv-text: #ECEDEE !important;
  --lv-muted: #8A9097 !important;
  --lv-line: rgba(255, 255, 255, .07) !important;
  --lv-brand: #E2A44A !important;
  --lv-ok: #4FAE8B !important;
  --lv-ok-bg: rgba(79, 174, 139, .12) !important;
  --lv-error: #E0786E !important;
  --lv-error-bg: #2A1A1B !important;
  --lv-warn: #D9A15B !important;
  --lv-warn-bg: #2A2318 !important;
  border-color: rgba(255, 255, 255, .08);
  background: #141619;
}
body.sj-theme-b.shijing-popup .log-wrap .lv-head {
  border-bottom-color: rgba(255, 255, 255, .07);
  background: #17191C;
}
body.sj-theme-b.shijing-popup .log-wrap #logArea.log-area,
body.sj-theme-b.shijing-popup .log-wrap .progress-panel,
body.sj-theme-b.shijing-popup .log-wrap .failed-id-panel {
  background: #0E0F11;
}
body.sj-theme-b.shijing-popup #sjTaskZone .log-wrap .lv-error { background: #2A1A1B; box-shadow: inset 3px 0 0 #E0786E; }
body.sj-theme-b.shijing-popup #sjTaskZone .log-wrap .lv-warn { background: #2A2318; box-shadow: inset 3px 0 0 #D9A15B; }
body.sj-theme-b.shijing-popup .log-wrap .log-area { scrollbar-color: rgba(255, 255, 255, .2) #141619; }
body.sj-theme-b.shijing-popup .log-wrap .log-area::-webkit-scrollbar-track { background: #141619; }
body.sj-theme-b.shijing-popup .log-wrap .log-area::-webkit-scrollbar-thumb {
  border-color: #141619;
  background: rgba(255, 255, 255, .18);
}
body.sj-theme-b.shijing-popup .log-copy-btn,
body.sj-theme-b.shijing-popup .log-export-btn {
  border-color: rgba(255, 255, 255, .1);
  background: #1B1E22;
  color: #B6BCC2;
}
body.sj-theme-b.shijing-popup .log-copy-btn:hover,
body.sj-theme-b.shijing-popup .log-export-btn:hover {
  border-color: rgba(226, 164, 74, .45);
  background: #22262B;
  color: #E9B96C;
}
body.sj-theme-b.shijing-popup .failed-id-drop {
  border-color: rgba(255, 255, 255, .1);
  background: #191C20;
  color: #B6BCC2;
}
body.sj-theme-b.shijing-popup .history-row[data-result="fail"] { background: #241A1B; }
body.sj-theme-b.shijing-popup .history-row[data-result="unknown"]::before {
  background: #2A2318;
  color: #E4B878;
}
body.sj-theme-b.shijing-popup .failed-id-panel .failed-id-head,
body.sj-theme-b.shijing-popup .failed-id-panel .failed-id-note { color: #8A9097; }

/* ========== 8. 图片页 ========== */
body.sj-theme-b.shijing-popup .sj-media-grid > .sj-media-product { background: #141619; }
body.sj-theme-b.shijing-popup .sj-media-product img,
body.sj-theme-b.shijing-popup .sj-media-grid img { background: #1B1E22; }
body.sj-theme-b.shijing-popup .sj-media-product > .sj-media-ref { border-color: rgba(255, 255, 255, .22); }
body.sj-theme-b.shijing-popup .sj-media-clear {
  border-color: rgba(255, 255, 255, .1);
  background: #1B1E22;
  color: #ECEDEE;
}
body.sj-theme-b.shijing-popup .sj-media-clear:hover:not(:disabled) {
  border-color: rgba(226, 164, 74, .45);
  background: #22262B;
  color: #E9B96C;
}
body.sj-theme-b.shijing-popup .sj-media-clear:disabled {
  background: #17191C;
  color: #6E747B;
}
body.sj-theme-b.shijing-popup .sj-media-scroll {
  scrollbar-color: rgba(255, 255, 255, .2) transparent;
}
body.sj-theme-b.shijing-popup .sj-media-scroll::-webkit-scrollbar-track { background: #141619; }
body.sj-theme-b.shijing-popup .sj-media-scroll::-webkit-scrollbar-thumb {
  border-color: #141619;
  background: rgba(255, 255, 255, .18);
}
body.sj-theme-b.shijing-popup .sj-media-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .3); }
body.sj-theme-b.shijing-popup .sj-media-product > .sj-media-card > span { color: #8A9097; }
body.sj-theme-b.shijing-popup .sj-media-ref.is-empty { background: #17191C; }
body.sj-theme-b.shijing-popup .sj-media-product .sj-media-ref .sj-media-ref-tag {
  color: #ECEDEE;
  background: rgba(255, 255, 255, .14);
}
body.sj-theme-b.shijing-popup .sj-media-product :is(.sj-media-ref, .sj-media-card):focus-visible { outline-color: #E2A44A; }

/* ========== 9. 细节 ========== */
body.sj-theme-b * { scrollbar-color: rgba(255, 255, 255, .16) transparent; }
body.sj-theme-b ::selection { background: rgba(226, 164, 74, .28); color: #fff; }
body.sj-theme-b button:focus-visible,
body.sj-theme-b input:focus-visible,
body.sj-theme-b textarea:focus-visible,
body.sj-theme-b select:focus-visible {
  outline: 2px solid #E2A44A;
  outline-offset: 2px;
}
