/* ── the shared colour palette popover (color-palette.js; Sketch + Write + Lab) ── */
.p45-colorpop { position: fixed; z-index: 90; inset: auto; margin: 0; color: var(--text); background: var(--panel);
  border: 1px solid var(--line-strong, var(--strong)); border-radius: var(--radius-lg, 4px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .22); padding: 10px; }
.p45-colorpop__row { display: flex; gap: 4px; margin-top: 6px; }
.p45-colorpop__grid { display: grid; grid-template-columns: repeat(8, 20px); gap: 4px; margin-top: 6px; }
.p45-colorpop__greys { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; width: 188px; }
.p45-colorpop__greys .p45-cswatch { width: 100%; }
.p45-cswatch { width: 20px; height: 20px; min-width: 0; min-height: 0; border-radius: 4px; padding: 0;
  border: 1px solid rgba(0, 0, 0, .12); cursor: pointer; box-sizing: border-box; }
.p45-cswatch:hover { transform: scale(1.12); }
.p45-cswatch.is-on { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px #1f5fd0; }
.p45-cswatch--none { background:
  linear-gradient(to top right, transparent 44%, #d92020 46%, #d92020 54%, transparent 56%),
  var(--bg); }
.p45-cswatch--orig { outline: 1.5px dashed var(--muted); outline-offset: 1px; }
