/* ธีมสีส่วนตัว (js/user-theme.js): ปุ่มจานสีที่หัวเว็บ + กล่องเลือกสี */
.pp5-ut-wrap { position: relative; display: flex; align-items: center; }
.pp5-ut-btn i { color: var(--primary, #4F46E5); }
.pp5-ut-pop {
  position: absolute; top: calc(100% + 8px); right: -6px; z-index: 1200; width: 292px;
  padding: 12px; border-radius: 16px; background: #fff; border: 1px solid #e2e8f0;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
}
.pp5-ut-pop[hidden] { display: none !important; }
.pp5-ut-head { font-weight: 700; font-size: .92rem; color: #1f2937; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pp5-ut-head i { color: var(--primary, #4F46E5); }
.pp5-ut-head small { font-weight: 500; color: #64748b; font-size: .74rem; }
.pp5-ut-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pp5-ut-swatch {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 4px;
  border: 2px solid #e2e8f0; border-radius: 12px; background: #fff; cursor: pointer; font: inherit;
}
.pp5-ut-swatch:hover { border-color: #cbd5e1; }
.pp5-ut-swatch.is-on { border-color: var(--primary, #4F46E5); box-shadow: 0 0 0 3px var(--sidebar-active, rgba(99, 102, 241, .12)); }
.pp5-ut-chip { width: 44px; height: 24px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08); }
.pp5-ut-name { font-size: .72rem; font-weight: 600; color: #334155; line-height: 1.15; text-align: center; }
.pp5-ut-custom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 4px; font-size: .82rem; font-weight: 600; color: #334155; }
.pp5-ut-custom input { width: 54px; height: 32px; border: 0; padding: 0; background: none; cursor: pointer; }
.pp5-ut-note { font-size: .72rem; color: #64748b; }
[data-theme="dark"] .pp5-ut-pop { background: #111827; border-color: #2b3340; }
[data-theme="dark"] .pp5-ut-head { color: #e5e7eb; }
[data-theme="dark"] .pp5-ut-swatch { background: #1f2937; border-color: #374151; }
[data-theme="dark"] .pp5-ut-name, [data-theme="dark"] .pp5-ut-custom { color: #cbd5e1; }
[data-theme="dark"] .pp5-ut-btn i { color: color-mix(in srgb, var(--primary-light) 30%, #fff); }
@media (max-width: 576px) {
  .pp5-ut-pop { position: fixed; top: 64px; right: 10px; left: 10px; width: auto; }
}
