/* ============ COLOR POPOVER (Google Sheets-style) ============ */
.color-popover {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  z-index: 50;
  width: 260px;
}
.color-popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.color-popover-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  border-radius: 3px;
}
.color-popover-close:hover { color: var(--danger); background: var(--surface-alt); }
.color-none {
  width: 24px;
  height: 22px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  cursor: pointer;
  background: white;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.color-none:hover { border-color: var(--text); }
.color-grid {
  display: grid;
  grid-template-columns: repeat(10, 22px);
  gap: 3px;
}
.color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.1);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform 0.1s;
}
.color-swatch:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 2;
}
.color-swatch.selected {
  border: 2px solid var(--primary);
  outline: 1px solid white;
  outline-offset: -2px;
}
.color-hint {
  margin-top: 8px;
  padding: 6px 8px;
  background: var(--surface-alt);
  border-radius: 4px;
  font-size: 12px;
  color: var(--text);
  min-height: 26px;
  line-height: 1.3;
}
.color-hint:empty { display: none; }

/* ============ SUGGESTIONS POPOVER ============ */
.suggestions-popover {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  max-width: 320px;
  max-height: 200px;
  overflow-y: auto;
}
.suggestion-item {
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover, .suggestion-item.active { background: var(--primary-light); }

/* ============ EMPTY / LOADING ============ */
.empty-state, .loading-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}
.empty-state svg { display: block; margin: 0 auto 12px; opacity: 0.4; }
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

