/*
 * SaaS Motion Pro — css/tools/colors.css
 * © 2026 Sabbir Hossen — SaaS Motion Pro. All rights reserved.
 */
.colors { position: relative; }
.colors-menu { position: absolute; right: 0; top: 34px; z-index: 20; display: flex; flex-direction: column; gap: 2px; padding: 4px; min-width: 190px; background: var(--panel); box-shadow: var(--shadow); }
.colors-menu[hidden] { display: none; }
.colors-menu .btn { justify-content: flex-start; height: 28px; min-height: 28px; font-weight: 500; }
.colors-danger { color: var(--err) !important; }
.colors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.app.w-xs .colors-grid { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.colors-sw { display: flex; flex-direction: column; gap: 4px; min-width: 0; cursor: pointer; }
.colors-chip { position: relative; aspect-ratio: 1.15; border-radius: var(--r-md); border: 1px solid rgba(255,255,255,0.08); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25); transition: transform .1s var(--ease); }
.colors-sw:hover .colors-chip { transform: translateY(-1px); box-shadow: 0 0 0 2px var(--accent-line); }
.colors-sw.editing .colors-chip { box-shadow: 0 0 0 2px var(--accent); }
.colors-sw.busy .colors-chip { animation: pulse .8s ease-in-out infinite; }
.colors-mini { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 5px; background: rgba(0,0,0,0.35); color: #fff; opacity: 0; transition: opacity .12s; }
.colors-mini svg { width: 12px; height: 12px; }
.colors-sw:hover .colors-mini, .colors-sw.editing .colors-mini { opacity: 1; }
.colors-cap { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.colors-cap b { font: 500 10.5px/1.2 var(--mono); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.colors-cap small { font: 9.5px/1.2 var(--mono); color: var(--text-3); }
.app.w-xs .colors-cap { display: none; }
.colors-empty { grid-column: 1 / -1; padding: 10px 0; }
.colors-edit[hidden] { display: none; }
