/* ============================================================ */
/* 工具栏自定义模式 (macOS 自由拖拽排版 / 收纳到卡片下拉)        */
/* ============================================================ */
.tb-btn.tb-manage-btn {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
}
.tb-btn.tb-manage-btn:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.7);
  color: #fff;
}

#toolbar.tb-customizing {
  background: rgba(20, 22, 34, 0.95);
  border-bottom: 2px dashed rgba(99, 102, 241, 0.6);
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.25);
}

.tb-custom-banner {
  position: fixed;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 18px;
  background: rgba(15, 17, 26, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(99, 102, 241, 0.5);
  border-radius: 30px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.3);
  animation: tbBannerPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes tbBannerPop {
  from { opacity: 0; transform: translate(-50%, -12px) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
.tb-cb-left { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.tb-cb-badge {
  font-weight: 700;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.2);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.4);
}
.tb-cb-tip { color: #94a3b8; font-size: 12px; }
.tb-cb-acts { display: flex; align-items: center; gap: 8px; }
.tb-cb-btn {
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: var(--tx, #fff);
  transition: all 0.15s;
}
.tb-cb-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}
.tb-cb-btn.tb-cb-btn-accent {
  background: #4f46e5;
  border-color: #6366f1;
  color: #fff;
  font-weight: 600;
}
.tb-cb-btn.tb-cb-btn-accent:hover {
  background: #4338ca;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

/* 编辑状态下的顶栏按钮 */
.tb-draggable-item {
  position: relative;
  cursor: grab !important;
  user-select: none;
  border: 1px dashed rgba(99, 102, 241, 0.5) !important;
}
.tb-draggable-item:hover {
  border-color: #818cf8 !important;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}
.tb-draggable-item.dragging {
  opacity: 0.4;
  transform: scale(0.95);
  cursor: grabbing !important;
}
.tb-draggable-item.tb-drag-over {
  border-left: 3px solid #6366f1 !important;
  background: rgba(99, 102, 241, 0.25) !important;
}
.tb-item-minus-btn {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  line-height: 14px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s;
  z-index: 10;
}
.tb-item-minus-btn:hover {
  transform: scale(1.25);
  background: #dc2626;
}

/* 「卡片 ▾」作为投递目标 */
#btn-add-card.tb-dropzone-active {
  border: 1px dashed #6366f1 !important;
  background: rgba(99, 102, 241, 0.18) !important;
}
#btn-add-card.tb-dropzone-over {
  border: 2px solid #22c55e !important;
  background: rgba(34, 197, 94, 0.25) !important;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.4);
  transform: scale(1.05);
}

/* 「卡片 ▾」下拉里的收纳工具部分 */
.ac-custom-tools-section {
  margin-top: 4px;
}
.ac-custom-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
}
.ac-custom-title {
  font-size: 11px;
  font-weight: 700;
  color: #818cf8;
  letter-spacing: 0.5px;
}
.ac-custom-hint {
  font-size: 10px;
  color: #64748b;
}
.ac-custom-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ac-custom-label {
  flex: 1;
}
.ac-custom-pin-btn {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.ac-custom-pin-btn:hover {
  background: rgba(99, 102, 241, 0.35);
  color: #fff;
  border-color: #818cf8;
}
.ac-custom-draggable {
  cursor: grab !important;
  border: 1px dashed rgba(99, 102, 241, 0.4) !important;
}
.ac-custom-draggable:hover {
  background: rgba(99, 102, 241, 0.15) !important;
}

