.pg-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; }
.pg-field { display: grid; gap: .3rem; font-size: .88rem; font-weight: 600; min-width: 0; }
.pg-pick { display: flex; gap: .4rem; align-items: center; }
.pg-pick input[type=color] { width: 44px; height: 40px; padding: 2px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; }
.pg-pick .input { width: 8.5rem; }
.pg-go { margin-left: auto; }
.pg-swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: clamp(260px, 46vh, 460px); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.pg-sw { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .6rem; padding: 1rem .5rem; transition: background-color .25s; }
.pg-hex { border: 0; background: none; color: inherit; font-size: clamp(.95rem, .7rem + .8vw, 1.35rem); font-weight: 700; letter-spacing: .04em; cursor: pointer; padding: .3rem .5rem; border-radius: 8px; }
.pg-hex:hover, .pg-lock:hover { background: rgb(127 127 127 / .18); }
.pg-lock { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: inherit; cursor: pointer; opacity: .55; }
.pg-lock.is-on { opacity: 1; background: rgb(127 127 127 / .2); }
.pg-tip { margin: 0; }
@media (max-width: 640px) {
  .pg-go { margin-left: 0; width: 100%; }
  .pg-bar .pg-field { flex: 1 1 10rem; }
  .pg-swatches { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 72px; height: auto; }
  .pg-sw { flex-direction: row; justify-content: space-between; padding: 0 .75rem; }
}
@media (prefers-reduced-motion: reduce) { .pg-sw { transition: none; } }
