/* Shared floating menus and pickers, placed with ui/place.js (always fully on screen): the right-click menu (.cal-ctx),
   the colour menu (.clr-: presets + Custom) and Flowly's own colour picker (ui/color-input.js, .cpk-). */
.popover.cal-ctx-pop { padding: 6px; min-width: 188px; border-radius: 12px; }
.cal-ctx { display: grid; }
.cal-ctx-item { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13px; color: var(--text); text-align: left; cursor: pointer; }
.cal-ctx-item:hover, .cal-ctx-item:focus-visible { background: light-dark(#f2f2f4, #252528); outline: none; }
.cal-ctx-item svg { width: 16px; height: 16px; color: var(--text-3, #86868b); }
.cal-ctx-item.danger, .cal-ctx-item.danger svg { color: light-dark(#c62828, #df6161); }
.cal-ctx-item.danger:hover { background: light-dark(#fdecea, #3b1a16); }
.cal-ctx-sep { height: 1px; margin: 5px 6px; background: var(--border); }
.popover.clr-pop { padding: 10px; }
.clr-menu { display: grid; gap: 10px; }
.clr-grid { display: grid; grid-template-columns: repeat(5, 24px); gap: 8px; }
.clr-sw { width: 24px; height: 24px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; transition: transform .1s; }
.clr-sw:hover { transform: scale(1.12); }
.clr-sw[aria-pressed="true"] { box-shadow: 0 0 0 2px light-dark(#fff, var(--card)), 0 0 0 4px #1d1d1f; }
.clr-custom { position: relative; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 8px; font-size: 13px; cursor: pointer; }
.clr-custom:hover { background: light-dark(#f2f2f4, #252528); }
.clr-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.clr-rainbow { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(#ff3b30, #ff9500, #ffcc00, #34c759, #30b0c7, #0a84ff, #af52de, #ff2d55, #ff3b30); }
.cpk-input { padding: 0; border: 0; background: transparent; cursor: pointer; }
.slot-any .cpk-input, .clr-custom .cpk-input, .cs-tt-any .cpk-input, .ptt-dot .cpk-input, .rd-custom-wrap .cpk-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.pp-color-custom.cpk-input { width: 26px; height: 26px; border: 1px solid var(--border-strong); border-radius: 6px;
  background: conic-gradient(#ff3b30, #ff9500, #ffcc00, #34c759, #30b0c7, #0a84ff, #af52de, #ff2d55, #ff3b30); }
.cpk { position: fixed; z-index: 300; width: 232px; padding: 12px; display: grid; gap: 10px; background: var(--card); border: 1px solid light-dark(rgba(0,0,0,.08), rgba(255, 255, 255, 0.14)); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 16px 40px rgba(15,20,35,.18); animation: cs-ctx-in .14s cubic-bezier(.2,.8,.2,1); transform-origin: top left; }
.cpk-sv { position: relative; height: 150px; border-radius: 10px; cursor: crosshair; touch-action: none; }
.cpk-hue { position: relative; height: 12px; border-radius: 999px; cursor: pointer; touch-action: none;
  background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.cpk-knob { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 1px 3px rgba(0,0,0,.3); pointer-events: none; }
.cpk-hue .cpk-knob { top: 50%; }
.cpk-row { display: flex; align-items: center; gap: 8px; }
.cpk-chip { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); flex: none; }
.cpk-hex { flex: 1; min-width: 0; height: 30px; padding: 0 10px; border: 1px solid var(--border, #ececee); border-radius: 8px; font: inherit; font-size: 13px; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.cpk-hex:focus { outline: none; border-color: #0a84ff; }
@media (prefers-reduced-motion: reduce) { .cpk { animation: none; } }
/* the task-type menu (ui/task-type-menu.js): one look for a task's Task type and a schedule slot's */
.ttm { position: fixed; z-index: 200; width: 248px; padding: 6px; background: var(--card); border: 1px solid light-dark(rgba(0,0,0,.07), rgba(255, 255, 255, 0.13)); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 12px 32px rgba(15,20,35,.14); animation: cs-ctx-in .14s cubic-bezier(.2,.8,.2,1); transform-origin: top left; }
.ttm-search { width: 100%; box-sizing: border-box; height: 32px; padding: 0 10px; margin-bottom: 4px; border: 1px solid var(--border, #ececee); border-radius: 8px; font: inherit; font-size: 13px; }
.ttm-search:focus { outline: none; border-color: #0a84ff; box-shadow: 0 0 0 3px rgba(10,132,255,.15); }
.ttm-items { display: grid; max-height: 260px; overflow: auto; }
.ttm-item { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13px; color: var(--text); text-align: left; cursor: pointer; }
.ttm-item:hover, .ttm-item:focus-visible { background: light-dark(#f2f2f4, #252528); outline: none; }
.ttm-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ttm-ck { margin-left: auto; color: light-dark(#0a84ff, #64adf7); }
.ttm-sep { height: 1px; margin: 4px 6px; background: var(--border, #ececee); }
.ttm-add { color: light-dark(#0a84ff, #64adf7); font-weight: 600; }
.ttm-add svg { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .ttm { animation: none; } }
