/* ===== DupeForums 编辑模式样式 ===== */
#df-toolbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2147483000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #1d1b22;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  max-width: 92vw;
}
#df-toolbar .df-tb-title {
  font-weight: 700;
  color: #ffd95a;
  margin-right: 6px;
  white-space: nowrap;
}
#df-toolbar .df-tb-title small { font-weight: 400; color: #9b93a8; margin-left: 4px; }
#df-toolbar button, #df-toolbar a.btn {
  border: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  background: #3a3550;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
#df-toolbar button:hover, #df-toolbar a.btn:hover { background: #4a4470; }
#df-toolbar button[data-a="save"] { background: #2f9e5f; }
#df-toolbar button[data-a="save"]:hover { background: #37b96f; }
#df-toolbar a[data-a="exit"] { background: #7446e6; }

#df-hint {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  z-index: 2147483000;
  background: rgba(29,27,34,.92);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
  max-width: 92vw;
  text-align: center;
}

/* 编辑态选中高亮 */
.df-active {
  outline: 2px dashed #ffd95a !important;
  outline-offset: 1px;
  border-radius: 2px;
}

/* 编辑态链接不跳转光晕提示 */
body.df-editing, body.df-editing a, body.df-editing * {
  user-select: text;
}