/* 深色主题收口：统一兜住历史遗留的浅色底、空图片位与低对比文字，避免出现“白框看不清内容”。 */

body[data-app-view] .history-chip-list button {
  border-color: rgba(151, 180, 216, 0.24);
  background: rgba(11, 21, 34, 0.9);
  color: var(--ink);
}

body[data-app-view] .history-chip-list button:hover {
  border-color: rgba(97, 247, 154, 0.45);
  background: rgba(97, 247, 154, 0.12);
  color: #eafff2;
}

body[data-app-view] .history-chip-list small {
  color: rgba(188, 205, 227, 0.62);
}

body[data-app-view] .hot-search-strip button {
  border-color: rgba(151, 180, 216, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

body[data-app-view] .account-credit {
  background: rgba(97, 247, 154, 0.14);
  color: #d9ffe8 !important;
}

body[data-app-view] .account-credit i {
  color: rgba(217, 255, 232, 0.55);
}

body[data-app-view] .account-credit .is-warning {
  color: #ffc48a !important;
}

body[data-app-view] .nav-button:hover {
  border-color: rgba(97, 247, 154, 0.28);
  background: rgba(97, 247, 154, 0.1);
  color: #eafff2;
}

body[data-app-view] .account-menu .button {
  border-color: rgba(151, 180, 216, 0.22);
  background: rgba(12, 23, 39, 0.9);
  color: var(--ink);
}

/* 编辑器画布：空图片位不再使用白色斜纹，改为深色描边占位，一眼能看懂这是待上传空位。 */
body.ui-block-edit-mode img.ui-slot-empty,
body.ui-block-edit-mode [data-ui-slot].ui-slot-empty:not([data-ui-slot="global.pageBackground"]) {
  border-radius: 10px;
  background:
    repeating-linear-gradient(45deg, rgba(97, 247, 154, 0.1) 0 8px, rgba(7, 15, 25, 0.86) 8px 16px) !important;
  box-shadow: inset 0 0 0 2px rgba(97, 247, 154, 0.42) !important;
  color: rgba(217, 255, 232, 0.9);
}

body.ui-block-edit-mode img.ui-slot-empty {
  opacity: 1 !important;
}

/* 任务大厅右侧发布面板：给悬浮个人卡留出安全区，避免文字被遮挡。 */
body[data-app-view="tasks"] .task-publish-panel {
  padding-bottom: calc(19px + 92px);
}
