/* The color box (colorbox.js): a square of how vivid and bright, a strip of hues, the color and its code. */
.cbox { position: absolute; z-index: 20; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; width: 224px; padding: 10px; border-radius: 12px; background: var(--paper);
  box-shadow: 0 0 0 1.5px #c9b48a, 0 6px 18px rgba(60, 40, 20, .22); }
.cbox-field { position: relative; height: 128px; border-radius: 8px; cursor: crosshair; touch-action: none;
  background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, var(--hue)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.cbox-field:focus-visible { outline: 1.5px dashed var(--ink); outline-offset: 2px; }
.cbox-ring { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0, 0, 0, .35); }
/* the hue strip: a range, so under the site's own range style (style.css, a black fill and a sand track); this one is a rainbow, its fill off */
.cbox .cbox-hue { appearance: none; -webkit-appearance: none; width: 100%; height: 14px; margin: 0; border: 0; border-radius: 7px; cursor: pointer;
  background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.cbox .cbox-hue::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .4), 0 1px 3px rgba(0, 0, 0, .3); }
.cbox .cbox-hue::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .4), 0 1px 3px rgba(0, 0, 0, .3); }
.cbox-line { display: flex; align-items: center; gap: 8px; }
.cbox-now { flex: none; width: 36px; height: 36px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.cbox-code { flex: 1; width: 0; min-width: 0; height: 36px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 8px; background: #fffdf8; color: var(--ink);
  font: 16px var(--mono); text-transform: lowercase; }   /* 16px: no zoom on iPhone */
.cbox-code:focus { outline: none; border-color: var(--ink); }
.cbox-code[aria-invalid] { border-color: #c72b3b; }
/* in place (``into``): in the flow of what holds it, as wide, no frame of its own */
.cbox.cbox-in { position: static; width: auto; padding: 0; background: none; box-shadow: none; }
