/* ColorModal styles (P68) - hair's card design (human choice) with the TALL
   rainbow bar from nails. Linked by hair + nails; the modal DOM is built by
   platform/color-picker.js. .pkCard itself lives in dialogs.css. */
.pkOverlay {
  position: fixed; inset: 0; z-index: 60; padding: 16px;
  background: rgba(10, 12, 16, .72);
  display: flex; align-items: center; justify-content: center;
}
/* display:flex above would override the hidden attribute (same trap as .overlay) */
.pkOverlay[hidden] { display: none; }
.pkCard { display: flex; flex-direction: column; gap: 10px; }
.pkHead {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; margin-bottom: 8px;
}
.svWrap { position: relative; }
.svField {
  width: 100%; height: 150px; display: block;
  border: 1px solid var(--border); border-radius: 8px;
  touch-action: none; cursor: crosshair;
}
.svMarker {
  position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 3px rgba(0, 0, 0, .6);
  transform: translate(-50%, -50%); pointer-events: none;
}
/* the tall rainbow bar (nails' height, human spec) + thumb */
.pkHue {
  position: relative; height: 26px; border-radius: 999px;
  border: 1px solid var(--border); cursor: pointer; touch-action: none;
  background: linear-gradient(to right,
    #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}
.pkHueThumb {
  position: absolute; top: 50%; left: 0; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; border: 2px solid #999;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
  transform: translate(-50%, -50%); pointer-events: none;
}
/* live color bar above Done (human ask 2026-10-08: see what you're picking) */
.pkPreview {
  height: 42px; border-radius: 8px; border: 1px solid var(--border);
  margin-top: 8px; display: flex; align-items: center; justify-content: center;
  font: 600 14px ui-monospace, monospace; color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 0 6px rgba(0, 0, 0, .45);
}
.pkDone { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; padding: 10px 26px; }
.row.center { display: flex; gap: 10px; align-items: center; justify-content: center; }
