/* 寵物彩虹橋 · 卡片顏色選擇元件（快速建立面板與專頁設定頁共用；深色、淺色背景都看得清楚） */
.bc-picker { display: block; }
.bc-swatches { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.bc-sw {
  position: relative; box-sizing: border-box; width: 2.2rem; height: 2.2rem; padding: 0; border-radius: 50%;
  border: 2px solid rgba(128, 128, 128, 0.45); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent; transition: transform 0.12s ease;
}
.bc-sw:hover { transform: scale(1.08); }
.bc-sw:focus, .bc-sw:focus-visible { outline: none; }
.bc-sw.is-on { border-color: #d4af7a; box-shadow: 0 0 0 3px rgba(212, 175, 122, 0.35); }
.bc-sw.is-on::after { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); }
.bc-custom { overflow: hidden; background: conic-gradient(from 0deg, #f9cdd7, #fbdfcb, #fbf0cb, #d4f2de, #ceeaf8, #ced5f8, #e2d1f5, #f9cdd7); }
.bc-custom input[type="color"] { position: absolute; inset: -0.4rem; width: calc(100% + 0.8rem); height: calc(100% + 0.8rem); padding: 0; border: 0; opacity: 0; cursor: pointer; }
.bc-custom .material-icons { font-size: 1.1rem; color: #5a4a6a; pointer-events: none; }
.bc-custom.is-on::after { content: none; }
.bc-preview {
  margin-top: 0.7rem; padding: 0.55rem 0.9rem; border-radius: 0.8rem; border: 1px solid transparent; background: #101a3b;
  color: #e8d3a8; font-size: 0.85rem; text-align: center; font-weight: 600; transition: background 0.15s ease, border-color 0.15s ease;
}
.bc-preview:empty { display: none; }
